Lines Matching refs:ethdev
118 struct udevice *ethdev, in dm_mdio_phy_connect() argument
126 return phy_connect(pdata->mii_bus, phyaddr, ethdev, interface); in dm_mdio_phy_connect()
129 static struct phy_device *dm_eth_connect_phy_handle(struct udevice *ethdev, in dm_eth_connect_phy_handle() argument
139 if (!dev_read_phandle_with_args(ethdev, phy_handle_str[i], NULL, in dm_eth_connect_phy_handle()
153 dev_dbg(ethdev, "missing reg property in phy node\n"); in dm_eth_connect_phy_handle()
165 phy = dm_mdio_phy_connect(mdiodev, phy_addr, ethdev, interface); in dm_eth_connect_phy_handle()
174 struct phy_device *dm_eth_phy_connect(struct udevice *ethdev) in dm_eth_phy_connect() argument
181 if (!ofnode_valid(ethdev->node)) { in dm_eth_phy_connect()
182 debug("%s: supplied eth dev has no DT node!\n", ethdev->name); in dm_eth_phy_connect()
188 if_str = ofnode_read_string(ethdev->node, phy_mode_str[i]); in dm_eth_phy_connect()
197 dev_dbg(ethdev, "can't find interface mode, default to NONE\n"); in dm_eth_phy_connect()
199 phy = dm_eth_connect_phy_handle(ethdev, interface); in dm_eth_phy_connect()