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()
1648 struct atm_vcc *vcc = NULL; in he_service_rbrq() local
1676 vcc = __find_vcc(he_dev, cid); in he_service_rbrq()
1679 if (vcc == NULL || (he_vcc = HE_VCC(vcc)) == NULL) { in he_service_rbrq()
1692 atomic_inc(&vcc->stats->rx_drop); in he_service_rbrq()
1718 vcc->vpi, vcc->vci); in he_service_rbrq()
1719 atomic_inc(&vcc->stats->rx_err); in he_service_rbrq()
1723 skb = atm_alloc_charge(vcc, he_vcc->pdu_len + rx_skb_reserve, in he_service_rbrq()
1726 HPRINTK("charge failed (%d.%d)\n", vcc->vpi, vcc->vci); in he_service_rbrq()
1738 switch (vcc->qos.aal) { in he_service_rbrq()
1750 if (vcc->vpi == 0 && vcc->vci >= ATM_NOT_RSV_VCI) { in he_service_rbrq()
1760 if (skb->len > vcc->qos.rxtp.max_sdu) in he_service_rbrq()
1761 …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()
1765 ATM_SKB(skb)->vcc = vcc; in he_service_rbrq()
1768 vcc->push(vcc, skb); in he_service_rbrq()
1771 atomic_inc(&vcc->stats->rx); in he_service_rbrq()
1837 he_mkcid(he_dev, tpd->vcc->vpi, tpd->vcc->vci)); in he_service_tbrq()
1838 if (tpd->vcc) in he_service_tbrq()
1839 wake_up(&HE_VCC(tpd->vcc)->tx_waitq); in he_service_tbrq()
1856 if (tpd->vcc && tpd->vcc->pop) in he_service_tbrq()
1857 tpd->vcc->pop(tpd->vcc, tpd->skb); in he_service_tbrq()
2093 if (tpd->vcc->pop) in __enqueue_tpd()
2094 tpd->vcc->pop(tpd->vcc, tpd->skb); in __enqueue_tpd()
2097 atomic_inc(&tpd->vcc->stats->tx_err); in __enqueue_tpd()
2117 he_open(struct atm_vcc *vcc) in he_open() argument
2120 struct he_dev *he_dev = HE_DEV(vcc->dev); in he_open()
2124 short vpi = vcc->vpi; in he_open()
2125 int vci = vcc->vci; in he_open()
2130 HPRINTK("open vcc %p %d.%d\n", vcc, vpi, vci); in he_open()
2132 set_bit(ATM_VF_ADDR, &vcc->flags); in he_open()
2149 vcc->dev_data = he_vcc; in he_open()
2151 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in he_open()
2154 pcr_goal = atm_pcr_goal(&vcc->qos.txtp); in he_open()
2162 switch (vcc->qos.aal) { in he_open()
2186 switch (vcc->qos.txtp.traffic_class) { in he_open()
2267 if (vcc->qos.rxtp.traffic_class != ATM_NONE) { in he_open()
2271 &HE_VCC(vcc)->rx_waitq); in he_open()
2273 switch (vcc->qos.aal) { in he_open()
2298 rsr0 = vcc->qos.rxtp.traffic_class == ATM_UBR ? in he_open()
2321 clear_bit(ATM_VF_ADDR, &vcc->flags); in he_open()
2324 set_bit(ATM_VF_READY, &vcc->flags); in he_open()
2330 he_close(struct atm_vcc *vcc) in he_close() argument
2334 struct he_dev *he_dev = HE_DEV(vcc->dev); in he_close()
2337 struct he_vcc *he_vcc = HE_VCC(vcc); in he_close()
2341 HPRINTK("close vcc %p %d.%d\n", vcc, vcc->vpi, vcc->vci); in he_close()
2343 clear_bit(ATM_VF_READY, &vcc->flags); in he_close()
2344 cid = he_mkcid(he_dev, vcc->vpi, vcc->vci); in he_close()
2346 if (vcc->qos.rxtp.traffic_class != ATM_NONE) { in he_close()
2381 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in he_close()
2396 while (((tx_inuse = atomic_read(&sk_atm(vcc)->sk_wmem_alloc)) > 1) && in he_close()
2414 switch (vcc->qos.txtp.traffic_class) { in he_close()
2433 tpd->vcc = vcc; in he_close()
2465 if (vcc->qos.txtp.traffic_class == ATM_CBR) { in he_close()
2484 clear_bit(ATM_VF_ADDR, &vcc->flags); in he_close()
2488 he_send(struct atm_vcc *vcc, struct sk_buff *skb) in he_send() argument
2491 struct he_dev *he_dev = HE_DEV(vcc->dev); in he_send()
2492 unsigned cid = he_mkcid(he_dev, vcc->vpi, vcc->vci); in he_send()
2500 HPRINTK("send %d.%d\n", vcc->vpi, vcc->vci); in he_send()
2503 ((vcc->qos.aal == ATM_AAL0) && (skb->len != ATM_AAL0_SDU))) { in he_send()
2505 if (vcc->pop) in he_send()
2506 vcc->pop(vcc, skb); in he_send()
2509 atomic_inc(&vcc->stats->tx_err); in he_send()
2516 if (vcc->pop) in he_send()
2517 vcc->pop(vcc, skb); in he_send()
2520 atomic_inc(&vcc->stats->tx_err); in he_send()
2528 if (vcc->pop) in he_send()
2529 vcc->pop(vcc, skb); in he_send()
2532 atomic_inc(&vcc->stats->tx_err); in he_send()
2537 if (vcc->qos.aal == ATM_AAL5) in he_send()
2562 tpd->vcc = vcc; in he_send()
2570 if (vcc->pop) in he_send()
2571 vcc->pop(vcc, skb); in he_send()
2574 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()