Lines Matching refs:child
38 struct device_node *child, u32 addr) in of_mdiobus_phy_device_register() argument
41 of_fwnode_handle(child), in of_mdiobus_phy_device_register()
47 struct device_node *child, u32 addr) in of_mdiobus_register_phy() argument
49 return fwnode_mdiobus_register_phy(mdio, of_fwnode_handle(child), addr); in of_mdiobus_register_phy()
53 struct device_node *child, u32 addr) in of_mdiobus_register_device() argument
55 struct fwnode_handle *fwnode = of_fwnode_handle(child); in of_mdiobus_register_device()
79 child, addr); in of_mdiobus_register_device()
115 bool of_mdiobus_child_is_phy(struct device_node *child) in of_mdiobus_child_is_phy() argument
119 if (of_get_phy_id(child, &phy_id) != -EINVAL) in of_mdiobus_child_is_phy()
122 if (of_device_is_compatible(child, "ethernet-phy-ieee802.3-c45")) in of_mdiobus_child_is_phy()
125 if (of_device_is_compatible(child, "ethernet-phy-ieee802.3-c22")) in of_mdiobus_child_is_phy()
128 if (of_match_node(whitelist_phys, child)) { in of_mdiobus_child_is_phy()
131 child); in of_mdiobus_child_is_phy()
135 if (!of_property_present(child, "compatible")) in of_mdiobus_child_is_phy()
145 struct device_node *child; in __of_mdiobus_parse_phys() local
149 for_each_available_child_of_node(np, child) { in __of_mdiobus_parse_phys()
150 if (of_node_name_eq(child, "ethernet-phy-package")) { in __of_mdiobus_parse_phys()
152 if (!of_property_present(child, "reg")) in __of_mdiobus_parse_phys()
155 rc = __of_mdiobus_parse_phys(mdio, child, NULL); in __of_mdiobus_parse_phys()
162 addr = of_mdio_parse_addr(&mdio->dev, child); in __of_mdiobus_parse_phys()
170 if (of_mdiobus_child_is_phy(child)) in __of_mdiobus_parse_phys()
171 rc = of_mdiobus_register_phy(mdio, child, addr); in __of_mdiobus_parse_phys()
173 rc = of_mdiobus_register_device(mdio, child, addr); in __of_mdiobus_parse_phys()
185 of_node_put(child); in __of_mdiobus_parse_phys()
201 struct device_node *child; in __of_mdiobus_register() local
238 for_each_available_child_of_node(np, child) { in __of_mdiobus_register()
240 if (of_property_present(child, "reg") || in __of_mdiobus_register()
241 of_node_name_eq(child, "ethernet-phy-package")) in __of_mdiobus_register()
251 child, addr); in __of_mdiobus_register()
253 if (of_mdiobus_child_is_phy(child)) { in __of_mdiobus_register()
258 rc = of_mdiobus_register_phy(mdio, child, addr); in __of_mdiobus_register()
270 of_node_put(child); in __of_mdiobus_register()