Lines Matching refs:atm_vcc
467 struct atm_vcc * atm_vcc = dev->rxer[vc]; in rx_complete() local
470 if (atm_vcc) { in rx_complete()
472 if (rx_len <= atm_vcc->qos.rxtp.max_sdu) { in rx_complete()
474 if (atm_charge (atm_vcc, skb->truesize)) { in rx_complete()
477 ATM_SKB(skb)->vcc = atm_vcc; in rx_complete()
483 atomic_inc(&atm_vcc->stats->rx); in rx_complete()
486 atm_vcc->push (atm_vcc, skb); in rx_complete()
498 atomic_inc(&atm_vcc->stats->rx_drop); in rx_complete()
998 static int amb_open (struct atm_vcc * atm_vcc) in amb_open() argument
1009 amb_dev * dev = AMB_DEV(atm_vcc->dev); in amb_open()
1012 short vpi = atm_vcc->vpi; in amb_open()
1013 int vci = atm_vcc->vci; in amb_open()
1031 qos = &atm_vcc->qos; in amb_open()
1129 atm_vcc->dev_data = (void *) vcc; in amb_open()
1135 set_bit(ATM_VF_ADDR,&atm_vcc->flags); in amb_open()
1201 dev->rxer[vci] = atm_vcc; in amb_open()
1206 set_bit(ATM_VF_READY,&atm_vcc->flags); in amb_open()
1213 static void amb_close (struct atm_vcc * atm_vcc) { in amb_close() argument
1214 amb_dev * dev = AMB_DEV (atm_vcc->dev); in amb_close()
1215 amb_vcc * vcc = AMB_VCC (atm_vcc); in amb_close()
1216 u16 vci = atm_vcc->vci; in amb_close()
1221 clear_bit(ATM_VF_READY,&atm_vcc->flags); in amb_close()
1224 if (atm_vcc->qos.txtp.traffic_class != ATM_NONE) { in amb_close()
1246 if (atm_vcc->qos.rxtp.traffic_class != ATM_NONE) { in amb_close()
1265 if (atm_vcc != dev->rxer[vci]) in amb_close()
1286 clear_bit(ATM_VF_ADDR,&atm_vcc->flags); in amb_close()
1293 static int amb_send (struct atm_vcc * atm_vcc, struct sk_buff * skb) { in amb_send() argument
1294 amb_dev * dev = AMB_DEV(atm_vcc->dev); in amb_send()
1295 amb_vcc * vcc = AMB_VCC(atm_vcc); in amb_send()
1296 u16 vc = atm_vcc->vci; in amb_send()
1318 ATM_SKB(skb)->vcc = atm_vcc; in amb_send()
1320 if (skb->len > (size_t) atm_vcc->qos.txtp.max_sdu) { in amb_send()
1326 atomic_inc(&atm_vcc->stats->tx_err); in amb_send()
1373 static void amb_free_rx_skb (struct atm_vcc * atm_vcc, struct sk_buff * skb) {
1374 amb_dev * dev = AMB_DEV (atm_vcc->dev);
1375 amb_vcc * vcc = AMB_VCC (atm_vcc);
1385 skb, atm_vcc, vcc);