Lines Matching refs:chan
70 struct ppp_channel chan; /* interface to generic ppp layer */ member
97 static inline struct pppoatm_vcc *chan_to_pvcc(const struct ppp_channel *chan) in chan_to_pvcc() argument
99 return (struct pppoatm_vcc *) (chan->private); in chan_to_pvcc()
176 ppp_unregister_channel(&pvcc->chan); in pppoatm_unassign_vcc()
205 if (pvcc->chan.ppp == NULL) { /* Not bound yet! */ in pppoatm_push()
219 pvcc->chan.mtu += LLC_LEN; in pppoatm_push()
229 ppp_input(&pvcc->chan, skb); in pppoatm_push()
234 ppp_input_error(&pvcc->chan, 0); in pppoatm_push()
292 static int pppoatm_send(struct ppp_channel *chan, struct sk_buff *skb) in pppoatm_send() argument
294 struct pppoatm_vcc *pvcc = chan_to_pvcc(chan); in pppoatm_send()
374 static int pppoatm_devppp_ioctl(struct ppp_channel *chan, unsigned int cmd, in pppoatm_devppp_ioctl() argument
379 return put_user(chan_to_pvcc(chan)->flags, (int __user *) arg) in pppoatm_devppp_ioctl()
382 return get_user(chan_to_pvcc(chan)->flags, (int __user *) arg) in pppoatm_devppp_ioctl()
420 pvcc->chan.private = pvcc; in pppoatm_assign_vcc()
421 pvcc->chan.ops = &pppoatm_ops; in pppoatm_assign_vcc()
422 pvcc->chan.mtu = atmvcc->qos.txtp.max_sdu - PPP_HDRLEN - in pppoatm_assign_vcc()
425 pvcc->wakeup_tasklet.data = (unsigned long) &pvcc->chan; in pppoatm_assign_vcc()
426 err = ppp_register_channel(&pvcc->chan); in pppoatm_assign_vcc()
471 chan), (int __user *) argp) ? -EFAULT : 0; in pppoatm_ioctl()
474 chan), (int __user *) argp) ? -EFAULT : 0; in pppoatm_ioctl()