Lines Matching refs:atmvcc
68 struct atm_vcc *atmvcc; member
114 static inline struct br2684_vcc *BR2684_VCC(const struct atm_vcc *atmvcc) in BR2684_VCC() argument
116 return (struct br2684_vcc *) (atmvcc->user_back); in BR2684_VCC()
157 struct atm_vcc *atmvcc; in br2684_xmit_vcc() local
184 ATM_SKB(skb)->vcc = atmvcc = brvcc->atmvcc; in br2684_xmit_vcc()
185 DPRINTK("atm_skb(%p)->vcc(%p)->dev(%p)\n", skb, atmvcc, atmvcc->dev); in br2684_xmit_vcc()
186 if (!atm_may_send(atmvcc, skb->truesize)) { in br2684_xmit_vcc()
194 atomic_add(skb->truesize, &atmvcc->sk->wmem_alloc); in br2684_xmit_vcc()
195 ATM_SKB(skb)->atm_options = atmvcc->atm_options; in br2684_xmit_vcc()
198 atmvcc->send(atmvcc, skb); in br2684_xmit_vcc()
346 static int br2684_setfilt(struct atm_vcc *atmvcc, unsigned long arg) in br2684_setfilt() argument
370 brvcc = BR2684_VCC(atmvcc); in br2684_setfilt()
400 brvcc->atmvcc->user_back = NULL; /* what about vcc->recvq ??? */ in br2684_close_vcc()
401 brvcc->old_push(brvcc->atmvcc, NULL); /* pass on the bad news */ in br2684_close_vcc()
407 static void br2684_push(struct atm_vcc *atmvcc, struct sk_buff *skb) in br2684_push() argument
409 struct br2684_vcc *brvcc = BR2684_VCC(atmvcc); in br2684_push()
428 atm_return(atmvcc, skb->truesize); in br2684_push()
481 ATM_SKB(skb)->vcc = atmvcc; /* needed ? */ in br2684_push()
495 static int br2684_regvcc(struct atm_vcc *atmvcc, unsigned long arg) in br2684_regvcc() argument
524 if (atmvcc->push == NULL) { in br2684_regvcc()
540 DPRINTK("br2684_regvcc vcc=%p, encaps=%d, brvcc=%p\n", atmvcc, be.encaps, in br2684_regvcc()
543 unsigned char *esi = atmvcc->dev->esi; in br2684_regvcc()
553 brvcc->atmvcc = atmvcc; in br2684_regvcc()
554 atmvcc->user_back = brvcc; in br2684_regvcc()
556 brvcc->old_push = atmvcc->push; in br2684_regvcc()
558 atmvcc->push = br2684_push; in br2684_regvcc()
560 skb_migrate(&atmvcc->sk->receive_queue, ©); in br2684_regvcc()
564 br2684_push(atmvcc, skb); in br2684_regvcc()
648 static int br2684_ioctl(struct atm_vcc *atmvcc, unsigned int cmd, in br2684_ioctl() argument
666 return br2684_regvcc(atmvcc, arg); in br2684_ioctl()
672 if (atmvcc->push != br2684_push) in br2684_ioctl()
677 err = br2684_setfilt(atmvcc, arg); in br2684_ioctl()
712 "\n", brvcc->atmvcc->dev->number, in br2684_proc_engine()
713 brvcc->atmvcc->vpi, brvcc->atmvcc->vci, in br2684_proc_engine()