Lines Matching refs:net

131 	struct net_device	*net;  member
310 printk(level "%s: " fmt , (d)->net->name , ## args)
1128 netif_carrier_on (dev->net); in set_ether_config()
1129 if (netif_running (dev->net)) { in set_ether_config()
1153 netif_stop_queue (dev->net); in eth_reset_config()
1154 netif_carrier_off (dev->net); in eth_reset_config()
1554 netif_carrier_on (dev->net); in eth_setup()
1557 if (netif_running (dev->net)) { in eth_setup()
1563 netif_stop_queue (dev->net); in eth_setup()
1564 netif_carrier_off (dev->net); in eth_setup()
1591 *(u8 *)req->buf = netif_carrier_ok (dev->net) ? 1 : 0; in eth_setup()
1688 netif_stop_queue (dev->net); in eth_disconnect()
1689 netif_carrier_off (dev->net); in eth_disconnect()
1704 static int eth_change_mtu (struct net_device *net, int new_mtu) in eth_change_mtu() argument
1706 struct eth_dev *dev = netdev_priv(net); in eth_change_mtu()
1715 net->mtu = new_mtu; in eth_change_mtu()
1719 static struct net_device_stats *eth_get_stats (struct net_device *net) in eth_get_stats() argument
1721 return &((struct eth_dev *)netdev_priv(net))->stats; in eth_get_stats()
1724 static void eth_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *p) in eth_get_drvinfo() argument
1726 struct eth_dev *dev = netdev_priv(net); in eth_get_drvinfo()
1734 static u32 eth_get_link(struct net_device *net) in eth_get_link() argument
1736 struct eth_dev *dev = netdev_priv(net); in eth_get_link()
1775 size = (sizeof (struct ethhdr) + dev->net->mtu + RX_EXTRA); in rx_submit()
1830 skb->dev = dev->net; in rx_complete()
1831 skb->protocol = eth_type_trans (skb, dev->net); in rx_complete()
1869 if (!netif_running (dev->net)) { in rx_complete()
1965 if (netif_running (dev->net)) in eth_work()
1999 if (netif_carrier_ok (dev->net)) in tx_complete()
2000 netif_wake_queue (dev->net); in tx_complete()
2003 static int eth_start_xmit (struct sk_buff *skb, struct net_device *net) in eth_start_xmit() argument
2005 struct eth_dev *dev = netdev_priv(net); in eth_start_xmit()
2020 netif_stop_queue (net); in eth_start_xmit()
2069 net->trans_start = jiffies; in eth_start_xmit()
2081 netif_start_queue (net); in eth_start_xmit()
2118 static int rndis_control_ack (struct net_device *net) in rndis_control_ack() argument
2120 struct eth_dev *dev = netdev_priv(net); in rndis_control_ack()
2174 netif_wake_queue (dev->net); in eth_start()
2185 static int eth_open (struct net_device *net) in eth_open() argument
2187 struct eth_dev *dev = netdev_priv(net); in eth_open()
2190 if (netif_carrier_ok (dev->net)) in eth_open()
2195 static int eth_stop (struct net_device *net) in eth_stop() argument
2197 struct eth_dev *dev = netdev_priv(net); in eth_stop()
2200 netif_stop_queue (net); in eth_stop()
2211 if (netif_carrier_ok (dev->net)) { in eth_stop()
2256 unregister_netdev (dev->net); in eth_unbind()
2257 free_netdev(dev->net); in eth_unbind()
2298 struct net_device *net; in eth_bind() local
2488 net = alloc_etherdev (sizeof *dev); in eth_bind()
2489 if (!net) in eth_bind()
2491 dev = netdev_priv(net); in eth_bind()
2498 dev->net = net; in eth_bind()
2499 SET_MODULE_OWNER (net); in eth_bind()
2500 strcpy (net->name, "usb%d"); in eth_bind()
2508 get_ether_addr(dev_addr, net->dev_addr); in eth_bind()
2528 net->change_mtu = eth_change_mtu; in eth_bind()
2529 net->get_stats = eth_get_stats; in eth_bind()
2530 net->hard_start_xmit = eth_start_xmit; in eth_bind()
2531 net->open = eth_open; in eth_bind()
2532 net->stop = eth_stop; in eth_bind()
2535 SET_ETHTOOL_OPS(net, &ops); in eth_bind()
2558 netif_stop_queue (dev->net); in eth_bind()
2559 netif_carrier_off (dev->net); in eth_bind()
2562 status = register_netdev (dev->net); in eth_bind()
2573 net->dev_addr [0], net->dev_addr [1], in eth_bind()
2574 net->dev_addr [2], net->dev_addr [3], in eth_bind()
2575 net->dev_addr [4], net->dev_addr [5]); in eth_bind()
2592 unregister_netdev (dev->net); in eth_bind()
2599 if (rndis_set_param_dev (dev->rndis_config, dev->net, in eth_bind()