Searched refs:bmsr (Results 1 – 2 of 2) sorted by relevance
124 uint16_t pa, tmp, bmsr, bmcr; in ftmac110_phyqry() local148 bmsr = mdio_read(dev, chip->phy_addr, MII_BMSR); in ftmac110_phyqry()149 chip->lnkup = (bmsr & BMSR_LSTATUS) ? 1 : 0; in ftmac110_phyqry()152 if (!(bmcr & BMCR_ANENABLE) || (bmsr & BMSR_ANEGCOMPLETE)) in ftmac110_phyqry()161 else if (!(bmsr & BMSR_ANEGCOMPLETE)) in ftmac110_phyqry()165 if ((bmcr & BMCR_ANENABLE) && (bmsr & BMSR_ANEGCOMPLETE)) { in ftmac110_phyqry()
40 int oldadv, adv, bmsr; in genphy_config_advert() local81 bmsr = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMSR); in genphy_config_advert()82 if (bmsr < 0) in genphy_config_advert()83 return bmsr; in genphy_config_advert()89 if (!(bmsr & BMSR_ESTATEN)) in genphy_config_advert()