Home
last modified time | relevance | path

Searched refs:prtad (Results 1 – 24 of 24) sorted by relevance

/drivers/net/
Dmdio.c29 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/
Dxgbe-mdio.c126 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()
Dxgbe-dev.c687 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/
Daq100x.c75 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()
Dael1002.c103 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()
Dcommon.h564 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()
Dcxgb3_main.c1817 cmd->phy_address = p->phy.mdio.prtad; in get_settings()
Dt3_hw.c3769 ret = pti->phy_prep(&p->phy, adapter, p->phy.mdio.prtad, NULL); in t3_replay_prep_adapter()
/drivers/net/ethernet/sfc/
Dmdio_10g.h27 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()
Dmcdi_port.c123 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()
Dfalcon.c1557 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()
Dmdio_10g.c315 "no MDIO PHY present with ID %d\n", efx->mdio.prtad); in efx_mdio_test_alive()
Dqt202x_phy.c418 &efx->mdio, efx->mdio.prtad, MDIO_MMD_PMAPMD, in qt202x_phy_reconfigure()
Dsiena.c300 efx->mdio.prtad = MDIO_PRTAD_NONE; in siena_probe_nic()
/drivers/net/ethernet/chelsio/cxgb/
Dcphy.h113 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()
Dcxgb2.c588 cmd->phy_address = p->phy->mdio.prtad; in get_settings()
/drivers/net/phy/
Dphy.c961 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/
Dmain.c1114 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/
Dixgbe_phy.c65 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()
Dixgbe_main.c7243 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/
Dax88179_178a.c382 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/
Dcxgb4_main.c4835 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/
Dbnx2x_main.c11281 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()
Dbnx2x_ethtool.c287 cmd->phy_address = bp->mdio.prtad; in bnx2x_get_settings()