Home
last modified time | relevance | path

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

/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 …]
/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 …]
/drivers/net/phy/
Dphy.c297 struct mii_ioctl_data *mii_data = if_mii(ifr); in phy_mii_ioctl() local
298 u16 val = mii_data->val_in; in phy_mii_ioctl()
304 mii_data->phy_id = phydev->mdio.addr; in phy_mii_ioctl()
308 if (mdio_phy_id_is_c45(mii_data->phy_id)) { in phy_mii_ioctl()
309 prtad = mdio_phy_id_prtad(mii_data->phy_id); in phy_mii_ioctl()
310 devad = mdio_phy_id_devad(mii_data->phy_id); in phy_mii_ioctl()
311 devad = mdiobus_c45_addr(devad, mii_data->reg_num); in phy_mii_ioctl()
313 prtad = mii_data->phy_id; in phy_mii_ioctl()
314 devad = mii_data->reg_num; in phy_mii_ioctl()
316 mii_data->val_out = mdiobus_read(phydev->mdio.bus, prtad, in phy_mii_ioctl()
[all …]
/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
/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()
/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()
/drivers/net/ethernet/amd/xgbe/
Dxgbe-phy-v2.c621 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()
/drivers/s390/net/
Dqeth_core_main.c6615 struct mii_ioctl_data *mii_data; in qeth_do_ioctl() local
6620 mii_data = if_mii(rq); in qeth_do_ioctl()
6621 mii_data->phy_id = 0; in qeth_do_ioctl()
6624 mii_data = if_mii(rq); in qeth_do_ioctl()
6625 if (mii_data->phy_id != 0) in qeth_do_ioctl()
6628 mii_data->val_out = qeth_mdio_read(dev, in qeth_do_ioctl()
6629 mii_data->phy_id, mii_data->reg_num); in qeth_do_ioctl()
/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()