• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/

Lines Matching refs:tg3_readphy

626 static int tg3_readphy(struct tg3 *tp, int reg, u32 *val)
732 !tg3_readphy(tp, MII_TG3_AUX_CTRL, &val))
752 err = tg3_readphy(tp, MII_BMCR, &phy_control);
775 if (!tg3_readphy(tp, 0x16, &tmp32)) {
830 if (tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &low) ||
831 tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &high) ||
888 if (tg3_readphy(tp, MII_TG3_EXT_CTRL, &reg32))
899 if (tg3_readphy(tp, MII_TG3_CTRL, &phy9_orig))
939 if (!tg3_readphy(tp, MII_TG3_EXT_CTRL, &reg32)) {
965 err = tg3_readphy(tp, MII_BMSR, &phy_status);
966 err |= tg3_readphy(tp, MII_BMSR, &phy_status);
1032 !tg3_readphy(tp, MII_TG3_AUX_CTRL, &phy_reg))
1042 if (!tg3_readphy(tp, MII_TG3_EXT_CTRL, &phy_reg))
1053 if (!tg3_readphy(tp, MII_TG3_EPHY_TEST, &phy_reg)) {
1059 if (!tg3_readphy(tp, 0x10, &phy_reg2))
1681 if (!tg3_readphy(tp, MII_BMCR, &orig_bmcr) &&
1688 if (tg3_readphy(tp, MII_BMSR, &tmp) ||
1689 tg3_readphy(tp, MII_BMSR, &tmp))
1746 if (tg3_readphy(tp, MII_ADVERTISE, &adv_reg))
1760 if (tg3_readphy(tp, MII_TG3_CTRL, &tg3_ctrl))
1799 tg3_readphy(tp, MII_BMSR, &bmsr);
1800 if (!tg3_readphy(tp, MII_BMSR, &bmsr) &&
1808 tg3_readphy(tp, MII_BMSR, &bmsr);
1809 if (tg3_readphy(tp, MII_BMSR, &bmsr) ||
1818 tg3_readphy(tp, MII_BMSR, &bmsr);
1821 if (!tg3_readphy(tp, MII_BMSR, &bmsr) &&
1847 tg3_readphy(tp, MII_TG3_ISTAT, &dummy);
1848 tg3_readphy(tp, MII_TG3_ISTAT, &dummy);
1872 tg3_readphy(tp, MII_TG3_AUX_CTRL, &val);
1882 tg3_readphy(tp, MII_BMSR, &bmsr);
1883 if (!tg3_readphy(tp, MII_BMSR, &bmsr) &&
1892 tg3_readphy(tp, MII_TG3_AUX_STAT, &aux_stat);
1895 if (!tg3_readphy(tp, MII_TG3_AUX_STAT, &aux_stat) &&
1906 tg3_readphy(tp, MII_BMCR, &bmcr);
1907 if (tg3_readphy(tp, MII_BMCR, &bmcr))
1946 if (tg3_readphy(tp, MII_ADVERTISE, &local_adv))
1950 if (tg3_readphy(tp, MII_LPA, &remote_adv))
1970 tg3_readphy(tp, MII_BMSR, &tmp);
1971 if (!tg3_readphy(tp, MII_BMSR, &tmp) &&
2785 err |= tg3_readphy(tp, MII_BMSR, &bmsr);
2786 err |= tg3_readphy(tp, MII_BMSR, &bmsr);
2794 err |= tg3_readphy(tp, MII_BMCR, &bmcr);
2802 err |= tg3_readphy(tp, MII_ADVERTISE, &adv);
2846 err |= tg3_readphy(tp, MII_ADVERTISE, &adv);
2859 err |= tg3_readphy(tp, MII_BMSR, &bmsr);
2860 err |= tg3_readphy(tp, MII_BMSR, &bmsr);
2883 err |= tg3_readphy(tp, MII_ADVERTISE, &local_adv);
2884 err |= tg3_readphy(tp, MII_LPA, &remote_adv);
2936 tg3_readphy(tp, MII_BMCR, &bmcr);
2942 tg3_readphy(tp, 0x1c, &phy1);
2946 tg3_readphy(tp, 0x15, &phy2);
2947 tg3_readphy(tp, 0x15, &phy2);
2969 tg3_readphy(tp, 0x15, &phy2);
2974 tg3_readphy(tp, MII_BMCR, &bmcr);
6609 if (!tg3_readphy(tp, MII_TG3_TEST1, &tmp)) {
6612 tg3_readphy(tp, 0x14, &tmp);
7194 if (!tg3_readphy(tp, MII_TG3_TEST1, &val)) {
7197 tg3_readphy(tp, 0x14, &val);
7858 tg3_readphy(tp, MII_BMCR, &bmcr);
7859 if (!tg3_readphy(tp, MII_BMCR, &bmcr) &&
8564 if (!tg3_readphy(tp, MII_TG3_EPHY_TEST, &phytest)) {
8569 if (!tg3_readphy(tp, 0x1b, &phy))
8571 if (!tg3_readphy(tp, 0x10, &phy))
8817 err = tg3_readphy(tp, data->reg_num & 0x1f, &mii_regval);
9903 err |= tg3_readphy(tp, MII_PHYSID1, &hw_phy_id_1);
9904 err |= tg3_readphy(tp, MII_PHYSID2, &hw_phy_id_2);
9945 tg3_readphy(tp, MII_BMSR, &bmsr);
9946 if (!tg3_readphy(tp, MII_BMSR, &bmsr) &&