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()
151 struct device_node *child; in of_mdiobus_register() local
180 for_each_available_child_of_node(np, child) { in of_mdiobus_register()
181 addr = of_mdio_parse_addr(&mdio->dev, child); in of_mdiobus_register()
187 if (of_mdiobus_child_is_phy(child)) in of_mdiobus_register()
188 rc = of_mdiobus_register_phy(mdio, child, addr); in of_mdiobus_register()
190 rc = of_mdiobus_register_device(mdio, child, addr); in of_mdiobus_register()
204 for_each_available_child_of_node(np, child) { in of_mdiobus_register()
206 if (of_find_property(child, "reg", NULL)) in of_mdiobus_register()
216 child, addr); in of_mdiobus_register()
218 if (of_mdiobus_child_is_phy(child)) { in of_mdiobus_register()
223 rc = of_mdiobus_register_phy(mdio, child, addr); in of_mdiobus_register()
235 of_node_put(child); in of_mdiobus_register()