Home
last modified time | relevance | path

Searched refs:mii_data (Results 1 – 15 of 15) sorted by relevance

/Linux-v5.15/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_mdio.c87 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/
Dmdio.c528 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 …]
Dmii.c583 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/
Dphy.c284 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/
Dfec_mpc52xx_phy.c38 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()
Dfec_mpc52xx.h47 u32 mii_data; /* FEC + 0x040 */ member
/Linux-v5.15/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_mdio.c29 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/
Dau1000_eth.h63 u32 mii_data; member
Dau1000_eth.c273 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/
Dmdio.h212 struct mii_ioctl_data *mii_data, int cmd);
Dmii.h47 struct mii_ioctl_data *mii_data, int cmd,
/Linux-v5.15/drivers/net/ethernet/amd/xgbe/
Dxgbe-phy-v2.c620 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/
Dqeth_core_main.c6617 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/
Djme.c2617 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/
Dphy.rst397 struct mii_ioctl_data *mii_data, int cmd);