Lines Matching full:vcc

115 	pr_err("ATMARP: failed (entry %p, vcc 0x%p)\n", entry, clip_vcc);  in unlink_clip_vcc()
132 pr_debug("releasing vcc %p->%p of entry %p\n", in neigh_check_cb()
133 cv, cv->vcc, entry); in neigh_check_cb()
134 vcc_release_async(cv->vcc, -ETIMEDOUT); in neigh_check_cb()
167 struct atm_vcc *vcc; in clip_arp_rcv() local
170 vcc = ATM_SKB(skb)->vcc; in clip_arp_rcv()
171 if (!vcc || !atm_charge(vcc, skb->truesize)) { in clip_arp_rcv()
175 pr_debug("pushing to %p\n", vcc); in clip_arp_rcv()
176 pr_debug("using %p\n", CLIP_VCC(vcc)->old_push); in clip_arp_rcv()
177 CLIP_VCC(vcc)->old_push(vcc, skb); in clip_arp_rcv()
190 static void clip_push(struct atm_vcc *vcc, struct sk_buff *skb) in clip_push() argument
192 struct clip_vcc *clip_vcc = CLIP_VCC(vcc); in clip_push()
197 atm_return(vcc, skb->truesize); in clip_push()
203 pr_debug("removing VCC %p\n", clip_vcc); in clip_push()
206 clip_vcc->old_push(vcc, NULL); /* pass on the bad news */ in clip_push()
210 atm_return(vcc, skb->truesize); in clip_push()
217 ATM_SKB(skb)->vcc = vcc; in clip_push()
245 static void clip_pop(struct atm_vcc *vcc, struct sk_buff *skb) in clip_pop() argument
247 struct clip_vcc *clip_vcc = CLIP_VCC(vcc); in clip_pop()
252 pr_debug("(vcc %p)\n", vcc); in clip_pop()
253 clip_vcc->old_pop(vcc, skb); in clip_pop()
258 if (atm_may_send(vcc, 0)) { in clip_pop()
319 static int clip_encap(struct atm_vcc *vcc, int mode) in clip_encap() argument
321 if (!CLIP_VCC(vcc)) in clip_encap()
324 CLIP_VCC(vcc)->encap = mode; in clip_encap()
335 struct atm_vcc *vcc; in clip_start_xmit() local
376 ATM_SKB(skb)->vcc = vcc = entry->vccs->vcc; in clip_start_xmit()
377 pr_debug("using neighbour %p, vcc %p\n", n, vcc); in clip_start_xmit()
385 atm_account_tx(vcc, skb); in clip_start_xmit()
387 pr_debug("atm_skb(%p)->vcc(%p)->dev(%p)\n", skb, vcc, vcc->dev); in clip_start_xmit()
395 vcc->send(vcc, skb); in clip_start_xmit()
396 if (atm_may_send(vcc, 0)) { in clip_start_xmit()
415 static int clip_mkip(struct atm_vcc *vcc, int timeout) in clip_mkip() argument
419 if (!vcc->push) in clip_mkip()
424 pr_debug("%p vcc %p\n", clip_vcc, vcc); in clip_mkip()
425 clip_vcc->vcc = vcc; in clip_mkip()
426 vcc->user_back = clip_vcc; in clip_mkip()
427 set_bit(ATM_VF_IS_CLIP, &vcc->flags); in clip_mkip()
433 clip_vcc->old_push = vcc->push; in clip_mkip()
434 clip_vcc->old_pop = vcc->pop; in clip_mkip()
435 vcc->push = clip_push; in clip_mkip()
436 vcc->pop = clip_pop; in clip_mkip()
439 vcc_process_recv_queue(vcc); in clip_mkip()
444 static int clip_setentry(struct atm_vcc *vcc, __be32 ip) in clip_setentry() argument
452 if (vcc->push != clip_push) { in clip_setentry()
453 pr_warn("non-CLIP VCC\n"); in clip_setentry()
456 clip_vcc = CLIP_VCC(vcc); in clip_setentry()
607 static void atmarpd_close(struct atm_vcc *vcc) in atmarpd_close() argument
613 skb_queue_purge(&sk_atm(vcc)->sk_receive_queue); in atmarpd_close()
633 static int atm_init_atmarp(struct atm_vcc *vcc) in atm_init_atmarp() argument
643 atmarpd = vcc; in atm_init_atmarp()
644 set_bit(ATM_VF_META, &vcc->flags); in atm_init_atmarp()
645 set_bit(ATM_VF_READY, &vcc->flags); in atm_init_atmarp()
647 vcc->dev = &atmarpd_dev; in atm_init_atmarp()
648 vcc_insert_socket(sk_atm(vcc)); in atm_init_atmarp()
649 vcc->push = NULL; in atm_init_atmarp()
650 vcc->pop = NULL; /* crash */ in atm_init_atmarp()
651 vcc->push_oam = NULL; /* crash */ in atm_init_atmarp()
658 struct atm_vcc *vcc = ATM_SD(sock); in clip_ioctl() local
679 err = atm_init_atmarp(vcc); in clip_ioctl()
686 err = clip_mkip(vcc, arg); in clip_ioctl()
689 err = clip_setentry(vcc, (__force __be32)arg); in clip_ioctl()
692 err = clip_encap(vcc, arg); in clip_ioctl()
733 /* This means the neighbour entry has no attached VCC objects. */
745 (sk_atm(clip_vcc->vcc)->sk_family == AF_ATMSVC)); in atmarp_info()
773 clip_vcc->vcc->dev->number, in atmarp_info()
774 clip_vcc->vcc->vpi, clip_vcc->vcc->vci); in atmarp_info()
776 svc_addr(seq, &clip_vcc->vcc->remote); in atmarp_info()
786 struct clip_vcc *vcc; member
809 struct clip_vcc *vcc = state->vcc; in clip_seq_vcc_walk() local
811 vcc = clip_seq_next_vcc(e, vcc); in clip_seq_vcc_walk()
812 if (vcc && pos != NULL) { in clip_seq_vcc_walk()
814 vcc = clip_seq_next_vcc(e, vcc); in clip_seq_vcc_walk()
815 if (!vcc) in clip_seq_vcc_walk()
820 state->vcc = vcc; in clip_seq_vcc_walk()
822 return vcc; in clip_seq_vcc_walk()
852 struct clip_vcc *vcc = state->vcc; in clip_seq_show() local
855 atmarp_info(seq, n, neighbour_priv(n), vcc); in clip_seq_show()