| /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 | 3643 struct fwnode_handle *phy_node; in fwnode_get_phy_node() local 3646 phy_node = fwnode_find_reference(fwnode, "phy-handle", 0); in fwnode_get_phy_node() 3647 if (!IS_ERR(phy_node) || is_acpi_node(fwnode)) in fwnode_get_phy_node() 3648 return phy_node; in fwnode_get_phy_node() 3649 phy_node = fwnode_find_reference(fwnode, "phy", 0); in fwnode_get_phy_node() 3650 if (!IS_ERR(phy_node)) in fwnode_get_phy_node() 3651 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/enetc/ |
| H A D | netc_blk_ctrl.c | 330 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() 344 err = of_property_read_u32(phy_node, "reg", &addr); in netc_get_phy_addr() 352 of_node_put(phy_node); in netc_get_phy_addr()
|
| /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 | 2877 } else if (fep->phy_node) { in fec_enet_phy_reset_after_clk_enable() 2885 phy_dev = of_phy_find_device(fep->phy_node); in fec_enet_phy_reset_after_clk_enable() 2987 if (fep->phy_node) { in fec_enet_mii_probe() 2988 phy_dev = of_phy_connect(ndev, fep->phy_node, in fec_enet_mii_probe() 4243 if (!fep->phy_node && phy_is_pseudo_fixed_link(phy_dev)) in fec_enet_close() 5212 struct device_node *np = pdev->dev.of_node, *phy_node; in fec_probe() local 5276 phy_node = of_parse_phandle(np, "phy-handle", 0); in fec_probe() 5277 if (!phy_node && of_phy_is_fixed_link(np)) { in fec_probe() 5284 phy_node = of_node_get(np); in fec_probe() 5286 fep->phy_node = 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() 989 phydev = of_phy_connect(ndev, phy_node, arc_emac_adjust_link, 0, in arc_emac_probe() 1009 of_node_put(phy_node); in arc_emac_probe() 1021 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
|
| /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()
|
| /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/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/ |
| H A D | cpsw.c | 636 if (slave->data->phy_node) { in cpsw_slave_open() 637 phy = of_phy_connect(priv->ndev, slave->data->phy_node, in cpsw_slave_open() 641 slave->data->phy_node, in cpsw_slave_open() 1360 slave_data->phy_node = of_parse_phandle(slave_node, in cpsw_probe_dt() 1363 if (slave_data->phy_node) { in cpsw_probe_dt() 1366 i, slave_data->phy_node); in cpsw_probe_dt() 1376 slave_data->phy_node = of_node_get(slave_node); in cpsw_probe_dt() 1462 of_node_put(slave_data->phy_node); in cpsw_remove_dt()
|
| H A D | cpsw_new.c | 787 if (!slave->data->phy_node) in cpsw_slave_open() 790 phy = of_phy_connect(priv->ndev, slave->data->phy_node, in cpsw_slave_open() 794 slave->data->phy_node, in cpsw_slave_open() 1324 slave_data->phy_node = of_node_get(port_np); in cpsw_probe_dt() 1326 slave_data->phy_node = in cpsw_probe_dt() 1330 if (!slave_data->phy_node) { in cpsw_probe_dt() 1379 struct device_node *port_np = slave_data->phy_node; in cpsw_remove_dt()
|
| /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/ufs/host/ |
| H A D | ufs-mediatek.c | 2349 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/ti/icssg/ |
| H A D | icssg_prueth.c | 419 ndev->phydev = of_phy_connect(emac->ndev, emac->phy_node, in emac_phy_connect() 424 emac->phy_node->full_name); in emac_phy_connect() 1491 emac->phy_node = of_parse_phandle(eth_node, "phy-handle", 0); in prueth_netdev_init() 1492 if (!emac->phy_node && !of_phy_is_fixed_link(eth_node)) { in prueth_netdev_init() 1503 emac->phy_node = eth_node; in prueth_netdev_init()
|
| /linux/drivers/net/ethernet/marvell/ |
| H A D | mv643xx_eth.c | 2715 of_node_put(pd->phy_node); in mv643xx_eth_shared_of_remove() 2770 ppd.phy_node = of_parse_phandle(pnp, "phy-handle", 0); in mv643xx_eth_shared_of_add_port() 2771 if (!ppd.phy_node) { in mv643xx_eth_shared_of_add_port() 2804 of_node_put(ppd.phy_node); in mv643xx_eth_shared_of_add_port() 3175 if (pd->phy_node) { in mv643xx_eth_probe() 3176 phydev = of_phy_connect(mp->dev, pd->phy_node, in mv643xx_eth_probe()
|