Lines Matching refs:xpnet_device

100 static struct net_device *xpnet_device;  variable
162 xpnet_device->stats.rx_errors++; in xpnet_receive()
177 xpnet_device->stats.rx_errors++; in xpnet_receive()
227 xpnet_device->stats.rx_errors++; in xpnet_receive()
238 skb->protocol = eth_type_trans(skb, xpnet_device); in xpnet_receive()
247 xpnet_device->stats.rx_packets++; in xpnet_receive()
248 xpnet_device->stats.rx_bytes += skb->len + ETH_HLEN; in xpnet_receive()
277 netif_carrier_on(xpnet_device); in xpnet_connection_activity()
280 xpnet_device->name, partid); in xpnet_connection_activity()
290 netif_carrier_off(xpnet_device); in xpnet_connection_activity()
294 xpnet_device->name, partid); in xpnet_connection_activity()
534 xpnet_device = alloc_netdev(0, XPNET_DEVICE_NAME, NET_NAME_UNKNOWN, in xpnet_init()
536 if (xpnet_device == NULL) { in xpnet_init()
541 netif_carrier_off(xpnet_device); in xpnet_init()
543 xpnet_device->netdev_ops = &xpnet_netdev_ops; in xpnet_init()
544 xpnet_device->mtu = XPNET_DEF_MTU; in xpnet_init()
545 xpnet_device->min_mtu = XPNET_MIN_MTU; in xpnet_init()
546 xpnet_device->max_mtu = XPNET_MAX_MTU; in xpnet_init()
558 eth_hw_addr_set(xpnet_device, addr); in xpnet_init()
564 xpnet_device->flags &= ~IFF_MULTICAST; in xpnet_init()
571 xpnet_device->features = NETIF_F_HW_CSUM; in xpnet_init()
573 result = register_netdev(xpnet_device); in xpnet_init()
575 free_netdev(xpnet_device); in xpnet_init()
588 xpnet_device[0].name); in xpnet_exit()
590 unregister_netdev(xpnet_device); in xpnet_exit()
591 free_netdev(xpnet_device); in xpnet_exit()