• Home
  • Raw
  • Download

Lines Matching refs:proto

67 	BUG_ON(!hdlc->proto->netif_rx);  in hdlc_rcv()
68 return hdlc->proto->netif_rx(skb); in hdlc_rcv()
75 if (hdlc->proto->xmit) in hdlc_start_xmit()
76 return hdlc->proto->xmit(skb, dev); in hdlc_start_xmit()
84 if (hdlc->proto->start) in hdlc_proto_start()
85 hdlc->proto->start(dev); in hdlc_proto_start()
93 if (hdlc->proto->stop) in hdlc_proto_stop()
94 hdlc->proto->stop(dev); in hdlc_proto_stop()
158 if (hdlc->proto == NULL) in hdlc_open()
161 if (hdlc->proto->open) { in hdlc_open()
162 int result = hdlc->proto->open(dev); in hdlc_open()
200 if (hdlc->proto->close) in hdlc_close()
201 hdlc->proto->close(dev); in hdlc_close()
208 struct hdlc_proto *proto = first_proto; in hdlc_ioctl() local
214 if (dev_to_hdlc(dev)->proto) { in hdlc_ioctl()
215 result = dev_to_hdlc(dev)->proto->ioctl(dev, ifr); in hdlc_ioctl()
222 while (proto) { in hdlc_ioctl()
223 if ((result = proto->ioctl(dev, ifr)) != -EINVAL) in hdlc_ioctl()
225 proto = proto->next; in hdlc_ioctl()
276 int attach_hdlc_protocol(struct net_device *dev, struct hdlc_proto *proto, in attach_hdlc_protocol() argument
281 if (!try_module_get(proto->module)) in attach_hdlc_protocol()
287 module_put(proto->module); in attach_hdlc_protocol()
291 dev_to_hdlc(dev)->proto = proto; in attach_hdlc_protocol()
300 if (hdlc->proto) { in detach_hdlc_protocol()
301 if (hdlc->proto->detach) in detach_hdlc_protocol()
302 hdlc->proto->detach(dev); in detach_hdlc_protocol()
303 module_put(hdlc->proto->module); in detach_hdlc_protocol()
304 hdlc->proto = NULL; in detach_hdlc_protocol()
312 void register_hdlc_protocol(struct hdlc_proto *proto) in register_hdlc_protocol() argument
315 proto->next = first_proto; in register_hdlc_protocol()
316 first_proto = proto; in register_hdlc_protocol()
321 void unregister_hdlc_protocol(struct hdlc_proto *proto) in unregister_hdlc_protocol() argument
327 while (*p != proto) { in unregister_hdlc_protocol()
331 *p = proto->next; in unregister_hdlc_protocol()