/openbmc/u-boot/board/freescale/common/ |
H A D | sgmii_riser.c | 45 int phy_node; in fsl_sgmii_riser_fdt_fixup() local 69 phy_node = fdt_subnode_offset(fdt, mdio_node, sgmii_phy); in fsl_sgmii_riser_fdt_fixup() 70 if (phy_node > 0) { in fsl_sgmii_riser_fdt_fixup() 72 ph = fdt_create_phandle(fdt, phy_node); in fsl_sgmii_riser_fdt_fixup() 101 if (phy_node < 0) { in fsl_sgmii_riser_fdt_fixup() 112 phy_node = fdt_node_offset_by_phandle(fdt, in fsl_sgmii_riser_fdt_fixup() 118 fdt_setprop_cell(fdt, phy_node, "reg", in fsl_sgmii_riser_fdt_fixup()
|
/openbmc/linux/drivers/net/wan/ |
H A D | hd64570.c | 42 #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 …]
|
H A D | n2.c | 102 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 …]
|
/openbmc/linux/drivers/staging/octeon/ |
H A D | ethernet-mdio.c | 142 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()
|
/openbmc/u-boot/arch/arm/mach-rockchip/ |
H A D | rv1108-board.c | 24 int node, phy_node; in board_usb_init() local 54 phy_node = fdt_parent_offset(blob, node); in board_usb_init() 55 if (phy_node <= 0) { in board_usb_init() 60 rv1108_otg_data.phy_of_node = phy_node; in board_usb_init()
|
H A D | rk3288-board.c | 209 int node, phy_node; in board_usb_init() local 241 phy_node = fdt_parent_offset(blob, node); in board_usb_init() 242 if (phy_node <= 0) { in board_usb_init() 247 rk3288_otg_data.phy_of_node = phy_node; in board_usb_init()
|
/openbmc/linux/drivers/net/phy/ |
H A D | xilinx_gmii2rgmii.c | 86 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()
|
/openbmc/u-boot/drivers/net/mdio/ |
H A D | mdio-uclass.c | 25 int mdio_device_get_from_phy(ofnode phy_node, struct udevice **devp) in mdio_device_get_from_phy() argument 29 mdio_node = ofnode_get_parent(phy_node); in mdio_device_get_from_phy() 33 int mdio_mii_bus_get_from_phy(ofnode phy_node, struct mii_dev **busp) in mdio_mii_bus_get_from_phy() argument 38 ret = mdio_device_get_from_phy(phy_node, &mdio_dev); in mdio_mii_bus_get_from_phy()
|
/openbmc/u-boot/arch/arm/cpu/armv7/ls102xa/ |
H A D | fdt.c | 29 int phy_node; in ft_fixup_enet_phy_connect_type() local 55 phy_node = fdt_path_offset(fdt, phy_path); in ft_fixup_enet_phy_connect_type() 56 if (phy_node < 0) in ft_fixup_enet_phy_connect_type() 59 ph = fdt_create_phandle(fdt, phy_node); in ft_fixup_enet_phy_connect_type()
|
/openbmc/linux/drivers/gpu/drm/msm/dsi/ |
H A D | dsi.c | 24 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()
|
/openbmc/linux/drivers/gpu/drm/sun4i/ |
H A D | sun8i_dw_hdmi.c | 102 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()
|
/openbmc/u-boot/include/net/ |
H A D | mdio.h | 29 int mdio_device_get_from_phy(ofnode phy_node, struct udevice **devp); 38 int mdio_mii_bus_get_from_phy(ofnode phy_node, struct mii_dev **busp);
|
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | bgmac-platform.c | 174 struct device_node *phy_node; in bgmac_probe() local 240 phy_node = of_parse_phandle(np, "phy-handle", 0); in bgmac_probe() 241 if (phy_node) { in bgmac_probe() 242 of_node_put(phy_node); in bgmac_probe()
|
/openbmc/linux/drivers/net/ethernet/xilinx/ |
H A D | xilinx_emaclite.c | 132 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()
|
H A D | ll_temac_main.c | 1162 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()
|
/openbmc/linux/drivers/usb/chipidea/ |
H A D | ci_hdrc_msm.c | 179 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()
|
/openbmc/linux/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-platform.c | 225 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()
|
/openbmc/linux/drivers/gpu/drm/msm/hdmi/ |
H A D | hdmi.c | 90 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()
|
/openbmc/linux/drivers/net/ethernet/ni/ |
H A D | nixge.c | 173 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()
|
/openbmc/linux/drivers/net/ethernet/freescale/ |
H A D | fec_mpc52xx.c | 70 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()
|
/openbmc/linux/drivers/net/ethernet/arc/ |
H A D | emac_main.c | 862 struct device_node *phy_node; in arc_emac_probe() local 869 phy_node = of_parse_phandle(dev->of_node, "phy", 0); in arc_emac_probe() 870 if (!phy_node) { in arc_emac_probe() 978 phydev = of_phy_connect(ndev, phy_node, arc_emac_adjust_link, 0, in arc_emac_probe() 998 of_node_put(phy_node); in arc_emac_probe() 1010 of_node_put(phy_node); in arc_emac_probe()
|
/openbmc/linux/include/linux/ |
H A D | mv643xx_eth.h | 48 struct device_node *phy_node; member
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_platform.c | 365 legacy_mdio = !of_phy_is_fixed_link(np) && !plat->phy_node; in stmmac_mdio_setup() 448 plat->phy_node = of_parse_phandle(np, "phy-handle", 0); in stmmac_probe_config_dt() 654 of_node_put(plat->phy_node); in stmmac_probe_config_dt() 666 of_node_put(plat->phy_node); in devm_stmmac_remove_config_dt() 705 of_node_put(plat->phy_node); in stmmac_remove_config_dt()
|
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | davinci_emac.c | 335 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()
|
/openbmc/linux/drivers/net/ethernet/allwinner/ |
H A D | sun4i-emac.c | 84 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()
|