Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Dvegam_smumgr.c461 data->mvdd_voltage_table.entries[level].value * VOLTAGE_SCALE); in vegam_populate_smc_mvdd_table()
489 data->vddci_voltage_table.entries[level].value * VOLTAGE_SCALE); in vegam_populate_smc_vddci_table()
619 VOLTAGE_SCALE) << VDDC_SHIFT; in vegam_get_dependency_volt_by_clk()
622 VOLTAGE_SCALE) << VDDCI_SHIFT; in vegam_get_dependency_volt_by_clk()
625 VOLTAGE_SCALE) << VDDCI_SHIFT; in vegam_get_dependency_volt_by_clk()
630 *voltage |= (vddci * VOLTAGE_SCALE) << VDDCI_SHIFT; in vegam_get_dependency_volt_by_clk()
635 VOLTAGE_SCALE; in vegam_get_dependency_volt_by_clk()
638 VOLTAGE_SCALE; in vegam_get_dependency_volt_by_clk()
646 *voltage |= (dep_table->entries[i - 1].vddc * VOLTAGE_SCALE) << VDDC_SHIFT; in vegam_get_dependency_volt_by_clk()
650 VOLTAGE_SCALE) << VDDCI_SHIFT; in vegam_get_dependency_volt_by_clk()
[all …]
Diceland_smumgr.c536 *hi = tab->value * VOLTAGE_SCALE; in iceland_get_std_voltage_value_sidd()
537 *lo = tab->value * VOLTAGE_SCALE; in iceland_get_std_voltage_value_sidd()
558 *lo = hwmgr->dyn_state.cac_leakage_table->entries[v_index].Vddc * VOLTAGE_SCALE; in iceland_get_std_voltage_value_sidd()
559 *hi = (uint16_t)(hwmgr->dyn_state.cac_leakage_table->entries[v_index].Leakage * VOLTAGE_SCALE); in iceland_get_std_voltage_value_sidd()
562 …ate.cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Vddc * VOLTAGE_SCALE; in iceland_get_std_voltage_value_sidd()
563 …cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Leakage * VOLTAGE_SCALE); in iceland_get_std_voltage_value_sidd()
578 *lo = hwmgr->dyn_state.cac_leakage_table->entries[v_index].Vddc * VOLTAGE_SCALE; in iceland_get_std_voltage_value_sidd()
579 *hi = (uint16_t)(hwmgr->dyn_state.cac_leakage_table->entries[v_index].Leakage) * VOLTAGE_SCALE; in iceland_get_std_voltage_value_sidd()
582 …ate.cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Vddc * VOLTAGE_SCALE; in iceland_get_std_voltage_value_sidd()
583 …cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Leakage * VOLTAGE_SCALE); in iceland_get_std_voltage_value_sidd()
[all …]
Dfiji_smumgr.c371 VOLTAGE_SCALE) << VDDC_SHIFT; in fiji_get_dependency_volt_by_clk()
374 VOLTAGE_SCALE) << VDDCI_SHIFT; in fiji_get_dependency_volt_by_clk()
377 VOLTAGE_SCALE) << VDDCI_SHIFT; in fiji_get_dependency_volt_by_clk()
382 *voltage |= (vddci * VOLTAGE_SCALE) << VDDCI_SHIFT; in fiji_get_dependency_volt_by_clk()
387 VOLTAGE_SCALE; in fiji_get_dependency_volt_by_clk()
390 VOLTAGE_SCALE; in fiji_get_dependency_volt_by_clk()
398 *voltage |= (dep_table->entries[i - 1].vddc * VOLTAGE_SCALE) << VDDC_SHIFT; in fiji_get_dependency_volt_by_clk()
402 VOLTAGE_SCALE) << VDDCI_SHIFT; in fiji_get_dependency_volt_by_clk()
407 *voltage |= (vddci * VOLTAGE_SCALE) << VDDCI_SHIFT; in fiji_get_dependency_volt_by_clk()
411 *mvdd = data->vbios_boot_state.mvdd_bootup_value * VOLTAGE_SCALE; in fiji_get_dependency_volt_by_clk()
[all …]
Dci_smumgr.c456 level->MinVddc = PP_HOST_TO_SMC_UL(level->MinVddc * VOLTAGE_SCALE); in ci_populate_single_graphic_level()
769 *hi = tab->value * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
770 *lo = tab->value * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
785 *lo = hwmgr->dyn_state.cac_leakage_table->entries[v_index].Vddc * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
786 *hi = (uint16_t)(hwmgr->dyn_state.cac_leakage_table->entries[v_index].Leakage * VOLTAGE_SCALE); in ci_get_std_voltage_value_sidd()
789 …ate.cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Vddc * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
790 …cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Leakage * VOLTAGE_SCALE); in ci_get_std_voltage_value_sidd()
801 *lo = hwmgr->dyn_state.cac_leakage_table->entries[v_index].Vddc * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
802 *hi = (uint16_t)(hwmgr->dyn_state.cac_leakage_table->entries[v_index].Leakage) * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
805 …ate.cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Vddc * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
[all …]
Dpolaris10_smumgr.c129 u16_boot_mvdd = PP_HOST_TO_SMC_US(1300 * VOLTAGE_SCALE); in polaris10_setup_graphics_level_structure()
371 VOLTAGE_SCALE) << VDDC_SHIFT; in polaris10_get_dependency_volt_by_clk()
374 VOLTAGE_SCALE) << VDDCI_SHIFT; in polaris10_get_dependency_volt_by_clk()
377 VOLTAGE_SCALE) << VDDCI_SHIFT; in polaris10_get_dependency_volt_by_clk()
382 *voltage |= (vddci * VOLTAGE_SCALE) << VDDCI_SHIFT; in polaris10_get_dependency_volt_by_clk()
387 VOLTAGE_SCALE; in polaris10_get_dependency_volt_by_clk()
390 VOLTAGE_SCALE; in polaris10_get_dependency_volt_by_clk()
398 *voltage |= (dep_table->entries[i - 1].vddc * VOLTAGE_SCALE) << VDDC_SHIFT; in polaris10_get_dependency_volt_by_clk()
402 VOLTAGE_SCALE) << VDDCI_SHIFT; in polaris10_get_dependency_volt_by_clk()
407 *voltage |= (vddci * VOLTAGE_SCALE) << VDDCI_SHIFT; in polaris10_get_dependency_volt_by_clk()
[all …]
Dtonga_smumgr.c312 PP_HOST_TO_SMC_US(data->vddc_voltage_table.entries[count].value * VOLTAGE_SCALE); in tonga_populate_smc_vddc_table()
329 PP_HOST_TO_SMC_US(data->vddgfx_voltage_table.entries[count].value * VOLTAGE_SCALE); in tonga_populate_smc_vdd_gfx_table()
346 PP_HOST_TO_SMC_US(data->vddci_voltage_table.entries[count].value * VOLTAGE_SCALE); in tonga_populate_smc_vdd_ci_table()
349 PP_HOST_TO_SMC_US(data->vddci_voltage_table.entries[count].value * VOLTAGE_SCALE); in tonga_populate_smc_vdd_ci_table()
356 PP_HOST_TO_SMC_US(data->vddci_voltage_table.entries[count].value * VOLTAGE_SCALE); in tonga_populate_smc_vdd_ci_table()
376 PP_HOST_TO_SMC_US(data->mvdd_voltage_table.entries[count].value * VOLTAGE_SCALE); in tonga_populate_smc_mvdd_table()
1248 PP_HOST_TO_SMC_UL(voltage_level.Voltage * VOLTAGE_SCALE); in tonga_populate_smc_acpi_level()
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dci_dpm.c43 #define VOLTAGE_SCALE 4 macro
257 return (6200 - (vddc * VOLTAGE_SCALE)) / 25; in ci_convert_to_vid()
2192 smc_voltage_table->StdVoltageHiSidd = voltage_table->value * VOLTAGE_SCALE; in ci_populate_smc_voltage_table()
2193 smc_voltage_table->StdVoltageLoSidd = voltage_table->value * VOLTAGE_SCALE; in ci_populate_smc_voltage_table()
2196 smc_voltage_table->Voltage = cpu_to_be16(voltage_table->value * VOLTAGE_SCALE); in ci_populate_smc_voltage_table()
2319 *std_voltage_hi_sidd = voltage_table->value * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
2320 *std_voltage_lo_sidd = voltage_table->value * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
2335 rdev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].vddc * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
2337 rdev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].leakage * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
2352 rdev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].vddc * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dsmu_helper.c38 return (uint8_t) ((6200 - (vddc * VOLTAGE_SCALE)) / 25); in convert_to_vid()
43 return (uint16_t) ((6200 - (vid * 25)) / VOLTAGE_SCALE); in convert_to_vddc()
559 req_volt = (((uint32_t)vddc_table->entries[i].vddc) * VOLTAGE_SCALE); in phm_apply_dal_min_voltage_request()
Dvega20_hwmgr.c1059 pp_table->MinVoltageGfx / VOLTAGE_SCALE) && in vega20_od8_set_feature_capabilities()
1061 pp_table->MaxVoltageGfx / VOLTAGE_SCALE) && in vega20_od8_set_feature_capabilities()
1233 *voltage = *voltage / VOLTAGE_SCALE; in vega20_od8_get_gfx_clock_base_voltage()
1291 * VOLTAGE_SCALE; in vega20_od8_initialize_default_settings()
1299 * VOLTAGE_SCALE; in vega20_od8_initialize_default_settings()
1307 * VOLTAGE_SCALE; in vega20_od8_initialize_default_settings()
3108 od_table->GfxclkVolt1 = input_vol * VOLTAGE_SCALE; in vega20_odn_edit_dpm_table()
3112 od_table->GfxclkVolt2 = input_vol * VOLTAGE_SCALE; in vega20_odn_edit_dpm_table()
3116 od_table->GfxclkVolt3 = input_vol * VOLTAGE_SCALE; in vega20_odn_edit_dpm_table()
3510 od_table->GfxclkVolt1 / VOLTAGE_SCALE); in vega20_print_clock_levels()
[all …]
Dsmu7_powertune.c30 #define VOLTAGE_SCALE 4 macro
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/inc/
Dhwmgr.h38 #define VOLTAGE_SCALE 4 macro