Lines Matching refs:child
37 struct device_node *child, u32 addr) in of_mdiobus_phy_device_register() argument
40 of_fwnode_handle(child), in of_mdiobus_phy_device_register()
46 struct device_node *child, u32 addr) in of_mdiobus_register_phy() argument
48 return fwnode_mdiobus_register_phy(mdio, of_fwnode_handle(child), addr); in of_mdiobus_register_phy()
52 struct device_node *child, u32 addr) in of_mdiobus_register_device() argument
54 struct fwnode_handle *fwnode = of_fwnode_handle(child); in of_mdiobus_register_device()
78 child, addr); in of_mdiobus_register_device()
114 bool of_mdiobus_child_is_phy(struct device_node *child) in of_mdiobus_child_is_phy() argument
118 if (of_get_phy_id(child, &phy_id) != -EINVAL) in of_mdiobus_child_is_phy()
121 if (of_device_is_compatible(child, "ethernet-phy-ieee802.3-c45")) in of_mdiobus_child_is_phy()
124 if (of_device_is_compatible(child, "ethernet-phy-ieee802.3-c22")) in of_mdiobus_child_is_phy()
127 if (of_match_node(whitelist_phys, child)) { in of_mdiobus_child_is_phy()
130 child); in of_mdiobus_child_is_phy()
134 if (!of_find_property(child, "compatible", NULL)) in of_mdiobus_child_is_phy()
153 struct device_node *child; in __of_mdiobus_register() local
182 for_each_available_child_of_node(np, child) { in __of_mdiobus_register()
183 addr = of_mdio_parse_addr(&mdio->dev, child); in __of_mdiobus_register()
189 if (of_mdiobus_child_is_phy(child)) in __of_mdiobus_register()
190 rc = of_mdiobus_register_phy(mdio, child, addr); in __of_mdiobus_register()
192 rc = of_mdiobus_register_device(mdio, child, addr); in __of_mdiobus_register()
206 for_each_available_child_of_node(np, child) { in __of_mdiobus_register()
208 if (of_find_property(child, "reg", NULL)) in __of_mdiobus_register()
218 child, addr); in __of_mdiobus_register()
220 if (of_mdiobus_child_is_phy(child)) { in __of_mdiobus_register()
225 rc = of_mdiobus_register_phy(mdio, child, addr); in __of_mdiobus_register()
237 of_node_put(child); in __of_mdiobus_register()