Lines Matching refs:bmcr

3389 	u32 bmcr;  in nv_update_linkspeed()  local
3398 bmcr = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ); in nv_update_linkspeed()
3399 if (bmcr & BMCR_LOOPBACK) { in nv_update_linkspeed()
4478 int adv, bmcr; in nv_set_link_ksettings() local
4509 bmcr = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ); in nv_set_link_ksettings()
4511 bmcr |= BMCR_ANENABLE; in nv_set_link_ksettings()
4514 if (phy_reset(dev, bmcr)) { in nv_set_link_ksettings()
4519 bmcr |= (BMCR_ANENABLE | BMCR_ANRESTART); in nv_set_link_ksettings()
4520 mii_rw(dev, np->phyaddr, MII_BMCR, bmcr); in nv_set_link_ksettings()
4523 int adv, bmcr; in nv_set_link_ksettings() local
4555 bmcr = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ); in nv_set_link_ksettings()
4556 bmcr &= ~(BMCR_ANENABLE|BMCR_SPEED100|BMCR_SPEED1000|BMCR_FULLDPLX); in nv_set_link_ksettings()
4558 bmcr |= BMCR_FULLDPLX; in nv_set_link_ksettings()
4560 bmcr |= BMCR_SPEED100; in nv_set_link_ksettings()
4563 if (phy_reset(dev, bmcr)) { in nv_set_link_ksettings()
4568 mii_rw(dev, np->phyaddr, MII_BMCR, bmcr); in nv_set_link_ksettings()
4613 int bmcr; in nv_nway_reset() local
4629 bmcr = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ); in nv_nway_reset()
4631 bmcr |= BMCR_ANENABLE; in nv_nway_reset()
4633 if (phy_reset(dev, bmcr)) { in nv_nway_reset()
4638 bmcr |= (BMCR_ANENABLE | BMCR_ANRESTART); in nv_nway_reset()
4639 mii_rw(dev, np->phyaddr, MII_BMCR, bmcr); in nv_nway_reset()
4807 int adv, bmcr; in nv_set_pauseparam() local
4851 bmcr = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ); in nv_set_pauseparam()
4852 bmcr |= (BMCR_ANENABLE | BMCR_ANRESTART); in nv_set_pauseparam()
4853 mii_rw(dev, np->phyaddr, MII_BMCR, bmcr); in nv_set_pauseparam()