/drivers/net/ |
D | mdio.c | 26 int mdio45_probe(struct mdio_if_info *mdio, int prtad) in mdio45_probe() argument 34 stat2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_STAT2); in mdio45_probe() 40 devs1 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS1); in mdio45_probe() 41 devs2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS2); in mdio45_probe() 45 mdio->prtad = prtad; in mdio45_probe() 67 int prtad, int devad, u16 addr, int mask, in mdio_set_flag() argument 70 int old_val = mdio->mdio_read(mdio->dev, prtad, devad, addr); in mdio_set_flag() 81 return mdio->mdio_write(mdio->dev, prtad, devad, addr, new_val); in mdio_set_flag() 100 reg = mdio->mdio_read(mdio->dev, mdio->prtad, in mdio45_links_ok() 110 mdio->mdio_read(mdio->dev, mdio->prtad, in mdio45_links_ok() [all …]
|
/drivers/net/ethernet/sfc/ |
D | mcdi_port.c | 21 int prtad, int devad, u16 addr) in efx_mcdi_mdio_read() argument 30 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_PRTAD, prtad); in efx_mcdi_mdio_read() 47 int prtad, int devad, u16 addr, u16 value) in efx_mcdi_mdio_write() argument 56 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_PRTAD, prtad); in efx_mcdi_mdio_write()
|
D | siena.c | 319 efx->mdio.prtad = MDIO_PRTAD_NONE; in siena_probe_nic()
|
D | mcdi_port_common.c | 454 efx->mdio.prtad = phy_data->port; in efx_mcdi_phy_probe()
|
/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() 881 phy->mdio.prtad = 1; in t3_qt2045_phy_prep() 895 int prtad = phy->mdio.prtad; in xaui_direct_get_link_status() local 898 XGM_REG(A_XGM_SERDES_STAT0, prtad)) | in xaui_direct_get_link_status() 900 XGM_REG(A_XGM_SERDES_STAT1, prtad)) | in xaui_direct_get_link_status() 902 XGM_REG(A_XGM_SERDES_STAT2, prtad)) | in xaui_direct_get_link_status() 904 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()
|
/drivers/net/ethernet/sfc/falcon/ |
D | mdio_10g.h | 24 return efx->mdio.mdio_read(efx->net_dev, efx->mdio.prtad, devad, addr); in ef4_mdio_read() 30 efx->mdio.mdio_write(efx->net_dev, efx->mdio.prtad, devad, addr, value); in ef4_mdio_write() 102 mdio_set_flag(&efx->mdio, efx->mdio.prtad, devad, addr, mask, state); in ef4_mdio_set_flag()
|
D | falcon.c | 1573 int prtad, int devad, u16 addr, u16 value) in falcon_mdio_write() argument 1582 prtad, devad, addr, value); in falcon_mdio_write() 1595 EF4_POPULATE_OWORD_2(reg, FRF_AB_MD_PRT_ADR, prtad, in falcon_mdio_write() 1626 int prtad, int devad, u16 addr) in falcon_mdio_read() argument 1643 EF4_POPULATE_OWORD_2(reg, FRF_AB_MD_PRT_ADR, prtad, in falcon_mdio_read() 1658 prtad, devad, addr, rc); in falcon_mdio_read() 1668 prtad, devad, addr, rc); in falcon_mdio_read() 2192 efx->mdio.prtad = nvconfig->board_v2.port0_phy_addr; in falcon_probe_nvconfig() 2209 efx->phy_type, efx->mdio.prtad); in falcon_probe_nvconfig()
|
D | mdio_10g.c | 324 "no MDIO PHY present with ID %d\n", efx->mdio.prtad); in ef4_mdio_test_alive()
|
D | qt202x_phy.c | 415 &efx->mdio, efx->mdio.prtad, MDIO_MMD_PMAPMD, in qt202x_phy_reconfigure()
|
/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 | 586 cmd->base.phy_address = p->phy->mdio.prtad; in get_link_ksettings()
|
/drivers/net/phy/ |
D | phy.c | 300 int prtad, devad; in phy_mii_ioctl() local 309 prtad = mdio_phy_id_prtad(mii_data->phy_id); in phy_mii_ioctl() 313 prtad = mii_data->phy_id; in phy_mii_ioctl() 316 mii_data->val_out = mdiobus_read(phydev->mdio.bus, prtad, in phy_mii_ioctl() 322 prtad = mdio_phy_id_prtad(mii_data->phy_id); in phy_mii_ioctl() 326 prtad = mii_data->phy_id; in phy_mii_ioctl() 329 if (prtad == phydev->mdio.addr) { in phy_mii_ioctl() 367 mdiobus_write(phydev->mdio.bus, prtad, devad, val); in phy_mii_ioctl() 369 if (prtad == phydev->mdio.addr && in phy_mii_ioctl()
|
D | phylink.c | 1928 int prtad, devad; in phylink_phy_read() local 1931 prtad = mdio_phy_id_prtad(phy_id); in phylink_phy_read() 1955 prtad = phy_id; in phylink_phy_read() 1958 prtad = phy_id; in phylink_phy_read() 1961 return mdiobus_read(pl->phydev->mdio.bus, prtad, devad); in phylink_phy_read() 1968 int prtad, devad; in phylink_phy_write() local 1971 prtad = mdio_phy_id_prtad(phy_id); in phylink_phy_write() 1995 prtad = phy_id; in phylink_phy_write() 1998 prtad = phy_id; in phylink_phy_write() 2002 return mdiobus_write(phydev->mdio.bus, prtad, devad, val); in phylink_phy_write()
|
D | phy_device.c | 695 static int phy_c45_probe_present(struct mii_bus *bus, int prtad, int devad) in phy_c45_probe_present() argument 699 stat2 = mdiobus_c45_read(bus, prtad, devad, MDIO_STAT2); in phy_c45_probe_present()
|
/drivers/net/usb/ |
D | ax88179_178a.c | 351 static inline int ax88179_phy_mmd_indirect(struct usbnet *dev, u16 prtad, in ax88179_phy_mmd_indirect() argument 361 tmp16 = prtad; in ax88179_phy_mmd_indirect() 373 ax88179_phy_read_mmd_indirect(struct usbnet *dev, u16 prtad, u16 devad) in ax88179_phy_read_mmd_indirect() argument 378 ax88179_phy_mmd_indirect(dev, prtad, devad); in ax88179_phy_read_mmd_indirect() 389 ax88179_phy_write_mmd_indirect(struct usbnet *dev, u16 prtad, u16 devad, in ax88179_phy_write_mmd_indirect() argument 394 ax88179_phy_mmd_indirect(dev, prtad, devad); in ax88179_phy_write_mmd_indirect()
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-dev.c | 1150 static int xgbe_read_mmd_regs_v2(struct xgbe_prv_data *pdata, int prtad, in xgbe_read_mmd_regs_v2() argument 1183 static void xgbe_write_mmd_regs_v2(struct xgbe_prv_data *pdata, int prtad, in xgbe_write_mmd_regs_v2() argument 1213 static int xgbe_read_mmd_regs_v1(struct xgbe_prv_data *pdata, int prtad, in xgbe_read_mmd_regs_v1() argument 1242 static void xgbe_write_mmd_regs_v1(struct xgbe_prv_data *pdata, int prtad, in xgbe_write_mmd_regs_v1() argument 1268 static int xgbe_read_mmd_regs(struct xgbe_prv_data *pdata, int prtad, in xgbe_read_mmd_regs() argument 1273 return xgbe_read_mmd_regs_v1(pdata, prtad, mmd_reg); in xgbe_read_mmd_regs() 1277 return xgbe_read_mmd_regs_v2(pdata, prtad, mmd_reg); in xgbe_read_mmd_regs() 1281 static void xgbe_write_mmd_regs(struct xgbe_prv_data *pdata, int prtad, in xgbe_write_mmd_regs() argument 1286 return xgbe_write_mmd_regs_v1(pdata, prtad, mmd_reg, mmd_data); in xgbe_write_mmd_regs() 1290 return xgbe_write_mmd_regs_v2(pdata, prtad, mmd_reg, mmd_data); in xgbe_write_mmd_regs()
|
/drivers/net/ethernet/atheros/alx/ |
D | main.c | 1589 int prtad, int devad, u16 addr) in alx_mdio_read() argument 1596 if (prtad != hw->mdio.prtad) in alx_mdio_read() 1610 int prtad, int devad, u16 addr, u16 val) in alx_mdio_write() argument 1615 if (prtad != hw->mdio.prtad) in alx_mdio_write() 1841 hw->mdio.prtad = 0; in alx_probe()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_phy.c | 232 hw->phy.mdio.prtad = phy_addr; in ixgbe_probe_phy() 300 hw->phy.mdio.prtad = MDIO_PRTAD_NONE; in ixgbe_identify_phy_generic() 482 (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) | in ixgbe_read_phy_reg_mdi() 510 (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) | in ixgbe_read_phy_reg_mdi() 586 (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) | in ixgbe_write_phy_reg_mdi() 615 (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) | in ixgbe_write_phy_reg_mdi()
|
D | ixgbe_main.c | 8809 ixgbe_mdio_read(struct net_device *netdev, int prtad, int devad, u16 addr) in ixgbe_mdio_read() argument 8822 return mdiobus_read(adapter->mii_bus, prtad, regnum); in ixgbe_mdio_read() 8825 if (prtad != hw->phy.mdio.prtad) in ixgbe_mdio_read() 8833 static int ixgbe_mdio_write(struct net_device *netdev, int prtad, int devad, in ixgbe_mdio_write() argument 8845 return mdiobus_write(adapter->mii_bus, prtad, regnum, value); in ixgbe_mdio_write() 8848 if (prtad != hw->phy.mdio.prtad) in ixgbe_mdio_write() 10722 hw->phy.mdio.prtad = MDIO_PRTAD_NONE; in ixgbe_probe()
|
D | ixgbe_x550.c | 1818 if (hw->phy.mdio.prtad == MDIO_PRTAD_NONE) in ixgbe_setup_mac_link_sfp_x550a() 3182 hw->phy.mdio.prtad = (hw->phy.nw_mng_if_sel & in ixgbe_read_mng_if_sel_x550em()
|
/drivers/net/dsa/ |
D | mt7530.c | 78 core_read_mmd_indirect(struct mt7530_priv *priv, int prtad, int devad) in core_read_mmd_indirect() argument 89 ret = bus->write(bus, 0, MII_MMD_DATA, prtad); in core_read_mmd_indirect() 109 core_write_mmd_indirect(struct mt7530_priv *priv, int prtad, in core_write_mmd_indirect() argument 121 ret = bus->write(bus, 0, MII_MMD_DATA, prtad); in core_write_mmd_indirect()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_main.c | 3058 int ret = 0, prtad, devad; in cxgb_ioctl() local 3072 prtad = mdio_phy_id_prtad(data->phy_id); in cxgb_ioctl() 3075 prtad = data->phy_id; in cxgb_ioctl() 3083 ret = t4_mdio_rd(pi->adapter, mbox, prtad, devad, in cxgb_ioctl() 3086 ret = t4_mdio_wr(pi->adapter, mbox, prtad, devad, in cxgb_ioctl()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 11554 bp->mdio.prtad = bp->port.phy_addr; in bnx2x_get_port_hwinfo() 11558 bp->mdio.prtad = in bnx2x_get_port_hwinfo() 12757 static int bnx2x_mdio_read(struct net_device *netdev, int prtad, in bnx2x_mdio_read() argument 12765 prtad, devad, addr); in bnx2x_mdio_read() 12771 rc = bnx2x_phy_read(&bp->link_params, prtad, devad, addr, &value); in bnx2x_mdio_read() 12781 static int bnx2x_mdio_write(struct net_device *netdev, int prtad, int devad, in bnx2x_mdio_write() argument 12789 prtad, devad, addr, value); in bnx2x_mdio_write() 12795 rc = bnx2x_phy_write(&bp->link_params, prtad, devad, addr, value); in bnx2x_mdio_write() 13261 bp->mdio.prtad = MDIO_PRTAD_NONE; in bnx2x_init_dev()
|