Searched refs:VOLTAGE_SCALE (Results 1 – 11 of 11) sorted by relevance
47 #define VOLTAGE_SCALE 4 macro102 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 …]
54 #define VOLTAGE_SCALE 4 macro372 *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 …]
95 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 …]
53 #define VOLTAGE_SCALE 4 macro174 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()
130 u16_boot_mvdd = PP_HOST_TO_SMC_US(1300 * VOLTAGE_SCALE); in polaris10_setup_graphics_level_structure()
42 #define VOLTAGE_SCALE 4 macro269 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 …]
64 #define VOLTAGE_SCALE 4 macro394 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 …]
49 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()
30 #define VOLTAGE_SCALE 4 macro
62 #define VOLTAGE_SCALE 4 macro
45 #define VOLTAGE_SCALE 4 macro