| /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 | 3783 * fwnode_get_phy_node - Get the phy_node using the named reference. in phy_probe() 3784 * @fwnode: Pointer to fwnode from which phy_node has to be obtained. in phy_probe() 3793 struct fwnode_handle *phy_node; in phy_probe() 3796 phy_node = fwnode_find_reference(fwnode, "phy-handle", 0); in phy_probe() 3797 if (!IS_ERR(phy_node) || is_acpi_node(fwnode)) in phy_probe() 3798 return phy_node; in phy_probe() 3799 phy_node = fwnode_find_reference(fwnode, "phy", 0); in phy_probe() 3800 if (!IS_ERR(phy_node)) in phy_probe() 3801 return phy_node; in phy_probe() 3666 struct fwnode_handle *phy_node; fwnode_get_phy_node() local
|
| /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 | 1161 if (lp->phy_node) { in temac_open() 1162 phydev = of_phy_connect(lp->ndev, lp->phy_node, in temac_open() 1593 lp->phy_node = of_parse_phandle(temac_np, "phy-handle", 0); in temac_probe() 1594 if (lp->phy_node) in temac_probe() 1595 dev_dbg(lp->dev, "using PHY node %pOF\n", lp->phy_node); in temac_probe() 1620 if (lp->phy_node) in temac_probe() 1621 of_node_put(lp->phy_node); in temac_probe() 1633 if (lp->phy_node) in temac_remove() 1634 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/sunplus/ |
| H A D | spl2sw_phy.c | 67 phydev = of_phy_connect(ndev, mac->phy_node, spl2sw_mii_link_change, in spl2sw_phy_connect() 90 of_node_put(mac->phy_node); in spl2sw_phy_remove()
|
| H A D | spl2sw_define.h | 263 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() 1023 db->phy_node = of_parse_phandle(np, "phy-handle", 0); in emac_probe() 1024 if (!db->phy_node) in emac_probe() 1025 db->phy_node = of_parse_phandle(np, "phy", 0); in emac_probe() 1026 if (!db->phy_node) { in emac_probe() 1067 of_node_put(db->phy_node); in emac_probe() 1095 of_node_put(db->phy_node); in emac_remove()
|
| /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/freescale/fman/ |
| H A D | fman_dtsec.c | 1413 struct device_node *phy_node; in dtsec_initialization() local 1438 phy_node = of_parse_phandle(mac_node, "tbi-handle", 0); in dtsec_initialization() 1439 if (!phy_node || !of_device_is_available(phy_node)) { in dtsec_initialization() 1440 of_node_put(phy_node); in dtsec_initialization() 1447 dtsec->tbidev = of_mdio_find_device(phy_node); in dtsec_initialization() 1448 of_node_put(phy_node); in dtsec_initialization()
|
| /linux/drivers/net/ethernet/hisilicon/ |
| H A D | hip04_eth.c | 242 struct device_node *phy_node; member 982 priv->phy_node = of_parse_phandle(node, "phy-handle", 0); in hip04_mac_probe() 983 if (priv->phy_node) { in hip04_mac_probe() 984 priv->phy = of_phy_connect(ndev, priv->phy_node, in hip04_mac_probe() 1025 of_node_put(priv->phy_node); in hip04_mac_probe() 1041 of_node_put(priv->phy_node); in hip04_remove()
|
| H A D | hix5hd2_gmac.c | 259 struct device_node *phy_node; 846 phy = of_phy_connect(dev, priv->phy_node, in hix5hd2_net_open() 1202 priv->phy_node = of_parse_phandle(node, "phy-handle", 0); in hix5hd2_dev_probe() 1203 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); 258 struct device_node *phy_node; global() member
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | stmmac_platform.c | 332 * This expects that plat->phy_node has already been searched for. 350 legacy_mdio = !of_phy_is_fixed_link(np) && !plat->phy_node; in stmmac_mdio_setup() 448 /* Some wrapper drivers still rely on phy_node. Let's save it while in stmmac_probe_config_dt() 450 plat->phy_node = of_parse_phandle(np, "phy-handle", 0); in stmmac_probe_config_dt() 636 of_node_put(plat->phy_node); in stmmac_probe_config_dt() 648 of_node_put(plat->phy_node); in devm_stmmac_remove_config_dt()
|
| H A D | dwmac-rk.c | 1170 if (plat->phy_node && bsp_priv->integrated_phy) { in gmac_clk_enable() 1171 bsp_priv->clk_phy = of_clk_get(plat->phy_node, 0); in gmac_clk_enable() 1375 if (plat->phy_node) { in rk_gmac_powerup() 1376 bsp_priv->integrated_phy = of_property_read_bool(plat->phy_node, in rk_gmac_powerup() 1379 bsp_priv->phy_reset = of_reset_control_get(plat->phy_node, NULL); in rk_gmac_powerup() 1645 if (priv->plat->phy_node && bsp_priv->integrated_phy)
|
| /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 | 2408 struct device_node *reset_node, *phy_node = NULL; in ufs_mtk_probe() 2440 phy_node = of_parse_phandle(dev->of_node, "phys", 0); in ufs_mtk_probe() 2442 if (phy_node) { in ufs_mtk_probe() 2443 phy_pdev = of_find_device_by_node(phy_node); in ufs_mtk_probe() 2470 if (phy_node && phy_dev) { in ufs_mtk_remove() 2483 of_node_put(phy_node); in ufs_mtk_system_suspend() 2382 struct device_node *reset_node, *phy_node = NULL; ufs_mtk_probe() local
|
| /linux/drivers/net/dsa/ |
| H A D | mt7530.c | 2384 struct device_node *phy_node; in mt7530_setup_irq() 2547 phy_node = of_parse_phandle(mac_np, "phy-handle", 0); in mt7530_setup() 2548 if (!phy_node) in mt7530_setup() 2551 if (phy_node->parent == priv->dev->of_node->parent || in mt7530_setup() 2552 phy_node->parent->parent == priv->dev->of_node) { in mt7530_setup() 2556 of_node_put(phy_node); in mt7530_setup() 2559 id = of_mdio_parse_addr(ds->dev, phy_node); in mt7530_setup() 2566 of_node_put(phy_node); in mt7530_setup() 2462 struct device_node *phy_node; mt7530_setup() local
|
| /linux/drivers/net/ethernet/freescale/ |
| 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 in fec_probe() [all...] |
| /linux/drivers/net/ethernet/ti/icssg/ |
| H A D | icssg_prueth.c | 425 ndev->phydev = of_phy_connect(emac->ndev, emac->phy_node, in emac_phy_connect() 430 emac->phy_node->full_name); in emac_phy_connect() 1714 emac->phy_node = of_parse_phandle(eth_node, "phy-handle", 0); in prueth_netdev_init() 1715 if (!emac->phy_node && !of_phy_is_fixed_link(eth_node)) { in prueth_netdev_init() 1726 emac->phy_node = eth_node; in prueth_netdev_init()
|
| /linux/drivers/net/dsa/microchip/ |
| H A D | ksz_common.c | 2342 struct device_node *phy_node, *phy_parent_node; in ksz_mdio_register() 2352 phy_node = of_parse_phandle(dp->dn, "phy-handle", 0); in ksz_mdio_register() 2353 if (!phy_node) { in ksz_mdio_register() 2360 phy_parent_node = of_get_parent(phy_node); in ksz_mdio_register() 2370 ret = of_property_read_u32(phy_node, "reg", &phy_addr); in ksz_mdio_register() 2385 of_node_put(phy_node); in ksz_mdio_register() 2256 struct device_node *phy_node, *phy_parent_node; ksz_parse_dt_phy_config() local
|