Lines Matching defs:dev
23 static int raw_eth_ioctl(struct net_device *dev, struct if_settings *ifs);
25 static netdev_tx_t eth_tx(struct sk_buff *skb, struct net_device *dev)
32 dev->stats.tx_dropped++;
39 return dev_to_hdlc(dev)->xmit(skb, dev);
51 static int raw_eth_ioctl(struct net_device *dev, struct if_settings *ifs)
56 hdlc_device *hdlc = dev_to_hdlc(dev);
62 if (dev_to_hdlc(dev)->proto != &proto)
77 if (dev->flags & IFF_UP)
89 result = hdlc->attach(dev, new_settings.encoding,
94 result = attach_hdlc_protocol(dev, &proto,
99 old_qlen = dev->tx_queue_len;
100 ether_setup(dev);
101 dev->tx_queue_len = old_qlen;
102 dev->priv_flags &= ~IFF_TX_SKB_SHARING;
103 eth_hw_addr_random(dev);
104 call_netdevice_notifiers(NETDEV_POST_TYPE_CHANGE, dev);
105 netif_dormant_off(dev);