Lines Matching refs:child

38 				   struct device_node *child, u32 addr)
41 of_fwnode_handle(child),
47 struct device_node *child, u32 addr)
49 return fwnode_mdiobus_register_phy(mdio, of_fwnode_handle(child), addr);
53 struct device_node *child, u32 addr)
55 struct fwnode_handle *fwnode = of_fwnode_handle(child);
79 child, addr);
105 * Return true if the child node is for a phy. It must either:
115 bool of_mdiobus_child_is_phy(struct device_node *child)
119 if (of_get_phy_id(child, &phy_id) != -EINVAL)
122 if (of_device_is_compatible(child, "ethernet-phy-ieee802.3-c45"))
125 if (of_device_is_compatible(child, "ethernet-phy-ieee802.3-c22"))
128 if (of_match_node(whitelist_phys, child)) {
131 child);
135 if (!of_property_present(child, "compatible"))
145 struct device_node *child;
148 /* Loop over the child nodes and register a phy_device for each phy */
149 for_each_available_child_of_node(np, child) {
150 if (of_node_name_eq(child, "ethernet-phy-package")) {
152 if (!of_property_present(child, "reg"))
155 rc = __of_mdiobus_parse_phys(mdio, child, NULL);
162 addr = of_mdio_parse_addr(&mdio->dev, child);
170 if (of_mdiobus_child_is_phy(child))
171 rc = of_mdiobus_register_phy(mdio, child, addr);
173 rc = of_mdiobus_register_device(mdio, child, addr);
185 of_node_put(child);
196 * for each child node of @np.
201 struct device_node *child;
229 /* Loop over the child nodes and register a phy_device for each phy */
238 for_each_available_child_of_node(np, child) {
240 if (of_property_present(child, "reg") ||
241 of_node_name_eq(child, "ethernet-phy-package"))
251 child, addr);
253 if (of_mdiobus_child_is_phy(child)) {
258 rc = of_mdiobus_register_phy(mdio, child, addr);
270 of_node_put(child);