/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_mdio.c | 87 unsigned int mii_data = priv->hw->mii.data; in stmmac_xgmac2_mdio_read() local 96 if (readl_poll_timeout(priv->ioaddr + mii_data, tmp, in stmmac_xgmac2_mdio_read() 121 if (readl_poll_timeout(priv->ioaddr + mii_data, tmp, in stmmac_xgmac2_mdio_read() 129 writel(value, priv->ioaddr + mii_data); in stmmac_xgmac2_mdio_read() 132 if (readl_poll_timeout(priv->ioaddr + mii_data, tmp, in stmmac_xgmac2_mdio_read() 139 ret = (int)readl(priv->ioaddr + mii_data) & GENMASK(15, 0); in stmmac_xgmac2_mdio_read() 153 unsigned int mii_data = priv->hw->mii.data; in stmmac_xgmac2_mdio_write() local 162 if (readl_poll_timeout(priv->ioaddr + mii_data, tmp, in stmmac_xgmac2_mdio_write() 188 if (readl_poll_timeout(priv->ioaddr + mii_data, tmp, in stmmac_xgmac2_mdio_write() 196 writel(value, priv->ioaddr + mii_data); in stmmac_xgmac2_mdio_write() [all …]
|
/linux-6.1.9/drivers/net/ |
D | mdio.c | 528 struct mii_ioctl_data *mii_data, int cmd) in mdio_mii_ioctl() argument 531 u16 addr = mii_data->reg_num; in mdio_mii_ioctl() 538 mii_data->phy_id = mdio->prtad; in mdio_mii_ioctl() 550 mdio_phy_id_is_c45(mii_data->phy_id)) { in mdio_mii_ioctl() 551 prtad = mdio_phy_id_prtad(mii_data->phy_id); in mdio_mii_ioctl() 552 devad = mdio_phy_id_devad(mii_data->phy_id); in mdio_mii_ioctl() 554 mii_data->phy_id < 0x20) { in mdio_mii_ioctl() 555 prtad = mii_data->phy_id; in mdio_mii_ioctl() 560 mii_data->phy_id == mdio->prtad) { in mdio_mii_ioctl() 591 mii_data->val_out = rc; in mdio_mii_ioctl() [all …]
|
D | mii.c | 583 struct mii_ioctl_data *mii_data, int cmd, in generic_mii_ioctl() argument 592 mii_data->phy_id &= mii_if->phy_id_mask; in generic_mii_ioctl() 593 mii_data->reg_num &= mii_if->reg_num_mask; in generic_mii_ioctl() 597 mii_data->phy_id = mii_if->phy_id; in generic_mii_ioctl() 601 mii_data->val_out = in generic_mii_ioctl() 602 mii_if->mdio_read(mii_if->dev, mii_data->phy_id, in generic_mii_ioctl() 603 mii_data->reg_num); in generic_mii_ioctl() 607 u16 val = mii_data->val_in; in generic_mii_ioctl() 609 if (mii_data->phy_id == mii_if->phy_id) { in generic_mii_ioctl() 610 switch(mii_data->reg_num) { in generic_mii_ioctl() [all …]
|
/linux-6.1.9/drivers/net/phy/ |
D | phy.c | 313 struct mii_ioctl_data *mii_data = if_mii(ifr); in phy_mii_ioctl() local 314 u16 val = mii_data->val_in; in phy_mii_ioctl() 320 mii_data->phy_id = phydev->mdio.addr; in phy_mii_ioctl() 324 if (mdio_phy_id_is_c45(mii_data->phy_id)) { in phy_mii_ioctl() 325 prtad = mdio_phy_id_prtad(mii_data->phy_id); in phy_mii_ioctl() 326 devad = mdio_phy_id_devad(mii_data->phy_id); in phy_mii_ioctl() 327 mii_data->val_out = mdiobus_c45_read( in phy_mii_ioctl() 329 mii_data->reg_num); in phy_mii_ioctl() 331 mii_data->val_out = mdiobus_read( in phy_mii_ioctl() 332 phydev->mdio.bus, mii_data->phy_id, in phy_mii_ioctl() [all …]
|
/linux-6.1.9/drivers/net/ethernet/freescale/ |
D | fec_mpc52xx_phy.c | 39 out_be32(&fec->mii_data, value); in mpc52xx_fec_mdio_transfer() 49 in_be32(&fec->mii_data) & FEC_MII_DATA_DATAMSK : 0; in mpc52xx_fec_mdio_transfer()
|
D | fec_mpc52xx.h | 47 u32 mii_data; /* FEC + 0x040 */ member
|
/linux-6.1.9/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_mdio.c | 29 static int sxgbe_mdio_busy_wait(void __iomem *ioaddr, unsigned int mii_data) in sxgbe_mdio_busy_wait() argument 34 if (!(readl(ioaddr + mii_data) & SXGBE_MII_BUSY)) in sxgbe_mdio_busy_wait()
|
/linux-6.1.9/drivers/net/ethernet/amd/ |
D | au1000_eth.h | 63 u32 mii_data; member
|
D | au1000_eth.c | 273 u32 *const mii_data_reg = &aup->mac->mii_data; in au1000_mdio_read() 306 u32 *const mii_data_reg = &aup->mac->mii_data; in au1000_mdio_write()
|
/linux-6.1.9/include/linux/ |
D | mii.h | 47 struct mii_ioctl_data *mii_data, int cmd,
|
D | mdio.h | 214 struct mii_ioctl_data *mii_data, int cmd);
|
/linux-6.1.9/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-phy-v2.c | 621 u8 mii_data[3]; in xgbe_phy_i2c_mii_write() local 628 mii_data[0] = reg & 0xff; in xgbe_phy_i2c_mii_write() 629 mii_val = (__be16 *)&mii_data[1]; in xgbe_phy_i2c_mii_write() 633 mii_data, sizeof(mii_data)); in xgbe_phy_i2c_mii_write()
|
/linux-6.1.9/drivers/s390/net/ |
D | qeth_core_main.c | 6526 struct mii_ioctl_data *mii_data; in qeth_do_ioctl() local 6531 mii_data = if_mii(rq); in qeth_do_ioctl() 6532 mii_data->phy_id = 0; in qeth_do_ioctl() 6535 mii_data = if_mii(rq); in qeth_do_ioctl() 6536 if (mii_data->phy_id != 0) in qeth_do_ioctl() 6539 mii_data->val_out = qeth_mdio_read(dev, in qeth_do_ioctl() 6540 mii_data->phy_id, mii_data->reg_num); in qeth_do_ioctl()
|
/linux-6.1.9/drivers/net/ethernet/ |
D | jme.c | 2618 struct mii_ioctl_data *mii_data = if_mii(rq); in jme_ioctl() local 2622 u16 val = mii_data->val_in; in jme_ioctl() 2629 rc = generic_mii_ioctl(&jme->mii_if, mii_data, cmd, &duplex_chg); in jme_ioctl()
|
/linux-6.1.9/Documentation/networking/ |
D | phy.rst | 417 struct mii_ioctl_data *mii_data, int cmd);
|