Lines Matching refs:eth_devices
39 static struct eth_device *eth_devices; variable
58 if (!eth_devices) in eth_get_dev_by_name()
61 dev = eth_devices; in eth_get_dev_by_name()
69 } while (dev != eth_devices); in eth_get_dev_by_name()
78 if (!eth_devices) in eth_get_dev_by_index()
81 dev = eth_devices; in eth_get_dev_by_index()
89 } while (dev != eth_devices); in eth_get_dev_by_index()
108 if (!eth_devices) in on_ethaddr()
114 dev = eth_devices; in on_ethaddr()
128 } while (dev != eth_devices); in on_ethaddr()
192 if (!eth_devices) { in eth_register()
193 eth_devices = dev; in eth_register()
197 for (d = eth_devices; d->next != eth_devices; d = d->next) in eth_register()
203 dev->next = eth_devices; in eth_register()
214 if (!eth_devices) in eth_unregister()
217 for (cur = eth_devices; cur->next != eth_devices && cur->next != dev; in eth_unregister()
227 if (eth_devices == dev) in eth_unregister()
228 eth_devices = dev->next == eth_devices ? NULL : dev->next; in eth_unregister()
231 eth_current = eth_devices; in eth_unregister()
242 eth_devices = NULL; in eth_initialize()
259 if (!eth_devices) { in eth_initialize()
263 struct eth_device *dev = eth_devices; in eth_initialize()
286 } while (dev != eth_devices); in eth_initialize()