Lines Matching refs:mii_reg
224 unsigned int mii_reg;
230 mii_reg = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMSR);
236 if (phydev->link && mii_reg & BMSR_LSTATUS)
240 !(mii_reg & BMSR_ANEGCOMPLETE)) {
245 while (!(mii_reg & BMSR_ANEGCOMPLETE)) {
265 mii_reg = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMSR);
271 mii_reg = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMSR);
273 if (mii_reg & BMSR_LSTATUS)
293 int mii_reg = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMSR);
355 if ((mii_reg & BMSR_ESTATEN) && !(mii_reg & BMSR_ERCAP))