/linux-6.3-rc2/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
A D | pp_psm.c | 64 hwmgr->current_ps = kzalloc(size, GFP_KERNEL); in psm_init_power_state_table() 65 if (hwmgr->current_ps == NULL) { in psm_init_power_state_table() 78 kfree(hwmgr->current_ps); in psm_init_power_state_table() 81 hwmgr->current_ps = NULL; in psm_init_power_state_table() 89 memcpy(hwmgr->current_ps, state, size); in psm_init_power_state_table() 111 kfree(hwmgr->current_ps); in psm_fini_power_state_table() 116 hwmgr->current_ps = NULL; in psm_fini_power_state_table() 255 pcurrent = hwmgr->current_ps; in power_state_management() 264 memcpy(hwmgr->current_ps, hwmgr->request_ps, hwmgr->ps_size); in power_state_management()
|
A D | hardwaremanager.c | 131 const struct pp_power_state *current_ps) in phm_apply_state_adjust_rules() argument 139 current_ps); in phm_apply_state_adjust_rules()
|
/linux-6.3-rc2/drivers/gpu/drm/radeon/ |
A D | trinity_dpm.c | 923 struct trinity_ps *current_ps = trinity_get_ps(new_rps); in trinity_set_uvd_clock_before_set_eng_clock() local 926 current_ps->levels[current_ps->num_levels - 1].sclk) in trinity_set_uvd_clock_before_set_eng_clock() 937 struct trinity_ps *current_ps = trinity_get_ps(old_rps); in trinity_set_uvd_clock_after_set_eng_clock() local 940 current_ps->levels[current_ps->num_levels - 1].sclk) in trinity_set_uvd_clock_after_set_eng_clock() 1030 pi->current_ps = *new_ps; in trinity_update_current_ps() 1031 pi->current_rps.ps_priv = &pi->current_ps; in trinity_update_current_ps() 1309 pi->current_ps.num_levels = 1; in trinity_construct_boot_state() 1310 pi->current_ps.levels[0] = pi->boot_pl; in trinity_construct_boot_state() 1356 struct trinity_ps *current_ps) in trinity_patch_thermal_state() argument 1364 if (current_ps) { in trinity_patch_thermal_state() [all …]
|
A D | sumo_dpm.c | 838 struct sumo_ps *current_ps = sumo_get_ps(old_rps); in sumo_set_uvd_clock_before_set_eng_clock() local 845 current_ps->levels[current_ps->num_levels - 1].sclk) in sumo_set_uvd_clock_before_set_eng_clock() 856 struct sumo_ps *current_ps = sumo_get_ps(old_rps); in sumo_set_uvd_clock_after_set_eng_clock() local 863 current_ps->levels[current_ps->num_levels - 1].sclk) in sumo_set_uvd_clock_after_set_eng_clock() 1044 struct sumo_ps *current_ps) in sumo_patch_thermal_state() argument 1052 if (current_ps) { in sumo_patch_thermal_state() 1091 struct sumo_ps *current_ps = sumo_get_ps(old_rps); in sumo_apply_state_adjust_rules() local 1187 pi->current_ps = *new_ps; in sumo_update_current_ps() 1188 pi->current_rps.ps_priv = &pi->current_ps; in sumo_update_current_ps() 1736 pi->current_ps.num_levels = 1; in sumo_construct_boot_and_acpi_state() [all …]
|
A D | trinity_dpm.h | 114 struct trinity_ps current_ps; member
|
A D | rs780_dpm.c | 380 struct igp_ps *current_state = rs780_get_ps(rdev->pm.dpm.current_ps); in rs780_force_voltage() 407 struct igp_ps *current_state = rs780_get_ps(rdev->pm.dpm.current_ps); in rs780_force_fbdiv() 653 struct radeon_ps *old_ps = rdev->pm.dpm.current_ps; in rs780_dpm_set_power_state() 984 struct radeon_ps *rps = rdev->pm.dpm.current_ps; in rs780_dpm_debugfs_print_current_performance_level() 1031 struct radeon_ps *rps = rdev->pm.dpm.current_ps; in rs780_dpm_force_performance_level()
|
A D | cypress_dpm.h | 92 struct rv7xx_ps current_ps; member
|
A D | kv_dpm.h | 181 struct kv_ps current_ps; member
|
A D | sumo_dpm.h | 133 struct sumo_ps current_ps; member
|
A D | ni_dpm.h | 205 struct ni_ps current_ps; member
|
A D | radeon_pm.c | 1081 if (rdev->pm.dpm.current_ps == rdev->pm.dpm.requested_ps) { in radeon_dpm_change_power_state_locked() 1127 radeon_dpm_print_power_state(rdev, rdev->pm.dpm.current_ps); in radeon_dpm_change_power_state_locked() 1158 rdev->pm.dpm.current_ps = rdev->pm.dpm.requested_ps; in radeon_dpm_change_power_state_locked() 1261 rdev->pm.dpm.current_ps = rdev->pm.dpm.requested_ps = rdev->pm.dpm.boot_ps; in radeon_pm_suspend_dpm() 1317 rdev->pm.dpm.current_ps = rdev->pm.dpm.requested_ps = rdev->pm.dpm.boot_ps; in radeon_pm_resume_dpm() 1443 rdev->pm.dpm.current_ps = rdev->pm.dpm.requested_ps = rdev->pm.dpm.boot_ps; in radeon_pm_init_dpm()
|
A D | ci_dpm.h | 290 struct ci_ps current_ps; member
|
A D | rv6xx_dpm.c | 1660 struct radeon_ps *old_ps = rdev->pm.dpm.current_ps; in rv6xx_dpm_set_power_state() 2031 struct radeon_ps *rps = rdev->pm.dpm.current_ps; in rv6xx_dpm_debugfs_print_current_performance_level() 2056 struct radeon_ps *rps = rdev->pm.dpm.current_ps; in rv6xx_dpm_get_current_sclk() 2079 struct radeon_ps *rps = rdev->pm.dpm.current_ps; in rv6xx_dpm_get_current_mclk()
|
A D | rv770_dpm.c | 2042 struct radeon_ps *old_ps = rdev->pm.dpm.current_ps; in rv770_dpm_set_power_state() 2470 struct radeon_ps *rps = rdev->pm.dpm.current_ps; in rv770_dpm_debugfs_print_current_performance_level() 2499 struct radeon_ps *rps = rdev->pm.dpm.current_ps; in rv770_dpm_get_current_sclk() 2521 struct radeon_ps *rps = rdev->pm.dpm.current_ps; in rv770_dpm_get_current_mclk()
|
A D | btc_dpm.c | 2263 eg_pi->current_ps = *new_ps; in btc_update_current_ps() 2264 eg_pi->current_rps.ps_priv = &eg_pi->current_ps; in btc_update_current_ps()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/powerplay/ |
A D | amd_powerplay.c | 434 if (!hwmgr || !hwmgr->pm_en || !hwmgr->current_ps) in pp_dpm_get_current_power_state() 437 state = hwmgr->current_ps; in pp_dpm_get_current_power_state() 1023 ret = phm_get_clock_info(hwmgr, &hwmgr->current_ps->hardware, in pp_get_current_clocks() 1026 ret = phm_get_clock_info(hwmgr, &hwmgr->current_ps->hardware, in pp_get_current_clocks() 1049 if (0 == phm_get_current_shallow_sleep_clocks(hwmgr, &hwmgr->current_ps->hardware, &hw_clocks)) { in pp_get_current_clocks()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/legacy-dpm/ |
A D | kv_dpm.h | 207 struct kv_ps current_ps; member
|
A D | si_dpm.h | 683 struct rv7xx_ps current_ps; member 852 struct si_ps current_ps; member
|
A D | kv_dpm.c | 1230 pi->current_ps = *new_ps; in kv_update_current_ps() 1231 pi->current_rps.ps_priv = &pi->current_ps; in kv_update_current_ps() 1232 adev->pm.dpm.current_ps = &pi->current_rps; in kv_update_current_ps() 3027 adev->pm.dpm.current_ps = adev->pm.dpm.requested_ps = adev->pm.dpm.boot_ps; in kv_dpm_sw_init() 3087 adev->pm.dpm.current_ps = adev->pm.dpm.requested_ps = adev->pm.dpm.boot_ps; in kv_dpm_suspend() 3227 void *current_ps, in kv_check_state_equal() argument 3234 struct amdgpu_ps *cps = (struct amdgpu_ps *)current_ps; in kv_check_state_equal()
|
A D | legacy_dpm.c | 127 if (rps == adev->pm.dpm.current_ps) in amdgpu_dpm_print_ps_status() 982 amdgpu_dpm_print_power_state(adev, adev->pm.dpm.current_ps); in amdgpu_dpm_change_power_state_locked() 997 …if (0 != amdgpu_dpm_check_state_equal(adev, adev->pm.dpm.current_ps, adev->pm.dpm.requested_ps, &e… in amdgpu_dpm_change_power_state_locked()
|
A D | si_dpm.c | 3149 ni_pi->current_ps = *new_ps; in ni_update_current_ps() 3150 eg_pi->current_rps.ps_priv = &ni_pi->current_ps; in ni_update_current_ps() 3151 adev->pm.dpm.current_ps = &eg_pi->current_rps; in ni_update_current_ps() 3858 struct amdgpu_ps *rps = adev->pm.dpm.current_ps; in si_dpm_force_performance_level() 7760 adev->pm.dpm.current_ps = adev->pm.dpm.requested_ps = adev->pm.dpm.boot_ps; in si_dpm_sw_init() 7821 adev->pm.dpm.current_ps = adev->pm.dpm.requested_ps = adev->pm.dpm.boot_ps; in si_dpm_suspend() 7919 void *current_ps) in si_dpm_print_power_state() argument 7922 struct amdgpu_ps *rps = (struct amdgpu_ps *)current_ps; in si_dpm_print_power_state() 7964 void *current_ps, in si_check_state_equal() argument 7971 struct amdgpu_ps *cps = (struct amdgpu_ps *)current_ps; in si_check_state_equal()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/powerplay/inc/ |
A D | hardwaremanager.h | 410 const struct pp_power_state *current_ps);
|
A D | hwmgr.h | 792 struct pp_power_state *current_ps; member
|
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/inc/ |
A D | amdgpu_dpm.h | 241 struct amdgpu_ps *current_ps; member
|
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/ |
A D | amdgpu_dpm.c | 1149 adev->pm.dpm.current_ps = adev->pm.dpm.boot_ps; in amdgpu_dpm_set_sclk_od() 1186 adev->pm.dpm.current_ps = adev->pm.dpm.boot_ps; in amdgpu_dpm_set_mclk_od()
|