Lines Matching refs:atm_vcc

482     struct atm_vcc * atm_vcc = dev->rxer[vc];  in rx_complete()  local
485 if (atm_vcc) { in rx_complete()
487 if (rx_len <= atm_vcc->qos.rxtp.max_sdu) { in rx_complete()
489 if (atm_charge (atm_vcc, skb->truesize)) { in rx_complete()
492 ATM_SKB(skb)->vcc = atm_vcc; in rx_complete()
498 atomic_inc(&atm_vcc->stats->rx); in rx_complete()
501 atm_vcc->push (atm_vcc, skb); in rx_complete()
513 atomic_inc(&atm_vcc->stats->rx_drop); in rx_complete()
1013 static int amb_open (struct atm_vcc * atm_vcc) in amb_open() argument
1024 amb_dev * dev = AMB_DEV(atm_vcc->dev); in amb_open()
1027 short vpi = atm_vcc->vpi; in amb_open()
1028 int vci = atm_vcc->vci; in amb_open()
1046 qos = &atm_vcc->qos; in amb_open()
1144 atm_vcc->dev_data = (void *) vcc; in amb_open()
1150 set_bit(ATM_VF_ADDR,&atm_vcc->flags); in amb_open()
1216 dev->rxer[vci] = atm_vcc; in amb_open()
1221 set_bit(ATM_VF_READY,&atm_vcc->flags); in amb_open()
1228 static void amb_close (struct atm_vcc * atm_vcc) { in amb_close() argument
1229 amb_dev * dev = AMB_DEV (atm_vcc->dev); in amb_close()
1230 amb_vcc * vcc = AMB_VCC (atm_vcc); in amb_close()
1231 u16 vci = atm_vcc->vci; in amb_close()
1236 clear_bit(ATM_VF_READY,&atm_vcc->flags); in amb_close()
1239 if (atm_vcc->qos.txtp.traffic_class != ATM_NONE) { in amb_close()
1261 if (atm_vcc->qos.rxtp.traffic_class != ATM_NONE) { in amb_close()
1280 if (atm_vcc != dev->rxer[vci]) in amb_close()
1301 clear_bit(ATM_VF_ADDR,&atm_vcc->flags); in amb_close()
1308 static int amb_send (struct atm_vcc * atm_vcc, struct sk_buff * skb) { in amb_send() argument
1309 amb_dev * dev = AMB_DEV(atm_vcc->dev); in amb_send()
1310 amb_vcc * vcc = AMB_VCC(atm_vcc); in amb_send()
1311 u16 vc = atm_vcc->vci; in amb_send()
1333 ATM_SKB(skb)->vcc = atm_vcc; in amb_send()
1335 if (skb->len > (size_t) atm_vcc->qos.txtp.max_sdu) { in amb_send()
1341 atomic_inc(&atm_vcc->stats->tx_err); in amb_send()
1388 static void amb_free_rx_skb (struct atm_vcc * atm_vcc, struct sk_buff * skb) {
1389 amb_dev * dev = AMB_DEV (atm_vcc->dev);
1390 amb_vcc * vcc = AMB_VCC (atm_vcc);
1400 skb, atm_vcc, vcc);