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()
600 struct atm_vcc *vcc = UDSL_SKB(skb)->atm.vcc; in usbatm_tx_process() local
602 usbatm_pop(vcc, skb); in usbatm_tx_process()
603 atomic_inc(&vcc->stats->tx); in usbatm_tx_process()
621 struct atm_vcc *vcc) in usbatm_cancel_send() argument
627 if (UDSL_SKB(skb)->atm.vcc == vcc) { in usbatm_cancel_send()
630 usbatm_pop(vcc, skb); in usbatm_cancel_send()
636 if ((skb = instance->current_skb) && (UDSL_SKB(skb)->atm.vcc == vcc)) { in usbatm_cancel_send()
639 usbatm_pop(vcc, skb); in usbatm_cancel_send()
644 static int usbatm_atm_send(struct atm_vcc *vcc, struct sk_buff *skb) in usbatm_atm_send() argument
646 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_send()
659 if (vcc->qos.aal != ATM_AAL5) { in usbatm_atm_send()
660 atm_rldbg(instance, "%s: unsupported ATM type %d!\n", __func__, vcc->qos.aal); in usbatm_atm_send()
675 ctrl->atm.vcc = vcc; in usbatm_atm_send()
685 usbatm_pop(vcc, skb); in usbatm_atm_send()
770 static int usbatm_atm_open(struct atm_vcc *vcc) in usbatm_atm_open() argument
772 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_open()
775 int vci = vcc->vci; in usbatm_atm_open()
776 short vpi = vcc->vpi; in usbatm_atm_open()
782 if ((vcc->qos.aal != ATM_AAL5)) { in usbatm_atm_open()
783 atm_warn(instance, "%s: unsupported ATM type %d!\n", __func__, vcc->qos.aal); in usbatm_atm_open()
788 if ((vcc->qos.rxtp.max_sdu < 0) || (vcc->qos.rxtp.max_sdu > ATM_MAX_AAL5_PDU)) { in usbatm_atm_open()
789 atm_dbg(instance, "%s: max_sdu %d out of range!\n", __func__, vcc->qos.rxtp.max_sdu); in usbatm_atm_open()
813 new->vcc = vcc; in usbatm_atm_open()
817 new->sarb = alloc_skb(usbatm_pdu_length(vcc->qos.rxtp.max_sdu), GFP_KERNEL); in usbatm_atm_open()
824 vcc->dev_data = new; in usbatm_atm_open()
833 set_bit(ATM_VF_ADDR, &vcc->flags); in usbatm_atm_open()
834 set_bit(ATM_VF_PARTIAL, &vcc->flags); in usbatm_atm_open()
835 set_bit(ATM_VF_READY, &vcc->flags); in usbatm_atm_open()
849 static void usbatm_atm_close(struct atm_vcc *vcc) in usbatm_atm_close() argument
851 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_close()
852 struct usbatm_vcc_data *vcc_data = vcc->dev_data; in usbatm_atm_close()
857 usbatm_cancel_send(instance, vcc); in usbatm_atm_close()
874 vcc->dev_data = NULL; in usbatm_atm_close()
876 vcc->vpi = ATM_VPI_UNSPEC; in usbatm_atm_close()
877 vcc->vci = ATM_VCI_UNSPEC; in usbatm_atm_close()
878 clear_bit(ATM_VF_READY, &vcc->flags); in usbatm_atm_close()
879 clear_bit(ATM_VF_PARTIAL, &vcc->flags); in usbatm_atm_close()
880 clear_bit(ATM_VF_ADDR, &vcc->flags); in usbatm_atm_close()
1230 vcc_release_async(vcc_data->vcc, -EPIPE); in usbatm_usb_disconnect()