Lines Matching refs:tg3_readphy
172 static int tg3_readphy(struct tg3 *tp, int reg, uint32_t *val) in tg3_readphy() function
265 tg3_readphy(tp, MII_TG3_AUX_CTRL, &val); in tg3_phy_set_wirespeed()
284 err = tg3_readphy(tp, MII_BMCR, &phy_control); in tg3_bmcr_reset()
307 tg3_readphy(tp, 0x16, &tmp32); in tg3_wait_macro_done()
361 tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &low); in tg3_phy_write_and_check_testpat()
362 tg3_readphy(tp, MII_TG3_DSP_RW_PORT, &high); in tg3_phy_write_and_check_testpat()
419 tg3_readphy(tp, MII_TG3_EXT_CTRL, ®32); in tg3_phy_reset_5703_4_5()
428 tg3_readphy(tp, MII_TG3_CTRL, &phy9_orig); in tg3_phy_reset_5703_4_5()
459 tg3_readphy(tp, MII_TG3_EXT_CTRL, ®32); in tg3_phy_reset_5703_4_5()
474 err = tg3_readphy(tp, MII_BMSR, &phy_status); in tg3_phy_reset()
475 err |= tg3_readphy(tp, MII_BMSR, &phy_status); in tg3_phy_reset()
693 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
694 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
700 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
701 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
711 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
714 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
741 tg3_readphy(tp, MII_TG3_ISTAT, &dummy); in tg3_setup_copper_phy()
742 tg3_readphy(tp, MII_TG3_ISTAT, &dummy); in tg3_setup_copper_phy()
754 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
755 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
760 tg3_readphy(tp, MII_TG3_AUX_STAT, &aux_stat); in tg3_setup_copper_phy()
763 tg3_readphy(tp, MII_TG3_AUX_STAT, &aux_stat); in tg3_setup_copper_phy()
771 tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_setup_copper_phy()
772 tg3_readphy(tp, MII_BMCR, &bmcr); in tg3_setup_copper_phy()
781 tg3_readphy(tp, MII_TG3_CTRL, &gig_ctrl); in tg3_setup_copper_phy()
795 tg3_readphy(tp, MII_ADVERTISE, &local_adv); in tg3_setup_copper_phy()
798 tg3_readphy(tp, MII_LPA, &remote_adv); in tg3_setup_copper_phy()
816 tg3_readphy(tp, MII_BMSR, &tmp); in tg3_setup_copper_phy()
817 tg3_readphy(tp, MII_BMSR, &tmp); in tg3_setup_copper_phy()
2453 err = tg3_readphy(tp, MII_PHYSID1, &hw_phy_id_1); in tg3_phy_probe()
2454 err |= tg3_readphy(tp, MII_PHYSID2, &hw_phy_id_2); in tg3_phy_probe()