/drivers/gpu/drm/radeon/ |
D | ci_smc.c | 116 u32 tmp = RREG32_SMC(SMC_SYSCON_RESET_CNTL); in ci_start_smc() 124 u32 tmp = RREG32_SMC(SMC_SYSCON_RESET_CNTL); in ci_reset_smc() 139 u32 tmp = RREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0); in ci_stop_smc_clock() 148 u32 tmp = RREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0); in ci_start_smc_clock() 157 u32 clk = RREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0); in ci_is_smc_running() 158 u32 pc_c = RREG32_SMC(SMC_PC_C); in ci_is_smc_running() 197 tmp = RREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0);
|
D | si_smc.c | 115 u32 tmp = RREG32_SMC(SMC_SYSCON_RESET_CNTL); in si_start_smc() 131 tmp = RREG32_SMC(SMC_SYSCON_RESET_CNTL); in si_reset_smc() 145 u32 tmp = RREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0); in si_stop_smc_clock() 154 u32 tmp = RREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0); in si_start_smc_clock() 163 u32 rst = RREG32_SMC(SMC_SYSCON_RESET_CNTL); in si_is_smc_running() 164 u32 clk = RREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0); in si_is_smc_running() 202 tmp = RREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0); in si_wait_for_smc_inactive()
|
D | trinity_dpm.c | 377 value = RREG32_SMC(GFX_POWER_GATING_CNTL); in trinity_gfx_powergating_initialize() 505 if (RREG32_SMC(CC_SMU_TST_EFUSE1_MISC) & RB_BACKEND_DISABLE_MASK) in trinity_gfx_powergating_enable() 506 WREG32_SMC(SMU_SCRATCH_A, (RREG32_SMC(SMU_SCRATCH_A) | 0x01)); in trinity_gfx_powergating_enable() 521 value = RREG32_SMC(PM_I_CNTL_1); in trinity_gfx_dynamic_mgpg_enable() 526 value = RREG32_SMC(SMU_S_PG_CNTL); in trinity_gfx_dynamic_mgpg_enable() 531 value = RREG32_SMC(SMU_S_PG_CNTL); in trinity_gfx_dynamic_mgpg_enable() 535 value = RREG32_SMC(PM_I_CNTL_1); in trinity_gfx_dynamic_mgpg_enable() 595 value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_0 + ix); in trinity_set_divider_value() 605 value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_PG_CNTL + ix); in trinity_set_divider_value() 617 value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_1 + ix); in trinity_set_ds_dividers() [all …]
|
D | ci_dpm.c | 581 data = RREG32_SMC(config_regs->offset); in ci_program_pt_config_registers() 889 tmp = RREG32_SMC(CG_THERMAL_INT); in ci_thermal_set_temperature_range() 897 tmp = RREG32_SMC(CG_THERMAL_CTRL); in ci_thermal_set_temperature_range() 912 u32 thermal_int = RREG32_SMC(CG_THERMAL_INT); in ci_thermal_enable_alert() 944 tmp = (RREG32_SMC(CG_FDO_CTRL2) & FDO_PWM_MODE_MASK) >> FDO_PWM_MODE_SHIFT; in ci_fan_ctrl_set_static_mode() 946 tmp = (RREG32_SMC(CG_FDO_CTRL2) & TMIN_MASK) >> TMIN_SHIFT; in ci_fan_ctrl_set_static_mode() 951 tmp = RREG32_SMC(CG_FDO_CTRL2) & ~TMIN_MASK; in ci_fan_ctrl_set_static_mode() 955 tmp = RREG32_SMC(CG_FDO_CTRL2) & ~FDO_PWM_MODE_MASK; in ci_fan_ctrl_set_static_mode() 976 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; in ci_thermal_setup_fan_table() 1020 tmp = (RREG32_SMC(CG_MULT_THERMAL_CTRL) & TEMP_SEL_MASK) >> TEMP_SEL_SHIFT; in ci_thermal_setup_fan_table() [all …]
|
D | kv_smc.c | 61 *enable_mask = RREG32_SMC(SMC_SYSCON_MSG_ARG_0); in kv_dpm_get_enable_mask()
|
D | kv_dpm.c | 298 data = RREG32_SMC(config_regs->offset); in kv_program_pt_config_registers() 645 u32 tmp = RREG32_SMC(GENERAL_PWRMGT); in kv_start_dpm() 660 u32 sclk_pwrmgt_cntl = RREG32_SMC(SCLK_PWRMGT_CNTL); in kv_start_am() 670 u32 sclk_pwrmgt_cntl = RREG32_SMC(SCLK_PWRMGT_CNTL); in kv_reset_am() 1176 thermal_int = RREG32_SMC(CG_THERMAL_INT_CTRL); in kv_enable_thermal_int() 2440 nbdpmconfig1 = RREG32_SMC(NB_DPM_CONFIG_1); in kv_program_nbps_index_settings() 2467 tmp = RREG32_SMC(CG_THERMAL_INT_CTRL); in kv_set_thermal_temperature_range() 2804 (RREG32_SMC(TARGET_AND_CURRENT_PROFILE_INDEX) & CURR_SCLK_INDEX_MASK) >> in kv_dpm_debugfs_print_current_performance_level() 2813 tmp = (RREG32_SMC(SMU_VOLTAGE_STATUS) & SMU_VOLTAGE_CURRENT_LEVEL_MASK) >> in kv_dpm_debugfs_print_current_performance_level() 2827 (RREG32_SMC(TARGET_AND_CURRENT_PROFILE_INDEX) & CURR_SCLK_INDEX_MASK) >> in kv_dpm_get_current_sclk()
|
D | cik.c | 210 temp = (RREG32_SMC(CG_MULT_THERMAL_STATUS) & CTF_TEMP_MASK) >> in ci_get_temp() 229 temp = RREG32_SMC(0xC0300E0C); in kv_get_temp() 1720 if (RREG32_SMC(GENERAL_PWRMGT) & GPU_COUNTER_CLK) in cik_get_xclk() 1723 if (RREG32_SMC(CG_CLKPIN_CNTL) & XTALIN_DIVIDE) in cik_get_xclk() 9446 tmp = RREG32_SMC(cntl_reg); in cik_set_uvd_clock() 9452 if (RREG32_SMC(status_reg) & DCLK_STATUS) in cik_set_uvd_clock() 9486 if (RREG32_SMC(CG_ECLK_STATUS) & ECLK_STATUS) in cik_set_vce_clocks() 9493 tmp = RREG32_SMC(CG_ECLK_CNTL); in cik_set_vce_clocks() 9499 if (RREG32_SMC(CG_ECLK_STATUS) & ECLK_STATUS) in cik_set_vce_clocks() 9765 orig = data = RREG32_SMC(THM_CLK_CNTL); in cik_program_aspm() [all …]
|
D | radeon.h | 2551 #define RREG32_SMC(reg) tn_smc_rreg(rdev, (reg)) macro 2583 uint32_t tmp_ = RREG32_SMC(reg); \
|
D | ni.c | 887 u32 temp = RREG32_SMC(TN_CURRENT_GNB_TEMP) & 0x7ff; in tn_get_temp()
|
D | si_dpm.c | 2749 data = RREG32_SMC(offset); in si_program_cac_config_registers()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | ci_smc.c | 119 u32 tmp = RREG32_SMC(ixSMC_SYSCON_RESET_CNTL); in amdgpu_ci_start_smc() 127 u32 tmp = RREG32_SMC(ixSMC_SYSCON_RESET_CNTL); in amdgpu_ci_reset_smc() 142 u32 tmp = RREG32_SMC(ixSMC_SYSCON_CLOCK_CNTL_0); in amdgpu_ci_stop_smc_clock() 151 u32 tmp = RREG32_SMC(ixSMC_SYSCON_CLOCK_CNTL_0); in amdgpu_ci_start_smc_clock() 160 u32 clk = RREG32_SMC(ixSMC_SYSCON_CLOCK_CNTL_0); in amdgpu_ci_is_smc_running() 161 u32 pc_c = RREG32_SMC(ixSMC_PC_C); in amdgpu_ci_is_smc_running() 199 tmp = RREG32_SMC(ixSMC_SYSCON_CLOCK_CNTL_0); in amdgpu_ci_wait_for_smc_inactive()
|
D | si_smc.c | 113 u32 tmp = RREG32_SMC(SMC_SYSCON_RESET_CNTL); in amdgpu_si_start_smc() 129 tmp = RREG32_SMC(SMC_SYSCON_RESET_CNTL) | in amdgpu_si_reset_smc() 143 u32 tmp = RREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0); in amdgpu_si_smc_clock() 155 u32 rst = RREG32_SMC(SMC_SYSCON_RESET_CNTL); in amdgpu_si_is_smc_running() 156 u32 clk = RREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0); in amdgpu_si_is_smc_running() 194 tmp = RREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0); in amdgpu_si_wait_for_smc_inactive()
|
D | ci_dpm.c | 706 data = RREG32_SMC(config_regs->offset); in ci_program_pt_config_registers() 1007 tmp = RREG32_SMC(ixCG_THERMAL_INT); in ci_thermal_set_temperature_range() 1015 tmp = RREG32_SMC(ixCG_THERMAL_CTRL); in ci_thermal_set_temperature_range() 1029 u32 thermal_int = RREG32_SMC(ixCG_THERMAL_INT); in ci_thermal_enable_alert() 1061 tmp = (RREG32_SMC(ixCG_FDO_CTRL2) & CG_FDO_CTRL2__FDO_PWM_MODE_MASK) in ci_fan_ctrl_set_static_mode() 1064 tmp = (RREG32_SMC(ixCG_FDO_CTRL2) & CG_FDO_CTRL2__TMIN_MASK) in ci_fan_ctrl_set_static_mode() 1070 tmp = RREG32_SMC(ixCG_FDO_CTRL2) & ~CG_FDO_CTRL2__TMIN_MASK; in ci_fan_ctrl_set_static_mode() 1074 tmp = RREG32_SMC(ixCG_FDO_CTRL2) & ~CG_FDO_CTRL2__FDO_PWM_MODE_MASK; in ci_fan_ctrl_set_static_mode() 1095 duty100 = (RREG32_SMC(ixCG_FDO_CTRL1) & CG_FDO_CTRL1__FMAX_DUTY100_MASK) in ci_thermal_setup_fan_table() 1140 tmp = (RREG32_SMC(ixCG_MULT_THERMAL_CTRL) & CG_MULT_THERMAL_CTRL__TEMP_SEL_MASK) in ci_thermal_setup_fan_table() [all …]
|
D | cik.c | 845 if (RREG32_SMC(ixGENERAL_PWRMGT) & GENERAL_PWRMGT__GPU_COUNTER_CLK_MASK) in cik_get_xclk() 848 if (RREG32_SMC(ixCG_CLKPIN_CNTL) & CG_CLKPIN_CNTL__XTALIN_DIVIDE_MASK) in cik_get_xclk() 905 rom_cntl = RREG32_SMC(ixROM_CNTL); in cik_read_disabled_bios() 1238 tmp = RREG32_SMC(cntl_reg); in cik_set_uvd_clock() 1245 if (RREG32_SMC(status_reg) & CG_DCLK_STATUS__DCLK_STATUS_MASK) in cik_set_uvd_clock() 1280 if (RREG32_SMC(ixCG_ECLK_STATUS) & CG_ECLK_STATUS__ECLK_STATUS_MASK) in cik_set_vce_clocks() 1287 tmp = RREG32_SMC(ixCG_ECLK_CNTL); in cik_set_vce_clocks() 1294 if (RREG32_SMC(ixCG_ECLK_STATUS) & CG_ECLK_STATUS__ECLK_STATUS_MASK) in cik_set_vce_clocks() 1571 orig = data = RREG32_SMC(ixTHM_CLK_CNTL); in cik_program_aspm() 1579 orig = data = RREG32_SMC(ixMISC_CLK_CTRL); in cik_program_aspm() [all …]
|
D | vi.c | 337 tmp = RREG32_SMC(ixCG_CLKPIN_CNTL_2); in vi_get_xclk() 341 tmp = RREG32_SMC(ixCG_CLKPIN_CNTL); in vi_get_xclk() 392 rom_cntl = RREG32_SMC(ixROM_CNTL); in vi_read_disabled_bios() 704 tmp = RREG32_SMC(cntl_reg); in vi_set_uvd_clock() 711 if (RREG32_SMC(status_reg) & CG_DCLK_STATUS__DCLK_STATUS_MASK) in vi_set_uvd_clock() 1521 return (RREG32_SMC(ATI_REV_ID_FUSE_MACRO__ADDRESS) & ATI_REV_ID_FUSE_MACRO__MASK) in vi_get_rev_id() 1802 temp = data = RREG32_SMC(ixCGTT_ROM_CLK_CTRL0); in vi_update_rom_medium_grain_clock_gating()
|
D | kv_dpm.c | 428 data = RREG32_SMC(config_regs->offset); in kv_program_pt_config_registers() 729 u32 tmp = RREG32_SMC(ixGENERAL_PWRMGT); in kv_start_dpm() 744 u32 sclk_pwrmgt_cntl = RREG32_SMC(ixSCLK_PWRMGT_CNTL); in kv_start_am() 755 u32 sclk_pwrmgt_cntl = RREG32_SMC(ixSCLK_PWRMGT_CNTL); in kv_reset_am() 2530 nbdpmconfig1 = RREG32_SMC(ixNB_DPM_CONFIG_1); in kv_program_nbps_index_settings() 2559 tmp = RREG32_SMC(ixCG_THERMAL_INT_CTRL); in kv_set_thermal_temperature_range() 2891 (RREG32_SMC(ixTARGET_AND_CURRENT_PROFILE_INDEX) & in kv_dpm_debugfs_print_current_performance_level() 2901 tmp = (RREG32_SMC(ixSMU_VOLTAGE_STATUS) & in kv_dpm_debugfs_print_current_performance_level() 2972 temp = RREG32_SMC(0xC0300E0C); in kv_dpm_get_temp() 3169 cg_thermal_int = RREG32_SMC(ixCG_THERMAL_INT_CTRL); in kv_dpm_set_interrupt_state() [all …]
|
D | vce_v3_0.c | 339 tmp = (RREG32_SMC(ixVCE_HARVEST_FUSE_MACRO__ADDRESS) & in vce_v3_0_get_harvest_config() 343 tmp = (RREG32_SMC(ixCC_HARVEST_FUSES) & in vce_v3_0_get_harvest_config() 713 u32 tmp = RREG32_SMC(ixGCK_DFS_BYPASS_CNTL); in vce_v3_0_set_bypass_mode()
|
D | kv_smc.c | 64 *enable_mask = RREG32_SMC(ixSMC_SYSCON_MSG_ARG_0); in amdgpu_kv_dpm_get_enable_mask()
|
D | cz_dpm.c | 525 u32 sclk_index = REG_GET_FIELD(RREG32_SMC(ixTARGET_AND_CURRENT_PROFILE_INDEX), in cz_dpm_debugfs_print_current_performance_level() 527 u32 uvd_index = REG_GET_FIELD(RREG32_SMC(ixTARGET_AND_CURRENT_PROFILE_INDEX_2), in cz_dpm_debugfs_print_current_performance_level() 529 u32 vce_index = REG_GET_FIELD(RREG32_SMC(ixTARGET_AND_CURRENT_PROFILE_INDEX_2), in cz_dpm_debugfs_print_current_performance_level() 541 tmp = (RREG32_SMC(ixSMUSVI_NB_CURRENTVID) & in cz_dpm_debugfs_print_current_performance_level() 544 tmp = (RREG32_SMC(ixSMUSVI_GFX_CURRENTVID) & in cz_dpm_debugfs_print_current_performance_level() 1520 uint32_t val = RREG32_SMC(ixTHM_TCON_CUR_TMP); in cz_dpm_get_temperature()
|
D | uvd_v6_0.c | 93 (RREG32_SMC(ixCC_HARVEST_FUSES) & CC_HARVEST_FUSES__UVD_DISABLE_MASK)) in uvd_v6_0_early_init() 970 u32 tmp = RREG32_SMC(ixGCK_DFS_BYPASS_CNTL); in uvd_v6_set_bypass_mode()
|
D | vce_v2_0.c | 544 u32 tmp = RREG32_SMC(ixGCK_DFS_BYPASS_CNTL); in vce_v2_0_set_bypass_mode()
|
D | amdgpu_cgs.c | 310 return RREG32_SMC(index); in amdgpu_cgs_read_ind_register()
|
D | si_dpm.c | 2846 data = RREG32_SMC(offset); in si_program_cac_config_registers() 7580 cg_thermal_int = RREG32_SMC(CG_THERMAL_INT); in si_dpm_set_interrupt_state() 7585 cg_thermal_int = RREG32_SMC(CG_THERMAL_INT); in si_dpm_set_interrupt_state() 7597 cg_thermal_int = RREG32_SMC(CG_THERMAL_INT); in si_dpm_set_interrupt_state() 7602 cg_thermal_int = RREG32_SMC(CG_THERMAL_INT); in si_dpm_set_interrupt_state()
|
D | amdgpu.h | 2163 #define RREG32_SMC(reg) adev->smc_rreg(adev, (reg)) macro
|
D | amdgpu_device.c | 2726 value = RREG32_SMC(*pos); in amdgpu_debugfs_regs_smc_read()
|