Home
last modified time | relevance | path

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

12

/linux-5.19.10/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 …]
/linux-5.19.10/include/linux/
Dmdio.h147 int prtad; member
152 int (*mdio_read)(struct net_device *dev, int prtad, int devad,
154 int (*mdio_write)(struct net_device *dev, int prtad, int devad,
166 extern int mdio45_probe(struct mdio_if_info *mdio, int prtad);
168 int prtad, int devad, u16 addr, int mask,
466 static inline int __mdiobus_c45_read(struct mii_bus *bus, int prtad, int devad, in __mdiobus_c45_read() argument
469 return __mdiobus_read(bus, prtad, mdiobus_c45_addr(devad, regnum)); in __mdiobus_c45_read()
472 static inline int __mdiobus_c45_write(struct mii_bus *bus, int prtad, int devad, in __mdiobus_c45_write() argument
475 return __mdiobus_write(bus, prtad, mdiobus_c45_addr(devad, regnum), in __mdiobus_c45_write()
479 static inline int mdiobus_c45_read(struct mii_bus *bus, int prtad, int devad, in mdiobus_c45_read() argument
[all …]
/linux-5.19.10/drivers/net/ethernet/sfc/siena/
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.c322 efx->mdio.prtad = MDIO_PRTAD_NONE; in siena_probe_nic()
Dmcdi_port_common.c453 efx->mdio.prtad = phy_data->port; in efx_siena_mcdi_phy_probe()
/linux-5.19.10/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()
Dmcdi_port_common.c452 efx->mdio.prtad = phy_data->port; in efx_mcdi_phy_probe()
/linux-5.19.10/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()
/linux-5.19.10/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()
/linux-5.19.10/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()
/linux-5.19.10/drivers/net/phy/
Dphy.c288 int prtad, devad; in phy_mii_ioctl() local
297 prtad = mdio_phy_id_prtad(mii_data->phy_id); in phy_mii_ioctl()
300 phydev->mdio.bus, prtad, devad, in phy_mii_ioctl()
311 prtad = mdio_phy_id_prtad(mii_data->phy_id); in phy_mii_ioctl()
314 prtad = mii_data->phy_id; in phy_mii_ioctl()
317 if (prtad == phydev->mdio.addr) { in phy_mii_ioctl()
356 mdiobus_c45_write(phydev->mdio.bus, prtad, devad, in phy_mii_ioctl()
359 mdiobus_write(phydev->mdio.bus, prtad, devad, val); in phy_mii_ioctl()
361 if (prtad == phydev->mdio.addr && in phy_mii_ioctl()
Dphylink.c2301 int prtad, devad; in phylink_phy_read() local
2304 prtad = mdio_phy_id_prtad(phy_id); in phylink_phy_read()
2306 return mdiobus_c45_read(pl->phydev->mdio.bus, prtad, devad, in phylink_phy_read()
2331 prtad = phy_id; in phylink_phy_read()
2332 return mdiobus_c45_read(pl->phydev->mdio.bus, prtad, devad, in phylink_phy_read()
2343 int prtad, devad; in phylink_phy_write() local
2346 prtad = mdio_phy_id_prtad(phy_id); in phylink_phy_write()
2348 return mdiobus_c45_write(pl->phydev->mdio.bus, prtad, devad, in phylink_phy_write()
Dphy_device.c694 static int phy_c45_probe_present(struct mii_bus *bus, int prtad, int devad) in phy_c45_probe_present() argument
698 stat2 = mdiobus_c45_read(bus, prtad, devad, MDIO_STAT2); in phy_c45_probe_present()
/linux-5.19.10/include/uapi/linux/
Dmdio.h408 static inline __u16 mdio_phy_id_c45(int prtad, int devad) in mdio_phy_id_c45() argument
410 return MDIO_PHY_ID_C45 | (prtad << 5) | devad; in mdio_phy_id_c45()
/linux-5.19.10/drivers/net/ethernet/amd/xgbe/
Dxgbe-dev.c1143 static int xgbe_read_mmd_regs_v2(struct xgbe_prv_data *pdata, int prtad, in xgbe_read_mmd_regs_v2() argument
1176 static void xgbe_write_mmd_regs_v2(struct xgbe_prv_data *pdata, int prtad, in xgbe_write_mmd_regs_v2() argument
1206 static int xgbe_read_mmd_regs_v1(struct xgbe_prv_data *pdata, int prtad, in xgbe_read_mmd_regs_v1() argument
1235 static void xgbe_write_mmd_regs_v1(struct xgbe_prv_data *pdata, int prtad, in xgbe_write_mmd_regs_v1() argument
1261 static int xgbe_read_mmd_regs(struct xgbe_prv_data *pdata, int prtad, in xgbe_read_mmd_regs() argument
1266 return xgbe_read_mmd_regs_v1(pdata, prtad, mmd_reg); in xgbe_read_mmd_regs()
1270 return xgbe_read_mmd_regs_v2(pdata, prtad, mmd_reg); in xgbe_read_mmd_regs()
1274 static void xgbe_write_mmd_regs(struct xgbe_prv_data *pdata, int prtad, in xgbe_write_mmd_regs() argument
1279 return xgbe_write_mmd_regs_v1(pdata, prtad, mmd_reg, mmd_data); in xgbe_write_mmd_regs()
1283 return xgbe_write_mmd_regs_v2(pdata, prtad, mmd_reg, mmd_data); in xgbe_write_mmd_regs()
/linux-5.19.10/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()
/linux-5.19.10/drivers/net/usb/
Dax88179_178a.c371 static inline int ax88179_phy_mmd_indirect(struct usbnet *dev, u16 prtad, in ax88179_phy_mmd_indirect() argument
381 tmp16 = prtad; in ax88179_phy_mmd_indirect()
393 ax88179_phy_read_mmd_indirect(struct usbnet *dev, u16 prtad, u16 devad) in ax88179_phy_read_mmd_indirect() argument
398 ax88179_phy_mmd_indirect(dev, prtad, devad); in ax88179_phy_read_mmd_indirect()
409 ax88179_phy_write_mmd_indirect(struct usbnet *dev, u16 prtad, u16 devad, in ax88179_phy_write_mmd_indirect() argument
414 ax88179_phy_mmd_indirect(dev, prtad, devad); in ax88179_phy_write_mmd_indirect()
/linux-5.19.10/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()
483 (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) | in ixgbe_read_phy_reg_mdi()
511 (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) | in ixgbe_read_phy_reg_mdi()
587 (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) | in ixgbe_write_phy_reg_mdi()
616 (hw->phy.mdio.prtad << IXGBE_MSCA_PHY_ADDR_SHIFT) | in ixgbe_write_phy_reg_mdi()
Dixgbe_main.c8861 ixgbe_mdio_read(struct net_device *netdev, int prtad, int devad, u16 addr) in ixgbe_mdio_read() argument
8874 return mdiobus_read(adapter->mii_bus, prtad, regnum); in ixgbe_mdio_read()
8877 if (prtad != hw->phy.mdio.prtad) in ixgbe_mdio_read()
8885 static int ixgbe_mdio_write(struct net_device *netdev, int prtad, int devad, in ixgbe_mdio_write() argument
8897 return mdiobus_write(adapter->mii_bus, prtad, regnum, value); in ixgbe_mdio_write()
8900 if (prtad != hw->phy.mdio.prtad) in ixgbe_mdio_write()
10790 hw->phy.mdio.prtad = MDIO_PRTAD_NONE; in ixgbe_probe()
/linux-5.19.10/drivers/net/dsa/
Dmt7530.c83 core_read_mmd_indirect(struct mt7530_priv *priv, int prtad, int devad) in core_read_mmd_indirect() argument
94 ret = bus->write(bus, 0, MII_MMD_DATA, prtad); in core_read_mmd_indirect()
114 core_write_mmd_indirect(struct mt7530_priv *priv, int prtad, in core_write_mmd_indirect() argument
126 ret = bus->write(bus, 0, MII_MMD_DATA, prtad); in core_write_mmd_indirect()

12