Home
last modified time | relevance | path

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

123

/linux/drivers/net/wan/
A Dhd64570.c176 sca_out(0, transmit ? DSR_TX(phy_node(port)) : in sca_init_port()
177 DSR_RX(phy_node(port)), card); in sca_init_port()
180 DCR_RX(phy_node(port)), card); 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()
204 sca_out(DSR_DE, DSR_RX(phy_node(port)), card); in sca_init_port()
207 sca_out(0x14, DMR_TX(phy_node(port)), card); in sca_init_port()
209 sca_out(DIR_BOFE, DIR_TX(phy_node(port)), card); in sca_init_port()
293 DSR_RX(phy_node(port)), card); in sca_rx_intr()
332 sca_out(DSR_DE, DSR_RX(phy_node(port)), card); in sca_rx_intr()
[all …]
A 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()
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()
442 port->phy_node = cnt; in n2_run()
[all …]
/linux/drivers/staging/octeon/
A 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/drivers/net/phy/
A 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/drivers/gpu/drm/msm/dsi/
A Ddsi.c27 struct device_node *phy_node; in dsi_get_phy() local
29 phy_node = of_parse_phandle(pdev->dev.of_node, "phys", 0); in dsi_get_phy()
30 if (!phy_node) { in dsi_get_phy()
35 phy_pdev = of_find_device_by_node(phy_node); in dsi_get_phy()
41 of_node_put(phy_node); in dsi_get_phy()
/linux/drivers/gpu/drm/sun4i/
A Dsun8i_dw_hdmi.c126 struct device_node *phy_node; in sun8i_dw_hdmi_bind() local
202 phy_node = of_parse_phandle(dev->of_node, "phys", 0); in sun8i_dw_hdmi_bind()
203 if (!phy_node) { in sun8i_dw_hdmi_bind()
209 ret = sun8i_hdmi_phy_get(hdmi, phy_node); in sun8i_dw_hdmi_bind()
210 of_node_put(phy_node); in sun8i_dw_hdmi_bind()
/linux/drivers/usb/chipidea/
A 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/drivers/net/ethernet/amd/xgbe/
A 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/drivers/net/ethernet/xilinx/
A Dxilinx_emaclite.c140 struct device_node *phy_node; member
828 struct device_node *np = of_get_parent(lp->phy_node); in xemaclite_mdio_setup()
843 phydev = of_phy_find_device(lp->phy_node); in xemaclite_mdio_setup()
928 if (lp->phy_node) { in xemaclite_open()
931 lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node, in xemaclite_open()
1174 lp->phy_node = of_parse_phandle(ofdev->dev.of_node, "phy-handle", 0); in xemaclite_of_probe()
1227 of_node_put(lp->phy_node); in xemaclite_of_remove()
1228 lp->phy_node = NULL; in xemaclite_of_remove()
A Dll_temac_main.c1158 if (lp->phy_node) { in temac_open()
1159 phydev = of_phy_connect(lp->ndev, lp->phy_node, in temac_open()
1585 lp->phy_node = of_parse_phandle(temac_np, "phy-handle", 0); in temac_probe()
1586 if (lp->phy_node) in temac_probe()
1612 if (lp->phy_node) in temac_probe()
1613 of_node_put(lp->phy_node); in temac_probe()
1625 if (lp->phy_node) in temac_remove()
1626 of_node_put(lp->phy_node); in temac_remove()
/linux/drivers/gpu/drm/msm/hdmi/
A Dhdmi.c84 struct device_node *phy_node; in msm_hdmi_get_phy() local
86 phy_node = of_parse_phandle(pdev->dev.of_node, "phys", 0); in msm_hdmi_get_phy()
87 if (!phy_node) { in msm_hdmi_get_phy()
92 phy_pdev = of_find_device_by_node(phy_node); in msm_hdmi_get_phy()
96 of_node_put(phy_node); in msm_hdmi_get_phy()
/linux/drivers/net/ethernet/ni/
A Dnixge.c174 struct device_node *phy_node; member
874 phy = of_phy_connect(ndev, priv->phy_node, in nixge_open()
1263 struct device_node *mn, *phy_node; in nixge_probe() local
1335 phy_node = of_parse_phandle(pdev->dev.of_node, "phy-handle", 0); in nixge_probe()
1336 if (!phy_node && of_phy_is_fixed_link(pdev->dev.of_node)) { in nixge_probe()
1342 phy_node = of_node_get(pdev->dev.of_node); in nixge_probe()
1344 priv->phy_node = phy_node; in nixge_probe()
1357 of_node_put(phy_node); in nixge_probe()
1378 of_node_put(priv->phy_node); in nixge_remove()
/linux/drivers/net/ethernet/freescale/
A Dfec_mpc52xx.c68 struct device_node *phy_node; member
220 if (priv->phy_node) { in mpc52xx_fec_open()
221 phydev = of_phy_connect(priv->ndev, priv->phy_node, in mpc52xx_fec_open()
933 priv->phy_node = of_parse_phandle(np, "phy-handle", 0); in mpc52xx_fec_probe()
957 of_node_put(priv->phy_node); in mpc52xx_fec_probe()
984 of_node_put(priv->phy_node); in mpc52xx_fec_remove()
985 priv->phy_node = NULL; in mpc52xx_fec_remove()
/linux/drivers/net/ethernet/freescale/fman/
A Dmac.c801 mac_dev->phy_node = of_parse_phandle(mac_node, "phy-handle", 0); in mac_probe()
802 if (!mac_dev->phy_node && of_phy_is_fixed_link(mac_node)) { in mac_probe()
816 mac_dev->phy_node = of_node_get(mac_node); in mac_probe()
817 phy = of_phy_find_device(mac_dev->phy_node); in mac_probe()
820 of_node_put(mac_dev->phy_node); in mac_probe()
836 of_node_put(mac_dev->phy_node); in mac_probe()
A Dmac.h54 struct device_node *phy_node; member
/linux/drivers/net/ethernet/allwinner/
A Dsun4i-emac.c84 struct device_node *phy_node; member
165 phydev = of_phy_connect(db->ndev, db->phy_node, in emac_mdio_probe()
845 db->phy_node = of_parse_phandle(np, "phy-handle", 0); in emac_probe()
846 if (!db->phy_node) in emac_probe()
847 db->phy_node = of_parse_phandle(np, "phy", 0); in emac_probe()
848 if (!db->phy_node) { in emac_probe()
/linux/drivers/net/ethernet/arc/
A 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()
992 of_node_put(phy_node); in arc_emac_probe()
1004 of_node_put(phy_node); in arc_emac_probe()
/linux/drivers/net/ethernet/ti/
A Ddavinci_emac.c336 struct device_node *phy_node; member
1488 if (priv->phy_node) { in emac_dev_open()
1489 phydev = of_phy_connect(ndev, priv->phy_node, in emac_dev_open()
1493 priv->phy_node); in emac_dev_open()
1738 priv->phy_node = of_parse_phandle(np, "phy-handle", 0); in davinci_emac_of_get_pdata()
1739 if (!priv->phy_node) { in davinci_emac_of_get_pdata()
1743 priv->phy_node = of_node_get(np); in davinci_emac_of_get_pdata()
1966 of_node_put(priv->phy_node); in davinci_emac_probe()
1994 of_node_put(priv->phy_node); in davinci_emac_remove()
A 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()
1317 slave_data->phy_node = of_parse_phandle(slave_node, in cpsw_probe_dt()
1320 if (slave_data->phy_node) { in cpsw_probe_dt()
1323 i, slave_data->phy_node); in cpsw_probe_dt()
1334 slave_data->phy_node = of_node_get(slave_node); in cpsw_probe_dt()
1420 of_node_put(slave_data->phy_node); in cpsw_remove_dt()
/linux/drivers/net/ethernet/freescale/fs_enet/
A Dfs_enet-main.c721 phydev = of_phy_connect(dev, fep->fpi->phy_node, &fs_adjust_link, 0, in fs_init_phy()
944 fpi->phy_node = of_parse_phandle(ofdev->dev.of_node, "phy-handle", 0); in fs_enet_probe()
945 if (!fpi->phy_node && of_phy_is_fixed_link(ofdev->dev.of_node)) { in fs_enet_probe()
953 fpi->phy_node = of_node_get(ofdev->dev.of_node); in fs_enet_probe()
1048 of_node_put(fpi->phy_node); in fs_enet_probe()
1066 of_node_put(fep->fpi->phy_node); in fs_enet_remove()
/linux/include/linux/
A Dmv643xx_eth.h47 struct device_node *phy_node; member
A Dfs_enet_pd.h136 struct device_node *phy_node; member
/linux/drivers/net/ethernet/hisilicon/
A 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()
A 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()
1271 of_node_put(priv->phy_node); in hix5hd2_dev_probe()
1299 of_node_put(priv->phy_node); in hix5hd2_dev_remove()
/linux/drivers/gpu/drm/msm/dp/
A Ddp_parser.h62 struct device_node *phy_node; member

Completed in 51 milliseconds

123