Lines Matching refs:net
229 struct net_device net; member
384 printk(KERN_DEBUG "%s: " fmt "\n" , (usbnet)->net.name , ## arg)
391 printk(KERN_INFO "%s: " fmt "\n" , (usbnet)->net.name , ## arg); \
521 static void ax8817x_set_multicast(struct net_device *net) in ax8817x_set_multicast() argument
523 struct usbnet *dev = (struct usbnet *) net->priv; in ax8817x_set_multicast()
526 if (net->flags & IFF_PROMISC) { in ax8817x_set_multicast()
528 } else if (net->flags & IFF_ALLMULTI in ax8817x_set_multicast()
529 || net->mc_count > AX_MAX_MCAST) { in ax8817x_set_multicast()
531 } else if (net->mc_count == 0) { in ax8817x_set_multicast()
534 struct dev_mc_list *mc_list = net->mc_list; in ax8817x_set_multicast()
548 for (i = 0; i < net->mc_count; i++) { in ax8817x_set_multicast()
622 memcpy(dev->net.dev_addr, buf, ETH_ALEN); in ax8817x_bind()
645 dev->mii.dev = &dev->net; in ax8817x_bind()
686 dev->net.set_multicast_list = ax8817x_set_multicast; in ax8817x_bind()
891 dev->net.name, retval); in genelink_check_connect()
898 dev->net.name, retval); in genelink_check_connect()
902 dbg ("%s: genelink_check_connect read success", dev->net.name); in genelink_check_connect()
914 dev->net.name); in genelink_init()
921 dev->net.name); in genelink_init()
1009 gl_skb->dev = &dev->net; in genelink_rx_fixup()
1012 gl_skb->protocol = eth_type_trans (gl_skb, &dev->net); in genelink_rx_fixup()
1225 dbg ("%s registers:", dev->net.name);
1238 dev->net.name, reg, retval);
1241 dev->net.name, reg, *vp);
1403 dbg ("%s: assigned TTL, %d ms", dev->net.name, NC_READ_TTL_MS); in net1080_reset()
1429 dbg ("%s net1080_check_conn read - %d", dev->net.name, retval); in net1080_check_connect()
1444 || skb->len > FRAMED_SIZE (dev->net.mtu)) { in net1080_rx_fixup()
1447 (int)MIN_FRAMED, (int)FRAMED_SIZE (dev->net.mtu), in net1080_rx_fixup()
1448 dev->net.mtu); in net1080_rx_fixup()
1724 static int usbnet_change_mtu (struct net_device *net, int new_mtu) in usbnet_change_mtu() argument
1726 struct usbnet *dev = (struct usbnet *) net->priv; in usbnet_change_mtu()
1744 net->mtu = new_mtu; in usbnet_change_mtu()
1750 static struct net_device_stats *usbnet_get_stats (struct net_device *net) in usbnet_get_stats() argument
1752 return &((struct usbnet *) net->priv)->stats; in usbnet_get_stats()
1784 dev->net.name, work); in defer_kevent()
1786 dbg ("%s: kevent %d scheduled", dev->net.name, work); in defer_kevent()
1803 size = FRAMED_SIZE (dev->net.mtu); in rx_submit()
1813 size = 6 + (sizeof (struct ethhdr) + dev->net.mtu); in rx_submit()
1816 size = (sizeof (struct ethhdr) + dev->net.mtu); in rx_submit()
1837 if (netif_running (&dev->net) in rx_submit()
1847 dbg ("%s rx submit, %d", dev->net.name, retval); in rx_submit()
1877 skb->dev = &dev->net; in rx_process()
1878 skb->protocol = eth_type_trans (skb, &dev->net); in rx_process()
1933 dbg ("%s rx shutdown, code %d", dev->net.name, urb_status); in rx_complete()
1951 dbg ("%s rx: status %d", dev->net.name, urb_status); in rx_complete()
1958 if (netif_running (&dev->net) in rx_complete()
2007 static int usbnet_stop (struct net_device *net) in usbnet_stop() argument
2009 struct usbnet *dev = (struct usbnet *) net->priv; in usbnet_stop()
2015 netif_stop_queue (net); in usbnet_stop()
2049 static int usbnet_open (struct net_device *net) in usbnet_open() argument
2051 struct usbnet *dev = (struct usbnet *) net->priv; in usbnet_open()
2072 netif_start_queue (net); in usbnet_open()
2076 RX_QLEN, TX_QLEN, dev->net.mtu, in usbnet_open()
2093 static void usbnet_get_drvinfo (struct net_device *net, struct ethtool_drvinfo *info) in usbnet_get_drvinfo() argument
2095 struct usbnet *dev = net->priv; in usbnet_get_drvinfo()
2104 static u32 usbnet_get_link (struct net_device *net) in usbnet_get_link() argument
2106 struct usbnet *dev = net->priv; in usbnet_get_link()
2116 static u32 usbnet_get_msglevel (struct net_device *net) in usbnet_get_msglevel() argument
2118 struct usbnet *dev = net->priv; in usbnet_get_msglevel()
2123 static void usbnet_set_msglevel (struct net_device *net, u32 level) in usbnet_set_msglevel() argument
2125 struct usbnet *dev = net->priv; in usbnet_set_msglevel()
2130 static int usbnet_ioctl (struct net_device *net, struct ifreq *rq, int cmd) in usbnet_ioctl() argument
2134 struct usbnet *dev = (struct usbnet *)net->priv; in usbnet_ioctl()
2165 dev->net.name, status); in kevent()
2168 netif_wake_queue (&dev->net); in kevent()
2176 dev->net.name, status); in kevent()
2187 if (netif_running (&dev->net)) in kevent()
2200 dev->net.name, dev->flags); in kevent()
2220 static void usbnet_tx_timeout (struct net_device *net) in usbnet_tx_timeout() argument
2222 struct usbnet *dev = (struct usbnet *) net->priv; in usbnet_tx_timeout()
2232 static int usbnet_start_xmit (struct sk_buff *skb, struct net_device *net) in usbnet_start_xmit() argument
2234 struct usbnet *dev = (struct usbnet *) net->priv; in usbnet_start_xmit()
2307 netif_stop_queue (net); in usbnet_start_xmit()
2311 dbg ("%s tx: submit urb err %d", net->name, retval); in usbnet_start_xmit()
2314 net->trans_start = jiffies; in usbnet_start_xmit()
2317 netif_stop_queue (net); in usbnet_start_xmit()
2360 dbg ("%s tx: err %d", dev->net.name, in usbnet_bh()
2373 dev->net.name, entry->state); in usbnet_bh()
2384 } else if (netif_running (&dev->net) in usbnet_bh()
2402 netif_wake_queue (&dev->net); in usbnet_bh()
2424 unregister_netdev (&dev->net); in usbnet_disconnect()
2448 struct net_device *net; in usbnet_probe() local
2500 net = &dev->net; in usbnet_probe()
2501 SET_MODULE_OWNER (net); in usbnet_probe()
2502 net->priv = dev; in usbnet_probe()
2503 strcpy (net->name, "usb%d"); in usbnet_probe()
2504 memcpy (net->dev_addr, node_id, sizeof node_id); in usbnet_probe()
2508 ether_setup (net); in usbnet_probe()
2510 net->change_mtu = usbnet_change_mtu; in usbnet_probe()
2511 net->get_stats = usbnet_get_stats; in usbnet_probe()
2512 net->hard_start_xmit = usbnet_start_xmit; in usbnet_probe()
2513 net->open = usbnet_open; in usbnet_probe()
2514 net->stop = usbnet_stop; in usbnet_probe()
2515 net->watchdog_timeo = TX_TIMEOUT_JIFFIES; in usbnet_probe()
2516 net->tx_timeout = usbnet_tx_timeout; in usbnet_probe()
2517 net->do_ioctl = usbnet_ioctl; in usbnet_probe()
2518 net->ethtool_ops = &usbnet_ethtool_ops; in usbnet_probe()
2528 && (net->dev_addr [0] & 0x02) == 0) in usbnet_probe()
2529 strcpy (net->name, "eth%d"); in usbnet_probe()
2539 register_netdev (&dev->net); in usbnet_probe()
2550 netif_device_attach (&dev->net); in usbnet_probe()