Lines Matching refs:bmcr

1177 	u32 bmcr, local_adv, remote_adv, common;  in bnx2_5706s_linkup()  local
1182 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_5706s_linkup()
1183 if (bmcr & BMCR_FULLDPLX) { in bnx2_5706s_linkup()
1190 if (!(bmcr & BMCR_ANENABLE)) { in bnx2_5706s_linkup()
1214 u32 bmcr; in bnx2_copper_linkup() local
1218 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_copper_linkup()
1219 if (bmcr & BMCR_ANENABLE) { in bnx2_copper_linkup()
1262 if (bmcr & BMCR_SPEED100) { in bnx2_copper_linkup()
1268 if (bmcr & BMCR_FULLDPLX) { in bnx2_copper_linkup()
1458 u32 bmcr; in bnx2_enable_forced_2g5() local
1478 err = bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_enable_forced_2g5()
1481 err = bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_enable_forced_2g5()
1483 bmcr |= BCM5708S_BMCR_FORCE_2500; in bnx2_enable_forced_2g5()
1492 bmcr &= ~BMCR_ANENABLE; in bnx2_enable_forced_2g5()
1494 bmcr |= BMCR_FULLDPLX; in bnx2_enable_forced_2g5()
1496 bnx2_write_phy(bp, bp->mii_bmcr, bmcr); in bnx2_enable_forced_2g5()
1502 u32 bmcr; in bnx2_disable_forced_2g5() local
1520 err = bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_disable_forced_2g5()
1523 err = bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_disable_forced_2g5()
1525 bmcr &= ~BCM5708S_BMCR_FORCE_2500; in bnx2_disable_forced_2g5()
1534 bmcr |= BMCR_SPEED1000 | BMCR_ANENABLE | BMCR_ANRESTART; in bnx2_disable_forced_2g5()
1535 bnx2_write_phy(bp, bp->mii_bmcr, bmcr); in bnx2_disable_forced_2g5()
1615 u32 bmcr; in bnx2_set_link() local
1617 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_set_link()
1618 bmcr |= BMCR_ANENABLE; in bnx2_set_link()
1619 bnx2_write_phy(bp, bp->mii_bmcr, bmcr); in bnx2_set_link()
1759 u32 adv, bmcr; in bnx2_setup_serdes_phy() local
1779 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_setup_serdes_phy()
1780 new_bmcr = bmcr & ~BMCR_ANENABLE; in bnx2_setup_serdes_phy()
1795 new_bmcr = bmcr & ~BCM5708S_BMCR_FORCE_2500; in bnx2_setup_serdes_phy()
1806 if ((new_bmcr != bmcr) || (force_link_down)) { in bnx2_setup_serdes_phy()
1812 bnx2_write_phy(bp, bp->mii_bmcr, bmcr | in bnx2_setup_serdes_phy()
1837 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_setup_serdes_phy()
1840 if ((adv != new_adv) || ((bmcr & BMCR_ANENABLE) == 0)) { in bnx2_setup_serdes_phy()
1850 bnx2_write_phy(bp, bp->mii_bmcr, bmcr | BMCR_ANRESTART | in bnx2_setup_serdes_phy()
2077 u32 bmcr, adv_reg, new_adv = 0; in bnx2_setup_copper_phy() local
2080 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_setup_copper_phy()
2100 ((bmcr & BMCR_ANENABLE) == 0)) { in bnx2_setup_copper_phy()
2128 if (new_bmcr != bmcr) { in bnx2_setup_copper_phy()
6094 u32 bmcr; in bnx2_5706_serdes_timer() local
6098 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_5706_serdes_timer()
6100 if (bmcr & BMCR_ANENABLE) { in bnx2_5706_serdes_timer()
6102 bmcr &= ~BMCR_ANENABLE; in bnx2_5706_serdes_timer()
6103 bmcr |= BMCR_SPEED1000 | BMCR_FULLDPLX; in bnx2_5706_serdes_timer()
6104 bnx2_write_phy(bp, bp->mii_bmcr, bmcr); in bnx2_5706_serdes_timer()
6116 u32 bmcr; in bnx2_5706_serdes_timer() local
6118 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_5706_serdes_timer()
6119 bmcr |= BMCR_ANENABLE; in bnx2_5706_serdes_timer()
6120 bnx2_write_phy(bp, bp->mii_bmcr, bmcr); in bnx2_5706_serdes_timer()
6161 u32 bmcr; in bnx2_5708_serdes_timer() local
6163 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_5708_serdes_timer()
6164 if (bmcr & BMCR_ANENABLE) { in bnx2_5708_serdes_timer()
7157 u32 bmcr; in bnx2_nway_reset() local
7190 bnx2_read_phy(bp, bp->mii_bmcr, &bmcr); in bnx2_nway_reset()
7191 bmcr &= ~BMCR_LOOPBACK; in bnx2_nway_reset()
7192 bnx2_write_phy(bp, bp->mii_bmcr, bmcr | BMCR_ANRESTART | BMCR_ANENABLE); in bnx2_nway_reset()