Lines Matching refs:eth_dev
166 const char *propname, struct eth_device *eth_dev, in mc_fixup_mac_addr() argument
178 enetaddr_32[i] = cpu_to_fdt32(eth_dev->enetaddr[i]); in mc_fixup_mac_addr()
184 val = eth_dev->enetaddr; in mc_fixup_mac_addr()
192 if (!eth_env_get_enetaddr_by_index("eth", eth_dev->index, in mc_fixup_mac_addr()
242 struct eth_device *eth_dev) in mc_fixup_dpl_mac_addr() argument
256 err = mc_fixup_mac_addr(blob, dpmacoff, "mac_addr", eth_dev, in mc_fixup_dpl_mac_addr()
277 return mc_fixup_mac_addr(blob, dpnioff, "mac_addr", eth_dev, in mc_fixup_dpl_mac_addr()
282 struct eth_device *eth_dev) in mc_fixup_dpc_mac_addr() argument
318 return mc_fixup_mac_addr(blob, noff, "port_mac_address", eth_dev, in mc_fixup_dpc_mac_addr()
326 struct eth_device *eth_dev; in mc_fixup_mac_addrs() local
337 eth_dev = eth_get_dev_by_name(ethname); in mc_fixup_mac_addrs()
338 if (eth_dev == NULL) in mc_fixup_mac_addrs()
343 err = mc_fixup_dpl_mac_addr(blob, i, eth_dev); in mc_fixup_mac_addrs()
346 err = mc_fixup_dpc_mac_addr(blob, i, eth_dev); in mc_fixup_mac_addrs()