Lines Matching refs:bmsr

4787 	u32 bmsr, val;  in tg3_setup_copper_phy()  local
4810 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4811 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
4812 !(bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
4819 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4820 if (tg3_readphy(tp, MII_BMSR, &bmsr) || in tg3_setup_copper_phy()
4822 bmsr = 0; in tg3_setup_copper_phy()
4824 if (!(bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
4829 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4832 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
4833 (bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
4841 !(bmsr & BMSR_LSTATUS) && in tg3_setup_copper_phy()
4895 bmsr = 0; in tg3_setup_copper_phy()
4897 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4898 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
4899 (bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
4904 if (bmsr & BMSR_LSTATUS) { in tg3_setup_copper_phy()
4994 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4995 if ((!tg3_readphy(tp, MII_BMSR, &bmsr) && (bmsr & BMSR_LSTATUS)) || in tg3_setup_copper_phy()
5824 u32 bmsr, bmcr; in tg3_setup_fiber_mii_phy() local
5880 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5881 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5884 bmsr |= BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5886 bmsr &= ~BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5949 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5950 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5953 bmsr |= BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5955 bmsr &= ~BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5961 if (bmsr & BMSR_LSTATUS) { in tg3_setup_fiber_mii_phy()
15602 u32 bmsr, dummy; in tg3_phy_probe() local
15604 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_phy_probe()
15605 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_phy_probe()
15606 (bmsr & BMSR_LSTATUS)) in tg3_phy_probe()