Home
last modified time | relevance | path

Searched refs:eth_get_dev (Results 1 – 12 of 12) sorted by relevance

/openbmc/u-boot/net/
H A Deth_common.c68 if (eth_get_dev()) { in eth_current_changed()
93 if (!eth_get_dev()) in eth_try_another()
97 first_failed = eth_get_dev(); in eth_try_another()
103 if (first_failed == eth_get_dev()) in eth_try_another()
138 return eth_get_dev() ? eth_get_dev()->name : "unknown"; in eth_get_name()
H A Deth-uclass.c65 struct udevice *eth_get_dev(void) in eth_get_dev() function
136 if (eth_get_dev()) { in eth_get_ethaddr()
137 pdata = eth_get_dev()->platdata; in eth_get_ethaddr()
150 current = eth_get_dev(); in eth_init_state_only()
166 current = eth_get_dev(); in eth_halt_state_only()
176 if (eth_get_dev()) in eth_get_dev_index()
177 return eth_get_dev()->seq; in eth_get_dev_index()
262 current = eth_get_dev(); in eth_init()
298 current = eth_get_dev(); in eth_init()
309 current = eth_get_dev(); in eth_halt()
[all …]
H A Dnet.c352 if (eth_get_dev()) in net_init_loop()
561 if (miiphy_link(eth_get_dev()->name, CONFIG_SYS_FAULT_MII_ADDR)) in net_loop()
626 if (miiphy_link(eth_get_dev()->name, in net_loop()
/openbmc/u-boot/api/
H A Dapi_net.c29 return ((void *)eth_get_dev() == cookie) ? 1 : 0; in dev_valid_net()
58 struct eth_device *eth_current = eth_get_dev(); in dev_enum_net()
/openbmc/u-boot/include/
H A Dnet.h150 struct udevice *eth_get_dev(void); /* get the current device */
188 static __always_inline struct eth_device *eth_get_dev(void) in eth_get_dev() function
208 eth_get_dev()->state = ETH_STATE_ACTIVE; in eth_init_state_only()
215 eth_get_dev()->state = ETH_STATE_PASSIVE; in eth_halt_state_only()
/openbmc/u-boot/drivers/net/
H A Dmcfmii.c104 dev = eth_get_dev(); in mii_send()
217 dev = eth_get_dev(); in __mii_init()
H A Dnetconsole.c185 eth = eth_get_dev(); in nc_send_packet()
311 eth = eth_get_dev(); in nc_stdio_tstc()
/openbmc/u-boot/lib/efi_loader/
H A Defi_device_path.c853 assert(eth_get_dev()); in efi_dp_from_eth()
856 dpsize += dp_size(eth_get_dev()); in efi_dp_from_eth()
867 buf = dp_fill(buf, eth_get_dev()); in efi_dp_from_eth()
H A Defi_net.c594 if (!eth_get_dev()) { in efi_net_register()
/openbmc/u-boot/drivers/usb/eth/
H A Dusb_ether.c201 struct eth_device *dev = eth_get_dev(); in is_eth_dev_on_usb_host()
/openbmc/u-boot/drivers/net/phy/
H A Dphy.c995 struct eth_pdata *pdata = dev_get_platdata(eth_get_dev()); in phy_interface_is_ncsi()
/openbmc/u-boot/common/
H A Dbootm.c524 eth_unregister(eth_get_dev()); in bootm_disable_interrupts()