Lines Matching refs:eth_current
39 struct eth_device *eth_current; variable
43 eth_current = eth_current->next; in eth_set_current_to_next()
48 eth_current = dev; in eth_set_dev()
95 if (!eth_current) in eth_get_dev_index()
98 return eth_current->index; in eth_get_dev_index()
193 eth_current = dev; in eth_register()
229 if (eth_current == dev) { in eth_unregister()
230 eth_current = eth_devices; in eth_unregister()
242 eth_current = NULL; in eth_initialize()
273 eth_current = dev; in eth_initialize()
302 if (!eth_current || !eth_current->mcast) in eth_mcast_join()
310 return eth_current->mcast(eth_current, mcast_mac, join); in eth_mcast_join()
344 if (!eth_current) { in eth_init()
349 old_current = eth_current; in eth_init()
351 debug("Trying %s\n", eth_current->name); in eth_init()
353 if (eth_current->init(eth_current, gd->bd) >= 0) { in eth_init()
354 eth_current->state = ETH_STATE_ACTIVE; in eth_init()
361 } while (old_current != eth_current); in eth_init()
368 if (!eth_current) in eth_halt()
371 eth_current->halt(eth_current); in eth_halt()
373 eth_current->state = ETH_STATE_PASSIVE; in eth_halt()
383 if (!eth_current) in eth_send()
386 return eth_current->send(eth_current, packet, length); in eth_send()
391 if (!eth_current) in eth_rx()
394 return eth_current->recv(eth_current); in eth_rx()