Lines Matching refs:bmsr
300 u32 bmsr; in bnx2_report_fw_link() local
334 bnx2_read_phy(bp, MII_BMSR, &bmsr); in bnx2_report_fw_link()
335 bnx2_read_phy(bp, MII_BMSR, &bmsr); in bnx2_report_fw_link()
337 if (!(bmsr & BMSR_ANEGCOMPLETE) || in bnx2_report_fw_link()
661 u32 bmsr; in bnx2_set_link() local
671 bnx2_read_phy(bp, MII_BMSR, &bmsr); in bnx2_set_link()
672 bnx2_read_phy(bp, MII_BMSR, &bmsr); in bnx2_set_link()
680 bmsr |= BMSR_LSTATUS; in bnx2_set_link()
682 bmsr &= ~BMSR_LSTATUS; in bnx2_set_link()
685 if (bmsr & BMSR_LSTATUS) { in bnx2_set_link()
957 u32 bmsr; in bnx2_setup_copper_phy() local
960 bnx2_read_phy(bp, MII_BMSR, &bmsr); in bnx2_setup_copper_phy()
961 bnx2_read_phy(bp, MII_BMSR, &bmsr); in bnx2_setup_copper_phy()
963 if (bmsr & BMSR_LSTATUS) { in bnx2_setup_copper_phy()
968 bnx2_read_phy(bp, MII_BMSR, &bmsr); in bnx2_setup_copper_phy()
969 bnx2_read_phy(bp, MII_BMSR, &bmsr); in bnx2_setup_copper_phy()
971 } while ((bmsr & BMSR_LSTATUS) && (i < 620)); in bnx2_setup_copper_phy()
980 if (bmsr & BMSR_LSTATUS) { in bnx2_setup_copper_phy()
2433 u32 bmsr; in bnx2_poll_link() local
2435 bnx2_read_phy(bp, MII_BMSR, &bmsr); in bnx2_poll_link()
2436 bnx2_read_phy(bp, MII_BMSR, &bmsr); in bnx2_poll_link()