Lines Matching refs:eth
511 static int asix_init(struct eth_device *eth, bd_t *bd) in asix_init() argument
513 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_init()
519 static int asix_write_hwaddr(struct eth_device *eth) in asix_write_hwaddr() argument
521 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_write_hwaddr()
523 return asix_write_mac(dev, eth->enetaddr); in asix_write_hwaddr()
526 static int asix_send(struct eth_device *eth, void *packet, int length) in asix_send() argument
528 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_send()
534 static int asix_recv(struct eth_device *eth) in asix_recv() argument
536 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_recv()
601 static void asix_halt(struct eth_device *eth) in asix_halt() argument
721 struct eth_device *eth) in ax88179_eth_get_info() argument
725 if (!eth) { in ax88179_eth_get_info()
729 sprintf(eth->name, "%s%d", ASIX_BASE_NAME, curr_eth_dev++); in ax88179_eth_get_info()
730 eth->init = asix_init; in ax88179_eth_get_info()
731 eth->send = asix_send; in ax88179_eth_get_info()
732 eth->recv = asix_recv; in ax88179_eth_get_info()
733 eth->halt = asix_halt; in ax88179_eth_get_info()
734 eth->write_hwaddr = asix_write_hwaddr; in ax88179_eth_get_info()
735 eth->priv = ss; in ax88179_eth_get_info()
741 if (asix_read_mac(ss, eth->enetaddr)) in ax88179_eth_get_info()
743 debug("MAC %pM\n", eth->enetaddr); in ax88179_eth_get_info()