Searched refs:VOLTAGE_SCALE (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dci_dpm.c42 #define VOLTAGE_SCALE 4 macro
269 return (6200 - (vddc * VOLTAGE_SCALE)) / 25; ci_convert_to_vid()
2177 smc_voltage_table->StdVoltageHiSidd = voltage_table->value * VOLTAGE_SCALE; ci_populate_smc_voltage_table()
2178 smc_voltage_table->StdVoltageLoSidd = voltage_table->value * VOLTAGE_SCALE; ci_populate_smc_voltage_table()
2181 smc_voltage_table->Voltage = cpu_to_be16(voltage_table->value * VOLTAGE_SCALE); ci_populate_smc_voltage_table()
2304 *std_voltage_hi_sidd = voltage_table->value * VOLTAGE_SCALE; ci_get_std_voltage_value_sidd()
2305 *std_voltage_lo_sidd = voltage_table->value * VOLTAGE_SCALE; ci_get_std_voltage_value_sidd()
2320 rdev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].vddc * VOLTAGE_SCALE; ci_get_std_voltage_value_sidd()
2322 rdev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].leakage * VOLTAGE_SCALE; ci_get_std_voltage_value_sidd()
2337 rdev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].vddc * VOLTAGE_SCALE; ci_get_std_voltage_value_sidd()
2339 rdev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].leakage * VOLTAGE_SCALE; ci_get_std_voltage_value_sidd()
2634 rdev->pm.dpm.dyn_state.uvd_clock_voltage_dependency_table.entries[count].v * VOLTAGE_SCALE; ci_populate_smc_uvd_level()
2675 (u16)rdev->pm.dpm.dyn_state.vce_clock_voltage_dependency_table.entries[count].v * VOLTAGE_SCALE; ci_populate_smc_vce_level()
2740 rdev->pm.dpm.dyn_state.samu_clock_voltage_dependency_table.entries[count].v * VOLTAGE_SCALE; ci_populate_smc_samu_level()
2939 memory_level->MinVddc = cpu_to_be32(memory_level->MinVddc * VOLTAGE_SCALE); ci_populate_single_memory_level()
2941 memory_level->MinVddci = cpu_to_be32(memory_level->MinVddci * VOLTAGE_SCALE); ci_populate_single_memory_level()
2942 memory_level->MinMvdd = cpu_to_be32(memory_level->MinMvdd * VOLTAGE_SCALE); ci_populate_single_memory_level()
2974 table->ACPILevel.MinVddc = cpu_to_be32(pi->acpi_vddc * VOLTAGE_SCALE); ci_populate_smc_acpi_level()
2976 table->ACPILevel.MinVddc = cpu_to_be32(pi->min_vddc_in_pp_table * VOLTAGE_SCALE); ci_populate_smc_acpi_level()
3025 cpu_to_be32(pi->acpi_vddci * VOLTAGE_SCALE); ci_populate_smc_acpi_level()
3028 cpu_to_be32(pi->min_vddci_in_pp_table * VOLTAGE_SCALE); ci_populate_smc_acpi_level()
3035 cpu_to_be32(voltage_level.Voltage * VOLTAGE_SCALE); ci_populate_smc_acpi_level()
3232 graphic_level->MinVddc = cpu_to_be32(graphic_level->MinVddc * VOLTAGE_SCALE); ci_populate_single_graphic_level()
3657 table->BootVddc = cpu_to_be16(table->BootVddc * VOLTAGE_SCALE); ci_init_smc_table()
3658 table->BootVddci = cpu_to_be16(table->BootVddci * VOLTAGE_SCALE); ci_init_smc_table()
3659 table->BootMVdd = cpu_to_be16(table->BootMVdd * VOLTAGE_SCALE); ci_init_smc_table()
3777 requested_voltage * VOLTAGE_SCALE) == PPSMC_Result_OK) ? ci_apply_disp_minimum_voltage_request()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
H A Dci_dpm.c61 #define VOLTAGE_SCALE 4 macro
387 return (6200 - (vddc * VOLTAGE_SCALE)) / 25; ci_convert_to_vid()
2308 smc_voltage_table->StdVoltageHiSidd = voltage_table->value * VOLTAGE_SCALE; ci_populate_smc_voltage_table()
2309 smc_voltage_table->StdVoltageLoSidd = voltage_table->value * VOLTAGE_SCALE; ci_populate_smc_voltage_table()
2312 smc_voltage_table->Voltage = cpu_to_be16(voltage_table->value * VOLTAGE_SCALE); ci_populate_smc_voltage_table()
2435 *std_voltage_hi_sidd = voltage_table->value * VOLTAGE_SCALE; ci_get_std_voltage_value_sidd()
2436 *std_voltage_lo_sidd = voltage_table->value * VOLTAGE_SCALE; ci_get_std_voltage_value_sidd()
2451 adev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].vddc * VOLTAGE_SCALE; ci_get_std_voltage_value_sidd()
2453 adev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].leakage * VOLTAGE_SCALE; ci_get_std_voltage_value_sidd()
2468 adev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].vddc * VOLTAGE_SCALE; ci_get_std_voltage_value_sidd()
2470 adev->pm.dpm.dyn_state.cac_leakage_table.entries[idx].leakage * VOLTAGE_SCALE; ci_get_std_voltage_value_sidd()
2764 adev->pm.dpm.dyn_state.uvd_clock_voltage_dependency_table.entries[count].v * VOLTAGE_SCALE; ci_populate_smc_uvd_level()
2805 (u16)adev->pm.dpm.dyn_state.vce_clock_voltage_dependency_table.entries[count].v * VOLTAGE_SCALE; ci_populate_smc_vce_level()
2870 adev->pm.dpm.dyn_state.samu_clock_voltage_dependency_table.entries[count].v * VOLTAGE_SCALE; ci_populate_smc_samu_level()
3075 memory_level->MinVddc = cpu_to_be32(memory_level->MinVddc * VOLTAGE_SCALE); ci_populate_single_memory_level()
3077 memory_level->MinVddci = cpu_to_be32(memory_level->MinVddci * VOLTAGE_SCALE); ci_populate_single_memory_level()
3078 memory_level->MinMvdd = cpu_to_be32(memory_level->MinMvdd * VOLTAGE_SCALE); ci_populate_single_memory_level()
3110 table->ACPILevel.MinVddc = cpu_to_be32(pi->acpi_vddc * VOLTAGE_SCALE); ci_populate_smc_acpi_level()
3112 table->ACPILevel.MinVddc = cpu_to_be32(pi->min_vddc_in_pp_table * VOLTAGE_SCALE); ci_populate_smc_acpi_level()
3161 cpu_to_be32(pi->acpi_vddci * VOLTAGE_SCALE); ci_populate_smc_acpi_level()
3164 cpu_to_be32(pi->min_vddci_in_pp_table * VOLTAGE_SCALE); ci_populate_smc_acpi_level()
3171 cpu_to_be32(voltage_level.Voltage * VOLTAGE_SCALE); ci_populate_smc_acpi_level()
3370 graphic_level->MinVddc = cpu_to_be32(graphic_level->MinVddc * VOLTAGE_SCALE); ci_populate_single_graphic_level()
3793 table->BootVddc = cpu_to_be16(table->BootVddc * VOLTAGE_SCALE); ci_init_smc_table()
3794 table->BootVddci = cpu_to_be16(table->BootVddci * VOLTAGE_SCALE); ci_init_smc_table()
3795 table->BootMVdd = cpu_to_be16(table->BootMVdd * VOLTAGE_SCALE); ci_init_smc_table()
3913 requested_voltage * VOLTAGE_SCALE) == PPSMC_Result_OK) ? ci_apply_disp_minimum_voltage_request()

Completed in 129 milliseconds