/drivers/net/ |
D | mdio.c | 29 int mdio45_probe(struct mdio_if_info *mdio, int prtad) in mdio45_probe() argument 37 stat2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_STAT2); in mdio45_probe() 43 devs1 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS1); in mdio45_probe() 44 devs2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS2); in mdio45_probe() 48 mdio->prtad = prtad; in mdio45_probe() 70 int prtad, int devad, u16 addr, int mask, in mdio_set_flag() argument 73 int old_val = mdio->mdio_read(mdio->dev, prtad, devad, addr); in mdio_set_flag() 84 return mdio->mdio_write(mdio->dev, prtad, devad, addr, new_val); in mdio_set_flag() 103 reg = mdio->mdio_read(mdio->dev, mdio->prtad, in mdio45_links_ok() 113 mdio->mdio_read(mdio->dev, mdio->prtad, in mdio45_links_ok() [all …]
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-mdio.c | 126 static int xgbe_mdio_read(struct mii_bus *mii, int prtad, int mmd_reg) in xgbe_mdio_read() argument 133 prtad, mmd_reg); in xgbe_mdio_read() 135 mmd_data = hw_if->read_mmd_regs(pdata, prtad, mmd_reg); in xgbe_mdio_read() 142 static int xgbe_mdio_write(struct mii_bus *mii, int prtad, int mmd_reg, in xgbe_mdio_write() argument 150 prtad, mmd_reg, mmd_data); in xgbe_mdio_write() 152 hw_if->write_mmd_regs(pdata, prtad, mmd_reg, mmd_data); in xgbe_mdio_write()
|
D | xgbe-dev.c | 687 static int xgbe_read_mmd_regs(struct xgbe_prv_data *pdata, int prtad, in xgbe_read_mmd_regs() argument 715 static void xgbe_write_mmd_regs(struct xgbe_prv_data *pdata, int prtad, in xgbe_write_mmd_regs() argument
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | aq100x.c | 75 phy->mdio.prtad, err); in aq100x_reset() 122 return mdio_set_flag(&phy->mdio, phy->mdio.prtad, in aq100x_power_down() 133 err = mdio_set_flag(&phy->mdio, phy->mdio.prtad, in aq100x_autoneg_enable() 146 err = mdio_set_flag(&phy->mdio, phy->mdio.prtad, in aq100x_autoneg_restart() 196 return mdio_set_flag(&phy->mdio, phy->mdio.prtad, in aq100x_set_loopback()
|
D | ael1002.c | 103 phy->mdio.prtad == 0 ? F_GPIO7_OUT_VAL : F_GPIO2_OUT_VAL; in ael100x_txon() 137 phy->mdio.prtad, dev_addr, word_addr); in ael_i2c_rd() 147 err = mdio_set_flag(&phy->mdio, phy->mdio.prtad, in ael1002_power_down() 886 phy->mdio.prtad = 1; in t3_qt2045_phy_prep() 900 int prtad = phy->mdio.prtad; in xaui_direct_get_link_status() local 903 XGM_REG(A_XGM_SERDES_STAT0, prtad)) | in xaui_direct_get_link_status() 905 XGM_REG(A_XGM_SERDES_STAT1, prtad)) | in xaui_direct_get_link_status() 907 XGM_REG(A_XGM_SERDES_STAT2, prtad)) | in xaui_direct_get_link_status() 909 XGM_REG(A_XGM_SERDES_STAT3, prtad)); in xaui_direct_get_link_status()
|
D | common.h | 564 int rc = phy->mdio.mdio_read(phy->mdio.dev, phy->mdio.prtad, mmd, reg); in t3_mdio_read() 572 return phy->mdio.mdio_write(phy->mdio.dev, phy->mdio.prtad, mmd, in t3_mdio_write() 587 phy->mdio.prtad = phy_addr; in cphy_init()
|
D | cxgb3_main.c | 1817 cmd->phy_address = p->phy.mdio.prtad; in get_settings()
|
D | t3_hw.c | 3769 ret = pti->phy_prep(&p->phy, adapter, p->phy.mdio.prtad, NULL); in t3_replay_prep_adapter()
|
/drivers/net/ethernet/sfc/ |
D | mdio_10g.h | 27 return efx->mdio.mdio_read(efx->net_dev, efx->mdio.prtad, devad, addr); in efx_mdio_read() 33 efx->mdio.mdio_write(efx->net_dev, efx->mdio.prtad, devad, addr, value); in efx_mdio_write() 104 mdio_set_flag(&efx->mdio, efx->mdio.prtad, devad, addr, mask, state); in efx_mdio_set_flag()
|
D | mcdi_port.c | 123 int prtad, int devad, u16 addr) in efx_mcdi_mdio_read() argument 132 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_PRTAD, prtad); in efx_mcdi_mdio_read() 149 int prtad, int devad, u16 addr, u16 value) in efx_mcdi_mdio_write() argument 158 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_PRTAD, prtad); in efx_mcdi_mdio_write() 364 efx->mdio.prtad = phy_data->port; in efx_mcdi_phy_probe()
|
D | falcon.c | 1557 int prtad, int devad, u16 addr, u16 value) in falcon_mdio_write() argument 1566 prtad, devad, addr, value); in falcon_mdio_write() 1579 EFX_POPULATE_OWORD_2(reg, FRF_AB_MD_PRT_ADR, prtad, in falcon_mdio_write() 1610 int prtad, int devad, u16 addr) in falcon_mdio_read() argument 1627 EFX_POPULATE_OWORD_2(reg, FRF_AB_MD_PRT_ADR, prtad, in falcon_mdio_read() 1642 prtad, devad, addr, rc); in falcon_mdio_read() 1652 prtad, devad, addr, rc); in falcon_mdio_read() 2176 efx->mdio.prtad = nvconfig->board_v2.port0_phy_addr; in falcon_probe_nvconfig() 2193 efx->phy_type, efx->mdio.prtad); in falcon_probe_nvconfig()
|
D | mdio_10g.c | 315 "no MDIO PHY present with ID %d\n", efx->mdio.prtad); in efx_mdio_test_alive()
|
D | qt202x_phy.c | 418 &efx->mdio, efx->mdio.prtad, MDIO_MMD_PMAPMD, in qt202x_phy_reconfigure()
|
D | siena.c | 300 efx->mdio.prtad = MDIO_PRTAD_NONE; in siena_probe_nic()
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | cphy.h | 113 int rc = cphy->mdio.mdio_read(cphy->mdio.dev, cphy->mdio.prtad, mmd, in cphy_mdio_read() 122 return cphy->mdio.mdio_write(cphy->mdio.dev, cphy->mdio.prtad, mmd, in cphy_mdio_write() 147 phy->mdio.prtad = phy_addr; in cphy_init()
|
D | cxgb2.c | 588 cmd->phy_address = p->phy->mdio.prtad; in get_settings()
|
/drivers/net/phy/ |
D | phy.c | 961 static inline void mmd_phy_indirect(struct mii_bus *bus, int prtad, int devad, in mmd_phy_indirect() argument 968 bus->write(bus, addr, MII_MMD_DATA, prtad); in mmd_phy_indirect() 989 int phy_read_mmd_indirect(struct phy_device *phydev, int prtad, in phy_read_mmd_indirect() argument 996 mmd_phy_indirect(phydev->bus, prtad, devad, addr); in phy_read_mmd_indirect() 1001 value = phydrv->read_mmd_indirect(phydev, prtad, devad, addr); in phy_read_mmd_indirect() 1023 void phy_write_mmd_indirect(struct phy_device *phydev, int prtad, in phy_write_mmd_indirect() argument 1029 mmd_phy_indirect(phydev->bus, prtad, devad, addr); in phy_write_mmd_indirect() 1034 phydrv->write_mmd_indirect(phydev, prtad, devad, addr, data); in phy_write_mmd_indirect()
|
/drivers/net/ethernet/atheros/alx/ |
D | main.c | 1114 int prtad, int devad, u16 addr) in alx_mdio_read() argument 1121 if (prtad != hw->mdio.prtad) in alx_mdio_read() 1135 int prtad, int devad, u16 addr, u16 val) in alx_mdio_write() argument 1140 if (prtad != hw->mdio.prtad) in alx_mdio_write() 1357 hw->mdio.prtad = 0; in alx_probe()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_phy.c | 65 hw->phy.mdio.prtad = phy_addr; in ixgbe_identify_phy_generic() 90 hw->phy.mdio.prtad = 0; in ixgbe_identify_phy_generic() 247 (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) | in ixgbe_read_phy_reg_mdi() 275 (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) | in ixgbe_read_phy_reg_mdi() 355 (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) | in ixgbe_write_phy_reg_mdi() 384 (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) | in ixgbe_write_phy_reg_mdi()
|
D | ixgbe_main.c | 7243 ixgbe_mdio_read(struct net_device *netdev, int prtad, int devad, u16 addr) in ixgbe_mdio_read() argument 7250 if (prtad != hw->phy.mdio.prtad) in ixgbe_mdio_read() 7258 static int ixgbe_mdio_write(struct net_device *netdev, int prtad, int devad, in ixgbe_mdio_write() argument 7264 if (prtad != hw->phy.mdio.prtad) in ixgbe_mdio_write() 8088 hw->phy.mdio.prtad = MDIO_PRTAD_NONE; in ixgbe_probe()
|
/drivers/net/usb/ |
D | ax88179_178a.c | 382 static inline int ax88179_phy_mmd_indirect(struct usbnet *dev, u16 prtad, in ax88179_phy_mmd_indirect() argument 392 tmp16 = prtad; in ax88179_phy_mmd_indirect() 404 ax88179_phy_read_mmd_indirect(struct usbnet *dev, u16 prtad, u16 devad) in ax88179_phy_read_mmd_indirect() argument 409 ax88179_phy_mmd_indirect(dev, prtad, devad); in ax88179_phy_read_mmd_indirect() 420 ax88179_phy_write_mmd_indirect(struct usbnet *dev, u16 prtad, u16 devad, in ax88179_phy_write_mmd_indirect() argument 425 ax88179_phy_mmd_indirect(dev, prtad, devad); in ax88179_phy_write_mmd_indirect()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_main.c | 4835 int ret = 0, prtad, devad; in cxgb_ioctl() local 4848 prtad = mdio_phy_id_prtad(data->phy_id); in cxgb_ioctl() 4851 prtad = data->phy_id; in cxgb_ioctl() 4859 ret = t4_mdio_rd(pi->adapter, mbox, prtad, devad, in cxgb_ioctl() 4862 ret = t4_mdio_wr(pi->adapter, mbox, prtad, devad, in cxgb_ioctl()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 11281 bp->mdio.prtad = bp->port.phy_addr; in bnx2x_get_port_hwinfo() 11285 bp->mdio.prtad = in bnx2x_get_port_hwinfo() 12450 static int bnx2x_mdio_read(struct net_device *netdev, int prtad, in bnx2x_mdio_read() argument 12458 prtad, devad, addr); in bnx2x_mdio_read() 12464 rc = bnx2x_phy_read(&bp->link_params, prtad, devad, addr, &value); in bnx2x_mdio_read() 12474 static int bnx2x_mdio_write(struct net_device *netdev, int prtad, int devad, in bnx2x_mdio_write() argument 12482 prtad, devad, addr, value); in bnx2x_mdio_write() 12488 rc = bnx2x_phy_write(&bp->link_params, prtad, devad, addr, value); in bnx2x_mdio_write() 12787 bp->mdio.prtad = MDIO_PRTAD_NONE; in bnx2x_init_dev()
|
D | bnx2x_ethtool.c | 287 cmd->phy_address = bp->mdio.prtad; in bnx2x_get_settings()
|