Lines Matching refs:tg3_writephy

1228 static int tg3_writephy(struct tg3 *tp, int reg, u32 val)  in tg3_writephy()  function
1237 err = tg3_writephy(tp, MII_TG3_MMD_CTRL, devad); in tg3_phy_cl45_write()
1241 err = tg3_writephy(tp, MII_TG3_MMD_ADDRESS, addr); in tg3_phy_cl45_write()
1245 err = tg3_writephy(tp, MII_TG3_MMD_CTRL, in tg3_phy_cl45_write()
1250 err = tg3_writephy(tp, MII_TG3_MMD_ADDRESS, val); in tg3_phy_cl45_write()
1260 err = tg3_writephy(tp, MII_TG3_MMD_CTRL, devad); in tg3_phy_cl45_read()
1264 err = tg3_writephy(tp, MII_TG3_MMD_ADDRESS, addr); in tg3_phy_cl45_read()
1268 err = tg3_writephy(tp, MII_TG3_MMD_CTRL, in tg3_phy_cl45_read()
1283 err = tg3_writephy(tp, MII_TG3_DSP_ADDRESS, reg); in tg3_phydsp_read()
1294 err = tg3_writephy(tp, MII_TG3_DSP_ADDRESS, reg); in tg3_phydsp_write()
1296 err = tg3_writephy(tp, MII_TG3_DSP_RW_PORT, val); in tg3_phydsp_write()
1305 err = tg3_writephy(tp, MII_TG3_AUX_CTRL, in tg3_phy_auxctl_read()
1319 return tg3_writephy(tp, MII_TG3_AUX_CTRL, set | reg); in tg3_phy_auxctl_write()
1345 return tg3_writephy(tp, MII_TG3_MISC_SHDW, in tg3_phy_shdw_write()
1358 err = tg3_writephy(tp, MII_BMCR, phy_control); in tg3_bmcr_reset()
2210 tg3_writephy(tp, MII_TG3_FET_TEST, in tg3_phy_fet_toggle_apd()
2217 tg3_writephy(tp, MII_TG3_FET_SHDW_AUXSTAT2, phy); in tg3_phy_fet_toggle_apd()
2219 tg3_writephy(tp, MII_TG3_FET_TEST, phytest); in tg3_phy_fet_toggle_apd()
2268 tg3_writephy(tp, MII_TG3_FET_TEST, in tg3_phy_toggle_automdix()
2275 tg3_writephy(tp, reg, phy); in tg3_phy_toggle_automdix()
2277 tg3_writephy(tp, MII_TG3_FET_TEST, ephy); in tg3_phy_toggle_automdix()
2476 tg3_writephy(tp, MII_TG3_DSP_ADDRESS, in tg3_phy_write_and_check_testpat()
2478 tg3_writephy(tp, MII_TG3_DSP_CONTROL, 0x0002); in tg3_phy_write_and_check_testpat()
2481 tg3_writephy(tp, MII_TG3_DSP_RW_PORT, in tg3_phy_write_and_check_testpat()
2484 tg3_writephy(tp, MII_TG3_DSP_CONTROL, 0x0202); in tg3_phy_write_and_check_testpat()
2490 tg3_writephy(tp, MII_TG3_DSP_ADDRESS, in tg3_phy_write_and_check_testpat()
2492 tg3_writephy(tp, MII_TG3_DSP_CONTROL, 0x0082); in tg3_phy_write_and_check_testpat()
2498 tg3_writephy(tp, MII_TG3_DSP_CONTROL, 0x0802); in tg3_phy_write_and_check_testpat()
2517 tg3_writephy(tp, MII_TG3_DSP_ADDRESS, 0x000b); in tg3_phy_write_and_check_testpat()
2518 tg3_writephy(tp, MII_TG3_DSP_RW_PORT, 0x4001); in tg3_phy_write_and_check_testpat()
2519 tg3_writephy(tp, MII_TG3_DSP_RW_PORT, 0x4005); in tg3_phy_write_and_check_testpat()
2536 tg3_writephy(tp, MII_TG3_DSP_ADDRESS, in tg3_phy_reset_chanpat()
2538 tg3_writephy(tp, MII_TG3_DSP_CONTROL, 0x0002); in tg3_phy_reset_chanpat()
2540 tg3_writephy(tp, MII_TG3_DSP_RW_PORT, 0x000); in tg3_phy_reset_chanpat()
2541 tg3_writephy(tp, MII_TG3_DSP_CONTROL, 0x0202); in tg3_phy_reset_chanpat()
2569 tg3_writephy(tp, MII_TG3_EXT_CTRL, reg32); in tg3_phy_reset_5703_4_5()
2572 tg3_writephy(tp, MII_BMCR, in tg3_phy_reset_5703_4_5()
2579 tg3_writephy(tp, MII_CTRL1000, in tg3_phy_reset_5703_4_5()
2600 tg3_writephy(tp, MII_TG3_DSP_ADDRESS, 0x8200); in tg3_phy_reset_5703_4_5()
2601 tg3_writephy(tp, MII_TG3_DSP_CONTROL, 0x0000); in tg3_phy_reset_5703_4_5()
2605 tg3_writephy(tp, MII_CTRL1000, phy9_orig); in tg3_phy_reset_5703_4_5()
2612 tg3_writephy(tp, MII_TG3_EXT_CTRL, reg32); in tg3_phy_reset_5703_4_5()
2713 tg3_writephy(tp, MII_TG3_MISC_SHDW, 0x8d68); in tg3_phy_reset()
2714 tg3_writephy(tp, MII_TG3_MISC_SHDW, 0x8d68); in tg3_phy_reset()
2726 tg3_writephy(tp, MII_TG3_DSP_ADDRESS, 0x000a); in tg3_phy_reset()
2728 tg3_writephy(tp, MII_TG3_DSP_RW_PORT, 0x110b); in tg3_phy_reset()
2729 tg3_writephy(tp, MII_TG3_TEST1, in tg3_phy_reset()
2732 tg3_writephy(tp, MII_TG3_DSP_RW_PORT, 0x010b); in tg3_phy_reset()
2757 tg3_writephy(tp, MII_TG3_EXT_CTRL, in tg3_phy_reset()
2763 tg3_writephy(tp, MII_TG3_FET_PTEST, 0x12); in tg3_phy_reset()
3091 tg3_writephy(tp, MII_ADVERTISE, 0); in tg3_power_down_phy()
3092 tg3_writephy(tp, MII_BMCR, in tg3_power_down_phy()
3095 tg3_writephy(tp, MII_TG3_FET_TEST, in tg3_power_down_phy()
3099 tg3_writephy(tp, in tg3_power_down_phy()
3103 tg3_writephy(tp, MII_TG3_FET_TEST, phytest); in tg3_power_down_phy()
3108 tg3_writephy(tp, MII_TG3_EXT_CTRL, in tg3_power_down_phy()
3131 tg3_writephy(tp, MII_BMCR, BMCR_PDOWN); in tg3_power_down_phy()
4335 err = tg3_writephy(tp, MII_ADVERTISE, new_adv); in tg3_phy_autoneg_cfg()
4346 err = tg3_writephy(tp, MII_CTRL1000, new_adv); in tg3_phy_autoneg_cfg()
4451 tg3_writephy(tp, MII_BMCR, in tg3_phy_copper_begin()
4465 tg3_writephy(tp, MII_ADVERTISE, ADVERTISE_ALL); in tg3_phy_copper_begin()
4488 tg3_writephy(tp, MII_BMCR, BMCR_LOOPBACK); in tg3_phy_copper_begin()
4501 tg3_writephy(tp, MII_BMCR, bmcr); in tg3_phy_copper_begin()
4847 tg3_writephy(tp, 0x15, 0x0a75); in tg3_setup_copper_phy()
4848 tg3_writephy(tp, MII_TG3_MISC_SHDW, 0x8c68); in tg3_setup_copper_phy()
4849 tg3_writephy(tp, MII_TG3_MISC_SHDW, 0x8d68); in tg3_setup_copper_phy()
4850 tg3_writephy(tp, MII_TG3_MISC_SHDW, 0x8c68); in tg3_setup_copper_phy()
4858 tg3_writephy(tp, MII_TG3_IMASK, ~MII_TG3_INT_LINKCHG); in tg3_setup_copper_phy()
4860 tg3_writephy(tp, MII_TG3_IMASK, ~0); in tg3_setup_copper_phy()
4865 tg3_writephy(tp, MII_TG3_EXT_CTRL, in tg3_setup_copper_phy()
4868 tg3_writephy(tp, MII_TG3_EXT_CTRL, 0); in tg3_setup_copper_phy()
5463 tg3_writephy(tp, 0x16, 0x8007); in tg3_init_bcm8002()
5466 tg3_writephy(tp, MII_BMCR, BMCR_RESET); in tg3_init_bcm8002()
5474 tg3_writephy(tp, 0x10, 0x8411); in tg3_init_bcm8002()
5477 tg3_writephy(tp, 0x11, 0x0a10); in tg3_init_bcm8002()
5479 tg3_writephy(tp, 0x18, 0x00a0); in tg3_init_bcm8002()
5480 tg3_writephy(tp, 0x16, 0x41ff); in tg3_init_bcm8002()
5483 tg3_writephy(tp, 0x13, 0x0400); in tg3_init_bcm8002()
5485 tg3_writephy(tp, 0x13, 0x0000); in tg3_init_bcm8002()
5487 tg3_writephy(tp, 0x11, 0x0a50); in tg3_init_bcm8002()
5489 tg3_writephy(tp, 0x11, 0x0a10); in tg3_init_bcm8002()
5499 tg3_writephy(tp, 0x10, 0x8011); in tg3_init_bcm8002()
5901 tg3_writephy(tp, MII_ADVERTISE, newadv); in tg3_setup_fiber_mii_phy()
5903 tg3_writephy(tp, MII_BMCR, bmcr); in tg3_setup_fiber_mii_phy()
5934 tg3_writephy(tp, MII_ADVERTISE, adv); in tg3_setup_fiber_mii_phy()
5935 tg3_writephy(tp, MII_BMCR, bmcr | in tg3_setup_fiber_mii_phy()
5941 tg3_writephy(tp, MII_BMCR, new_bmcr); in tg3_setup_fiber_mii_phy()
6026 tg3_writephy(tp, MII_TG3_MISC_SHDW, 0x7c00); in tg3_serdes_parallel_detect()
6030 tg3_writephy(tp, MII_TG3_DSP_ADDRESS, in tg3_serdes_parallel_detect()
6043 tg3_writephy(tp, MII_BMCR, bmcr); in tg3_serdes_parallel_detect()
6053 tg3_writephy(tp, MII_TG3_DSP_ADDRESS, in tg3_serdes_parallel_detect()
6061 tg3_writephy(tp, MII_BMCR, bmcr | BMCR_ANENABLE); in tg3_serdes_parallel_detect()
8228 tg3_writephy(tp, MII_CTRL1000, val); in tg3_phy_lpbk_set()
8232 tg3_writephy(tp, MII_TG3_FET_PTEST, ptest); in tg3_phy_lpbk_set()
8237 tg3_writephy(tp, MII_BMCR, bmcr); in tg3_phy_lpbk_set()
8247 tg3_writephy(tp, MII_TG3_FET_PTEST, ptest | in tg3_phy_lpbk_set()
8278 tg3_writephy(tp, MII_TG3_EXT_CTRL, in tg3_phy_lpbk_set()
10699 tg3_writephy(tp, MII_TG3_TEST1, in tg3_reset_hw()
11811 tg3_writephy(tp, MII_TG3_TEST1, in tg3_calc_crc_errors()
12398 tg3_writephy(tp, MII_BMCR, bmcr | BMCR_ANRESTART | in tg3_nway_reset()
15618 tg3_writephy(tp, MII_BMCR, in tg3_phy_probe()