Lines Matching refs:eth
512 static int asix_init(struct eth_device *eth, struct bd_info *bd) in asix_init() argument
514 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_init()
520 static int asix_write_hwaddr(struct eth_device *eth) in asix_write_hwaddr() argument
522 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_write_hwaddr()
524 return asix_write_mac(dev, eth->enetaddr); in asix_write_hwaddr()
527 static int asix_send(struct eth_device *eth, void *packet, int length) in asix_send() argument
529 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_send()
535 static int asix_recv(struct eth_device *eth) in asix_recv() argument
537 struct ueth_data *dev = (struct ueth_data *)eth->priv; in asix_recv()
602 static void asix_halt(struct eth_device *eth) in asix_halt() argument
722 struct eth_device *eth) in ax88179_eth_get_info() argument
726 if (!eth) { in ax88179_eth_get_info()
730 sprintf(eth->name, "%s%d", ASIX_BASE_NAME, curr_eth_dev++); in ax88179_eth_get_info()
731 eth->init = asix_init; in ax88179_eth_get_info()
732 eth->send = asix_send; in ax88179_eth_get_info()
733 eth->recv = asix_recv; in ax88179_eth_get_info()
734 eth->halt = asix_halt; in ax88179_eth_get_info()
735 eth->write_hwaddr = asix_write_hwaddr; in ax88179_eth_get_info()
736 eth->priv = ss; in ax88179_eth_get_info()
742 if (asix_read_mac(ss, eth->enetaddr)) in ax88179_eth_get_info()
744 debug("MAC %pM\n", eth->enetaddr); in ax88179_eth_get_info()