Lines Matching refs:eth_dev
26 int eth_phy_binds_nodes(struct udevice *eth_dev) in eth_phy_binds_nodes() argument
33 dev_for_each_subnode(mdio_node, eth_dev) { in eth_phy_binds_nodes()
39 dev_dbg(eth_dev, "%s: %s mdio subnode not found!\n", __func__, in eth_phy_binds_nodes()
40 eth_dev->name); in eth_phy_binds_nodes()
43 dev_dbg(eth_dev, "%s: %s subnode found!\n", __func__, node_name); in eth_phy_binds_nodes()
48 dev_dbg(eth_dev, "* Found child node: '%s'\n", node_name); in eth_phy_binds_nodes()
50 ret = device_bind_driver_to_node(eth_dev, in eth_phy_binds_nodes()
54 dev_dbg(eth_dev, " - Eth phy binding error: %d\n", ret); in eth_phy_binds_nodes()
58 dev_dbg(eth_dev, " - bound phy device: '%s'\n", node_name); in eth_phy_binds_nodes()
64 int eth_phy_set_mdio_bus(struct udevice *eth_dev, struct mii_dev *mdio_bus) in eth_phy_set_mdio_bus() argument
71 if (dev->parent == eth_dev) { in eth_phy_set_mdio_bus()
82 struct mii_dev *eth_phy_get_mdio_bus(struct udevice *eth_dev) in eth_phy_get_mdio_bus() argument
89 ret = uclass_get_device_by_phandle(UCLASS_ETH_PHY, eth_dev, in eth_phy_get_mdio_bus()
92 if (eth_dev != phy_dev->parent) { in eth_phy_get_mdio_bus()
99 log_notice("Get shared mii bus on %s\n", eth_dev->name); in eth_phy_get_mdio_bus()
101 log_notice("Can't get shared mii bus on %s\n", eth_dev->name); in eth_phy_get_mdio_bus()
106 log_debug("Can't find phy-handle for %s\n", eth_dev->name); in eth_phy_get_mdio_bus()