/Linux-v5.15/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_mdio.c | 87 unsigned int mii_data = priv->hw->mii.data; in stmmac_xgmac2_mdio_read() local 98 if (readl_poll_timeout(priv->ioaddr + mii_data, tmp, in stmmac_xgmac2_mdio_read() 123 if (readl_poll_timeout(priv->ioaddr + mii_data, tmp, in stmmac_xgmac2_mdio_read() 131 writel(value, priv->ioaddr + mii_data); in stmmac_xgmac2_mdio_read() 134 if (readl_poll_timeout(priv->ioaddr + mii_data, tmp, in stmmac_xgmac2_mdio_read() 141 ret = (int)readl(priv->ioaddr + mii_data) & GENMASK(15, 0); in stmmac_xgmac2_mdio_read() 155 unsigned int mii_data = priv->hw->mii.data; in stmmac_xgmac2_mdio_write() local 166 if (readl_poll_timeout(priv->ioaddr + mii_data, tmp, in stmmac_xgmac2_mdio_write() 192 if (readl_poll_timeout(priv->ioaddr + mii_data, tmp, in stmmac_xgmac2_mdio_write() 200 writel(value, priv->ioaddr + mii_data); in stmmac_xgmac2_mdio_write() [all …]
|
/Linux-v5.15/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-v5.15/drivers/net/phy/ |
D | phy.c | 284 struct mii_ioctl_data *mii_data = if_mii(ifr); in phy_mii_ioctl() local 285 u16 val = mii_data->val_in; in phy_mii_ioctl() 291 mii_data->phy_id = phydev->mdio.addr; in phy_mii_ioctl() 295 if (mdio_phy_id_is_c45(mii_data->phy_id)) { in phy_mii_ioctl() 296 prtad = mdio_phy_id_prtad(mii_data->phy_id); in phy_mii_ioctl() 297 devad = mdio_phy_id_devad(mii_data->phy_id); in phy_mii_ioctl() 298 devad = mdiobus_c45_addr(devad, mii_data->reg_num); in phy_mii_ioctl() 300 prtad = mii_data->phy_id; in phy_mii_ioctl() 301 devad = mii_data->reg_num; in phy_mii_ioctl() 303 mii_data->val_out = mdiobus_read(phydev->mdio.bus, prtad, in phy_mii_ioctl() [all …]
|
/Linux-v5.15/drivers/net/ethernet/freescale/ |
D | fec_mpc52xx_phy.c | 38 out_be32(&fec->mii_data, value); in mpc52xx_fec_mdio_transfer() 48 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-v5.15/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-v5.15/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-v5.15/include/linux/ |
D | mdio.h | 212 struct mii_ioctl_data *mii_data, int cmd);
|
D | mii.h | 47 struct mii_ioctl_data *mii_data, int cmd,
|
/Linux-v5.15/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-phy-v2.c | 620 u8 mii_data[3]; in xgbe_phy_i2c_mii_write() local 627 mii_data[0] = reg & 0xff; in xgbe_phy_i2c_mii_write() 628 mii_val = (__be16 *)&mii_data[1]; in xgbe_phy_i2c_mii_write() 632 mii_data, sizeof(mii_data)); in xgbe_phy_i2c_mii_write()
|
/Linux-v5.15/drivers/s390/net/ |
D | qeth_core_main.c | 6617 struct mii_ioctl_data *mii_data; in qeth_do_ioctl() local 6622 mii_data = if_mii(rq); in qeth_do_ioctl() 6623 mii_data->phy_id = 0; in qeth_do_ioctl() 6626 mii_data = if_mii(rq); in qeth_do_ioctl() 6627 if (mii_data->phy_id != 0) in qeth_do_ioctl() 6630 mii_data->val_out = qeth_mdio_read(dev, in qeth_do_ioctl() 6631 mii_data->phy_id, mii_data->reg_num); in qeth_do_ioctl()
|
/Linux-v5.15/drivers/net/ethernet/ |
D | jme.c | 2617 struct mii_ioctl_data *mii_data = if_mii(rq); in jme_ioctl() local 2621 u16 val = mii_data->val_in; in jme_ioctl() 2628 rc = generic_mii_ioctl(&jme->mii_if, mii_data, cmd, &duplex_chg); in jme_ioctl()
|
/Linux-v5.15/Documentation/networking/ |
D | phy.rst | 397 struct mii_ioctl_data *mii_data, int cmd);
|