Home
last modified time | relevance | path

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

/drivers/gpu/drm/amd/powerplay/smumgr/
Dfiji_smc.c47 #define VOLTAGE_SCALE 4 macro
102 VOLTAGE_SCALE) << VDDC_SHIFT; in fiji_get_dependency_volt_by_clk()
105 VOLTAGE_SCALE) << VDDCI_SHIFT; in fiji_get_dependency_volt_by_clk()
108 VOLTAGE_SCALE) << VDDCI_SHIFT; in fiji_get_dependency_volt_by_clk()
113 *voltage |= (vddci * VOLTAGE_SCALE) << VDDCI_SHIFT; in fiji_get_dependency_volt_by_clk()
118 VOLTAGE_SCALE; in fiji_get_dependency_volt_by_clk()
121 VOLTAGE_SCALE; in fiji_get_dependency_volt_by_clk()
129 *voltage |= (dep_table->entries[i - 1].vddc * VOLTAGE_SCALE) << VDDC_SHIFT; in fiji_get_dependency_volt_by_clk()
133 VOLTAGE_SCALE) << VDDCI_SHIFT; in fiji_get_dependency_volt_by_clk()
138 *voltage |= (vddci * VOLTAGE_SCALE) << VDDCI_SHIFT; in fiji_get_dependency_volt_by_clk()
[all …]
Diceland_smc.c54 #define VOLTAGE_SCALE 4 macro
372 *hi = tab->value * VOLTAGE_SCALE; in iceland_get_std_voltage_value_sidd()
373 *lo = tab->value * VOLTAGE_SCALE; in iceland_get_std_voltage_value_sidd()
394 *lo = hwmgr->dyn_state.cac_leakage_table->entries[v_index].Vddc * VOLTAGE_SCALE; in iceland_get_std_voltage_value_sidd()
395 *hi = (uint16_t)(hwmgr->dyn_state.cac_leakage_table->entries[v_index].Leakage * VOLTAGE_SCALE); in iceland_get_std_voltage_value_sidd()
398 …ate.cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Vddc * VOLTAGE_SCALE; in iceland_get_std_voltage_value_sidd()
399 …cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Leakage * VOLTAGE_SCALE); in iceland_get_std_voltage_value_sidd()
414 *lo = hwmgr->dyn_state.cac_leakage_table->entries[v_index].Vddc * VOLTAGE_SCALE; in iceland_get_std_voltage_value_sidd()
415 *hi = (uint16_t)(hwmgr->dyn_state.cac_leakage_table->entries[v_index].Leakage) * VOLTAGE_SCALE; in iceland_get_std_voltage_value_sidd()
418 …ate.cac_leakage_table->entries[hwmgr->dyn_state.cac_leakage_table->count - 1].Vddc * VOLTAGE_SCALE; in iceland_get_std_voltage_value_sidd()
[all …]
Dpolaris10_smc.c95 VOLTAGE_SCALE) << VDDC_SHIFT; in polaris10_get_dependency_volt_by_clk()
98 VOLTAGE_SCALE) << VDDCI_SHIFT; in polaris10_get_dependency_volt_by_clk()
101 VOLTAGE_SCALE) << VDDCI_SHIFT; in polaris10_get_dependency_volt_by_clk()
106 *voltage |= (vddci * VOLTAGE_SCALE) << VDDCI_SHIFT; in polaris10_get_dependency_volt_by_clk()
111 VOLTAGE_SCALE; in polaris10_get_dependency_volt_by_clk()
114 VOLTAGE_SCALE; in polaris10_get_dependency_volt_by_clk()
122 *voltage |= (dep_table->entries[i - 1].vddc * VOLTAGE_SCALE) << VDDC_SHIFT; in polaris10_get_dependency_volt_by_clk()
126 VOLTAGE_SCALE) << VDDCI_SHIFT; in polaris10_get_dependency_volt_by_clk()
131 *voltage |= (vddci * VOLTAGE_SCALE) << VDDCI_SHIFT; in polaris10_get_dependency_volt_by_clk()
135 *mvdd = data->vbios_boot_state.mvdd_bootup_value * VOLTAGE_SCALE; in polaris10_get_dependency_volt_by_clk()
[all …]
Dtonga_smc.c53 #define VOLTAGE_SCALE 4 macro
174 PP_HOST_TO_SMC_US(data->vddc_voltage_table.entries[count].value * VOLTAGE_SCALE); in tonga_populate_smc_vddc_table()
198 PP_HOST_TO_SMC_US(data->vddgfx_voltage_table.entries[count].value * VOLTAGE_SCALE); in tonga_populate_smc_vdd_gfx_table()
222 PP_HOST_TO_SMC_US(data->vddci_voltage_table.entries[count].value * VOLTAGE_SCALE); in tonga_populate_smc_vdd_ci_table()
225 PP_HOST_TO_SMC_US(data->vddci_voltage_table.entries[count].value * VOLTAGE_SCALE); in tonga_populate_smc_vdd_ci_table()
232 PP_HOST_TO_SMC_US(data->vddci_voltage_table.entries[count].value * VOLTAGE_SCALE); in tonga_populate_smc_vdd_ci_table()
259 PP_HOST_TO_SMC_US(data->mvdd_voltage_table.entries[count].value * VOLTAGE_SCALE); in tonga_populate_smc_mvdd_table()
1163 PP_HOST_TO_SMC_UL(voltage_level.Voltage * VOLTAGE_SCALE); in tonga_populate_smc_acpi_level()
Dpolaris10_smumgr.c130 u16_boot_mvdd = PP_HOST_TO_SMC_US(1300 * VOLTAGE_SCALE); in polaris10_setup_graphics_level_structure()
/drivers/gpu/drm/radeon/
Dci_dpm.c42 #define VOLTAGE_SCALE 4 macro
269 return (6200 - (vddc * VOLTAGE_SCALE)) / 25; in ci_convert_to_vid()
2189 smc_voltage_table->StdVoltageHiSidd = voltage_table->value * VOLTAGE_SCALE; in ci_populate_smc_voltage_table()
2190 smc_voltage_table->StdVoltageLoSidd = voltage_table->value * VOLTAGE_SCALE; in ci_populate_smc_voltage_table()
2193 smc_voltage_table->Voltage = cpu_to_be16(voltage_table->value * VOLTAGE_SCALE); in ci_populate_smc_voltage_table()
2316 *std_voltage_hi_sidd = voltage_table->value * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
2317 *std_voltage_lo_sidd = voltage_table->value * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
2332 rdev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].vddc * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
2334 rdev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].leakage * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
2349 rdev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].vddc * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Dci_dpm.c64 #define VOLTAGE_SCALE 4 macro
394 return (6200 - (vddc * VOLTAGE_SCALE)) / 25; in ci_convert_to_vid()
2319 smc_voltage_table->StdVoltageHiSidd = voltage_table->value * VOLTAGE_SCALE; in ci_populate_smc_voltage_table()
2320 smc_voltage_table->StdVoltageLoSidd = voltage_table->value * VOLTAGE_SCALE; in ci_populate_smc_voltage_table()
2323 smc_voltage_table->Voltage = cpu_to_be16(voltage_table->value * VOLTAGE_SCALE); in ci_populate_smc_voltage_table()
2446 *std_voltage_hi_sidd = voltage_table->value * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
2447 *std_voltage_lo_sidd = voltage_table->value * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
2462 adev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].vddc * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
2464 adev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].leakage * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
2479 adev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].vddc * VOLTAGE_SCALE; in ci_get_std_voltage_value_sidd()
[all …]
/drivers/gpu/drm/amd/powerplay/hwmgr/
Dhwmgr.c49 return (uint8_t) ((6200 - (vddc * VOLTAGE_SCALE)) / 25); in convert_to_vid()
624 req_volt = (((uint32_t)vddc_table->entries[i].vddc) * VOLTAGE_SCALE); in phm_apply_dal_min_voltage_request()
Dsmu7_powertune.c30 #define VOLTAGE_SCALE 4 macro
Dsmu7_hwmgr.c62 #define VOLTAGE_SCALE 4 macro
/drivers/gpu/drm/amd/powerplay/inc/
Dhwmgr.h45 #define VOLTAGE_SCALE 4 macro