/linux-6.6.21/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 | 1339 u32 evclk; member 1434 u32 evclk; member 1523 u32 evclk; member 1956 int (*set_vce_clocks)(struct radeon_device *rdev, u32 evclk, u32 ecclk);
|
D | ci_dpm.c | 781 rps->evclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].evclk; in ci_apply_state_adjust_rules() 784 rps->evclk = 0; in ci_apply_state_adjust_rules() 2664 rdev->pm.dpm.dyn_state.vce_clock_voltage_dependency_table.entries[count].evclk; in ci_populate_smc_vce_level() 4068 if (table->entries[i].evclk >= min_evclk) in ci_get_vce_boot_level() 4083 if (radeon_current_state->evclk != radeon_new_state->evclk) { in ci_update_vce_dpm() 4084 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-6.6.21/drivers/gpu/drm/amd/pm/legacy-dpm/ |
D | kv_dpm.c | 978 pi->vce_level[i].Frequency = cpu_to_be32(table->entries[i].evclk); in kv_populate_vce_table() 982 (u8)kv_get_clk_bypass(adev, table->entries[i].evclk); in kv_populate_vce_table() 985 table->entries[i].evclk, false, ÷rs); in kv_populate_vce_table() 1533 static u8 kv_get_vce_boot_level(struct amdgpu_device *adev, u32 evclk) in kv_get_vce_boot_level() argument 1540 if (table->entries[i].evclk >= evclk) in kv_get_vce_boot_level() 1556 if (amdgpu_new_state->evclk > 0 && amdgpu_current_state->evclk == 0) { in kv_update_vce_dpm() 1560 pi->vce_boot_level = kv_get_vce_boot_level(adev, amdgpu_new_state->evclk); in kv_update_vce_dpm() 1576 } else if (amdgpu_new_state->evclk == 0 && amdgpu_current_state->evclk > 0) { in kv_update_vce_dpm() 2211 new_rps->evclk = adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].evclk; in kv_apply_state_adjust_rules() 2214 new_rps->evclk = 0; in kv_apply_state_adjust_rules() [all …]
|
D | si_dpm.c | 3031 u32 evclk, u32 ecclk, u16 *voltage) in si_get_vce_clock_voltage() argument 3038 if (((evclk == 0) && (ecclk == 0)) || in si_get_vce_clock_voltage() 3045 if ((evclk <= table->entries[i].evclk) && in si_get_vce_clock_voltage() 3461 rps->evclk = adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].evclk; in si_apply_state_adjust_rules() 3463 si_get_vce_clock_voltage(adev, rps->evclk, rps->ecclk, in si_apply_state_adjust_rules() 3466 rps->evclk = 0; in si_apply_state_adjust_rules() 7009 if ((old_rps->evclk != new_rps->evclk) || in si_set_vce_clock() 7012 if (new_rps->evclk || new_rps->ecclk) { in si_set_vce_clock() 8001 *equal &= ((cps->evclk == rps->evclk) && (cps->ecclk == rps->ecclk)); in si_check_state_equal()
|
D | legacy_dpm.c | 439 adev->pm.dpm.dyn_state.vce_clock_voltage_dependency_table.entries[i].evclk = in amdgpu_parse_extended_power_table() 455 adev->pm.dpm.vce_states[i].evclk = in amdgpu_parse_extended_power_table()
|
/linux-6.6.21/drivers/gpu/drm/amd/pm/powerplay/inc/ |
D | power_state.h | 181 unsigned long evclk; member
|
D | hwmgr.h | 104 uint32_t evclk; member 158 uint32_t evclk; member
|
/linux-6.6.21/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-6.6.21/drivers/gpu/drm/amd/pm/inc/ |
D | amdgpu_dpm.h | 63 u32 evclk; member 163 u32 evclk; member
|
/linux-6.6.21/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 | soc21.c | 424 static int soc21_set_vce_clocks(struct amdgpu_device *adev, u32 evclk, u32 ecclk) in soc21_set_vce_clocks() argument
|
D | nv.c | 508 static int nv_set_vce_clocks(struct amdgpu_device *adev, u32 evclk, u32 ecclk) in nv_set_vce_clocks() argument
|
D | soc15.c | 637 static int soc15_set_vce_clocks(struct amdgpu_device *adev, u32 evclk, u32 ecclk) in soc15_set_vce_clocks() argument
|
D | cik.c | 1493 static int cik_set_vce_clocks(struct amdgpu_device *adev, u32 evclk, u32 ecclk) in cik_set_vce_clocks() argument
|
/linux-6.6.21/drivers/gpu/drm/amd/include/ |
D | kgd_pp_interface.h | 38 u32 evclk; member
|