Lines Matching refs:bmsr
1511 u32 bmsr, dummy; in tg3_setup_copper_phy() local
1538 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
1539 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
1540 !(bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
1547 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
1548 if (tg3_readphy(tp, MII_BMSR, &bmsr) || in tg3_setup_copper_phy()
1550 bmsr = 0; in tg3_setup_copper_phy()
1552 if (!(bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
1557 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
1560 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
1561 (bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
1568 !(bmsr & BMSR_LSTATUS) && in tg3_setup_copper_phy()
1620 bmsr = 0; in tg3_setup_copper_phy()
1622 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
1623 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
1624 (bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
1629 if (bmsr & BMSR_LSTATUS) { in tg3_setup_copper_phy()
8130 u32 bmsr, adv_reg, tg3_ctrl; in tg3_phy_probe() local
8132 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_phy_probe()
8133 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_phy_probe()
8134 (bmsr & BMSR_LSTATUS)) in tg3_phy_probe()