Lines Matching refs:tg3_readphy
1163 static int tg3_readphy(struct tg3 *tp, int reg, u32 *val) in tg3_readphy() function
1267 err = tg3_readphy(tp, MII_TG3_MMD_ADDRESS, val); in tg3_phy_cl45_read()
1279 err = tg3_readphy(tp, MII_TG3_DSP_RW_PORT, val); in tg3_phydsp_read()
1303 err = tg3_readphy(tp, MII_TG3_AUX_CTRL, val); in tg3_phy_auxctl_read()
1358 err = tg3_readphy(tp, MII_BMCR, &phy_control); in tg3_bmcr_reset()
1551 if (tg3_readphy(tp, MII_BMCR, ®) || (reg & BMCR_PDOWN)) in tg3_mdio_init()
1666 if (!tg3_readphy(tp, MII_BMCR, ®)) in tg3_phy_gather_ump_data()
1668 if (!tg3_readphy(tp, MII_BMSR, ®)) in tg3_phy_gather_ump_data()
1673 if (!tg3_readphy(tp, MII_ADVERTISE, ®)) in tg3_phy_gather_ump_data()
1675 if (!tg3_readphy(tp, MII_LPA, ®)) in tg3_phy_gather_ump_data()
1681 if (!tg3_readphy(tp, MII_CTRL1000, ®)) in tg3_phy_gather_ump_data()
1683 if (!tg3_readphy(tp, MII_STAT1000, ®)) in tg3_phy_gather_ump_data()
1688 if (!tg3_readphy(tp, MII_PHYADDR, ®)) in tg3_phy_gather_ump_data()
2206 if (!tg3_readphy(tp, MII_TG3_FET_TEST, &phytest)) { in tg3_phy_fet_toggle_apd()
2211 if (!tg3_readphy(tp, MII_TG3_FET_SHDW_AUXSTAT2, &phy)) { in tg3_phy_fet_toggle_apd()
2264 if (!tg3_readphy(tp, MII_TG3_FET_TEST, &ephy)) { in tg3_phy_toggle_automdix()
2269 if (!tg3_readphy(tp, reg, &phy)) { in tg3_phy_toggle_automdix()
2451 if (!tg3_readphy(tp, MII_TG3_DSP_CONTROL, &tmp32)) { in tg3_wait_macro_done()
2506 if (tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &low) || in tg3_phy_write_and_check_testpat()
2507 tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &high) || in tg3_phy_write_and_check_testpat()
2564 if (tg3_readphy(tp, MII_TG3_EXT_CTRL, ®32)) in tg3_phy_reset_5703_4_5()
2575 if (tg3_readphy(tp, MII_CTRL1000, &phy9_orig)) in tg3_phy_reset_5703_4_5()
2606 err = tg3_readphy(tp, MII_TG3_EXT_CTRL, ®32); in tg3_phy_reset_5703_4_5()
2642 err = tg3_readphy(tp, MII_BMSR, &val); in tg3_phy_reset()
2643 err |= tg3_readphy(tp, MII_BMSR, &val); in tg3_phy_reset()
2755 if (!tg3_readphy(tp, MII_TG3_EXT_CTRL, &val)) in tg3_phy_reset()
3087 if (!tg3_readphy(tp, MII_TG3_FET_TEST, &phytest)) { in tg3_power_down_phy()
3096 if (!tg3_readphy(tp, MII_TG3_FET_SHDW_AUXMODE4, &phy)) { in tg3_power_down_phy()
4476 if (!tg3_readphy(tp, MII_BMCR, &orig_bmcr) && in tg3_phy_copper_begin()
4483 if (tg3_readphy(tp, MII_BMSR, &tmp) || in tg3_phy_copper_begin()
4484 tg3_readphy(tp, MII_BMSR, &tmp)) in tg3_phy_copper_begin()
4502 err = tg3_readphy(tp, MII_BMCR, &val); in tg3_phy_pull_config()
4554 err = tg3_readphy(tp, MII_ADVERTISE, &val); in tg3_phy_pull_config()
4570 err = tg3_readphy(tp, MII_CTRL1000, &val); in tg3_phy_pull_config()
4576 err = tg3_readphy(tp, MII_ADVERTISE, &val); in tg3_phy_pull_config()
4649 if (tg3_readphy(tp, MII_ADVERTISE, lcladv)) in tg3_phy_copper_an_config_ok()
4660 if (tg3_readphy(tp, MII_CTRL1000, &tg3_ctrl)) in tg3_phy_copper_an_config_ok()
4687 if (tg3_readphy(tp, MII_STAT1000, &val)) in tg3_phy_copper_fetch_rmtadv()
4693 if (tg3_readphy(tp, MII_LPA, rmtadv)) in tg3_phy_copper_fetch_rmtadv()
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()
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()
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()
4844 tg3_readphy(tp, MII_TG3_ISTAT, &val); in tg3_setup_copper_phy()
4845 tg3_readphy(tp, MII_TG3_ISTAT, &val); 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()
4891 tg3_readphy(tp, MII_TG3_AUX_STAT, &aux_stat); in tg3_setup_copper_phy()
4894 if (!tg3_readphy(tp, MII_TG3_AUX_STAT, &aux_stat) && in tg3_setup_copper_phy()
4905 tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_setup_copper_phy()
4906 if (tg3_readphy(tp, MII_BMCR, &bmcr)) in tg3_setup_copper_phy()
4958 if (!tg3_readphy(tp, reg, &val) && (val & bit)) 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()
5816 !tg3_readphy(tp, SERDES_TG3_1000X_STATUS, &sgsr) && in tg3_setup_fiber_mii_phy()
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()
5873 err |= tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_setup_fiber_mii_phy()
5881 err |= tg3_readphy(tp, MII_ADVERTISE, &adv); in tg3_setup_fiber_mii_phy()
5920 err |= tg3_readphy(tp, MII_ADVERTISE, &adv); 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()
5959 err |= tg3_readphy(tp, MII_ADVERTISE, &local_adv); in tg3_setup_fiber_mii_phy()
5960 err |= tg3_readphy(tp, MII_LPA, &remote_adv); in tg3_setup_fiber_mii_phy()
6011 tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_serdes_parallel_detect()
6017 tg3_readphy(tp, MII_TG3_MISC_SHDW, &phy1); in tg3_serdes_parallel_detect()
6022 tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &phy2); in tg3_serdes_parallel_detect()
6023 tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &phy2); in tg3_serdes_parallel_detect()
6045 tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &phy2); in tg3_serdes_parallel_detect()
6050 tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_serdes_parallel_detect()
8209 tg3_readphy(tp, MII_CTRL1000, &val); in tg3_phy_lpbk_set()
8225 tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_phy_lpbk_set()
8236 tg3_readphy(tp, MII_TG3_FET_PTEST, &val); in tg3_phy_lpbk_set()
10658 if (!tg3_readphy(tp, MII_TG3_TEST1, &tmp)) { in tg3_reset_hw()
10661 tg3_readphy(tp, MII_TG3_RXR_COUNTERS, &tmp); in tg3_reset_hw()
11749 if (!tg3_readphy(tp, MII_TG3_TEST1, &val)) { in tg3_calc_crc_errors()
11752 tg3_readphy(tp, MII_TG3_RXR_COUNTERS, &val); in tg3_calc_crc_errors()
12320 tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_nway_reset()
12321 if (!tg3_readphy(tp, MII_BMCR, &bmcr) && in tg3_nway_reset()
15456 err |= tg3_readphy(tp, MII_PHYSID1, &hw_phy_id_1); in tg3_phy_probe()
15457 err |= tg3_readphy(tp, MII_PHYSID2, &hw_phy_id_2); in tg3_phy_probe()
15531 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_phy_probe()
15532 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_phy_probe()