Lines Matching refs:bmcr
4451 u32 bmcr, orig_bmcr; in tg3_phy_copper_begin() local
4464 bmcr = 0; in tg3_phy_copper_begin()
4471 bmcr |= BMCR_SPEED100; in tg3_phy_copper_begin()
4475 bmcr |= BMCR_SPEED1000; in tg3_phy_copper_begin()
4480 bmcr |= BMCR_FULLDPLX; in tg3_phy_copper_begin()
4483 (bmcr != orig_bmcr)) { in tg3_phy_copper_begin()
4497 tg3_writephy(tp, MII_BMCR, bmcr); in tg3_phy_copper_begin()
4895 u32 aux_stat, bmcr; in tg3_setup_copper_phy() local
4909 bmcr = 0; in tg3_setup_copper_phy()
4911 tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_setup_copper_phy()
4912 if (tg3_readphy(tp, MII_BMCR, &bmcr)) in tg3_setup_copper_phy()
4914 if (bmcr && bmcr != 0x7fff) in tg3_setup_copper_phy()
4928 if ((bmcr & BMCR_ANENABLE) && in tg3_setup_copper_phy()
4945 if (!(bmcr & BMCR_ANENABLE) && in tg3_setup_copper_phy()
5812 u32 bmsr, bmcr; in tg3_setup_fiber_mii_phy() local
5877 err |= tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_setup_fiber_mii_phy()
5894 if ((newadv != adv) || !(bmcr & BMCR_ANENABLE)) { in tg3_setup_fiber_mii_phy()
5896 bmcr |= BMCR_ANENABLE | BMCR_ANRESTART; in tg3_setup_fiber_mii_phy()
5897 tg3_writephy(tp, MII_BMCR, bmcr); in tg3_setup_fiber_mii_phy()
5908 bmcr &= ~BMCR_SPEED1000; in tg3_setup_fiber_mii_phy()
5909 new_bmcr = bmcr & ~(BMCR_ANENABLE | BMCR_FULLDPLX); in tg3_setup_fiber_mii_phy()
5914 if (new_bmcr != bmcr) { in tg3_setup_fiber_mii_phy()
5929 tg3_writephy(tp, MII_BMCR, bmcr | in tg3_setup_fiber_mii_phy()
5936 bmcr = new_bmcr; in tg3_setup_fiber_mii_phy()
5952 if (bmcr & BMCR_FULLDPLX) in tg3_setup_fiber_mii_phy()
5960 if (bmcr & BMCR_ANENABLE) { in tg3_setup_fiber_mii_phy()
6013 u32 bmcr; in tg3_serdes_parallel_detect() local
6015 tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_serdes_parallel_detect()
6016 if (bmcr & BMCR_ANENABLE) { in tg3_serdes_parallel_detect()
6035 bmcr &= ~BMCR_ANENABLE; in tg3_serdes_parallel_detect()
6036 bmcr |= BMCR_SPEED1000 | BMCR_FULLDPLX; in tg3_serdes_parallel_detect()
6037 tg3_writephy(tp, MII_BMCR, bmcr); in tg3_serdes_parallel_detect()
6051 u32 bmcr; in tg3_serdes_parallel_detect() local
6054 tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_serdes_parallel_detect()
6055 tg3_writephy(tp, MII_BMCR, bmcr | BMCR_ANENABLE); in tg3_serdes_parallel_detect()
8198 u32 val, bmcr, mac_mode, ptest = 0; in tg3_phy_lpbk_set() local
8206 bmcr = BMCR_FULLDPLX; in tg3_phy_lpbk_set()
8211 bmcr |= BMCR_SPEED100; in tg3_phy_lpbk_set()
8217 bmcr |= BMCR_SPEED100; in tg3_phy_lpbk_set()
8220 bmcr |= BMCR_SPEED1000; in tg3_phy_lpbk_set()
8236 bmcr |= BMCR_LOOPBACK; in tg3_phy_lpbk_set()
8238 tg3_writephy(tp, MII_BMCR, bmcr); in tg3_phy_lpbk_set()
8242 tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_phy_lpbk_set()
12415 u32 bmcr; in tg3_nway_reset() local
12419 tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_nway_reset()
12420 if (!tg3_readphy(tp, MII_BMCR, &bmcr) && in tg3_nway_reset()
12421 ((bmcr & BMCR_ANENABLE) || in tg3_nway_reset()
12423 tg3_writephy(tp, MII_BMCR, bmcr | BMCR_ANRESTART | in tg3_nway_reset()