Lines Matching refs:phy_np
286 static int of_phy_match(struct device *dev, void *phy_np) in of_phy_match() argument
288 return dev->of_node == phy_np; in of_phy_match()
298 struct phy_device *of_phy_find_device(struct device_node *phy_np) in of_phy_find_device() argument
303 if (!phy_np) in of_phy_find_device()
306 d = bus_find_device(&mdio_bus_type, NULL, phy_np, of_phy_match); in of_phy_find_device()
331 struct device_node *phy_np, in of_phy_connect() argument
335 struct phy_device *phy = of_phy_find_device(phy_np); in of_phy_connect()
368 struct device_node *phy_np; in of_phy_get_and_connect() local
381 phy_np = of_node_get(np); in of_phy_get_and_connect()
383 phy_np = of_parse_phandle(np, "phy-handle", 0); in of_phy_get_and_connect()
384 if (!phy_np) in of_phy_get_and_connect()
388 phy = of_phy_connect(dev, phy_np, hndlr, 0, iface); in of_phy_get_and_connect()
390 of_node_put(phy_np); in of_phy_get_and_connect()
408 struct device_node *phy_np, u32 flags, in of_phy_attach() argument
411 struct phy_device *phy = of_phy_find_device(phy_np); in of_phy_attach()