Searched refs:mii_data (Results 1 – 12 of 12) sorted by relevance
/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 …]
|
/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 …]
|
/drivers/net/phy/ |
D | phy.c | 297 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/ |
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
|
/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()
|
/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()
|
/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()
|
/drivers/s390/net/ |
D | qeth_core_main.c | 6615 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/ |
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()
|