Home
last modified time | relevance | path

Searched refs:phy_node (Results 1 – 25 of 54) sorted by relevance

123

/linux-6.6.21/drivers/net/wan/
Dhd64570.c42 #define get_msci(port) (phy_node(port) ? MSCI1_OFFSET : MSCI0_OFFSET)
43 #define get_dmac_rx(port) (phy_node(port) ? DMAC1RX_OFFSET : DMAC0RX_OFFSET)
44 #define get_dmac_tx(port) (phy_node(port) ? DMAC1TX_OFFSET : DMAC0TX_OFFSET)
176 sca_out(0, transmit ? DSR_TX(phy_node(port)) : in sca_init_port()
177 DSR_RX(phy_node(port)), card); in sca_init_port()
179 sca_out(DCR_ABORT, transmit ? DCR_TX(phy_node(port)) : in sca_init_port()
180 DCR_RX(phy_node(port)), card); in sca_init_port()
193 sca_out(DCR_CLEAR_EOF, transmit ? DCR_TX(phy_node(port)) : in sca_init_port()
194 DCR_RX(phy_node(port)), card); in sca_init_port()
200 sca_out(0x14, DMR_RX(phy_node(port)), card); in sca_init_port()
[all …]
Dn2.c102 u8 phy_node; /* physical port # - 0 or 1 */ member
132 #define phy_node(port) ((port)->phy_node) macro
163 mcr |= port->phy_node ? CLOCK_OUT_PORT1 : CLOCK_OUT_PORT0; in n2_set_iface()
169 mcr |= port->phy_node ? CLOCK_OUT_PORT1 : CLOCK_OUT_PORT0; in n2_set_iface()
175 mcr |= port->phy_node ? CLOCK_OUT_PORT1 : CLOCK_OUT_PORT0; in n2_set_iface()
181 mcr &= port->phy_node ? ~CLOCK_OUT_PORT1 : ~CLOCK_OUT_PORT0; in n2_set_iface()
199 (port->phy_node ? TX422_PORT1 : TX422_PORT0); in n2_open()
206 mcr &= port->phy_node ? ~DTR_PORT1 : ~DTR_PORT0; /* set DTR ON */ in n2_open()
221 (port->phy_node ? TX422_PORT1 : TX422_PORT0); in n2_close()
224 mcr |= port->phy_node ? DTR_PORT1 : DTR_PORT0; /* set DTR OFF */ in n2_close()
[all …]
/linux-6.6.21/drivers/staging/octeon/
Dethernet-mdio.c142 struct device_node *phy_node; in cvm_oct_phy_setup_device() local
148 phy_node = of_parse_phandle(priv->of_node, "phy-handle", 0); in cvm_oct_phy_setup_device()
149 if (!phy_node && of_phy_is_fixed_link(priv->of_node)) in cvm_oct_phy_setup_device()
150 phy_node = of_node_get(priv->of_node); in cvm_oct_phy_setup_device()
151 if (!phy_node) in cvm_oct_phy_setup_device()
154 phydev = of_phy_connect(dev, phy_node, cvm_oct_adjust_link, 0, in cvm_oct_phy_setup_device()
156 of_node_put(phy_node); in cvm_oct_phy_setup_device()
/linux-6.6.21/drivers/net/phy/
Dxilinx_gmii2rgmii.c86 struct device_node *np = dev->of_node, *phy_node; in xgmiitorgmii_probe() local
93 phy_node = of_parse_phandle(np, "phy-handle", 0); in xgmiitorgmii_probe()
94 if (!phy_node) { in xgmiitorgmii_probe()
99 priv->phy_dev = of_phy_find_device(phy_node); in xgmiitorgmii_probe()
100 of_node_put(phy_node); in xgmiitorgmii_probe()
/linux-6.6.21/drivers/gpu/drm/msm/dsi/
Ddsi.c24 struct device_node *phy_node; in dsi_get_phy() local
26 phy_node = of_parse_phandle(pdev->dev.of_node, "phys", 0); in dsi_get_phy()
27 if (!phy_node) { in dsi_get_phy()
32 phy_pdev = of_find_device_by_node(phy_node); in dsi_get_phy()
38 of_node_put(phy_node); in dsi_get_phy()
/linux-6.6.21/drivers/gpu/drm/sun4i/
Dsun8i_dw_hdmi.c102 struct device_node *phy_node; in sun8i_dw_hdmi_bind() local
164 phy_node = of_parse_phandle(dev->of_node, "phys", 0); in sun8i_dw_hdmi_bind()
165 if (!phy_node) { in sun8i_dw_hdmi_bind()
171 ret = sun8i_hdmi_phy_get(hdmi, phy_node); in sun8i_dw_hdmi_bind()
172 of_node_put(phy_node); in sun8i_dw_hdmi_bind()
/linux-6.6.21/drivers/net/ethernet/xilinx/
Dxilinx_emaclite.c132 struct device_node *phy_node; member
807 struct device_node *np = of_get_parent(lp->phy_node); in xemaclite_mdio_setup()
830 phydev = of_phy_find_device(lp->phy_node); in xemaclite_mdio_setup()
918 if (lp->phy_node) { in xemaclite_open()
919 lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node, in xemaclite_open()
1146 lp->phy_node = of_parse_phandle(ofdev->dev.of_node, "phy-handle", 0); in xemaclite_of_probe()
1170 of_node_put(lp->phy_node); in xemaclite_of_probe()
1201 of_node_put(lp->phy_node); in xemaclite_of_remove()
1202 lp->phy_node = NULL; in xemaclite_of_remove()
Dll_temac_main.c1162 if (lp->phy_node) { in temac_open()
1163 phydev = of_phy_connect(lp->ndev, lp->phy_node, in temac_open()
1596 lp->phy_node = of_parse_phandle(temac_np, "phy-handle", 0); in temac_probe()
1597 if (lp->phy_node) in temac_probe()
1623 if (lp->phy_node) in temac_probe()
1624 of_node_put(lp->phy_node); in temac_probe()
1636 if (lp->phy_node) in temac_remove()
1637 of_node_put(lp->phy_node); in temac_remove()
/linux-6.6.21/drivers/usb/chipidea/
Dci_hdrc_msm.c179 struct device_node *ulpi_node, *phy_node; in ci_hdrc_msm_probe() local
247 phy_node = of_get_next_available_child(ulpi_node, NULL); in ci_hdrc_msm_probe()
248 ci->hsic = of_device_is_compatible(phy_node, "qcom,usb-hsic-phy"); in ci_hdrc_msm_probe()
249 of_node_put(phy_node); in ci_hdrc_msm_probe()
/linux-6.6.21/drivers/net/ethernet/amd/xgbe/
Dxgbe-platform.c225 struct device_node *phy_node; in xgbe_of_get_phy_pdev() local
228 phy_node = of_parse_phandle(dev->of_node, "phy-handle", 0); in xgbe_of_get_phy_pdev()
229 if (phy_node) { in xgbe_of_get_phy_pdev()
233 phy_pdev = of_find_device_by_node(phy_node); in xgbe_of_get_phy_pdev()
234 of_node_put(phy_node); in xgbe_of_get_phy_pdev()
/linux-6.6.21/drivers/gpu/drm/msm/hdmi/
Dhdmi.c90 struct device_node *phy_node; in msm_hdmi_get_phy() local
92 phy_node = of_parse_phandle(pdev->dev.of_node, "phys", 0); in msm_hdmi_get_phy()
93 if (!phy_node) { in msm_hdmi_get_phy()
98 phy_pdev = of_find_device_by_node(phy_node); in msm_hdmi_get_phy()
99 of_node_put(phy_node); in msm_hdmi_get_phy()
/linux-6.6.21/drivers/net/ethernet/ni/
Dnixge.c173 struct device_node *phy_node; member
875 phy = of_phy_connect(ndev, priv->phy_node, in nixge_open()
1294 struct device_node *mn, *phy_node; in nixge_probe() local
1366 phy_node = of_parse_phandle(pdev->dev.of_node, "phy-handle", 0); in nixge_probe()
1367 if (!phy_node && of_phy_is_fixed_link(pdev->dev.of_node)) { in nixge_probe()
1373 phy_node = of_node_get(pdev->dev.of_node); in nixge_probe()
1375 priv->phy_node = phy_node; in nixge_probe()
1388 of_node_put(phy_node); in nixge_probe()
1409 of_node_put(priv->phy_node); in nixge_remove()
/linux-6.6.21/include/linux/
Dmv643xx_eth.h48 struct device_node *phy_node; member
/linux-6.6.21/drivers/net/ethernet/freescale/
Dfec_mpc52xx.c70 struct device_node *phy_node; member
222 if (priv->phy_node) { in mpc52xx_fec_open()
223 phydev = of_phy_connect(priv->ndev, priv->phy_node, in mpc52xx_fec_open()
937 priv->phy_node = of_parse_phandle(np, "phy-handle", 0); in mpc52xx_fec_probe()
961 of_node_put(priv->phy_node); in mpc52xx_fec_probe()
988 of_node_put(priv->phy_node); in mpc52xx_fec_remove()
989 priv->phy_node = NULL; in mpc52xx_fec_remove()
/linux-6.6.21/drivers/net/ethernet/arc/
Demac_main.c857 struct device_node *phy_node; in arc_emac_probe() local
864 phy_node = of_parse_phandle(dev->of_node, "phy", 0); in arc_emac_probe()
865 if (!phy_node) { in arc_emac_probe()
973 phydev = of_phy_connect(ndev, phy_node, arc_emac_adjust_link, 0, in arc_emac_probe()
993 of_node_put(phy_node); in arc_emac_probe()
1005 of_node_put(phy_node); in arc_emac_probe()
/linux-6.6.21/drivers/net/ethernet/ti/
Ddavinci_emac.c335 struct device_node *phy_node; member
1496 if (priv->phy_node) { in emac_dev_open()
1497 phydev = of_phy_connect(ndev, priv->phy_node, in emac_dev_open()
1501 priv->phy_node); in emac_dev_open()
1768 priv->phy_node = of_parse_phandle(np, "phy-handle", 0); in davinci_emac_of_get_pdata()
1769 if (!priv->phy_node) { in davinci_emac_of_get_pdata()
1773 priv->phy_node = of_node_get(np); in davinci_emac_of_get_pdata()
1992 of_node_put(priv->phy_node); in davinci_emac_probe()
2020 of_node_put(priv->phy_node); in davinci_emac_remove()
Dcpsw.c613 if (slave->data->phy_node) { in cpsw_slave_open()
614 phy = of_phy_connect(priv->ndev, slave->data->phy_node, in cpsw_slave_open()
618 slave->data->phy_node, in cpsw_slave_open()
1313 slave_data->phy_node = of_parse_phandle(slave_node, in cpsw_probe_dt()
1316 if (slave_data->phy_node) { in cpsw_probe_dt()
1319 i, slave_data->phy_node); in cpsw_probe_dt()
1329 slave_data->phy_node = of_node_get(slave_node); in cpsw_probe_dt()
1415 of_node_put(slave_data->phy_node); in cpsw_remove_dt()
Dam65-cpsw-nuss.h32 struct device_node *phy_node; member
/linux-6.6.21/drivers/net/ethernet/freescale/fs_enet/
Dfs_enet-main.c719 phydev = of_phy_connect(dev, fep->fpi->phy_node, &fs_adjust_link, 0, in fs_init_phy()
939 fpi->phy_node = of_parse_phandle(ofdev->dev.of_node, "phy-handle", 0); in fs_enet_probe()
940 if (!fpi->phy_node && of_phy_is_fixed_link(ofdev->dev.of_node)) { in fs_enet_probe()
948 fpi->phy_node = of_node_get(ofdev->dev.of_node); in fs_enet_probe()
1044 of_node_put(fpi->phy_node); in fs_enet_probe()
1062 of_node_put(fep->fpi->phy_node); in fs_enet_remove()
/linux-6.6.21/drivers/net/ethernet/allwinner/
Dsun4i-emac.c84 struct device_node *phy_node; member
175 phydev = of_phy_connect(db->ndev, db->phy_node, in emac_mdio_probe()
1026 db->phy_node = of_parse_phandle(np, "phy-handle", 0); in emac_probe()
1027 if (!db->phy_node) in emac_probe()
1028 db->phy_node = of_parse_phandle(np, "phy", 0); in emac_probe()
1029 if (!db->phy_node) { in emac_probe()
/linux-6.6.21/drivers/gpu/drm/msm/dp/
Ddp_parser.h62 struct device_node *phy_node; member
/linux-6.6.21/drivers/net/ethernet/freescale/fman/
Dfman_dtsec.c1406 struct device_node *phy_node; in dtsec_initialization() local
1432 phy_node = of_parse_phandle(mac_node, "tbi-handle", 0); in dtsec_initialization()
1433 if (!phy_node || !of_device_is_available(phy_node)) { in dtsec_initialization()
1434 of_node_put(phy_node); in dtsec_initialization()
1441 dtsec->tbidev = of_mdio_find_device(phy_node); in dtsec_initialization()
1442 of_node_put(phy_node); in dtsec_initialization()
/linux-6.6.21/drivers/net/ethernet/hisilicon/
Dhip04_eth.c242 struct device_node *phy_node; member
975 priv->phy_node = of_parse_phandle(node, "phy-handle", 0); in hip04_mac_probe()
976 if (priv->phy_node) { in hip04_mac_probe()
977 priv->phy = of_phy_connect(ndev, priv->phy_node, in hip04_mac_probe()
1019 of_node_put(priv->phy_node); in hip04_mac_probe()
1035 of_node_put(priv->phy_node); in hip04_remove()
Dhix5hd2_gmac.c257 struct device_node *phy_node; member
844 phy = of_phy_connect(dev, priv->phy_node, in hix5hd2_net_open()
1201 priv->phy_node = of_parse_phandle(node, "phy-handle", 0); in hix5hd2_dev_probe()
1202 if (!priv->phy_node) { in hix5hd2_dev_probe()
1270 of_node_put(priv->phy_node); in hix5hd2_dev_probe()
1298 of_node_put(priv->phy_node); in hix5hd2_dev_remove()
/linux-6.6.21/drivers/net/ethernet/sunplus/
Dspl2sw_phy.c67 phydev = of_phy_connect(ndev, mac->phy_node, spl2sw_mii_link_change, in spl2sw_phy_connect()

123