Lines Matching refs:eth_dev
182 const char *propname, struct udevice *eth_dev, in mc_fixup_mac_addr() argument
184 const char *propname, struct eth_device *eth_dev, in mc_fixup_mac_addr()
189 struct eth_pdata *plat = dev_get_plat(eth_dev); in mc_fixup_mac_addr()
191 int eth_index = dev_seq(eth_dev); in mc_fixup_mac_addr()
193 unsigned char *enetaddr = eth_dev->enetaddr; in mc_fixup_mac_addr()
194 int eth_index = eth_dev->index; in mc_fixup_mac_addr()
269 struct udevice *eth_dev) in mc_fixup_dpl_mac_addr() argument
271 struct eth_device *eth_dev) in mc_fixup_dpl_mac_addr()
286 err = mc_fixup_mac_addr(blob, dpmacoff, "mac_addr", eth_dev, in mc_fixup_dpl_mac_addr()
307 return mc_fixup_mac_addr(blob, dpnioff, "mac_addr", eth_dev, in mc_fixup_dpl_mac_addr()
372 struct udevice *eth_dev) in mc_fixup_dpc_mac_addr() argument
374 struct eth_device *eth_dev) in mc_fixup_dpc_mac_addr()
411 return mc_fixup_mac_addr(blob, noff, "port_mac_address", eth_dev, in mc_fixup_dpc_mac_addr()
420 struct udevice *eth_dev; in mc_fixup_mac_addrs() local
422 struct eth_device *eth_dev; in mc_fixup_mac_addrs() local
434 eth_dev = eth_get_dev_by_name(ethname); in mc_fixup_mac_addrs()
435 if (eth_dev == NULL) in mc_fixup_mac_addrs()
440 err = mc_fixup_dpl_mac_addr(blob, i, eth_dev); in mc_fixup_mac_addrs()
443 err = mc_fixup_dpc_mac_addr(blob, i, eth_dev); in mc_fixup_mac_addrs()