Lines Matching refs:bmsr

4767 	u32 bmsr, val;  in tg3_setup_copper_phy()  local
4790 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4791 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
4792 !(bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
4799 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4800 if (tg3_readphy(tp, MII_BMSR, &bmsr) || in tg3_setup_copper_phy()
4802 bmsr = 0; in tg3_setup_copper_phy()
4804 if (!(bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
4809 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4812 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
4813 (bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
4821 !(bmsr & BMSR_LSTATUS) && in tg3_setup_copper_phy()
4875 bmsr = 0; in tg3_setup_copper_phy()
4877 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4878 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
4879 (bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
4884 if (bmsr & BMSR_LSTATUS) { in tg3_setup_copper_phy()
4974 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4975 if ((!tg3_readphy(tp, MII_BMSR, &bmsr) && (bmsr & BMSR_LSTATUS)) || in tg3_setup_copper_phy()
5802 u32 bmsr, bmcr; in tg3_setup_fiber_mii_phy() local
5858 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5859 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5862 bmsr |= BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5864 bmsr &= ~BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5927 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5928 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5931 bmsr |= BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5933 bmsr &= ~BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5939 if (bmsr & BMSR_LSTATUS) { in tg3_setup_fiber_mii_phy()
15699 u32 bmsr, dummy; in tg3_phy_probe() local
15701 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_phy_probe()
15702 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_phy_probe()
15703 (bmsr & BMSR_LSTATUS)) in tg3_phy_probe()