• Home
  • Raw
  • Download

Lines Matching refs:netdev

155 	struct eth_device *netdev;  in get_emacbase_by_name()  local
157 netdev = eth_get_dev_by_name(devname); in get_emacbase_by_name()
158 return (at91_emac_t *) netdev->iobase; in get_emacbase_by_name()
184 static int at91emac_phy_reset(struct eth_device *netdev) in at91emac_phy_reset() argument
190 emac = (at91_emac_t *) netdev->iobase; in at91emac_phy_reset()
195 debug_cond(VERBOSEP, "%s: Starting autonegotiation...\n", netdev->name); in at91emac_phy_reset()
209 "%s: Autonegotiation complete\n", netdev->name); in at91emac_phy_reset()
212 netdev->name, status); in at91emac_phy_reset()
218 static int at91emac_phy_init(struct eth_device *netdev) in at91emac_phy_init() argument
225 emac = (at91_emac_t *) netdev->iobase; in at91emac_phy_init()
231 printf("%s: No PHY present\n", netdev->name); in at91emac_phy_init()
240 if (at91emac_phy_reset(netdev)) in at91emac_phy_init()
252 debug_cond(VERBOSEP, "%s: link down\n", netdev->name); in at91emac_phy_init()
264 netdev->name, in at91emac_phy_init()
316 static int at91emac_init(struct eth_device *netdev, bd_t *bd) in at91emac_init() argument
324 emac = (at91_emac_t *) netdev->iobase; in at91emac_init()
325 dev = (emac_device *) netdev->priv; in at91emac_init()
375 if (!at91emac_phy_init(netdev)) { in at91emac_init()
382 static void at91emac_halt(struct eth_device *netdev) in at91emac_halt() argument
386 emac = (at91_emac_t *) netdev->iobase; in at91emac_halt()
392 static int at91emac_send(struct eth_device *netdev, void *packet, int length) in at91emac_send() argument
396 emac = (at91_emac_t *) netdev->iobase; in at91emac_send()
409 static int at91emac_recv(struct eth_device *netdev) in at91emac_recv() argument
416 emac = (at91_emac_t *) netdev->iobase; in at91emac_recv()
417 dev = (emac_device *) netdev->priv; in at91emac_recv()
446 netdev->name); in at91emac_recv()
451 static int at91emac_write_hwaddr(struct eth_device *netdev) in at91emac_write_hwaddr() argument
454 emac = (at91_emac_t *) netdev->iobase; in at91emac_write_hwaddr()
460 netdev->enetaddr[5], netdev->enetaddr[4], netdev->enetaddr[3], in at91emac_write_hwaddr()
461 netdev->enetaddr[2], netdev->enetaddr[1], netdev->enetaddr[0]); in at91emac_write_hwaddr()
462 writel( (netdev->enetaddr[0] | netdev->enetaddr[1] << 8 | in at91emac_write_hwaddr()
463 netdev->enetaddr[2] << 16 | netdev->enetaddr[3] << 24), in at91emac_write_hwaddr()
465 writel((netdev->enetaddr[4] | netdev->enetaddr[5] << 8), &emac->sa2h); in at91emac_write_hwaddr()