Lines Matching refs:bmsr

4776 	u32 bmsr, val;  in tg3_setup_copper_phy()  local
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()
4801 !(bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
4808 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4809 if (tg3_readphy(tp, MII_BMSR, &bmsr) || in tg3_setup_copper_phy()
4811 bmsr = 0; in tg3_setup_copper_phy()
4813 if (!(bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
4818 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4821 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
4822 (bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
4830 !(bmsr & BMSR_LSTATUS) && in tg3_setup_copper_phy()
4884 bmsr = 0; in tg3_setup_copper_phy()
4886 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4887 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
4888 (bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
4893 if (bmsr & BMSR_LSTATUS) { in tg3_setup_copper_phy()
4983 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4984 if ((!tg3_readphy(tp, MII_BMSR, &bmsr) && (bmsr & BMSR_LSTATUS)) || in tg3_setup_copper_phy()
5811 u32 bmsr, bmcr; in tg3_setup_fiber_mii_phy() local
5867 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5868 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5871 bmsr |= BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5873 bmsr &= ~BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5936 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5937 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5940 bmsr |= BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5942 bmsr &= ~BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5948 if (bmsr & BMSR_LSTATUS) { in tg3_setup_fiber_mii_phy()
15558 u32 bmsr, dummy; in tg3_phy_probe() local
15560 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_phy_probe()
15561 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_phy_probe()
15562 (bmsr & BMSR_LSTATUS)) in tg3_phy_probe()