Lines Matching refs:bmcr
133 unsigned int bmcr, status, lpa, adv; in vsc8211_get_link_status() local
136 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMCR, &bmcr); in vsc8211_get_link_status()
154 if (!(bmcr & BMCR_ANENABLE)) { in vsc8211_get_link_status()
155 dplx = (bmcr & BMCR_FULLDPLX) ? DUPLEX_FULL : DUPLEX_HALF; in vsc8211_get_link_status()
156 if (bmcr & BMCR_SPEED1000) in vsc8211_get_link_status()
158 else if (bmcr & BMCR_SPEED100) in vsc8211_get_link_status()
209 unsigned int bmcr, status, lpa, adv; in vsc8211_get_link_status_fiber() local
212 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMCR, &bmcr); in vsc8211_get_link_status_fiber()
230 if (!(bmcr & BMCR_ANENABLE)) { in vsc8211_get_link_status_fiber()
231 dplx = (bmcr & BMCR_FULLDPLX) ? DUPLEX_FULL : DUPLEX_HALF; in vsc8211_get_link_status_fiber()
232 if (bmcr & BMCR_SPEED1000) in vsc8211_get_link_status_fiber()
234 else if (bmcr & BMCR_SPEED100) in vsc8211_get_link_status_fiber()