Home
last modified time | relevance | path

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

12

/drivers/net/
Dmdio.c26 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/
Dmcdi_port.c21 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()
Dsiena.c319 efx->mdio.prtad = MDIO_PRTAD_NONE; in siena_probe_nic()
Dmcdi_port_common.c454 efx->mdio.prtad = phy_data->port; in efx_mcdi_phy_probe()
/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()
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()
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()
/drivers/net/ethernet/sfc/falcon/
Dmdio_10g.h24 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()
Dfalcon.c1573 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()
Dmdio_10g.c324 "no MDIO PHY present with ID %d\n", efx->mdio.prtad); in ef4_mdio_test_alive()
Dqt202x_phy.c415 &efx->mdio, efx->mdio.prtad, MDIO_MMD_PMAPMD, in qt202x_phy_reconfigure()
/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.c586 cmd->base.phy_address = p->phy->mdio.prtad; in get_link_ksettings()
/drivers/net/phy/
Dphy.c300 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()
Dphylink.c1928 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()
Dphy_device.c695 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/
Dax88179_178a.c351 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/
Dxgbe-dev.c1150 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/
Dmain.c1589 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/
Dixgbe_phy.c232 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()
Dixgbe_main.c8809 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()
Dixgbe_x550.c1818 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/
Dmt7530.c78 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/
Dcxgb4_main.c3058 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/
Dbnx2x_main.c11554 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()

12