Lines Matching refs:dev
20 int (*open)(struct net_device *dev);
21 void (*close)(struct net_device *dev);
22 void (*start)(struct net_device *dev); /* if open & DCD */
23 void (*stop)(struct net_device *dev); /* if open & !DCD */
24 void (*detach)(struct net_device *dev);
25 int (*ioctl)(struct net_device *dev, struct ifreq *ifr);
26 __be16 (*type_trans)(struct sk_buff *skb, struct net_device *dev);
28 netdev_tx_t (*xmit)(struct sk_buff *skb, struct net_device *dev);
37 int (*attach)(struct net_device *dev,
41 netdev_tx_t (*xmit)(struct sk_buff *skb, struct net_device *dev);
57 int hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);
60 #define register_hdlc_device(dev) register_netdev(dev) argument
61 void unregister_hdlc_device(struct net_device *dev);
69 static inline struct hdlc_device* dev_to_hdlc(struct net_device *dev) in dev_to_hdlc() argument
71 return netdev_priv(dev); in dev_to_hdlc()
90 int hdlc_open(struct net_device *dev);
92 void hdlc_close(struct net_device *dev);
94 netdev_tx_t hdlc_start_xmit(struct sk_buff *skb, struct net_device *dev);
96 int attach_hdlc_protocol(struct net_device *dev, struct hdlc_proto *proto,
99 int detach_hdlc_protocol(struct net_device *dev);
102 struct net_device *dev) in hdlc_type_trans() argument
104 hdlc_device *hdlc = dev_to_hdlc(dev); in hdlc_type_trans()
106 skb->dev = dev; in hdlc_type_trans()
110 return hdlc->proto->type_trans(skb, dev); in hdlc_type_trans()