Lines Matching refs:miicontrol
1181 u32 miicontrol; in phy_reset() local
1184 miicontrol = BMCR_RESET | bmcr_setup; in phy_reset()
1185 if (mii_rw(dev, np->phyaddr, MII_BMCR, miicontrol)) in phy_reset()
1192 while (miicontrol & BMCR_RESET) { in phy_reset()
1194 miicontrol = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ); in phy_reset()
4878 u32 miicontrol; in nv_set_loopback() local
4882 miicontrol = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ); in nv_set_loopback()
4884 if (miicontrol & BMCR_LOOPBACK) { in nv_set_loopback()
4891 miicontrol |= BMCR_LOOPBACK | BMCR_FULLDPLX | BMCR_SPEED1000; in nv_set_loopback()
4892 err = mii_rw(dev, np->phyaddr, MII_BMCR, miicontrol); in nv_set_loopback()
4910 if (!(miicontrol & BMCR_LOOPBACK)) { in nv_set_loopback()