Home
last modified time | relevance | path

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

12

/linux/drivers/net/wan/
H A 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 …]
H 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()
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 …]
H A Dc101.c92 #define phy_node(port) (0) macro
/linux/drivers/staging/octeon/
H A Dethernet-mdio.c140 struct device_node *phy_node; in cvm_oct_phy_setup_device() local
146 phy_node = of_parse_phandle(priv->of_node, "phy-handle", 0); in cvm_oct_phy_setup_device()
147 if (!phy_node && of_phy_is_fixed_link(priv->of_node)) in cvm_oct_phy_setup_device()
148 phy_node = of_node_get(priv->of_node); in cvm_oct_phy_setup_device()
149 if (!phy_node) in cvm_oct_phy_setup_device()
152 phydev = of_phy_connect(dev, phy_node, cvm_oct_adjust_link, 0, in cvm_oct_phy_setup_device()
154 of_node_put(phy_node); in cvm_oct_phy_setup_device()
/linux/drivers/net/phy/
H A Dxilinx_gmii2rgmii.c88 struct device_node *np = dev->of_node, *phy_node; in xgmiitorgmii_probe() local
101 phy_node = of_parse_phandle(np, "phy-handle", 0); in xgmiitorgmii_probe()
102 if (!phy_node) { in xgmiitorgmii_probe()
107 priv->phy_dev = of_phy_find_device(phy_node); in xgmiitorgmii_probe()
108 of_node_put(phy_node); in xgmiitorgmii_probe()
/linux/drivers/gpu/drm/sun4i/
H A 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/drivers/net/ethernet/xilinx/
H A Dxilinx_emaclite.c133 struct device_node *phy_node; member
808 struct device_node *np = of_get_parent(lp->phy_node); in xemaclite_mdio_setup()
831 phydev = of_phy_find_device(lp->phy_node); in xemaclite_mdio_setup()
919 if (lp->phy_node) { in xemaclite_open()
920 lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node, in xemaclite_open()
1150 lp->phy_node = of_parse_phandle(ofdev->dev.of_node, "phy-handle", 0); in xemaclite_of_probe()
1174 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 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()
1598 dev_dbg(lp->dev, "using PHY node %pOF\n", 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()
H A Dll_temac.h346 struct device_node *phy_node; member
/linux/drivers/net/ethernet/broadcom/
H A Dbgmac-platform.c174 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()
/linux/drivers/net/ethernet/freescale/enetc/
H A Dnetc_blk_ctrl.c330 struct device_node *mdio_node, *phy_node; in netc_get_phy_addr() local
338 phy_node = of_get_next_child(mdio_node, NULL); in netc_get_phy_addr()
339 if (!phy_node) in netc_get_phy_addr()
342 err = of_property_read_u32(phy_node, "reg", &addr); in netc_get_phy_addr()
350 of_node_put(phy_node); in netc_get_phy_addr()
/linux/drivers/net/ethernet/freescale/
H A 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()
H A Dgianfar.c789 priv->phy_node = of_parse_phandle(np, "phy-handle", 0); in gfar_of_init()
794 if (!priv->phy_node && of_phy_is_fixed_link(np)) { in gfar_of_init()
799 priv->phy_node = of_node_get(np); in gfar_of_init()
1650 phydev = of_phy_connect(dev, priv->phy_node, &adjust_link, 0, in init_phy()
3324 of_node_put(priv->phy_node); in gfar_probe()
3335 of_node_put(priv->phy_node); in gfar_remove()
H A Ducc_geth.c3424 struct device_node *phy_node; in ucc_geth_probe() local
3468 phy_node = of_parse_phandle(np, "phy-handle", 0); in ucc_geth_probe()
3469 if (phy_node) { in ucc_geth_probe()
3470 prop = of_get_property(phy_node, "interface", NULL); in ucc_geth_probe()
3474 of_node_put(phy_node); in ucc_geth_probe()
3478 of_node_put(phy_node); in ucc_geth_probe()
/linux/drivers/net/ethernet/arc/
H A Demac_main.c862 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()
/linux/include/linux/
H A Dmv643xx_eth.h48 struct device_node *phy_node; member
/linux/drivers/net/ethernet/freescale/fman/
H A Dfman_dtsec.c1406 struct device_node *phy_node; in dtsec_initialization() local
1431 phy_node = of_parse_phandle(mac_node, "tbi-handle", 0); in dtsec_initialization()
1432 if (!phy_node || !of_device_is_available(phy_node)) { in dtsec_initialization()
1433 of_node_put(phy_node); in dtsec_initialization()
1440 dtsec->tbidev = of_mdio_find_device(phy_node); in dtsec_initialization()
1441 of_node_put(phy_node); in dtsec_initialization()
/linux/drivers/net/ethernet/sunplus/
H A Dspl2sw_phy.c67 phydev = of_phy_connect(ndev, mac->phy_node, spl2sw_mii_link_change, in spl2sw_phy_connect()
H A Dspl2sw_define.h263 struct device_node *phy_node; member
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-rk.c1450 if (plat->phy_node && bsp_priv->integrated_phy) { in rk_gmac_clk_init()
1451 bsp_priv->clk_phy = of_clk_get(plat->phy_node, 0); in rk_gmac_clk_init()
1615 if (plat->phy_node) { in rk_gmac_setup()
1616 bsp_priv->integrated_phy = of_property_read_bool(plat->phy_node, in rk_gmac_setup()
1619 bsp_priv->phy_reset = of_reset_control_get(plat->phy_node, NULL); in rk_gmac_setup()
1777 if (priv->plat->phy_node && bsp_priv->integrated_phy) in rk_gmac_exit()
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_star_emac.c270 struct device_node *phy_node; member
1013 priv->phydev = of_phy_connect(ndev, priv->phy_node, in mtk_star_enable()
1600 priv->phy_node = of_parse_phandle(of_node, "phy-handle", 0); in mtk_star_probe()
1601 if (!priv->phy_node) { in mtk_star_probe()
1653 phydev = of_phy_find_device(priv->phy_node); in mtk_star_probe()
/linux/drivers/ufs/host/
H A Dufs-mediatek.c2349 struct device_node *reset_node, *phy_node = NULL; in ufs_mtk_probe() local
2381 phy_node = of_parse_phandle(dev->of_node, "phys", 0); in ufs_mtk_probe()
2383 if (phy_node) { in ufs_mtk_probe()
2384 phy_pdev = of_find_device_by_node(phy_node); in ufs_mtk_probe()
2411 if (phy_node && phy_dev) { in ufs_mtk_probe()
2424 of_node_put(phy_node); in ufs_mtk_probe()
/linux/drivers/net/ethernet/marvell/
H A Dmv643xx_eth.c2716 of_node_put(pd->phy_node); in mv643xx_eth_shared_of_remove()
2771 ppd.phy_node = of_parse_phandle(pnp, "phy-handle", 0); in mv643xx_eth_shared_of_add_port()
2772 if (!ppd.phy_node) { in mv643xx_eth_shared_of_add_port()
2805 of_node_put(ppd.phy_node); in mv643xx_eth_shared_of_add_port()
3176 if (pd->phy_node) { in mv643xx_eth_probe()
3177 phydev = of_phy_connect(mp->dev, pd->phy_node, in mv643xx_eth_probe()
/linux/drivers/net/dsa/sja1105/
H A Dsja1105_main.c1192 struct device_node *phy_node; in sja1105_parse_ports_node() local
1213 phy_node = of_parse_phandle(child, "phy-handle", 0); in sja1105_parse_ports_node()
1214 if (!phy_node) { in sja1105_parse_ports_node()
1225 of_node_put(phy_node); in sja1105_parse_ports_node()
/linux/drivers/net/dsa/microchip/
H A Dksz_common.c2640 struct device_node *phy_node, *phy_parent_node; in ksz_parse_dt_phy_config() local
2650 phy_node = of_parse_phandle(dp->dn, "phy-handle", 0); in ksz_parse_dt_phy_config()
2651 if (!phy_node) { in ksz_parse_dt_phy_config()
2658 phy_parent_node = of_get_parent(phy_node); in ksz_parse_dt_phy_config()
2668 ret = of_property_read_u32(phy_node, "reg", &phy_addr); in ksz_parse_dt_phy_config()
2683 of_node_put(phy_node); in ksz_parse_dt_phy_config()

12