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()
1651 struct atm_vcc *vcc = NULL; in he_service_rbrq() local
1679 vcc = __find_vcc(he_dev, cid); in he_service_rbrq()
1682 if (vcc == NULL || (he_vcc = HE_VCC(vcc)) == NULL) { in he_service_rbrq()
1695 atomic_inc(&vcc->stats->rx_drop); in he_service_rbrq()
1721 vcc->vpi, vcc->vci); in he_service_rbrq()
1722 atomic_inc(&vcc->stats->rx_err); in he_service_rbrq()
1726 skb = atm_alloc_charge(vcc, he_vcc->pdu_len + rx_skb_reserve, in he_service_rbrq()
1729 HPRINTK("charge failed (%d.%d)\n", vcc->vpi, vcc->vci); in he_service_rbrq()
1741 switch (vcc->qos.aal) { in he_service_rbrq()
1753 if (vcc->vpi == 0 && vcc->vci >= ATM_NOT_RSV_VCI) { in he_service_rbrq()
1763 if (skb->len > vcc->qos.rxtp.max_sdu) in he_service_rbrq()
1764 …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()
1768 ATM_SKB(skb)->vcc = vcc; in he_service_rbrq()
1771 vcc->push(vcc, skb); in he_service_rbrq()
1774 atomic_inc(&vcc->stats->rx); in he_service_rbrq()
1840 he_mkcid(he_dev, tpd->vcc->vpi, tpd->vcc->vci)); in he_service_tbrq()
1841 if (tpd->vcc) in he_service_tbrq()
1842 wake_up(&HE_VCC(tpd->vcc)->tx_waitq); in he_service_tbrq()
1859 if (tpd->vcc && tpd->vcc->pop) in he_service_tbrq()
1860 tpd->vcc->pop(tpd->vcc, tpd->skb); in he_service_tbrq()
2096 if (tpd->vcc->pop) in __enqueue_tpd()
2097 tpd->vcc->pop(tpd->vcc, tpd->skb); in __enqueue_tpd()
2100 atomic_inc(&tpd->vcc->stats->tx_err); in __enqueue_tpd()
2120 he_open(struct atm_vcc *vcc) in he_open() argument
2123 struct he_dev *he_dev = HE_DEV(vcc->dev); in he_open()
2127 short vpi = vcc->vpi; in he_open()
2128 int vci = vcc->vci; in he_open()
2133 HPRINTK("open vcc %p %d.%d\n", vcc, vpi, vci); in he_open()
2135 set_bit(ATM_VF_ADDR, &vcc->flags); in he_open()
2152 vcc->dev_data = he_vcc; in he_open()
2154 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in he_open()
2157 pcr_goal = atm_pcr_goal(&vcc->qos.txtp); in he_open()
2165 switch (vcc->qos.aal) { in he_open()
2189 switch (vcc->qos.txtp.traffic_class) { in he_open()
2270 if (vcc->qos.rxtp.traffic_class != ATM_NONE) { in he_open()
2274 &HE_VCC(vcc)->rx_waitq); in he_open()
2276 switch (vcc->qos.aal) { in he_open()
2301 rsr0 = vcc->qos.rxtp.traffic_class == ATM_UBR ? in he_open()
2324 clear_bit(ATM_VF_ADDR, &vcc->flags); in he_open()
2327 set_bit(ATM_VF_READY, &vcc->flags); in he_open()
2333 he_close(struct atm_vcc *vcc) in he_close() argument
2337 struct he_dev *he_dev = HE_DEV(vcc->dev); in he_close()
2340 struct he_vcc *he_vcc = HE_VCC(vcc); in he_close()
2344 HPRINTK("close vcc %p %d.%d\n", vcc, vcc->vpi, vcc->vci); in he_close()
2346 clear_bit(ATM_VF_READY, &vcc->flags); in he_close()
2347 cid = he_mkcid(he_dev, vcc->vpi, vcc->vci); in he_close()
2349 if (vcc->qos.rxtp.traffic_class != ATM_NONE) { in he_close()
2384 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in he_close()
2399 while (((tx_inuse = atomic_read(&sk_atm(vcc)->sk_wmem_alloc)) > 1) && in he_close()
2417 switch (vcc->qos.txtp.traffic_class) { in he_close()
2436 tpd->vcc = vcc; in he_close()
2468 if (vcc->qos.txtp.traffic_class == ATM_CBR) { in he_close()
2487 clear_bit(ATM_VF_ADDR, &vcc->flags); in he_close()
2491 he_send(struct atm_vcc *vcc, struct sk_buff *skb) in he_send() argument
2494 struct he_dev *he_dev = HE_DEV(vcc->dev); in he_send()
2495 unsigned cid = he_mkcid(he_dev, vcc->vpi, vcc->vci); in he_send()
2503 HPRINTK("send %d.%d\n", vcc->vpi, vcc->vci); in he_send()
2506 ((vcc->qos.aal == ATM_AAL0) && (skb->len != ATM_AAL0_SDU))) { in he_send()
2508 if (vcc->pop) in he_send()
2509 vcc->pop(vcc, skb); in he_send()
2512 atomic_inc(&vcc->stats->tx_err); in he_send()
2519 if (vcc->pop) in he_send()
2520 vcc->pop(vcc, skb); in he_send()
2523 atomic_inc(&vcc->stats->tx_err); in he_send()
2531 if (vcc->pop) in he_send()
2532 vcc->pop(vcc, skb); in he_send()
2535 atomic_inc(&vcc->stats->tx_err); in he_send()
2540 if (vcc->qos.aal == ATM_AAL5) in he_send()
2565 tpd->vcc = vcc; in he_send()
2573 if (vcc->pop) in he_send()
2574 vcc->pop(vcc, skb); in he_send()
2577 atomic_inc(&vcc->stats->tx_err); in he_send()
2600 tpd->vcc = vcc; in he_send()
2603 ATM_SKB(skb)->vcc = vcc; in he_send()
2608 atomic_inc(&vcc->stats->tx); in he_send()