/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 …]
|
/linux/drivers/staging/octeon/ |
H A D | ethernet-mdio.c | 140 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 D | xilinx_gmii2rgmii.c | 88 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()
|
H A D | phy_device.c | 3375 struct fwnode_handle *phy_node; in fwnode_get_phy_node() local 3378 phy_node = fwnode_find_reference(fwnode, "phy-handle", 0); in fwnode_get_phy_node() 3379 if (!IS_ERR(phy_node) || is_acpi_node(fwnode)) in fwnode_get_phy_node() 3380 return phy_node; in fwnode_get_phy_node() 3381 phy_node = fwnode_find_reference(fwnode, "phy", 0); in fwnode_get_phy_node() 3382 if (!IS_ERR(phy_node)) in fwnode_get_phy_node() 3383 return phy_node; in fwnode_get_phy_node()
|
/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()
|
/linux/drivers/net/ethernet/xilinx/ |
H A D | xilinx_emaclite.c | 133 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 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() 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 D | ll_temac.h | 346 struct device_node *phy_node; member
|
/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()
|
/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()
|
H A D | fec_main.c | 2356 } else if (fep->phy_node) { in fec_enet_phy_reset_after_clk_enable() 2364 phy_dev = of_phy_find_device(fep->phy_node); in fec_enet_phy_reset_after_clk_enable() 2469 if (fep->phy_node) { in fec_enet_mii_probe() 2470 phy_dev = of_phy_connect(ndev, fep->phy_node, in fec_enet_mii_probe() 4350 struct device_node *np = pdev->dev.of_node, *phy_node; in fec_probe() local 4416 phy_node = of_parse_phandle(np, "phy-handle", 0); in fec_probe() 4417 if (!phy_node && of_phy_is_fixed_link(np)) { in fec_probe() 4424 phy_node = of_node_get(np); in fec_probe() 4426 fep->phy_node = phy_node; in fec_probe() 4604 of_node_put(phy_node); in fec_probe() [all …]
|
/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()
|
/linux/include/linux/ |
H A D | mv643xx_eth.h | 48 struct device_node *phy_node; member
|
H A D | stmmac.h | 208 struct device_node *phy_node; member
|
/linux/drivers/net/ethernet/freescale/fman/ |
H A D | fman_dtsec.c | 1406 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/stmicro/stmmac/ |
H A D | stmmac_platform.c | 365 legacy_mdio = !of_phy_is_fixed_link(np) && !plat->phy_node; in stmmac_mdio_setup() 461 plat->phy_node = of_parse_phandle(np, "phy-handle", 0); in stmmac_probe_config_dt() 675 of_node_put(plat->phy_node); in stmmac_probe_config_dt() 687 of_node_put(plat->phy_node); in devm_stmmac_remove_config_dt()
|
H A D | dwmac-rk.c | 1416 if (plat->phy_node && bsp_priv->integrated_phy) { in rk_gmac_clk_init() 1417 bsp_priv->clk_phy = of_clk_get(plat->phy_node, 0); in rk_gmac_clk_init() 1580 if (plat->phy_node) { in rk_gmac_setup() 1581 bsp_priv->integrated_phy = of_property_read_bool(plat->phy_node, in rk_gmac_setup() 1584 bsp_priv->phy_reset = of_reset_control_get(plat->phy_node, NULL); in rk_gmac_setup() 1775 if (priv->plat->phy_node && bsp_priv->integrated_phy) in rk_gmac_remove()
|
/linux/drivers/net/ethernet/sunplus/ |
H A D | spl2sw_phy.c | 67 phydev = of_phy_connect(ndev, mac->phy_node, spl2sw_mii_link_change, in spl2sw_phy_connect()
|
H A D | spl2sw_define.h | 263 struct device_node *phy_node; member
|
/linux/drivers/net/ethernet/ti/icssg/ |
H A D | icssg_prueth_sr1.c | 238 ndev->phydev = of_phy_connect(emac->ndev, emac->phy_node, in emac_phy_connect() 243 emac->phy_node->full_name); in emac_phy_connect() 811 emac->phy_node = of_parse_phandle(eth_node, "phy-handle", 0); in prueth_netdev_init() 812 if (!emac->phy_node && !of_phy_is_fixed_link(eth_node)) { in prueth_netdev_init() 824 emac->phy_node = eth_node; in prueth_netdev_init()
|
H A D | icssg_prueth.c | 404 ndev->phydev = of_phy_connect(emac->ndev, emac->phy_node, in emac_phy_connect() 409 emac->phy_node->full_name); in emac_phy_connect() 1243 emac->phy_node = of_parse_phandle(eth_node, "phy-handle", 0); in prueth_netdev_init() 1244 if (!emac->phy_node && !of_phy_is_fixed_link(eth_node)) { in prueth_netdev_init() 1256 emac->phy_node = eth_node; in prueth_netdev_init()
|
H A D | icssg_prueth.h | 191 struct device_node *phy_node; member
|
/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_star_emac.c | 270 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/net/dsa/ |
H A D | mt7530.c | 2354 struct device_node *phy_node; in mt7530_setup() local 2516 phy_node = of_parse_phandle(mac_np, "phy-handle", 0); in mt7530_setup() 2517 if (!phy_node) in mt7530_setup() 2520 if (phy_node->parent == priv->dev->of_node->parent || in mt7530_setup() 2521 phy_node->parent->parent == priv->dev->of_node) { in mt7530_setup() 2525 of_node_put(phy_node); in mt7530_setup() 2528 id = of_mdio_parse_addr(ds->dev, phy_node); in mt7530_setup() 2535 of_node_put(phy_node); in mt7530_setup()
|