Home
last modified time | relevance | path

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

/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()
1058 phm_ppt_v1_clock_voltage_dependency_table *dep_table, in vega10_get_mvdd_voltage_table() argument
1063 PP_ASSERT_WITH_CODE(dep_table->count, in vega10_get_mvdd_voltage_table()
1069 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);
119 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
389 dep_table = kzalloc(table_size, GFP_KERNEL); in get_clock_voltage_dependency_table()
390 if (NULL == dep_table) in get_clock_voltage_dependency_table()
393 dep_table->count = (unsigned long)table->ucNumEntries; in get_clock_voltage_dependency_table()
395 for (i = 0; i < dep_table->count; i++) { in get_clock_voltage_dependency_table()
396 dep_table->entries[i].clk = in get_clock_voltage_dependency_table()
399 dep_table->entries[i].v = in get_clock_voltage_dependency_table()
403 *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.c951 struct phm_ppt_v1_clock_voltage_dependency_table *dep_table; in smu7_check_dpm_table_updated() local
973 dep_table = table_info->vdd_dep_on_mclk; in smu7_check_dpm_table_updated()
976 for (i = 0; i < dep_table->count; i++) { in smu7_check_dpm_table_updated()
977 if (dep_table->entries[i].vddc != odn_dep_table->entries[i].vddc) { in smu7_check_dpm_table_updated()
983 dep_table = table_info->vdd_dep_on_sclk; in smu7_check_dpm_table_updated()
985 for (i = 0; i < dep_table->count; i++) { in smu7_check_dpm_table_updated()
986 if (dep_table->entries[i].vddc != odn_dep_table->entries[i].vddc) { in smu7_check_dpm_table_updated()
/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.c354 struct phm_ppt_v1_clock_voltage_dependency_table *dep_table, in fiji_get_dependency_volt_by_clk() argument
364 if (dep_table->count == 0) in fiji_get_dependency_volt_by_clk()
367 for (i = 0; i < dep_table->count; i++) { in fiji_get_dependency_volt_by_clk()
369 if (dep_table->entries[i].clk >= clock) { in fiji_get_dependency_volt_by_clk()
370 *voltage |= (dep_table->entries[i].vddc * in fiji_get_dependency_volt_by_clk()
375 else if (dep_table->entries[i].vddci) in fiji_get_dependency_volt_by_clk()
376 *voltage |= (dep_table->entries[i].vddci * in fiji_get_dependency_volt_by_clk()
380 (dep_table->entries[i].vddc - in fiji_get_dependency_volt_by_clk()
388 else if (dep_table->entries[i].mvdd) in fiji_get_dependency_volt_by_clk()
389 *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 …]
/drivers/gpu/drm/amd/pm/
Damdgpu_dpm.c291 ATOM_PPLIB_Clock_Voltage_Dependency_Table *dep_table; in amdgpu_parse_extended_power_table() local
336 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in amdgpu_parse_extended_power_table()
340 dep_table); in amdgpu_parse_extended_power_table()
347 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in amdgpu_parse_extended_power_table()
351 dep_table); in amdgpu_parse_extended_power_table()
358 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in amdgpu_parse_extended_power_table()
362 dep_table); in amdgpu_parse_extended_power_table()
369 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in amdgpu_parse_extended_power_table()
373 dep_table); in amdgpu_parse_extended_power_table()
708 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in amdgpu_parse_extended_power_table()
[all …]
/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()