Lines Matching refs:vcc
135 struct atm_vcc *vcc; member
156 static int usbatm_atm_open(struct atm_vcc *vcc);
157 static void usbatm_atm_close(struct atm_vcc *vcc);
159 static int usbatm_atm_send(struct atm_vcc *vcc, struct sk_buff *skb);
183 static inline void usbatm_pop(struct atm_vcc *vcc, struct sk_buff *skb) in usbatm_pop() argument
185 if (vcc->pop) in usbatm_pop()
186 vcc->pop(vcc, skb); in usbatm_pop()
293 struct atm_vcc *vcc; in usbatm_extract_one_cell() local
312 vcc = instance->cached_vcc->vcc; in usbatm_extract_one_cell()
319 atomic_inc(&vcc->stats->rx_err); in usbatm_extract_one_cell()
327 __func__, sarb->len, vcc); in usbatm_extract_one_cell()
345 __func__, length, vcc); in usbatm_extract_one_cell()
346 atomic_inc(&vcc->stats->rx_err); in usbatm_extract_one_cell()
354 __func__, pdu_length, sarb->len, vcc); in usbatm_extract_one_cell()
355 atomic_inc(&vcc->stats->rx_err); in usbatm_extract_one_cell()
361 __func__, vcc); in usbatm_extract_one_cell()
362 atomic_inc(&vcc->stats->rx_err); in usbatm_extract_one_cell()
368 __func__, length, pdu_length, vcc); in usbatm_extract_one_cell()
375 atomic_inc(&vcc->stats->rx_drop); in usbatm_extract_one_cell()
383 if (!atm_charge(vcc, skb->truesize)) { in usbatm_extract_one_cell()
401 vcc->push(vcc, skb); in usbatm_extract_one_cell()
403 atomic_inc(&vcc->stats->rx); in usbatm_extract_one_cell()
459 struct atm_vcc *vcc = ctrl->atm.vcc; in usbatm_write_cells() local
469 ptr[0] = vcc->vpi >> 4; in usbatm_write_cells()
470 ptr[1] = (vcc->vpi << 4) | (vcc->vci >> 12); in usbatm_write_cells()
471 ptr[2] = vcc->vci >> 4; in usbatm_write_cells()
472 ptr[3] = vcc->vci << 4; in usbatm_write_cells()
598 struct atm_vcc *vcc = UDSL_SKB(skb)->atm.vcc; in usbatm_tx_process() local
600 usbatm_pop(vcc, skb); in usbatm_tx_process()
601 atomic_inc(&vcc->stats->tx); in usbatm_tx_process()
619 struct atm_vcc *vcc) in usbatm_cancel_send() argument
625 if (UDSL_SKB(skb)->atm.vcc == vcc) { in usbatm_cancel_send()
628 usbatm_pop(vcc, skb); in usbatm_cancel_send()
634 if ((skb = instance->current_skb) && (UDSL_SKB(skb)->atm.vcc == vcc)) { in usbatm_cancel_send()
637 usbatm_pop(vcc, skb); in usbatm_cancel_send()
642 static int usbatm_atm_send(struct atm_vcc *vcc, struct sk_buff *skb) in usbatm_atm_send() argument
644 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_send()
657 if (vcc->qos.aal != ATM_AAL5) { in usbatm_atm_send()
658 atm_rldbg(instance, "%s: unsupported ATM type %d!\n", __func__, vcc->qos.aal); in usbatm_atm_send()
673 ctrl->atm.vcc = vcc; in usbatm_atm_send()
683 usbatm_pop(vcc, skb); in usbatm_atm_send()
768 static int usbatm_atm_open(struct atm_vcc *vcc) in usbatm_atm_open() argument
770 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_open()
773 int vci = vcc->vci; in usbatm_atm_open()
774 short vpi = vcc->vpi; in usbatm_atm_open()
780 if ((vcc->qos.aal != ATM_AAL5)) { in usbatm_atm_open()
781 atm_warn(instance, "%s: unsupported ATM type %d!\n", __func__, vcc->qos.aal); in usbatm_atm_open()
786 if ((vcc->qos.rxtp.max_sdu < 0) || (vcc->qos.rxtp.max_sdu > ATM_MAX_AAL5_PDU)) { in usbatm_atm_open()
787 atm_dbg(instance, "%s: max_sdu %d out of range!\n", __func__, vcc->qos.rxtp.max_sdu); in usbatm_atm_open()
811 new->vcc = vcc; in usbatm_atm_open()
815 new->sarb = alloc_skb(usbatm_pdu_length(vcc->qos.rxtp.max_sdu), GFP_KERNEL); in usbatm_atm_open()
822 vcc->dev_data = new; in usbatm_atm_open()
831 set_bit(ATM_VF_ADDR, &vcc->flags); in usbatm_atm_open()
832 set_bit(ATM_VF_PARTIAL, &vcc->flags); in usbatm_atm_open()
833 set_bit(ATM_VF_READY, &vcc->flags); in usbatm_atm_open()
847 static void usbatm_atm_close(struct atm_vcc *vcc) in usbatm_atm_close() argument
849 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_close()
850 struct usbatm_vcc_data *vcc_data = vcc->dev_data; in usbatm_atm_close()
855 usbatm_cancel_send(instance, vcc); in usbatm_atm_close()
872 vcc->dev_data = NULL; in usbatm_atm_close()
874 vcc->vpi = ATM_VPI_UNSPEC; in usbatm_atm_close()
875 vcc->vci = ATM_VCI_UNSPEC; in usbatm_atm_close()
876 clear_bit(ATM_VF_READY, &vcc->flags); in usbatm_atm_close()
877 clear_bit(ATM_VF_PARTIAL, &vcc->flags); in usbatm_atm_close()
878 clear_bit(ATM_VF_ADDR, &vcc->flags); in usbatm_atm_close()
1226 vcc_release_async(vcc_data->vcc, -EPIPE); in usbatm_usb_disconnect()