/Linux-v4.19/drivers/of/ |
D | of_mdio.c | 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() [all …]
|
/Linux-v4.19/include/linux/ |
D | of_mdio.h | 17 extern struct phy_device *of_phy_find_device(struct device_node *phy_np); 19 struct device_node *phy_np, 26 struct device_node *phy_np, u32 flags, 68 static inline struct phy_device *of_phy_find_device(struct device_node *phy_np) in of_phy_find_device() argument 74 struct device_node *phy_np, in of_phy_connect() argument 89 struct device_node *phy_np, in of_phy_attach() argument
|
/Linux-v4.19/drivers/net/ethernet/qualcomm/emac/ |
D | emac-phy.c | 144 struct device_node *phy_np; in emac_phy_config() local 152 phy_np = of_parse_phandle(np, "phy-handle", 0); in emac_phy_config() 153 adpt->phydev = of_phy_find_device(phy_np); in emac_phy_config() 154 of_node_put(phy_np); in emac_phy_config()
|
/Linux-v4.19/drivers/usb/host/ |
D | ehci-tegra.c | 55 struct device_node *phy_np; in tegra_reset_usb_controller() local 62 phy_np = of_parse_phandle(pdev->dev.of_node, "nvidia,phy", 0); in tegra_reset_usb_controller() 63 if (!phy_np) in tegra_reset_usb_controller() 71 rst = of_reset_control_get_shared(phy_np, "utmi-pads"); in tegra_reset_usb_controller() 85 of_node_put(phy_np); in tegra_reset_usb_controller()
|
/Linux-v4.19/drivers/net/ethernet/cavium/octeon/ |
D | octeon_mgmt.c | 149 struct device_node *phy_np; member 951 if (octeon_is_simulation() || p->phy_np == NULL) { in octeon_mgmt_init_phy() 957 phydev = of_phy_connect(netdev, p->phy_np, in octeon_mgmt_init_phy() 1507 p->phy_np = of_parse_phandle(pdev->dev.of_node, "phy-handle", 0); in octeon_mgmt_probe() 1522 of_node_put(p->phy_np); in octeon_mgmt_probe() 1533 of_node_put(p->phy_np); in octeon_mgmt_remove()
|
/Linux-v4.19/drivers/net/ethernet/cavium/thunder/ |
D | thunder_bgx.c | 1476 struct device_node *phy_np; in bgx_init_of_phy() local 1493 phy_np = of_parse_phandle(node, "phy-handle", 0); in bgx_init_of_phy() 1498 if (phy_np && in bgx_init_of_phy() 1499 !of_device_is_compatible(phy_np, "cortina,cs4223-slice")) { in bgx_init_of_phy() 1501 pd = of_phy_find_device(phy_np); in bgx_init_of_phy()
|
/Linux-v4.19/drivers/phy/mediatek/ |
D | phy-mtk-xsphy.c | 445 struct device_node *phy_np = args->np; in mtk_phy_xlate() local 454 if (phy_np == xsphy->phys[index]->phy->dev.of_node) { in mtk_phy_xlate()
|
D | phy-mtk-tphy.c | 990 struct device_node *phy_np = args->np; in mtk_phy_xlate() local 999 if (phy_np == tphy->phys[index]->phy->dev.of_node) { in mtk_phy_xlate()
|
/Linux-v4.19/drivers/net/ethernet/socionext/ |
D | netsec.c | 268 struct device_node *phy_np; member 1291 if (!of_phy_connect(priv->ndev, priv->phy_np, in netsec_netdev_open() 1420 priv->phy_np = of_parse_phandle(pdev->dev.of_node, "phy-handle", 0); in netsec_of_probe() 1421 if (!priv->phy_np) { in netsec_of_probe()
|