Lines Matching refs:xpnet_device
99 struct net_device *xpnet_device; variable
159 xpnet_device->stats.rx_errors++; in xpnet_receive()
174 xpnet_device->stats.rx_errors++; in xpnet_receive()
224 xpnet_device->stats.rx_errors++; in xpnet_receive()
235 skb->protocol = eth_type_trans(skb, xpnet_device); in xpnet_receive()
244 xpnet_device->stats.rx_packets++; in xpnet_receive()
245 xpnet_device->stats.rx_bytes += skb->len + ETH_HLEN; in xpnet_receive()
274 netif_carrier_on(xpnet_device); in xpnet_connection_activity()
277 xpnet_device->name, partid); in xpnet_connection_activity()
287 netif_carrier_off(xpnet_device); in xpnet_connection_activity()
291 xpnet_device->name, partid); in xpnet_connection_activity()
547 xpnet_device = alloc_netdev(0, XPNET_DEVICE_NAME, NET_NAME_UNKNOWN, in xpnet_init()
549 if (xpnet_device == NULL) { in xpnet_init()
554 netif_carrier_off(xpnet_device); in xpnet_init()
556 xpnet_device->netdev_ops = &xpnet_netdev_ops; in xpnet_init()
557 xpnet_device->mtu = XPNET_DEF_MTU; in xpnet_init()
564 xpnet_device->dev_addr[0] = 0x02; /* locally administered, no OUI */ in xpnet_init()
566 xpnet_device->dev_addr[XPNET_PARTID_OCTET + 1] = xp_partition_id; in xpnet_init()
567 xpnet_device->dev_addr[XPNET_PARTID_OCTET + 0] = (xp_partition_id >> 8); in xpnet_init()
573 xpnet_device->flags &= ~IFF_MULTICAST; in xpnet_init()
580 xpnet_device->features = NETIF_F_HW_CSUM; in xpnet_init()
582 result = register_netdev(xpnet_device); in xpnet_init()
584 free_netdev(xpnet_device); in xpnet_init()
597 xpnet_device[0].name); in xpnet_exit()
599 unregister_netdev(xpnet_device); in xpnet_exit()
600 free_netdev(xpnet_device); in xpnet_exit()