• Home
  • Raw
  • Download

Lines Matching refs:bmcr

1161 	u32 bmcr, local_adv, remote_adv, common;  in bnx2_5706s_linkup()  local
1166 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_5706s_linkup()
1167 if (bmcr & BMCR_FULLDPLX) { in bnx2_5706s_linkup()
1174 if (!(bmcr & BMCR_ANENABLE)) { in bnx2_5706s_linkup()
1198 u32 bmcr; in bnx2_copper_linkup() local
1202 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_copper_linkup()
1203 if (bmcr & BMCR_ANENABLE) { in bnx2_copper_linkup()
1246 if (bmcr & BMCR_SPEED100) { in bnx2_copper_linkup()
1252 if (bmcr & BMCR_FULLDPLX) { in bnx2_copper_linkup()
1442 u32 uninitialized_var(bmcr); in bnx2_enable_forced_2g5()
1462 err = bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_enable_forced_2g5()
1465 err = bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_enable_forced_2g5()
1467 bmcr |= BCM5708S_BMCR_FORCE_2500; in bnx2_enable_forced_2g5()
1476 bmcr &= ~BMCR_ANENABLE; in bnx2_enable_forced_2g5()
1478 bmcr |= BMCR_FULLDPLX; in bnx2_enable_forced_2g5()
1480 bnx2_write_phy(bp, bp->mii_bmcr, bmcr); in bnx2_enable_forced_2g5()
1486 u32 uninitialized_var(bmcr); in bnx2_disable_forced_2g5()
1504 err = bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_disable_forced_2g5()
1507 err = bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_disable_forced_2g5()
1509 bmcr &= ~BCM5708S_BMCR_FORCE_2500; in bnx2_disable_forced_2g5()
1518 bmcr |= BMCR_SPEED1000 | BMCR_ANENABLE | BMCR_ANRESTART; in bnx2_disable_forced_2g5()
1519 bnx2_write_phy(bp, bp->mii_bmcr, bmcr); in bnx2_disable_forced_2g5()
1599 u32 bmcr; in bnx2_set_link() local
1601 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_set_link()
1602 bmcr |= BMCR_ANENABLE; in bnx2_set_link()
1603 bnx2_write_phy(bp, bp->mii_bmcr, bmcr); in bnx2_set_link()
1743 u32 adv, bmcr; in bnx2_setup_serdes_phy() local
1763 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_setup_serdes_phy()
1764 new_bmcr = bmcr & ~BMCR_ANENABLE; in bnx2_setup_serdes_phy()
1779 new_bmcr = bmcr & ~BCM5708S_BMCR_FORCE_2500; in bnx2_setup_serdes_phy()
1790 if ((new_bmcr != bmcr) || (force_link_down)) { in bnx2_setup_serdes_phy()
1796 bnx2_write_phy(bp, bp->mii_bmcr, bmcr | in bnx2_setup_serdes_phy()
1821 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_setup_serdes_phy()
1824 if ((adv != new_adv) || ((bmcr & BMCR_ANENABLE) == 0)) { in bnx2_setup_serdes_phy()
1834 bnx2_write_phy(bp, bp->mii_bmcr, bmcr | BMCR_ANRESTART | in bnx2_setup_serdes_phy()
2061 u32 bmcr, adv_reg, new_adv = 0; in bnx2_setup_copper_phy() local
2064 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_setup_copper_phy()
2084 ((bmcr & BMCR_ANENABLE) == 0)) { in bnx2_setup_copper_phy()
2112 if (new_bmcr != bmcr) { in bnx2_setup_copper_phy()
6069 u32 bmcr; in bnx2_5706_serdes_timer() local
6073 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_5706_serdes_timer()
6075 if (bmcr & BMCR_ANENABLE) { in bnx2_5706_serdes_timer()
6077 bmcr &= ~BMCR_ANENABLE; in bnx2_5706_serdes_timer()
6078 bmcr |= BMCR_SPEED1000 | BMCR_FULLDPLX; in bnx2_5706_serdes_timer()
6079 bnx2_write_phy(bp, bp->mii_bmcr, bmcr); in bnx2_5706_serdes_timer()
6091 u32 bmcr; in bnx2_5706_serdes_timer() local
6093 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_5706_serdes_timer()
6094 bmcr |= BMCR_ANENABLE; in bnx2_5706_serdes_timer()
6095 bnx2_write_phy(bp, bp->mii_bmcr, bmcr); in bnx2_5706_serdes_timer()
6136 u32 bmcr; in bnx2_5708_serdes_timer() local
6138 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_5708_serdes_timer()
6139 if (bmcr & BMCR_ANENABLE) { in bnx2_5708_serdes_timer()
7127 u32 bmcr; in bnx2_nway_reset() local
7160 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_nway_reset()
7161 bmcr &= ~BMCR_LOOPBACK; in bnx2_nway_reset()
7162 bnx2_write_phy(bp, bp->mii_bmcr, bmcr | BMCR_ANRESTART | BMCR_ANENABLE); in bnx2_nway_reset()