Lines Matching refs:bmcr

4445 		u32 bmcr, orig_bmcr;  in tg3_phy_copper_begin()  local
4458 bmcr = 0; in tg3_phy_copper_begin()
4465 bmcr |= BMCR_SPEED100; in tg3_phy_copper_begin()
4469 bmcr |= BMCR_SPEED1000; in tg3_phy_copper_begin()
4474 bmcr |= BMCR_FULLDPLX; in tg3_phy_copper_begin()
4477 (bmcr != orig_bmcr)) { in tg3_phy_copper_begin()
4491 tg3_writephy(tp, MII_BMCR, bmcr); in tg3_phy_copper_begin()
4889 u32 aux_stat, bmcr; in tg3_setup_copper_phy() local
4903 bmcr = 0; in tg3_setup_copper_phy()
4905 tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_setup_copper_phy()
4906 if (tg3_readphy(tp, MII_BMCR, &bmcr)) in tg3_setup_copper_phy()
4908 if (bmcr && bmcr != 0x7fff) in tg3_setup_copper_phy()
4922 if ((bmcr & BMCR_ANENABLE) && in tg3_setup_copper_phy()
4939 if (!(bmcr & BMCR_ANENABLE) && in tg3_setup_copper_phy()
5808 u32 bmsr, bmcr; in tg3_setup_fiber_mii_phy() local
5873 err |= tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_setup_fiber_mii_phy()
5890 if ((newadv != adv) || !(bmcr & BMCR_ANENABLE)) { in tg3_setup_fiber_mii_phy()
5892 bmcr |= BMCR_ANENABLE | BMCR_ANRESTART; in tg3_setup_fiber_mii_phy()
5893 tg3_writephy(tp, MII_BMCR, bmcr); in tg3_setup_fiber_mii_phy()
5904 bmcr &= ~BMCR_SPEED1000; in tg3_setup_fiber_mii_phy()
5905 new_bmcr = bmcr & ~(BMCR_ANENABLE | BMCR_FULLDPLX); in tg3_setup_fiber_mii_phy()
5910 if (new_bmcr != bmcr) { in tg3_setup_fiber_mii_phy()
5925 tg3_writephy(tp, MII_BMCR, bmcr | in tg3_setup_fiber_mii_phy()
5932 bmcr = new_bmcr; in tg3_setup_fiber_mii_phy()
5948 if (bmcr & BMCR_FULLDPLX) in tg3_setup_fiber_mii_phy()
5956 if (bmcr & BMCR_ANENABLE) { in tg3_setup_fiber_mii_phy()
6009 u32 bmcr; in tg3_serdes_parallel_detect() local
6011 tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_serdes_parallel_detect()
6012 if (bmcr & BMCR_ANENABLE) { in tg3_serdes_parallel_detect()
6031 bmcr &= ~BMCR_ANENABLE; in tg3_serdes_parallel_detect()
6032 bmcr |= BMCR_SPEED1000 | BMCR_FULLDPLX; in tg3_serdes_parallel_detect()
6033 tg3_writephy(tp, MII_BMCR, bmcr); in tg3_serdes_parallel_detect()
6047 u32 bmcr; in tg3_serdes_parallel_detect() local
6050 tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_serdes_parallel_detect()
6051 tg3_writephy(tp, MII_BMCR, bmcr | BMCR_ANENABLE); in tg3_serdes_parallel_detect()
8181 u32 val, bmcr, mac_mode, ptest = 0; in tg3_phy_lpbk_set() local
8189 bmcr = BMCR_FULLDPLX; in tg3_phy_lpbk_set()
8194 bmcr |= BMCR_SPEED100; in tg3_phy_lpbk_set()
8200 bmcr |= BMCR_SPEED100; in tg3_phy_lpbk_set()
8203 bmcr |= BMCR_SPEED1000; in tg3_phy_lpbk_set()
8219 bmcr |= BMCR_LOOPBACK; in tg3_phy_lpbk_set()
8221 tg3_writephy(tp, MII_BMCR, bmcr); in tg3_phy_lpbk_set()
8225 tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_phy_lpbk_set()
12316 u32 bmcr; in tg3_nway_reset() local
12320 tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_nway_reset()
12321 if (!tg3_readphy(tp, MII_BMCR, &bmcr) && in tg3_nway_reset()
12322 ((bmcr & BMCR_ANENABLE) || in tg3_nway_reset()
12324 tg3_writephy(tp, MII_BMCR, bmcr | BMCR_ANRESTART | in tg3_nway_reset()