• Home
  • Raw
  • Download

Lines Matching refs:vcc

150 	struct atm_vcc *vcc;  member
171 static int usbatm_atm_open(struct atm_vcc *vcc);
172 static void usbatm_atm_close(struct atm_vcc *vcc);
174 static int usbatm_atm_send(struct atm_vcc *vcc, struct sk_buff *skb);
198 static inline void usbatm_pop(struct atm_vcc *vcc, struct sk_buff *skb) in usbatm_pop() argument
200 if (vcc->pop) in usbatm_pop()
201 vcc->pop(vcc, skb); in usbatm_pop()
308 struct atm_vcc *vcc; in usbatm_extract_one_cell() local
327 vcc = instance->cached_vcc->vcc; in usbatm_extract_one_cell()
334 atomic_inc(&vcc->stats->rx_err); in usbatm_extract_one_cell()
342 __func__, sarb->len, vcc); in usbatm_extract_one_cell()
360 __func__, length, vcc); in usbatm_extract_one_cell()
361 atomic_inc(&vcc->stats->rx_err); in usbatm_extract_one_cell()
369 __func__, pdu_length, sarb->len, vcc); in usbatm_extract_one_cell()
370 atomic_inc(&vcc->stats->rx_err); in usbatm_extract_one_cell()
376 __func__, vcc); in usbatm_extract_one_cell()
377 atomic_inc(&vcc->stats->rx_err); in usbatm_extract_one_cell()
383 __func__, length, pdu_length, vcc); in usbatm_extract_one_cell()
389 atomic_inc(&vcc->stats->rx_drop); in usbatm_extract_one_cell()
397 if (!atm_charge(vcc, skb->truesize)) { in usbatm_extract_one_cell()
415 vcc->push(vcc, skb); in usbatm_extract_one_cell()
417 atomic_inc(&vcc->stats->rx); in usbatm_extract_one_cell()
473 struct atm_vcc *vcc = ctrl->atm.vcc; in usbatm_write_cells() local
483 ptr[0] = vcc->vpi >> 4; in usbatm_write_cells()
484 ptr[1] = (vcc->vpi << 4) | (vcc->vci >> 12); in usbatm_write_cells()
485 ptr[2] = vcc->vci >> 4; in usbatm_write_cells()
486 ptr[3] = vcc->vci << 4; in usbatm_write_cells()
612 struct atm_vcc *vcc = UDSL_SKB(skb)->atm.vcc; in usbatm_tx_process() local
614 usbatm_pop(vcc, skb); in usbatm_tx_process()
615 atomic_inc(&vcc->stats->tx); in usbatm_tx_process()
633 struct atm_vcc *vcc) in usbatm_cancel_send() argument
639 if (UDSL_SKB(skb)->atm.vcc == vcc) { in usbatm_cancel_send()
642 usbatm_pop(vcc, skb); in usbatm_cancel_send()
648 if ((skb = instance->current_skb) && (UDSL_SKB(skb)->atm.vcc == vcc)) { in usbatm_cancel_send()
651 usbatm_pop(vcc, skb); in usbatm_cancel_send()
656 static int usbatm_atm_send(struct atm_vcc *vcc, struct sk_buff *skb) in usbatm_atm_send() argument
658 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_send()
671 if (vcc->qos.aal != ATM_AAL5) { in usbatm_atm_send()
672 atm_rldbg(instance, "%s: unsupported ATM type %d!\n", __func__, vcc->qos.aal); in usbatm_atm_send()
687 ctrl->atm.vcc = vcc; in usbatm_atm_send()
697 usbatm_pop(vcc, skb); in usbatm_atm_send()
782 static int usbatm_atm_open(struct atm_vcc *vcc) in usbatm_atm_open() argument
784 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_open()
787 int vci = vcc->vci; in usbatm_atm_open()
788 short vpi = vcc->vpi; in usbatm_atm_open()
794 if ((vcc->qos.aal != ATM_AAL5)) { in usbatm_atm_open()
795 atm_warn(instance, "%s: unsupported ATM type %d!\n", __func__, vcc->qos.aal); in usbatm_atm_open()
800 if ((vcc->qos.rxtp.max_sdu < 0) || (vcc->qos.rxtp.max_sdu > ATM_MAX_AAL5_PDU)) { in usbatm_atm_open()
801 atm_dbg(instance, "%s: max_sdu %d out of range!\n", __func__, vcc->qos.rxtp.max_sdu); in usbatm_atm_open()
825 new->vcc = vcc; in usbatm_atm_open()
829 new->sarb = alloc_skb(usbatm_pdu_length(vcc->qos.rxtp.max_sdu), GFP_KERNEL); in usbatm_atm_open()
836 vcc->dev_data = new; in usbatm_atm_open()
845 set_bit(ATM_VF_ADDR, &vcc->flags); in usbatm_atm_open()
846 set_bit(ATM_VF_PARTIAL, &vcc->flags); in usbatm_atm_open()
847 set_bit(ATM_VF_READY, &vcc->flags); in usbatm_atm_open()
861 static void usbatm_atm_close(struct atm_vcc *vcc) in usbatm_atm_close() argument
863 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_close()
864 struct usbatm_vcc_data *vcc_data = vcc->dev_data; in usbatm_atm_close()
869 usbatm_cancel_send(instance, vcc); in usbatm_atm_close()
886 vcc->dev_data = NULL; in usbatm_atm_close()
888 vcc->vpi = ATM_VPI_UNSPEC; in usbatm_atm_close()
889 vcc->vci = ATM_VCI_UNSPEC; in usbatm_atm_close()
890 clear_bit(ATM_VF_READY, &vcc->flags); in usbatm_atm_close()
891 clear_bit(ATM_VF_PARTIAL, &vcc->flags); in usbatm_atm_close()
892 clear_bit(ATM_VF_ADDR, &vcc->flags); in usbatm_atm_close()
1245 vcc_release_async(vcc_data->vcc, -EPIPE); in usbatm_usb_disconnect()