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()
1650 struct atm_vcc *vcc = NULL; in he_service_rbrq() local
1678 vcc = __find_vcc(he_dev, cid); in he_service_rbrq()
1681 if (vcc == NULL || (he_vcc = HE_VCC(vcc)) == NULL) { in he_service_rbrq()
1694 atomic_inc(&vcc->stats->rx_drop); in he_service_rbrq()
1720 vcc->vpi, vcc->vci); in he_service_rbrq()
1721 atomic_inc(&vcc->stats->rx_err); in he_service_rbrq()
1725 skb = atm_alloc_charge(vcc, he_vcc->pdu_len + rx_skb_reserve, in he_service_rbrq()
1728 HPRINTK("charge failed (%d.%d)\n", vcc->vpi, vcc->vci); in he_service_rbrq()
1740 switch (vcc->qos.aal) { in he_service_rbrq()
1752 if (vcc->vpi == 0 && vcc->vci >= ATM_NOT_RSV_VCI) { in he_service_rbrq()
1762 if (skb->len > vcc->qos.rxtp.max_sdu) in he_service_rbrq()
1763 …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()
1767 ATM_SKB(skb)->vcc = vcc; in he_service_rbrq()
1770 vcc->push(vcc, skb); in he_service_rbrq()
1773 atomic_inc(&vcc->stats->rx); in he_service_rbrq()
1839 he_mkcid(he_dev, tpd->vcc->vpi, tpd->vcc->vci)); in he_service_tbrq()
1840 if (tpd->vcc) in he_service_tbrq()
1841 wake_up(&HE_VCC(tpd->vcc)->tx_waitq); in he_service_tbrq()
1858 if (tpd->vcc && tpd->vcc->pop) in he_service_tbrq()
1859 tpd->vcc->pop(tpd->vcc, tpd->skb); in he_service_tbrq()
2095 if (tpd->vcc->pop) in __enqueue_tpd()
2096 tpd->vcc->pop(tpd->vcc, tpd->skb); in __enqueue_tpd()
2099 atomic_inc(&tpd->vcc->stats->tx_err); in __enqueue_tpd()
2119 he_open(struct atm_vcc *vcc) in he_open() argument
2122 struct he_dev *he_dev = HE_DEV(vcc->dev); in he_open()
2126 short vpi = vcc->vpi; in he_open()
2127 int vci = vcc->vci; in he_open()
2132 HPRINTK("open vcc %p %d.%d\n", vcc, vpi, vci); in he_open()
2134 set_bit(ATM_VF_ADDR, &vcc->flags); in he_open()
2151 vcc->dev_data = he_vcc; in he_open()
2153 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in he_open()
2156 pcr_goal = atm_pcr_goal(&vcc->qos.txtp); in he_open()
2164 switch (vcc->qos.aal) { in he_open()
2188 switch (vcc->qos.txtp.traffic_class) { in he_open()
2269 if (vcc->qos.rxtp.traffic_class != ATM_NONE) { in he_open()
2273 &HE_VCC(vcc)->rx_waitq); in he_open()
2275 switch (vcc->qos.aal) { in he_open()
2300 rsr0 = vcc->qos.rxtp.traffic_class == ATM_UBR ? in he_open()
2323 clear_bit(ATM_VF_ADDR, &vcc->flags); in he_open()
2326 set_bit(ATM_VF_READY, &vcc->flags); in he_open()
2332 he_close(struct atm_vcc *vcc) in he_close() argument
2336 struct he_dev *he_dev = HE_DEV(vcc->dev); in he_close()
2339 struct he_vcc *he_vcc = HE_VCC(vcc); in he_close()
2343 HPRINTK("close vcc %p %d.%d\n", vcc, vcc->vpi, vcc->vci); in he_close()
2345 clear_bit(ATM_VF_READY, &vcc->flags); in he_close()
2346 cid = he_mkcid(he_dev, vcc->vpi, vcc->vci); in he_close()
2348 if (vcc->qos.rxtp.traffic_class != ATM_NONE) { in he_close()
2383 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in he_close()
2398 while (((tx_inuse = refcount_read(&sk_atm(vcc)->sk_wmem_alloc)) > 1) && in he_close()
2416 switch (vcc->qos.txtp.traffic_class) { in he_close()
2435 tpd->vcc = vcc; in he_close()
2467 if (vcc->qos.txtp.traffic_class == ATM_CBR) { in he_close()
2486 clear_bit(ATM_VF_ADDR, &vcc->flags); in he_close()
2490 he_send(struct atm_vcc *vcc, struct sk_buff *skb) in he_send() argument
2493 struct he_dev *he_dev = HE_DEV(vcc->dev); in he_send()
2494 unsigned cid = he_mkcid(he_dev, vcc->vpi, vcc->vci); in he_send()
2502 HPRINTK("send %d.%d\n", vcc->vpi, vcc->vci); in he_send()
2505 ((vcc->qos.aal == ATM_AAL0) && (skb->len != ATM_AAL0_SDU))) { in he_send()
2507 if (vcc->pop) in he_send()
2508 vcc->pop(vcc, skb); in he_send()
2511 atomic_inc(&vcc->stats->tx_err); in he_send()
2518 if (vcc->pop) in he_send()
2519 vcc->pop(vcc, skb); in he_send()
2522 atomic_inc(&vcc->stats->tx_err); in he_send()
2530 if (vcc->pop) in he_send()
2531 vcc->pop(vcc, skb); in he_send()
2534 atomic_inc(&vcc->stats->tx_err); in he_send()
2539 if (vcc->qos.aal == ATM_AAL5) in he_send()
2564 tpd->vcc = vcc; in he_send()
2572 if (vcc->pop) in he_send()
2573 vcc->pop(vcc, skb); in he_send()
2576 atomic_inc(&vcc->stats->tx_err); in he_send()
2599 tpd->vcc = vcc; in he_send()
2602 ATM_SKB(skb)->vcc = vcc; in he_send()
2607 atomic_inc(&vcc->stats->tx); in he_send()