• Home
  • Raw
  • Download

Lines Matching refs:netdev

30 	struct eth_device	netdev;  member
35 #define to_dnet(_nd) container_of(_nd, struct dnet_device, netdev)
133 static int dnet_send(struct eth_device *netdev, void *packet, int length) in dnet_send() argument
135 struct dnet_device *dnet = to_dnet(netdev); in dnet_send()
168 static int dnet_recv(struct eth_device *netdev) in dnet_recv() argument
170 struct dnet_device *dnet = to_dnet(netdev); in dnet_recv()
202 static void dnet_set_hwaddr(struct eth_device *netdev) in dnet_set_hwaddr() argument
204 struct dnet_device *dnet = to_dnet(netdev); in dnet_set_hwaddr()
207 tmp = get_unaligned_be16(netdev->enetaddr); in dnet_set_hwaddr()
209 tmp = get_unaligned_be16(&netdev->enetaddr[2]); in dnet_set_hwaddr()
211 tmp = get_unaligned_be16(&netdev->enetaddr[4]); in dnet_set_hwaddr()
217 struct eth_device *netdev = &dnet->netdev; in dnet_phy_reset() local
223 printf("%s: Starting autonegotiation...\n", netdev->name); in dnet_phy_reset()
235 printf("%s: Autonegotiation complete\n", netdev->name); in dnet_phy_reset()
238 netdev->name, status); in dnet_phy_reset()
243 struct eth_device *netdev = &dnet->netdev; in dnet_phy_init() local
265 printf("%s: No PHY present\n", netdev->name); in dnet_phy_init()
284 netdev->name, status); in dnet_phy_init()
295 netdev->name, in dnet_phy_init()
313 static int dnet_init(struct eth_device *netdev, bd_t *bd) in dnet_init() argument
315 struct dnet_device *dnet = to_dnet(netdev); in dnet_init()
324 dnet_set_hwaddr(netdev); in dnet_init()
351 static void dnet_halt(struct eth_device *netdev) in dnet_halt() argument
353 struct dnet_device *dnet = to_dnet(netdev); in dnet_halt()
362 struct eth_device *netdev; in dnet_eth_initialize() local
372 netdev = &dnet->netdev; in dnet_eth_initialize()
377 sprintf(netdev->name, "dnet%d", id); in dnet_eth_initialize()
378 netdev->init = dnet_init; in dnet_eth_initialize()
379 netdev->halt = dnet_halt; in dnet_eth_initialize()
380 netdev->send = dnet_send; in dnet_eth_initialize()
381 netdev->recv = dnet_recv; in dnet_eth_initialize()
384 debug("%s: has %smdio, %sirq, %sgigabit, %sdma \n", netdev->name, in dnet_eth_initialize()
390 eth_register(netdev); in dnet_eth_initialize()