Lines Matching refs:vcc
98 static int he_open(struct atm_vcc *vcc);
99 static void he_close(struct atm_vcc *vcc);
100 static int he_send(struct atm_vcc *vcc, struct sk_buff *skb);
331 struct atm_vcc *vcc; in __find_vcc() local
341 vcc = atm_sk(s); in __find_vcc()
342 if (vcc->dev == he_dev->atm_dev && in __find_vcc()
343 vcc->vci == vci && vcc->vpi == vpi && in __find_vcc()
344 vcc->qos.rxtp.traffic_class != ATM_NONE) { in __find_vcc()
345 return vcc; in __find_vcc()
1649 struct atm_vcc *vcc = NULL; in he_service_rbrq() local
1677 vcc = __find_vcc(he_dev, cid); in he_service_rbrq()
1680 if (vcc == NULL || (he_vcc = HE_VCC(vcc)) == NULL) { in he_service_rbrq()
1693 atomic_inc(&vcc->stats->rx_drop); in he_service_rbrq()
1719 vcc->vpi, vcc->vci); in he_service_rbrq()
1720 atomic_inc(&vcc->stats->rx_err); in he_service_rbrq()
1724 skb = atm_alloc_charge(vcc, he_vcc->pdu_len + rx_skb_reserve, in he_service_rbrq()
1727 HPRINTK("charge failed (%d.%d)\n", vcc->vpi, vcc->vci); in he_service_rbrq()
1739 switch (vcc->qos.aal) { in he_service_rbrq()
1751 if (vcc->vpi == 0 && vcc->vci >= ATM_NOT_RSV_VCI) { in he_service_rbrq()
1761 if (skb->len > vcc->qos.rxtp.max_sdu) in he_service_rbrq()
1762 …hprintk("pdu_len (%d) > vcc->qos.rxtp.max_sdu (%d)! cid 0x%x\n", skb->len, vcc->qos.rxtp.max_sdu,… in he_service_rbrq()
1766 ATM_SKB(skb)->vcc = vcc; in he_service_rbrq()
1769 vcc->push(vcc, skb); in he_service_rbrq()
1772 atomic_inc(&vcc->stats->rx); in he_service_rbrq()
1838 he_mkcid(he_dev, tpd->vcc->vpi, tpd->vcc->vci)); in he_service_tbrq()
1839 if (tpd->vcc) in he_service_tbrq()
1840 wake_up(&HE_VCC(tpd->vcc)->tx_waitq); in he_service_tbrq()
1857 if (tpd->vcc && tpd->vcc->pop) in he_service_tbrq()
1858 tpd->vcc->pop(tpd->vcc, tpd->skb); in he_service_tbrq()
2094 if (tpd->vcc->pop) in __enqueue_tpd()
2095 tpd->vcc->pop(tpd->vcc, tpd->skb); in __enqueue_tpd()
2098 atomic_inc(&tpd->vcc->stats->tx_err); in __enqueue_tpd()
2118 he_open(struct atm_vcc *vcc) in he_open() argument
2121 struct he_dev *he_dev = HE_DEV(vcc->dev); in he_open()
2125 short vpi = vcc->vpi; in he_open()
2126 int vci = vcc->vci; in he_open()
2131 HPRINTK("open vcc %p %d.%d\n", vcc, vpi, vci); in he_open()
2133 set_bit(ATM_VF_ADDR, &vcc->flags); in he_open()
2150 vcc->dev_data = he_vcc; in he_open()
2152 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in he_open()
2155 pcr_goal = atm_pcr_goal(&vcc->qos.txtp); in he_open()
2163 switch (vcc->qos.aal) { in he_open()
2187 switch (vcc->qos.txtp.traffic_class) { in he_open()
2268 if (vcc->qos.rxtp.traffic_class != ATM_NONE) { in he_open()
2272 &HE_VCC(vcc)->rx_waitq); in he_open()
2274 switch (vcc->qos.aal) { in he_open()
2299 rsr0 = vcc->qos.rxtp.traffic_class == ATM_UBR ? in he_open()
2322 clear_bit(ATM_VF_ADDR, &vcc->flags); in he_open()
2325 set_bit(ATM_VF_READY, &vcc->flags); in he_open()
2331 he_close(struct atm_vcc *vcc) in he_close() argument
2335 struct he_dev *he_dev = HE_DEV(vcc->dev); in he_close()
2338 struct he_vcc *he_vcc = HE_VCC(vcc); in he_close()
2342 HPRINTK("close vcc %p %d.%d\n", vcc, vcc->vpi, vcc->vci); in he_close()
2344 clear_bit(ATM_VF_READY, &vcc->flags); in he_close()
2345 cid = he_mkcid(he_dev, vcc->vpi, vcc->vci); in he_close()
2347 if (vcc->qos.rxtp.traffic_class != ATM_NONE) { in he_close()
2382 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in he_close()
2397 while (((tx_inuse = refcount_read(&sk_atm(vcc)->sk_wmem_alloc)) > 1) && in he_close()
2415 switch (vcc->qos.txtp.traffic_class) { in he_close()
2434 tpd->vcc = vcc; in he_close()
2466 if (vcc->qos.txtp.traffic_class == ATM_CBR) { in he_close()
2485 clear_bit(ATM_VF_ADDR, &vcc->flags); in he_close()
2489 he_send(struct atm_vcc *vcc, struct sk_buff *skb) in he_send() argument
2492 struct he_dev *he_dev = HE_DEV(vcc->dev); in he_send()
2493 unsigned cid = he_mkcid(he_dev, vcc->vpi, vcc->vci); in he_send()
2501 HPRINTK("send %d.%d\n", vcc->vpi, vcc->vci); in he_send()
2504 ((vcc->qos.aal == ATM_AAL0) && (skb->len != ATM_AAL0_SDU))) { in he_send()
2506 if (vcc->pop) in he_send()
2507 vcc->pop(vcc, skb); in he_send()
2510 atomic_inc(&vcc->stats->tx_err); in he_send()
2517 if (vcc->pop) in he_send()
2518 vcc->pop(vcc, skb); in he_send()
2521 atomic_inc(&vcc->stats->tx_err); in he_send()
2529 if (vcc->pop) in he_send()
2530 vcc->pop(vcc, skb); in he_send()
2533 atomic_inc(&vcc->stats->tx_err); in he_send()
2538 if (vcc->qos.aal == ATM_AAL5) in he_send()
2563 tpd->vcc = vcc; in he_send()
2571 if (vcc->pop) in he_send()
2572 vcc->pop(vcc, skb); in he_send()
2575 atomic_inc(&vcc->stats->tx_err); in he_send()
2597 tpd->vcc = vcc; in he_send()
2600 ATM_SKB(skb)->vcc = vcc; in he_send()
2605 atomic_inc(&vcc->stats->tx); in he_send()