Lines Matching refs:bmsr
4771 u32 bmsr, val; in tg3_setup_copper_phy() local
4794 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4795 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
4796 !(bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
4803 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4804 if (tg3_readphy(tp, MII_BMSR, &bmsr) || in tg3_setup_copper_phy()
4806 bmsr = 0; in tg3_setup_copper_phy()
4808 if (!(bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
4813 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4816 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
4817 (bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
4825 !(bmsr & BMSR_LSTATUS) && in tg3_setup_copper_phy()
4879 bmsr = 0; in tg3_setup_copper_phy()
4881 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4882 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
4883 (bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
4888 if (bmsr & BMSR_LSTATUS) { in tg3_setup_copper_phy()
4978 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4979 if ((!tg3_readphy(tp, MII_BMSR, &bmsr) && (bmsr & BMSR_LSTATUS)) || in tg3_setup_copper_phy()
5808 u32 bmsr, bmcr; in tg3_setup_fiber_mii_phy() local
5864 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5865 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5868 bmsr |= BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5870 bmsr &= ~BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5933 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5934 err |= tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_fiber_mii_phy()
5937 bmsr |= BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5939 bmsr &= ~BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5945 if (bmsr & BMSR_LSTATUS) { in tg3_setup_fiber_mii_phy()
15529 u32 bmsr, dummy; in tg3_phy_probe() local
15531 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_phy_probe()
15532 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_phy_probe()
15533 (bmsr & BMSR_LSTATUS)) in tg3_phy_probe()