Lines Matching refs:bmsr

4781 	u32 bmsr, val;  in tg3_setup_copper_phy()  local
4804 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4805 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
4806 !(bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
4813 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4814 if (tg3_readphy(tp, MII_BMSR, &bmsr) || in tg3_setup_copper_phy()
4816 bmsr = 0; in tg3_setup_copper_phy()
4818 if (!(bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
4823 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4826 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
4827 (bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
4835 !(bmsr & BMSR_LSTATUS) && in tg3_setup_copper_phy()
4889 bmsr = 0; in tg3_setup_copper_phy()
4891 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4892 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
4893 (bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
4898 if (bmsr & BMSR_LSTATUS) { in tg3_setup_copper_phy()
4988 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4989 if ((!tg3_readphy(tp, MII_BMSR, &bmsr) && (bmsr & BMSR_LSTATUS)) || in tg3_setup_copper_phy()
5818 u32 bmsr, bmcr; in tg3_setup_fiber_mii_phy() local
5874 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5875 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5878 bmsr |= BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5880 bmsr &= ~BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5943 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5944 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5947 bmsr |= BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5949 bmsr &= ~BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5955 if (bmsr & BMSR_LSTATUS) { in tg3_setup_fiber_mii_phy()
15601 u32 bmsr, dummy; in tg3_phy_probe() local
15603 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_phy_probe()
15604 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_phy_probe()
15605 (bmsr & BMSR_LSTATUS)) in tg3_phy_probe()