Home
last modified time | relevance | path

Searched refs:phy_np (Results 1 - 21 of 21) sorted by relevance

/kernel/linux/linux-5.10/include/linux/
H A Dof_mdio.h37 struct phy_device *of_phy_find_device(struct device_node *phy_np);
39 of_phy_connect(struct net_device *dev, struct device_node *phy_np,
46 of_phy_attach(struct net_device *dev, struct device_node *phy_np,
106 static inline struct phy_device *of_phy_find_device(struct device_node *phy_np) in of_phy_find_device() argument
112 struct device_node *phy_np, in of_phy_connect()
127 struct device_node *phy_np, in of_phy_attach()
111 of_phy_connect(struct net_device *dev, struct device_node *phy_np, void (*hndlr)(struct net_device *), u32 flags, phy_interface_t iface) of_phy_connect() argument
126 of_phy_attach(struct net_device *dev, struct device_node *phy_np, u32 flags, phy_interface_t iface) of_phy_attach() argument
/kernel/linux/linux-6.6/drivers/net/mdio/
H A Dof_mdio.c259 * @phy_np: Pointer to the phy's device tree node
264 struct phy_device *of_phy_find_device(struct device_node *phy_np) in of_phy_find_device() argument
266 return fwnode_phy_find_device(of_fwnode_handle(phy_np)); in of_phy_find_device()
273 * @phy_np: Pointer to device tree node for the PHY
283 struct device_node *phy_np, in of_phy_connect()
287 struct phy_device *phy = of_phy_find_device(phy_np); in of_phy_connect()
320 struct device_node *phy_np; in of_phy_get_and_connect() local
333 phy_np = of_node_get(np); in of_phy_get_and_connect()
335 phy_np = of_parse_phandle(np, "phy-handle", 0); in of_phy_get_and_connect()
336 if (!phy_np) in of_phy_get_and_connect()
282 of_phy_connect(struct net_device *dev, struct device_node *phy_np, void (*hndlr)(struct net_device *), u32 flags, phy_interface_t iface) of_phy_connect() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/mdio/
H A Dof_mdio.c368 * @phy_np: Pointer to the phy's device tree node
373 struct phy_device *of_phy_find_device(struct device_node *phy_np) in of_phy_find_device() argument
377 mdiodev = of_mdio_find_device(phy_np); in of_phy_find_device()
393 * @phy_np: Pointer to device tree node for the PHY
403 struct device_node *phy_np, in of_phy_connect()
407 struct phy_device *phy = of_phy_find_device(phy_np); in of_phy_connect()
440 struct device_node *phy_np; in of_phy_get_and_connect() local
453 phy_np = of_node_get(np); in of_phy_get_and_connect()
455 phy_np = of_parse_phandle(np, "phy-handle", 0); in of_phy_get_and_connect()
456 if (!phy_np) in of_phy_get_and_connect()
402 of_phy_connect(struct net_device *dev, struct device_node *phy_np, void (*hndlr)(struct net_device *), u32 flags, phy_interface_t iface) of_phy_connect() argument
479 of_phy_attach(struct net_device *dev, struct device_node *phy_np, u32 flags, phy_interface_t iface) of_phy_attach() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/emac/
H A Demac-phy.c136 struct device_node *phy_np; in emac_phy_config() local
144 phy_np = of_parse_phandle(np, "phy-handle", 0); in emac_phy_config()
145 adpt->phydev = of_phy_find_device(phy_np); in emac_phy_config()
146 of_node_put(phy_np); in emac_phy_config()
/kernel/linux/linux-6.6/drivers/net/ethernet/qualcomm/emac/
H A Demac-phy.c136 struct device_node *phy_np; in emac_phy_config() local
144 phy_np = of_parse_phandle(np, "phy-handle", 0); in emac_phy_config()
145 adpt->phydev = of_phy_find_device(phy_np); in emac_phy_config()
146 of_node_put(phy_np); in emac_phy_config()
/kernel/linux/linux-6.6/include/linux/
H A Dof_mdio.h37 struct phy_device *of_phy_find_device(struct device_node *phy_np);
39 of_phy_connect(struct net_device *dev, struct device_node *phy_np,
103 static inline struct phy_device *of_phy_find_device(struct device_node *phy_np) in of_phy_find_device() argument
109 struct device_node *phy_np, in of_phy_connect()
108 of_phy_connect(struct net_device *dev, struct device_node *phy_np, void (*hndlr)(struct net_device *), u32 flags, phy_interface_t iface) of_phy_connect() argument
/kernel/linux/linux-6.6/drivers/usb/chipidea/
H A Dci_hdrc_tegra.c103 struct device_node *phy_np; in tegra_usb_reset_controller() local
112 phy_np = of_parse_phandle(dev->of_node, "nvidia,phy", 0); in tegra_usb_reset_controller()
113 if (!phy_np) in tegra_usb_reset_controller()
121 rst_utmi = of_reset_control_get_shared(phy_np, "utmi-pads"); in tegra_usb_reset_controller()
133 of_node_put(phy_np); in tegra_usb_reset_controller()
/kernel/linux/linux-5.10/drivers/usb/host/
H A Dehci-tegra.c53 struct device_node *phy_np; in tegra_reset_usb_controller() local
60 phy_np = of_parse_phandle(pdev->dev.of_node, "nvidia,phy", 0); in tegra_reset_usb_controller()
61 if (!phy_np) in tegra_reset_usb_controller()
69 rst = of_reset_control_get_shared(phy_np, "utmi-pads"); in tegra_reset_usb_controller()
83 of_node_put(phy_np); in tegra_reset_usb_controller()
/kernel/linux/linux-5.10/net/dsa/
H A Dport.c715 struct device_node *phy_np; in dsa_port_link_register_of() local
719 phy_np = of_parse_phandle(dp->dn, "phy-handle", 0); in dsa_port_link_register_of()
720 if (of_phy_is_fixed_link(dp->dn) || phy_np) { in dsa_port_link_register_of()
724 of_node_put(phy_np); in dsa_port_link_register_of()
727 of_node_put(phy_np); in dsa_port_link_register_of()
/kernel/linux/linux-6.6/drivers/net/ethernet/sunplus/
H A Dspl2sw_driver.c325 struct device_node *phy_np; in spl2sw_probe() local
434 phy_np = of_parse_phandle(port_np, "phy-handle", 0); in spl2sw_probe()
435 if (!phy_np) { in spl2sw_probe()
458 mac->phy_node = phy_np; in spl2sw_probe()
/kernel/linux/linux-6.6/drivers/phy/mediatek/
H A Dphy-mtk-xsphy.c385 struct device_node *phy_np = args->np; in mtk_phy_xlate() local
394 if (phy_np == xsphy->phys[index]->phy->dev.of_node) { in mtk_phy_xlate()
H A Dphy-mtk-tphy.c1449 struct device_node *phy_np = args->np; in mtk_phy_xlate() local
1459 if (phy_np == tphy->phys[index]->phy->dev.of_node) { in mtk_phy_xlate()
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/octeon/
H A Docteon_mgmt.c148 struct device_node *phy_np; member
953 if (octeon_is_simulation() || p->phy_np == NULL) { in octeon_mgmt_init_phy()
959 phydev = of_phy_connect(netdev, p->phy_np, in octeon_mgmt_init_phy()
1512 p->phy_np = of_parse_phandle(pdev->dev.of_node, "phy-handle", 0); in octeon_mgmt_probe()
1526 of_node_put(p->phy_np); in octeon_mgmt_probe()
1537 of_node_put(p->phy_np); in octeon_mgmt_remove()
/kernel/linux/linux-6.6/drivers/net/ethernet/cavium/octeon/
H A Docteon_mgmt.c148 struct device_node *phy_np; member
950 if (octeon_is_simulation() || p->phy_np == NULL) { in octeon_mgmt_init_phy()
956 phydev = of_phy_connect(netdev, p->phy_np, in octeon_mgmt_init_phy()
1505 p->phy_np = of_parse_phandle(pdev->dev.of_node, "phy-handle", 0); in octeon_mgmt_probe()
1519 of_node_put(p->phy_np); in octeon_mgmt_probe()
1530 of_node_put(p->phy_np); in octeon_mgmt_remove()
/kernel/linux/linux-5.10/drivers/phy/mediatek/
H A Dphy-mtk-xsphy.c445 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()
H A Dphy-mtk-tphy.c1017 struct device_node *phy_np = args->np; in mtk_phy_xlate() local
1026 if (phy_np == tphy->phys[index]->phy->dev.of_node) { in mtk_phy_xlate()
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/thunder/
H A Dthunder_bgx.c1478 struct device_node *phy_np; in bgx_init_of_phy() local
1495 phy_np = of_parse_phandle(node, "phy-handle", 0); in bgx_init_of_phy()
1500 if (phy_np && in bgx_init_of_phy()
1501 !of_device_is_compatible(phy_np, "cortina,cs4223-slice")) { in bgx_init_of_phy()
1503 pd = of_phy_find_device(phy_np); in bgx_init_of_phy()
/kernel/linux/linux-5.10/drivers/net/ethernet/socionext/
H A Dnetsec.c299 struct device_node *phy_np; member
1629 if (!of_phy_connect(priv->ndev, priv->phy_np, in netsec_netdev_open()
1859 priv->phy_np = of_parse_phandle(pdev->dev.of_node, "phy-handle", 0); in netsec_of_probe()
1860 if (!priv->phy_np) { in netsec_of_probe()
1865 *phy_addr = of_mdio_parse_addr(&pdev->dev, priv->phy_np); in netsec_of_probe()
/kernel/linux/linux-6.6/drivers/net/ethernet/cavium/thunder/
H A Dthunder_bgx.c1475 struct device_node *phy_np; in bgx_init_of_phy() local
1489 phy_np = of_parse_phandle(node, "phy-handle", 0); in bgx_init_of_phy()
1494 if (phy_np && in bgx_init_of_phy()
1495 !of_device_is_compatible(phy_np, "cortina,cs4223-slice")) { in bgx_init_of_phy()
1497 pd = of_phy_find_device(phy_np); in bgx_init_of_phy()
/kernel/linux/linux-6.6/drivers/net/ethernet/socionext/
H A Dnetsec.c299 struct device_node *phy_np; member
1637 if (!of_phy_connect(priv->ndev, priv->phy_np, in netsec_netdev_open()
1865 priv->phy_np = of_parse_phandle(pdev->dev.of_node, "phy-handle", 0); in netsec_of_probe()
1866 if (!priv->phy_np) { in netsec_of_probe()
1871 *phy_addr = of_mdio_parse_addr(&pdev->dev, priv->phy_np); in netsec_of_probe()
/kernel/linux/linux-6.6/net/dsa/
H A Dport.c1937 struct device_node *dn = dp->dn, *phy_np; in dsa_shared_port_validate_of() local
1957 phy_np = of_parse_phandle(dn, "phy-handle", 0); in dsa_shared_port_validate_of()
1958 if (phy_np) { in dsa_shared_port_validate_of()
1959 of_node_put(phy_np); in dsa_shared_port_validate_of()

Completed in 33 milliseconds