• Home
  • Raw
  • Download

Lines Matching refs:netdev

26 static int legacy_transmit ( struct net_device *netdev, struct io_buffer *iobuf ) {  in legacy_transmit()  argument
27 struct nic *nic = netdev->priv; in legacy_transmit()
37 netdev_tx_complete ( netdev, iobuf ); in legacy_transmit()
41 static void legacy_poll ( struct net_device *netdev ) { in legacy_poll() argument
42 struct nic *nic = netdev->priv; in legacy_poll()
53 netdev_rx ( netdev, iobuf ); in legacy_poll()
59 static int legacy_open ( struct net_device *netdev __unused ) { in legacy_open()
64 static void legacy_close ( struct net_device *netdev __unused ) { in legacy_close()
68 static void legacy_irq ( struct net_device *netdev __unused, int enable ) { in legacy_irq()
69 struct nic *nic = netdev->priv; in legacy_irq()
87 struct net_device *netdev; in legacy_probe() local
93 netdev = alloc_etherdev ( 0 ); in legacy_probe()
94 if ( ! netdev ) in legacy_probe()
96 netdev_init ( netdev, &legacy_operations ); in legacy_probe()
97 netdev->priv = &nic; in legacy_probe()
99 set_drvdata ( hwdev, netdev ); in legacy_probe()
100 netdev->dev = dev; in legacy_probe()
102 nic.node_addr = netdev->hw_addr; in legacy_probe()
118 netdev_link_up ( netdev ); in legacy_probe()
120 if ( ( rc = register_netdev ( netdev ) ) != 0 ) in legacy_probe()
125 netdev->ll_protocol->ntoa ( nic.node_addr ) ); in legacy_probe()
133 netdev_nullify ( netdev ); in legacy_probe()
134 netdev_put ( netdev ); in legacy_probe()
141 struct net_device *netdev = get_drvdata ( hwdev ); in legacy_remove() local
142 struct nic *nic = netdev->priv; in legacy_remove()
144 unregister_netdev ( netdev ); in legacy_remove()
146 netdev_nullify ( netdev ); in legacy_remove()
147 netdev_put ( netdev ); in legacy_remove()