Searched refs:dep_table (Results 1 – 11 of 11) sorted by relevance
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/hwmgr/ |
D | smu_helper.c | 248 phm_ppt_v1_clock_voltage_dependency_table *dep_table) in phm_get_svi2_mvdd_voltage_table() argument 253 PP_ASSERT_WITH_CODE((0 != dep_table->count), in phm_get_svi2_mvdd_voltage_table() 261 vol_table->count = dep_table->count; in phm_get_svi2_mvdd_voltage_table() 263 for (i = 0; i < dep_table->count; i++) { in phm_get_svi2_mvdd_voltage_table() 264 vol_table->entries[i].value = dep_table->entries[i].mvdd; in phm_get_svi2_mvdd_voltage_table() 276 phm_ppt_v1_clock_voltage_dependency_table *dep_table) in phm_get_svi2_vddci_voltage_table() argument 281 PP_ASSERT_WITH_CODE((0 != dep_table->count), in phm_get_svi2_vddci_voltage_table() 289 vol_table->count = dep_table->count; in phm_get_svi2_vddci_voltage_table() 291 for (i = 0; i < dep_table->count; i++) { in phm_get_svi2_vddci_voltage_table() 292 vol_table->entries[i].value = dep_table->entries[i].vddci; in phm_get_svi2_vddci_voltage_table() [all …]
|
D | vega10_hwmgr.c | 309 struct phm_ppt_v1_clock_voltage_dependency_table *dep_table[3]; in vega10_odn_initial_default_setting() local 329 dep_table[0] = table_info->vdd_dep_on_sclk; in vega10_odn_initial_default_setting() 330 dep_table[1] = table_info->vdd_dep_on_mclk; in vega10_odn_initial_default_setting() 331 dep_table[2] = table_info->vdd_dep_on_socclk; in vega10_odn_initial_default_setting() 337 smu_get_voltage_dependency_table_ppt_v1(dep_table[i], od_table[i]); in vega10_odn_initial_default_setting() 340 odn_table->max_vddc = dep_table[0]->entries[dep_table[0]->count - 1].vddc; in vega10_odn_initial_default_setting() 342 odn_table->min_vddc = dep_table[0]->entries[0].vddc; in vega10_odn_initial_default_setting() 1050 phm_ppt_v1_clock_voltage_dependency_table *dep_table, in vega10_get_mvdd_voltage_table() argument 1055 PP_ASSERT_WITH_CODE(dep_table->count, in vega10_get_mvdd_voltage_table() 1061 vol_table->count = dep_table->count; in vega10_get_mvdd_voltage_table() [all …]
|
D | smu_helper.h | 76 …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);
|
D | processpptables.c | 381 struct phm_clock_voltage_dependency_table *dep_table; in get_clock_voltage_dependency_table() local 387 dep_table = kzalloc(table_size, GFP_KERNEL); in get_clock_voltage_dependency_table() 388 if (NULL == dep_table) in get_clock_voltage_dependency_table() 391 dep_table->count = (unsigned long)table->ucNumEntries; in get_clock_voltage_dependency_table() 393 for (i = 0; i < dep_table->count; i++) { in get_clock_voltage_dependency_table() 394 dep_table->entries[i].clk = in get_clock_voltage_dependency_table() 397 dep_table->entries[i].v = in get_clock_voltage_dependency_table() 401 *ptable = dep_table; in get_clock_voltage_dependency_table()
|
D | smu8_hwmgr.c | 259 struct phm_clock_voltage_dependency_table *dep_table = in smu8_construct_max_power_limits_table() local 262 if (dep_table->count > 0) { in smu8_construct_max_power_limits_table() 263 table->sclk = dep_table->entries[dep_table->count-1].clk; in smu8_construct_max_power_limits_table() 265 (uint16_t)dep_table->entries[dep_table->count-1].v); in smu8_construct_max_power_limits_table()
|
D | smu7_hwmgr.c | 900 struct phm_ppt_v1_clock_voltage_dependency_table *dep_table; in smu7_check_dpm_table_updated() local 922 dep_table = table_info->vdd_dep_on_mclk; in smu7_check_dpm_table_updated() 925 for (i = 0; i < dep_table->count; i++) { in smu7_check_dpm_table_updated() 926 if (dep_table->entries[i].vddc != odn_dep_table->entries[i].vddc) { in smu7_check_dpm_table_updated() 932 dep_table = table_info->vdd_dep_on_sclk; in smu7_check_dpm_table_updated() 934 for (i = 0; i < dep_table->count; i++) { in smu7_check_dpm_table_updated() 935 if (dep_table->entries[i].vddc != odn_dep_table->entries[i].vddc) { in smu7_check_dpm_table_updated()
|
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_dpm.c | 286 ATOM_PPLIB_Clock_Voltage_Dependency_Table *dep_table; in amdgpu_parse_extended_power_table() local 331 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in amdgpu_parse_extended_power_table() 335 dep_table); in amdgpu_parse_extended_power_table() 342 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in amdgpu_parse_extended_power_table() 346 dep_table); in amdgpu_parse_extended_power_table() 353 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in amdgpu_parse_extended_power_table() 357 dep_table); in amdgpu_parse_extended_power_table() 364 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in amdgpu_parse_extended_power_table() 368 dep_table); in amdgpu_parse_extended_power_table() 703 dep_table = (ATOM_PPLIB_Clock_Voltage_Dependency_Table *) in amdgpu_parse_extended_power_table() [all …]
|
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/smumgr/ |
D | vegam_smumgr.c | 600 struct phm_ppt_v1_clock_voltage_dependency_table *dep_table, in vegam_get_dependency_volt_by_clk() argument 610 if (dep_table->count == 0) in vegam_get_dependency_volt_by_clk() 613 for (i = 0; i < dep_table->count; i++) { in vegam_get_dependency_volt_by_clk() 615 if (dep_table->entries[i].clk >= clock) { in vegam_get_dependency_volt_by_clk() 616 *voltage |= (dep_table->entries[i].vddc * in vegam_get_dependency_volt_by_clk() 621 else if (dep_table->entries[i].vddci) in vegam_get_dependency_volt_by_clk() 622 *voltage |= (dep_table->entries[i].vddci * in vegam_get_dependency_volt_by_clk() 626 (dep_table->entries[i].vddc - in vegam_get_dependency_volt_by_clk() 634 else if (dep_table->entries[i].mvdd) in vegam_get_dependency_volt_by_clk() 635 *mvdd = (uint32_t) dep_table->entries[i].mvdd * in vegam_get_dependency_volt_by_clk() [all …]
|
D | fiji_smumgr.c | 355 struct phm_ppt_v1_clock_voltage_dependency_table *dep_table, in fiji_get_dependency_volt_by_clk() argument 365 if (dep_table->count == 0) in fiji_get_dependency_volt_by_clk() 368 for (i = 0; i < dep_table->count; i++) { in fiji_get_dependency_volt_by_clk() 370 if (dep_table->entries[i].clk >= clock) { in fiji_get_dependency_volt_by_clk() 371 *voltage |= (dep_table->entries[i].vddc * in fiji_get_dependency_volt_by_clk() 376 else if (dep_table->entries[i].vddci) in fiji_get_dependency_volt_by_clk() 377 *voltage |= (dep_table->entries[i].vddci * in fiji_get_dependency_volt_by_clk() 381 (dep_table->entries[i].vddc - in fiji_get_dependency_volt_by_clk() 389 else if (dep_table->entries[i].mvdd) in fiji_get_dependency_volt_by_clk() 390 *mvdd = (uint32_t) dep_table->entries[i].mvdd * in fiji_get_dependency_volt_by_clk() [all …]
|
D | polaris10_smumgr.c | 353 struct phm_ppt_v1_clock_voltage_dependency_table *dep_table, in polaris10_get_dependency_volt_by_clk() argument 363 if (dep_table->count == 0) in polaris10_get_dependency_volt_by_clk() 366 for (i = 0; i < dep_table->count; i++) { in polaris10_get_dependency_volt_by_clk() 368 if (dep_table->entries[i].clk >= clock) { in polaris10_get_dependency_volt_by_clk() 369 *voltage |= (dep_table->entries[i].vddc * in polaris10_get_dependency_volt_by_clk() 374 else if (dep_table->entries[i].vddci) in polaris10_get_dependency_volt_by_clk() 375 *voltage |= (dep_table->entries[i].vddci * in polaris10_get_dependency_volt_by_clk() 379 (dep_table->entries[i].vddc - in polaris10_get_dependency_volt_by_clk() 387 else if (dep_table->entries[i].mvdd) in polaris10_get_dependency_volt_by_clk() 388 *mvdd = (uint32_t) dep_table->entries[i].mvdd * in polaris10_get_dependency_volt_by_clk() [all …]
|
/Linux-v5.4/drivers/gpu/drm/radeon/ |
D | r600_dpm.c | 878 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()
|