Home
last modified time | relevance | path

Searched refs:dep_table (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dsmu_helper.c249 phm_ppt_v1_clock_voltage_dependency_table *dep_table) in phm_get_svi2_mvdd_voltage_table() argument
254 PP_ASSERT_WITH_CODE((0 != dep_table->count), in phm_get_svi2_mvdd_voltage_table()
262 vol_table->count = dep_table->count; in phm_get_svi2_mvdd_voltage_table()
264 for (i = 0; i < dep_table->count; i++) { in phm_get_svi2_mvdd_voltage_table()
265 vol_table->entries[i].value = dep_table->entries[i].mvdd; in phm_get_svi2_mvdd_voltage_table()
277 phm_ppt_v1_clock_voltage_dependency_table *dep_table) in phm_get_svi2_vddci_voltage_table() argument
282 PP_ASSERT_WITH_CODE((0 != dep_table->count), in phm_get_svi2_vddci_voltage_table()
290 vol_table->count = dep_table->count; in phm_get_svi2_vddci_voltage_table()
292 for (i = 0; i < dep_table->count; i++) { in phm_get_svi2_vddci_voltage_table()
293 vol_table->entries[i].value = dep_table->entries[i].vddci; in phm_get_svi2_vddci_voltage_table()
[all …]
Dvega10_hwmgr.c312 struct phm_ppt_v1_clock_voltage_dependency_table *dep_table[3]; in vega10_odn_initial_default_setting() local
332 dep_table[0] = table_info->vdd_dep_on_sclk; in vega10_odn_initial_default_setting()
333 dep_table[1] = table_info->vdd_dep_on_mclk; in vega10_odn_initial_default_setting()
334 dep_table[2] = table_info->vdd_dep_on_socclk; in vega10_odn_initial_default_setting()
340 smu_get_voltage_dependency_table_ppt_v1(dep_table[i], od_table[i]); in vega10_odn_initial_default_setting()
343 odn_table->max_vddc = dep_table[0]->entries[dep_table[0]->count - 1].vddc; in vega10_odn_initial_default_setting()
345 odn_table->min_vddc = dep_table[0]->entries[0].vddc; in vega10_odn_initial_default_setting()
1057 phm_ppt_v1_clock_voltage_dependency_table *dep_table, in vega10_get_mvdd_voltage_table() argument
1062 PP_ASSERT_WITH_CODE(dep_table->count, in vega10_get_mvdd_voltage_table()
1068 vol_table->count = dep_table->count; in vega10_get_mvdd_voltage_table()
[all …]
Dsmu_helper.h76 …struct pp_atomctrl_voltage_table *vol_table, phm_ppt_v1_clock_voltage_dependency_table *dep_table);
77 …struct pp_atomctrl_voltage_table *vol_table, phm_ppt_v1_clock_voltage_dependency_table *dep_table);
132 struct phm_ppt_v1_clock_voltage_dependency_table *dep_table);
Dprocesspptables.c383 struct phm_clock_voltage_dependency_table *dep_table; in get_clock_voltage_dependency_table() local
385 dep_table = kzalloc(struct_size(dep_table, entries, table->ucNumEntries), in get_clock_voltage_dependency_table()
387 if (NULL == dep_table) in get_clock_voltage_dependency_table()
390 dep_table->count = (unsigned long)table->ucNumEntries; in get_clock_voltage_dependency_table()
392 for (i = 0; i < dep_table->count; i++) { in get_clock_voltage_dependency_table()
393 dep_table->entries[i].clk = in get_clock_voltage_dependency_table()
396 dep_table->entries[i].v = in get_clock_voltage_dependency_table()
400 *ptable = dep_table; in get_clock_voltage_dependency_table()
Dsmu8_hwmgr.c261 struct phm_clock_voltage_dependency_table *dep_table = in smu8_construct_max_power_limits_table() local
264 if (dep_table->count > 0) { in smu8_construct_max_power_limits_table()
265 table->sclk = dep_table->entries[dep_table->count-1].clk; in smu8_construct_max_power_limits_table()
267 (uint16_t)dep_table->entries[dep_table->count-1].v); in smu8_construct_max_power_limits_table()
Dsmu7_hwmgr.c1014 struct phm_ppt_v1_clock_voltage_dependency_table *dep_table; in smu7_check_dpm_table_updated() local
1036 dep_table = table_info->vdd_dep_on_mclk; in smu7_check_dpm_table_updated()
1039 for (i = 0; i < dep_table->count; i++) { in smu7_check_dpm_table_updated()
1040 if (dep_table->entries[i].vddc != odn_dep_table->entries[i].vddc) { in smu7_check_dpm_table_updated()
1046 dep_table = table_info->vdd_dep_on_sclk; in smu7_check_dpm_table_updated()
1048 for (i = 0; i < dep_table->count; i++) { in smu7_check_dpm_table_updated()
1049 if (dep_table->entries[i].vddc != odn_dep_table->entries[i].vddc) { in smu7_check_dpm_table_updated()
/linux-6.1.9/drivers/gpu/drm/amd/pm/legacy-dpm/
Dlegacy_dpm.c225 ATOM_PPLIB_Clock_Voltage_Dependency_Table *dep_table; in amdgpu_parse_extended_power_table() local
270 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in amdgpu_parse_extended_power_table()
274 dep_table); in amdgpu_parse_extended_power_table()
281 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in amdgpu_parse_extended_power_table()
285 dep_table); in amdgpu_parse_extended_power_table()
292 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in amdgpu_parse_extended_power_table()
296 dep_table); in amdgpu_parse_extended_power_table()
303 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in amdgpu_parse_extended_power_table()
307 dep_table); in amdgpu_parse_extended_power_table()
642 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in amdgpu_parse_extended_power_table()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Dvegam_smumgr.c602 struct phm_ppt_v1_clock_voltage_dependency_table *dep_table, in vegam_get_dependency_volt_by_clk() argument
612 if (dep_table->count == 0) in vegam_get_dependency_volt_by_clk()
615 for (i = 0; i < dep_table->count; i++) { in vegam_get_dependency_volt_by_clk()
617 if (dep_table->entries[i].clk >= clock) { in vegam_get_dependency_volt_by_clk()
618 *voltage |= (dep_table->entries[i].vddc * in vegam_get_dependency_volt_by_clk()
623 else if (dep_table->entries[i].vddci) in vegam_get_dependency_volt_by_clk()
624 *voltage |= (dep_table->entries[i].vddci * in vegam_get_dependency_volt_by_clk()
628 (dep_table->entries[i].vddc - in vegam_get_dependency_volt_by_clk()
636 else if (dep_table->entries[i].mvdd) in vegam_get_dependency_volt_by_clk()
637 *mvdd = (uint32_t) dep_table->entries[i].mvdd * in vegam_get_dependency_volt_by_clk()
[all …]
Dfiji_smumgr.c353 struct phm_ppt_v1_clock_voltage_dependency_table *dep_table, in fiji_get_dependency_volt_by_clk() argument
363 if (dep_table->count == 0) in fiji_get_dependency_volt_by_clk()
366 for (i = 0; i < dep_table->count; i++) { in fiji_get_dependency_volt_by_clk()
368 if (dep_table->entries[i].clk >= clock) { in fiji_get_dependency_volt_by_clk()
369 *voltage |= (dep_table->entries[i].vddc * in fiji_get_dependency_volt_by_clk()
374 else if (dep_table->entries[i].vddci) in fiji_get_dependency_volt_by_clk()
375 *voltage |= (dep_table->entries[i].vddci * in fiji_get_dependency_volt_by_clk()
379 (dep_table->entries[i].vddc - in fiji_get_dependency_volt_by_clk()
387 else if (dep_table->entries[i].mvdd) in fiji_get_dependency_volt_by_clk()
388 *mvdd = (uint32_t) dep_table->entries[i].mvdd * in fiji_get_dependency_volt_by_clk()
[all …]
Dpolaris10_smumgr.c354 struct phm_ppt_v1_clock_voltage_dependency_table *dep_table, in polaris10_get_dependency_volt_by_clk() argument
364 if (dep_table->count == 0) in polaris10_get_dependency_volt_by_clk()
367 for (i = 0; i < dep_table->count; i++) { in polaris10_get_dependency_volt_by_clk()
369 if (dep_table->entries[i].clk >= clock) { in polaris10_get_dependency_volt_by_clk()
370 *voltage |= (dep_table->entries[i].vddc * in polaris10_get_dependency_volt_by_clk()
375 else if (dep_table->entries[i].vddci) in polaris10_get_dependency_volt_by_clk()
376 *voltage |= (dep_table->entries[i].vddci * in polaris10_get_dependency_volt_by_clk()
380 (dep_table->entries[i].vddc - in polaris10_get_dependency_volt_by_clk()
388 else if (dep_table->entries[i].mvdd) in polaris10_get_dependency_volt_by_clk()
389 *mvdd = (uint32_t) dep_table->entries[i].mvdd * in polaris10_get_dependency_volt_by_clk()
[all …]
/linux-6.1.9/drivers/gpu/drm/radeon/
Dr600_dpm.c878 ATOM_PPLIB_Clock_Voltage_Dependency_Table *dep_table; in r600_parse_extended_power_table() local
923 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in r600_parse_extended_power_table()
927 dep_table); in r600_parse_extended_power_table()
932 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in r600_parse_extended_power_table()
936 dep_table); in r600_parse_extended_power_table()
943 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in r600_parse_extended_power_table()
947 dep_table); in r600_parse_extended_power_table()
955 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in r600_parse_extended_power_table()
959 dep_table); in r600_parse_extended_power_table()