Lines Matching refs:tg3_readphy

1170 static int tg3_readphy(struct tg3 *tp, int reg, u32 *val)
1274 err = tg3_readphy(tp, MII_TG3_MMD_ADDRESS, val);
1286 err = tg3_readphy(tp, MII_TG3_DSP_RW_PORT, val);
1310 err = tg3_readphy(tp, MII_TG3_AUX_CTRL, val);
1365 err = tg3_readphy(tp, MII_BMCR, &phy_control);
1554 if (tg3_readphy(tp, MII_BMCR, &reg) || (reg & BMCR_PDOWN))
1669 if (!tg3_readphy(tp, MII_BMCR, &reg))
1671 if (!tg3_readphy(tp, MII_BMSR, &reg))
1676 if (!tg3_readphy(tp, MII_ADVERTISE, &reg))
1678 if (!tg3_readphy(tp, MII_LPA, &reg))
1684 if (!tg3_readphy(tp, MII_CTRL1000, &reg))
1686 if (!tg3_readphy(tp, MII_STAT1000, &reg))
1691 if (!tg3_readphy(tp, MII_PHYADDR, &reg))
2208 if (!tg3_readphy(tp, MII_TG3_FET_TEST, &phytest)) {
2213 if (!tg3_readphy(tp, MII_TG3_FET_SHDW_AUXSTAT2, &phy)) {
2266 if (!tg3_readphy(tp, MII_TG3_FET_TEST, &ephy)) {
2271 if (!tg3_readphy(tp, reg, &phy)) {
2453 if (!tg3_readphy(tp, MII_TG3_DSP_CONTROL, &tmp32)) {
2508 if (tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &low) ||
2509 tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &high) ||
2566 if (tg3_readphy(tp, MII_TG3_EXT_CTRL, &reg32))
2577 if (tg3_readphy(tp, MII_CTRL1000, &phy9_orig))
2608 err = tg3_readphy(tp, MII_TG3_EXT_CTRL, &reg32);
2644 err = tg3_readphy(tp, MII_BMSR, &val);
2645 err |= tg3_readphy(tp, MII_BMSR, &val);
2757 if (!tg3_readphy(tp, MII_TG3_EXT_CTRL, &val))
3089 if (!tg3_readphy(tp, MII_TG3_FET_TEST, &phytest)) {
3098 if (!tg3_readphy(tp, MII_TG3_FET_SHDW_AUXMODE4, &phy)) {
4487 if (!tg3_readphy(tp, MII_BMCR, &orig_bmcr) &&
4494 if (tg3_readphy(tp, MII_BMSR, &tmp) ||
4495 tg3_readphy(tp, MII_BMSR, &tmp))
4513 err = tg3_readphy(tp, MII_BMCR, &val);
4565 err = tg3_readphy(tp, MII_ADVERTISE, &val);
4581 err = tg3_readphy(tp, MII_CTRL1000, &val);
4587 err = tg3_readphy(tp, MII_ADVERTISE, &val);
4660 if (tg3_readphy(tp, MII_ADVERTISE, lcladv))
4671 if (tg3_readphy(tp, MII_CTRL1000, &tg3_ctrl))
4698 if (tg3_readphy(tp, MII_STAT1000, &val))
4704 if (tg3_readphy(tp, MII_LPA, rmtadv))
4805 tg3_readphy(tp, MII_BMSR, &bmsr);
4806 if (!tg3_readphy(tp, MII_BMSR, &bmsr) &&
4814 tg3_readphy(tp, MII_BMSR, &bmsr);
4815 if (tg3_readphy(tp, MII_BMSR, &bmsr) ||
4824 tg3_readphy(tp, MII_BMSR, &bmsr);
4827 if (!tg3_readphy(tp, MII_BMSR, &bmsr) &&
4855 tg3_readphy(tp, MII_TG3_ISTAT, &val);
4856 tg3_readphy(tp, MII_TG3_ISTAT, &val);
4892 tg3_readphy(tp, MII_BMSR, &bmsr);
4893 if (!tg3_readphy(tp, MII_BMSR, &bmsr) &&
4902 tg3_readphy(tp, MII_TG3_AUX_STAT, &aux_stat);
4905 if (!tg3_readphy(tp, MII_TG3_AUX_STAT, &aux_stat) &&
4916 tg3_readphy(tp, MII_BMCR, &bmcr);
4917 if (tg3_readphy(tp, MII_BMCR, &bmcr))
4969 if (!tg3_readphy(tp, reg, &val) && (val & bit))
4989 tg3_readphy(tp, MII_BMSR, &bmsr);
4990 if ((!tg3_readphy(tp, MII_BMSR, &bmsr) && (bmsr & BMSR_LSTATUS)) ||
5827 !tg3_readphy(tp, SERDES_TG3_1000X_STATUS, &sgsr) &&
5875 err |= tg3_readphy(tp, MII_BMSR, &bmsr);
5876 err |= tg3_readphy(tp, MII_BMSR, &bmsr);
5884 err |= tg3_readphy(tp, MII_BMCR, &bmcr);
5892 err |= tg3_readphy(tp, MII_ADVERTISE, &adv);
5931 err |= tg3_readphy(tp, MII_ADVERTISE, &adv);
5944 err |= tg3_readphy(tp, MII_BMSR, &bmsr);
5945 err |= tg3_readphy(tp, MII_BMSR, &bmsr);
5970 err |= tg3_readphy(tp, MII_ADVERTISE, &local_adv);
5971 err |= tg3_readphy(tp, MII_LPA, &remote_adv);
6022 tg3_readphy(tp, MII_BMCR, &bmcr);
6028 tg3_readphy(tp, MII_TG3_MISC_SHDW, &phy1);
6033 tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &phy2);
6034 tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &phy2);
6056 tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &phy2);
6061 tg3_readphy(tp, MII_BMCR, &bmcr);
8236 tg3_readphy(tp, MII_CTRL1000, &val);
8252 tg3_readphy(tp, MII_BMCR, &bmcr);
8263 tg3_readphy(tp, MII_TG3_FET_PTEST, &val);
10716 if (!tg3_readphy(tp, MII_TG3_TEST1, &tmp)) {
10719 tg3_readphy(tp, MII_TG3_RXR_COUNTERS, &tmp);
11829 if (!tg3_readphy(tp, MII_TG3_TEST1, &val)) {
11832 tg3_readphy(tp, MII_TG3_RXR_COUNTERS, &val);
12434 tg3_readphy(tp, MII_BMCR, &bmcr);
12435 if (!tg3_readphy(tp, MII_BMCR, &bmcr) &&
15568 err |= tg3_readphy(tp, MII_PHYSID1, &hw_phy_id_1);
15569 err |= tg3_readphy(tp, MII_PHYSID2, &hw_phy_id_2);
15643 tg3_readphy(tp, MII_BMSR, &bmsr);
15644 if (!tg3_readphy(tp, MII_BMSR, &bmsr) &&