Lines Matching refs:tg3_readphy
1171 static int tg3_readphy(struct tg3 *tp, int reg, u32 *val)
1275 err = tg3_readphy(tp, MII_TG3_MMD_ADDRESS, val);
1287 err = tg3_readphy(tp, MII_TG3_DSP_RW_PORT, val);
1311 err = tg3_readphy(tp, MII_TG3_AUX_CTRL, val);
1366 err = tg3_readphy(tp, MII_BMCR, &phy_control);
1554 if (tg3_readphy(tp, MII_BMCR, ®) || (reg & BMCR_PDOWN))
1663 if (!tg3_readphy(tp, MII_BMCR, ®))
1665 if (!tg3_readphy(tp, MII_BMSR, ®))
1670 if (!tg3_readphy(tp, MII_ADVERTISE, ®))
1672 if (!tg3_readphy(tp, MII_LPA, ®))
1678 if (!tg3_readphy(tp, MII_CTRL1000, ®))
1680 if (!tg3_readphy(tp, MII_STAT1000, ®))
1685 if (!tg3_readphy(tp, MII_PHYADDR, ®))
2202 if (!tg3_readphy(tp, MII_TG3_FET_TEST, &phytest)) {
2207 if (!tg3_readphy(tp, MII_TG3_FET_SHDW_AUXSTAT2, &phy)) {
2260 if (!tg3_readphy(tp, MII_TG3_FET_TEST, &ephy)) {
2265 if (!tg3_readphy(tp, reg, &phy)) {
2447 if (!tg3_readphy(tp, MII_TG3_DSP_CONTROL, &tmp32)) {
2502 if (tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &low) ||
2503 tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &high) ||
2560 if (tg3_readphy(tp, MII_TG3_EXT_CTRL, ®32))
2571 if (tg3_readphy(tp, MII_CTRL1000, &phy9_orig))
2602 err = tg3_readphy(tp, MII_TG3_EXT_CTRL, ®32);
2638 err = tg3_readphy(tp, MII_BMSR, &val);
2639 err |= tg3_readphy(tp, MII_BMSR, &val);
2751 if (!tg3_readphy(tp, MII_TG3_EXT_CTRL, &val))
3083 if (!tg3_readphy(tp, MII_TG3_FET_TEST, &phytest)) {
3092 if (!tg3_readphy(tp, MII_TG3_FET_SHDW_AUXMODE4, &phy)) {
4482 if (!tg3_readphy(tp, MII_BMCR, &orig_bmcr) &&
4489 if (tg3_readphy(tp, MII_BMSR, &tmp) ||
4490 tg3_readphy(tp, MII_BMSR, &tmp))
4508 err = tg3_readphy(tp, MII_BMCR, &val);
4560 err = tg3_readphy(tp, MII_ADVERTISE, &val);
4576 err = tg3_readphy(tp, MII_CTRL1000, &val);
4582 err = tg3_readphy(tp, MII_ADVERTISE, &val);
4655 if (tg3_readphy(tp, MII_ADVERTISE, lcladv))
4666 if (tg3_readphy(tp, MII_CTRL1000, &tg3_ctrl))
4693 if (tg3_readphy(tp, MII_STAT1000, &val))
4699 if (tg3_readphy(tp, MII_LPA, rmtadv))
4800 tg3_readphy(tp, MII_BMSR, &bmsr);
4801 if (!tg3_readphy(tp, MII_BMSR, &bmsr) &&
4809 tg3_readphy(tp, MII_BMSR, &bmsr);
4810 if (tg3_readphy(tp, MII_BMSR, &bmsr) ||
4819 tg3_readphy(tp, MII_BMSR, &bmsr);
4822 if (!tg3_readphy(tp, MII_BMSR, &bmsr) &&
4850 tg3_readphy(tp, MII_TG3_ISTAT, &val);
4851 tg3_readphy(tp, MII_TG3_ISTAT, &val);
4887 tg3_readphy(tp, MII_BMSR, &bmsr);
4888 if (!tg3_readphy(tp, MII_BMSR, &bmsr) &&
4897 tg3_readphy(tp, MII_TG3_AUX_STAT, &aux_stat);
4900 if (!tg3_readphy(tp, MII_TG3_AUX_STAT, &aux_stat) &&
4911 tg3_readphy(tp, MII_BMCR, &bmcr);
4912 if (tg3_readphy(tp, MII_BMCR, &bmcr))
4964 if (!tg3_readphy(tp, reg, &val) && (val & bit))
4984 tg3_readphy(tp, MII_BMSR, &bmsr);
4985 if ((!tg3_readphy(tp, MII_BMSR, &bmsr) && (bmsr & BMSR_LSTATUS)) ||
5820 !tg3_readphy(tp, SERDES_TG3_1000X_STATUS, &sgsr) &&
5868 err |= tg3_readphy(tp, MII_BMSR, &bmsr);
5869 err |= tg3_readphy(tp, MII_BMSR, &bmsr);
5877 err |= tg3_readphy(tp, MII_BMCR, &bmcr);
5885 err |= tg3_readphy(tp, MII_ADVERTISE, &adv);
5924 err |= tg3_readphy(tp, MII_ADVERTISE, &adv);
5937 err |= tg3_readphy(tp, MII_BMSR, &bmsr);
5938 err |= tg3_readphy(tp, MII_BMSR, &bmsr);
5963 err |= tg3_readphy(tp, MII_ADVERTISE, &local_adv);
5964 err |= tg3_readphy(tp, MII_LPA, &remote_adv);
6015 tg3_readphy(tp, MII_BMCR, &bmcr);
6021 tg3_readphy(tp, MII_TG3_MISC_SHDW, &phy1);
6026 tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &phy2);
6027 tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &phy2);
6049 tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &phy2);
6054 tg3_readphy(tp, MII_BMCR, &bmcr);
8221 tg3_readphy(tp, MII_CTRL1000, &val);
8237 tg3_readphy(tp, MII_BMCR, &bmcr);
8248 tg3_readphy(tp, MII_TG3_FET_PTEST, &val);
10700 if (!tg3_readphy(tp, MII_TG3_TEST1, &tmp)) {
10703 tg3_readphy(tp, MII_TG3_RXR_COUNTERS, &tmp);
11809 if (!tg3_readphy(tp, MII_TG3_TEST1, &val)) {
11812 tg3_readphy(tp, MII_TG3_RXR_COUNTERS, &val);
12414 tg3_readphy(tp, MII_BMCR, &bmcr);
12415 if (!tg3_readphy(tp, MII_BMCR, &bmcr) &&
15520 err |= tg3_readphy(tp, MII_PHYSID1, &hw_phy_id_1);
15521 err |= tg3_readphy(tp, MII_PHYSID2, &hw_phy_id_2);
15595 tg3_readphy(tp, MII_BMSR, &bmsr);
15596 if (!tg3_readphy(tp, MII_BMSR, &bmsr) &&