Lines Matching refs:mii_control
1395 u32 mii_status, mii_control, mii_control_1000, reg; in phy_init() local
1465 mii_control = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ); in phy_init()
1466 mii_control |= BMCR_ANENABLE; in phy_init()
1472 mii_control |= BMCR_ANRESTART; in phy_init()
1473 if (mii_rw(dev, np->phyaddr, MII_BMCR, mii_control)) { in phy_init()
1482 if (phy_reset(dev, mii_control)) { in phy_init()
1525 mii_control = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ); in phy_init()
1526 mii_control |= (BMCR_ANRESTART | BMCR_ANENABLE); in phy_init()
1528 mii_control |= BMCR_PDOWN; in phy_init()
1529 if (mii_rw(dev, np->phyaddr, MII_BMCR, mii_control)) in phy_init()
6083 u16 phy_reserved, mii_control; in nv_restore_phy() local
6096 mii_control = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ); in nv_restore_phy()
6097 mii_control |= (BMCR_ANRESTART | BMCR_ANENABLE); in nv_restore_phy()
6098 mii_rw(dev, np->phyaddr, MII_BMCR, mii_control); in nv_restore_phy()