Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/
H A Dvegam_smumgr.c460 data->mvdd_voltage_table.entries[level].value * VOLTAGE_SCALE); in vegam_populate_smc_mvdd_table()
488 data->vddci_voltage_table.entries[level].value * VOLTAGE_SCALE); in vegam_populate_smc_vddci_table()
618 VOLTAGE_SCALE) << VDDC_SHIFT; in vegam_get_dependency_volt_by_clk()
621 VOLTAGE_SCALE) << VDDCI_SHIFT; in vegam_get_dependency_volt_by_clk()
624 VOLTAGE_SCALE) << VDDCI_SHIFT; in vegam_get_dependency_volt_by_clk()
629 *voltage |= (vddci * VOLTAGE_SCALE) << VDDCI_SHIFT; in vegam_get_dependency_volt_by_clk()
634 VOLTAGE_SCALE; in vegam_get_dependency_volt_by_clk()
637 VOLTAGE_SCALE; in vegam_get_dependency_volt_by_clk()
645 *voltage |= (dep_table->entries[i - 1].vddc * VOLTAGE_SCALE) << VDDC_SHIFT; in vegam_get_dependency_volt_by_clk()
649 VOLTAGE_SCALE) << VDDCI_SHIFT; in vegam_get_dependency_volt_by_clk()
[all …]
H A 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()
404 *voltage |= (dep_table->entries[i - 1].vddci * VOLTAGE_SCALE) << VDDC_SHIFT; in polaris10_get_dependency_volt_by_clk()
[all …]
H A 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 …]
H A Dfiji_smumgr.c370 VOLTAGE_SCALE) << VDDC_SHIFT; in fiji_get_dependency_volt_by_clk()
373 VOLTAGE_SCALE) << VDDCI_SHIFT; in fiji_get_dependency_volt_by_clk()
376 VOLTAGE_SCALE) << VDDCI_SHIFT; in fiji_get_dependency_volt_by_clk()
381 *voltage |= (vddci * VOLTAGE_SCALE) << VDDCI_SHIFT; in fiji_get_dependency_volt_by_clk()
386 VOLTAGE_SCALE; in fiji_get_dependency_volt_by_clk()
389 VOLTAGE_SCALE; in fiji_get_dependency_volt_by_clk()
397 *voltage |= (dep_table->entries[i - 1].vddc * VOLTAGE_SCALE) << VDDC_SHIFT; in fiji_get_dependency_volt_by_clk()
401 VOLTAGE_SCALE) << VDDCI_SHIFT; in fiji_get_dependency_volt_by_clk()
406 *voltage |= (vddci * VOLTAGE_SCALE) << VDDCI_SHIFT; in fiji_get_dependency_volt_by_clk()
410 *mvdd = data->vbios_boot_state.mvdd_bootup_value * VOLTAGE_SCALE; in fiji_get_dependency_volt_by_clk()
[all …]
H A Dci_smumgr.c457 level->MinVddc = PP_HOST_TO_SMC_UL(level->MinVddc * VOLTAGE_SCALE); in ci_populate_single_graphic_level()
770 *hi = tab->value * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
771 *lo = tab->value * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
786 *lo = hwmgr->dyn_state.cac_leakage_table->entries[v_index].Vddc * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
787 *hi = (uint16_t)(hwmgr->dyn_state.cac_leakage_table->entries[v_index].Leakage * VOLTAGE_SCALE); in ci_get_std_voltage_value_sidd()
790 …ate.cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Vddc * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
791 …cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Leakage * VOLTAGE_SCALE); in ci_get_std_voltage_value_sidd()
802 *lo = hwmgr->dyn_state.cac_leakage_table->entries[v_index].Vddc * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
803 *hi = (uint16_t)(hwmgr->dyn_state.cac_leakage_table->entries[v_index].Leakage) * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
806 …ate.cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Vddc * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
[all …]
H A 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()
/linux/drivers/gpu/drm/radeon/
H A Dci_dpm.c45 #define VOLTAGE_SCALE 4 macro
243 return (6200 - (vddc * VOLTAGE_SCALE)) / 25; in ci_convert_to_vid()
2163 smc_voltage_table->StdVoltageHiSidd = voltage_table->value * VOLTAGE_SCALE; in ci_populate_smc_voltage_table()
2164 smc_voltage_table->StdVoltageLoSidd = voltage_table->value * VOLTAGE_SCALE; in ci_populate_smc_voltage_table()
2167 smc_voltage_table->Voltage = cpu_to_be16(voltage_table->value * VOLTAGE_SCALE); in ci_populate_smc_voltage_table()
2290 *std_voltage_hi_sidd = voltage_table->value * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
2291 *std_voltage_lo_sidd = voltage_table->value * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
2306 rdev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].vddc * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
2308 rdev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].leakage * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
2323 rdev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].vddc * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
[all …]
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A 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()
570 req_volt = (((uint32_t)vddc_table->entries[i].vddc) * VOLTAGE_SCALE); in phm_apply_dal_min_voltage_request()
H A Dvega20_hwmgr.c1068 pp_table->MinVoltageGfx / VOLTAGE_SCALE) && in vega20_od8_set_feature_capabilities()
1070 pp_table->MaxVoltageGfx / VOLTAGE_SCALE) && in vega20_od8_set_feature_capabilities()
1242 *voltage = *voltage / VOLTAGE_SCALE; in vega20_od8_get_gfx_clock_base_voltage()
1300 * VOLTAGE_SCALE; in vega20_od8_initialize_default_settings()
1308 * VOLTAGE_SCALE; in vega20_od8_initialize_default_settings()
1316 * VOLTAGE_SCALE; in vega20_od8_initialize_default_settings()
3120 od_table->GfxclkVolt1 = input_vol * VOLTAGE_SCALE; in vega20_odn_edit_dpm_table()
3124 od_table->GfxclkVolt2 = input_vol * VOLTAGE_SCALE; in vega20_odn_edit_dpm_table()
3128 od_table->GfxclkVolt3 = input_vol * VOLTAGE_SCALE; in vega20_odn_edit_dpm_table()
3524 od_table->GfxclkVolt1 / VOLTAGE_SCALE); in vega20_print_clock_levels()
[all …]
H A Dsmu7_powertune.c30 #define VOLTAGE_SCALE 4 macro
/linux/drivers/gpu/drm/amd/pm/powerplay/inc/
H A Dhwmgr.h38 #define VOLTAGE_SCALE 4 macro