/Linux-v5.15/drivers/gpu/drm/radeon/ |
D | trinity_dpm.c | 950 if ((old_rps->evclk != new_rps->evclk) || in trinity_set_vce_clock() 953 if (new_rps->evclk || new_rps->ecclk) in trinity_set_vce_clock() 957 radeon_set_vce_clocks(rdev, new_rps->evclk, new_rps->ecclk); in trinity_set_vce_clock() 1461 u32 evclk, u32 ecclk, u16 *voltage) in trinity_get_vce_clock_voltage() argument 1468 if (((evclk == 0) && (ecclk == 0)) || in trinity_get_vce_clock_voltage() 1475 if ((evclk <= table->entries[i].evclk) && in trinity_get_vce_clock_voltage() 1511 new_rps->evclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].evclk; in trinity_apply_state_adjust_rules() 1514 new_rps->evclk = 0; in trinity_apply_state_adjust_rules() 1532 trinity_get_vce_clock_voltage(rdev, new_rps->evclk, new_rps->ecclk, &min_vce_voltage); in trinity_apply_state_adjust_rules()
|
D | kv_dpm.c | 749 pi->vce_level[i].Frequency = cpu_to_be32(table->entries[i].evclk); in kv_populate_vce_table() 753 (u8)kv_get_clk_bypass(rdev, table->entries[i].evclk); in kv_populate_vce_table() 756 table->entries[i].evclk, false, ÷rs); in kv_populate_vce_table() 1280 static u8 kv_get_vce_boot_level(struct radeon_device *rdev, u32 evclk) in kv_get_vce_boot_level() argument 1287 if (table->entries[i].evclk >= evclk) in kv_get_vce_boot_level() 1303 if (radeon_new_state->evclk > 0 && radeon_current_state->evclk == 0) { in kv_update_vce_dpm() 1310 pi->vce_boot_level = kv_get_vce_boot_level(rdev, radeon_new_state->evclk); in kv_update_vce_dpm() 1327 } else if (radeon_new_state->evclk == 0 && radeon_current_state->evclk > 0) { in kv_update_vce_dpm() 1952 new_rps->evclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].evclk; in kv_apply_state_adjust_rules() 1955 new_rps->evclk = 0; in kv_apply_state_adjust_rules() [all …]
|
D | radeon_asic.h | 697 int tn_set_vce_clocks(struct radeon_device *rdev, u32 evclk, u32 ecclk); 749 int si_set_vce_clocks(struct radeon_device *rdev, u32 evclk, u32 ecclk); 787 int cik_set_vce_clocks(struct radeon_device *rdev, u32 evclk, u32 ecclk);
|
D | si_dpm.c | 2915 u32 evclk, u32 ecclk, u16 *voltage) in si_get_vce_clock_voltage() argument 2922 if (((evclk == 0) && (ecclk == 0)) || in si_get_vce_clock_voltage() 2929 if ((evclk <= table->entries[i].evclk) && in si_get_vce_clock_voltage() 2988 rps->evclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].evclk; in si_apply_state_adjust_rules() 2990 si_get_vce_clock_voltage(rdev, rps->evclk, rps->ecclk, in si_apply_state_adjust_rules() 2993 rps->evclk = 0; in si_apply_state_adjust_rules() 5915 if ((old_rps->evclk != new_rps->evclk) || in si_set_vce_clock() 5918 if (new_rps->evclk || new_rps->ecclk) in si_set_vce_clock() 5922 radeon_set_vce_clocks(rdev, new_rps->evclk, new_rps->ecclk); in si_set_vce_clock()
|
D | radeon.h | 1377 u32 evclk; member 1472 u32 evclk; member 1561 u32 evclk; member 1991 int (*set_vce_clocks)(struct radeon_device *rdev, u32 evclk, u32 ecclk);
|
D | ci_dpm.c | 782 rps->evclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].evclk; in ci_apply_state_adjust_rules() 785 rps->evclk = 0; in ci_apply_state_adjust_rules() 2667 rdev->pm.dpm.dyn_state.vce_clock_voltage_dependency_table.entries[count].evclk; in ci_populate_smc_vce_level() 4071 if (table->entries[i].evclk >= min_evclk) in ci_get_vce_boot_level() 4086 if (radeon_current_state->evclk != radeon_new_state->evclk) { in ci_update_vce_dpm() 4087 if (radeon_new_state->evclk) { in ci_update_vce_dpm()
|
D | r600_dpm.c | 1107 rdev->pm.dpm.dyn_state.vce_clock_voltage_dependency_table.entries[i].evclk = in r600_parse_extended_power_table() 1122 rdev->pm.dpm.vce_states[i].evclk = in r600_parse_extended_power_table()
|
/Linux-v5.15/drivers/gpu/drm/amd/pm/powerplay/ |
D | kv_dpm.c | 990 pi->vce_level[i].Frequency = cpu_to_be32(table->entries[i].evclk); in kv_populate_vce_table() 994 (u8)kv_get_clk_bypass(adev, table->entries[i].evclk); in kv_populate_vce_table() 997 table->entries[i].evclk, false, ÷rs); in kv_populate_vce_table() 1529 static u8 kv_get_vce_boot_level(struct amdgpu_device *adev, u32 evclk) in kv_get_vce_boot_level() argument 1536 if (table->entries[i].evclk >= evclk) in kv_get_vce_boot_level() 1552 if (amdgpu_new_state->evclk > 0 && amdgpu_current_state->evclk == 0) { in kv_update_vce_dpm() 1556 pi->vce_boot_level = kv_get_vce_boot_level(adev, amdgpu_new_state->evclk); in kv_update_vce_dpm() 1572 } else if (amdgpu_new_state->evclk == 0 && amdgpu_current_state->evclk > 0) { in kv_update_vce_dpm() 2219 new_rps->evclk = adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].evclk; in kv_apply_state_adjust_rules() 2222 new_rps->evclk = 0; in kv_apply_state_adjust_rules() [all …]
|
D | si_dpm.c | 3016 u32 evclk, u32 ecclk, u16 *voltage) in si_get_vce_clock_voltage() argument 3023 if (((evclk == 0) && (ecclk == 0)) || in si_get_vce_clock_voltage() 3030 if ((evclk <= table->entries[i].evclk) && in si_get_vce_clock_voltage() 3446 rps->evclk = adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].evclk; in si_apply_state_adjust_rules() 3448 si_get_vce_clock_voltage(adev, rps->evclk, rps->ecclk, in si_apply_state_adjust_rules() 3451 rps->evclk = 0; in si_apply_state_adjust_rules() 6959 if ((old_rps->evclk != new_rps->evclk) || in si_set_vce_clock() 6962 if (new_rps->evclk || new_rps->ecclk) { in si_set_vce_clock() 7975 *equal &= ((cps->evclk == rps->evclk) && (cps->ecclk == rps->ecclk)); in si_check_state_equal()
|
/Linux-v5.15/drivers/gpu/drm/amd/pm/inc/ |
D | power_state.h | 180 unsigned long evclk; member
|
D | amdgpu_dpm.h | 63 u32 evclk; member 174 u32 evclk; member
|
D | hwmgr.h | 104 uint32_t evclk; member 158 uint32_t evclk; member
|
/Linux-v5.15/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | smu10_hwmgr.h | 131 uint32_t evclk; member
|
D | smu8_hwmgr.h | 147 uint32_t evclk; member
|
D | smu7_hwmgr.h | 73 uint32_t evclk; member
|
D | vega10_hwmgr.h | 101 uint32_t evclk; member
|
D | vega20_hwmgr.h | 118 uint32_t evclk; member
|
D | processpptables.c | 1252 vce_table->entries[i].evclk = ((unsigned long)entry->ucEVClkHigh << 16) in get_vce_clock_voltage_limit_table() 1688 …vce_state->evclk = ((uint32_t)vce_clock_info->ucEVClkHigh << 16) | le16_to_cpu(vce_clock_info->usE… in get_vce_state_table_entry()
|
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/ |
D | si.c | 1898 static int si_set_vce_clocks(struct amdgpu_device *adev, u32 evclk, u32 ecclk) in si_set_vce_clocks() argument 1912 if (!evclk || !ecclk) { in si_set_vce_clocks() 1919 r = si_calc_upll_dividers(adev, evclk, ecclk, 125000, 250000, in si_set_vce_clocks()
|
D | amdgpu.h | 651 int (*set_vce_clocks)(struct amdgpu_device *adev, u32 evclk, u32 ecclk);
|
D | nv.c | 563 static int nv_set_vce_clocks(struct amdgpu_device *adev, u32 evclk, u32 ecclk) in nv_set_vce_clocks() argument
|
D | cik.c | 1489 static int cik_set_vce_clocks(struct amdgpu_device *adev, u32 evclk, u32 ecclk) in cik_set_vce_clocks() argument
|
D | soc15.c | 665 static int soc15_set_vce_clocks(struct amdgpu_device *adev, u32 evclk, u32 ecclk) in soc15_set_vce_clocks() argument
|
/Linux-v5.15/drivers/gpu/drm/amd/include/ |
D | kgd_pp_interface.h | 31 u32 evclk; member
|
/Linux-v5.15/drivers/gpu/drm/amd/pm/ |
D | amdgpu_dpm.c | 519 adev->pm.dpm.dyn_state.vce_clock_voltage_dependency_table.entries[i].evclk = in amdgpu_parse_extended_power_table() 535 adev->pm.dpm.vce_states[i].evclk = in amdgpu_parse_extended_power_table()
|