/drivers/macintosh/ |
D | apm_emu.c | 19 int percentage = -1; in pmu_apm_get_power_status() local 41 if (percentage < 0) in pmu_apm_get_power_status() 42 percentage = 0; in pmu_apm_get_power_status() 45 percentage += (pmu_batteries[i].charge * 100) / in pmu_apm_get_power_status() 66 percentage /= real_count; in pmu_apm_get_power_status() 70 } else if (percentage <= APM_CRITICAL) { in pmu_apm_get_power_status() 73 } else if (percentage <= APM_LOW) { in pmu_apm_get_power_status() 82 info->battery_life = percentage; in pmu_apm_get_power_status()
|
/drivers/thermal/ |
D | gov_fair_share.c | 50 struct thermal_cooling_device *cdev, int percentage, int level) in get_target_state() argument 56 return (long)(percentage * level * max_state) / (100 * tz->trips); in get_target_state() 96 int percentage; in fair_share_throttle() local 103 percentage = 100 / total_instance; in fair_share_throttle() 105 percentage = (instance->weight * 100) / total_weight; in fair_share_throttle() 107 instance->target = get_target_state(tz, cdev, percentage, in fair_share_throttle()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_atombios.c | 785 u16 percentage = 0, rate = 0; in amdgpu_atombios_get_igp_ss_overrides() local 796 percentage = le16_to_cpu(igp_info->info_6.usDVISSPercentage); in amdgpu_atombios_get_igp_ss_overrides() 800 percentage = le16_to_cpu(igp_info->info_6.usHDMISSPercentage); in amdgpu_atombios_get_igp_ss_overrides() 804 percentage = le16_to_cpu(igp_info->info_6.usLvdsSSPercentage); in amdgpu_atombios_get_igp_ss_overrides() 812 percentage = le16_to_cpu(igp_info->info_7.usDVISSPercentage); in amdgpu_atombios_get_igp_ss_overrides() 816 percentage = le16_to_cpu(igp_info->info_7.usHDMISSPercentage); in amdgpu_atombios_get_igp_ss_overrides() 820 percentage = le16_to_cpu(igp_info->info_7.usLvdsSSPercentage); in amdgpu_atombios_get_igp_ss_overrides() 828 percentage = le16_to_cpu(igp_info->info_8.usDVISSPercentage); in amdgpu_atombios_get_igp_ss_overrides() 832 percentage = le16_to_cpu(igp_info->info_8.usHDMISSPercentage); in amdgpu_atombios_get_igp_ss_overrides() 836 percentage = le16_to_cpu(igp_info->info_8.usLvdsSSPercentage); in amdgpu_atombios_get_igp_ss_overrides() [all …]
|
D | atombios_crtc.c | 257 if (ss->percentage == 0) in amdgpu_atombios_crtc_program_ss() 394 if (amdgpu_crtc->ss_enabled && amdgpu_crtc->ss.percentage) in amdgpu_atombios_crtc_adjust_pll() 407 if (amdgpu_crtc->ss_enabled && amdgpu_crtc->ss.percentage) in amdgpu_atombios_crtc_adjust_pll() 869 (u32)amdgpu_crtc->ss.percentage) / in amdgpu_atombios_crtc_set_pll()
|
D | amdgpu_mode.h | 372 uint16_t percentage; member
|
/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_clock_source.c | 500 pll_settings->ss_percentage = ss_data->percentage; in dce110_get_pix_clk_dividers_helper() 663 if (ss_data->percentage == 0) in calculate_ss() 680 fb_div, dc_fixpt_from_fraction(ss_data->percentage, in calculate_ss() 739 bp_params.percentage = ss_data->percentage; in enable_spread_spectrum() 1327 ss_data_cur->percentage = in get_ss_info_from_atombios()
|
/drivers/gpu/drm/amd/display/dc/inc/ |
D | clock_source.h | 36 uint32_t percentage; /*> In unit of 0.01% or 0.001%*/ member
|
/drivers/gpu/drm/radeon/ |
D | atombios_crtc.c | 459 if (ss->percentage == 0) in atombios_crtc_program_ss() 500 args.v2.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); in atombios_crtc_program_ss() 519 args.v1.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); in atombios_crtc_program_ss() 527 if ((enable == ATOM_DISABLE) || (ss->percentage == 0) || in atombios_crtc_program_ss() 532 args.lvds_ss_2.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); in atombios_crtc_program_ss() 543 args.lvds_ss.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); in atombios_crtc_program_ss() 697 if (radeon_crtc->ss_enabled && radeon_crtc->ss.percentage) in atombios_adjust_pll() 710 if (radeon_crtc->ss_enabled && radeon_crtc->ss.percentage) in atombios_adjust_pll() 1124 (u32)radeon_crtc->ss.percentage) / in atombios_crtc_set_pll()
|
D | radeon_atombios.c | 1398 ss->percentage = in radeon_atombios_get_ppll_ss_info() 1423 u16 percentage = 0, rate = 0; in radeon_atombios_get_igp_ss_overrides() local 1434 percentage = le16_to_cpu(igp_info->info_6.usDVISSPercentage); in radeon_atombios_get_igp_ss_overrides() 1438 percentage = le16_to_cpu(igp_info->info_6.usHDMISSPercentage); in radeon_atombios_get_igp_ss_overrides() 1442 percentage = le16_to_cpu(igp_info->info_6.usLvdsSSPercentage); in radeon_atombios_get_igp_ss_overrides() 1450 percentage = le16_to_cpu(igp_info->info_7.usDVISSPercentage); in radeon_atombios_get_igp_ss_overrides() 1454 percentage = le16_to_cpu(igp_info->info_7.usHDMISSPercentage); in radeon_atombios_get_igp_ss_overrides() 1458 percentage = le16_to_cpu(igp_info->info_7.usLvdsSSPercentage); in radeon_atombios_get_igp_ss_overrides() 1466 percentage = le16_to_cpu(igp_info->info_8.usDVISSPercentage); in radeon_atombios_get_igp_ss_overrides() 1470 percentage = le16_to_cpu(igp_info->info_8.usHDMISSPercentage); in radeon_atombios_get_igp_ss_overrides() [all …]
|
D | rv740_dpm.c | 164 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in rv740_populate_sclk_value() 257 clk_v = 0x40000 * ss.percentage * in rv740_populate_mclk_value()
|
D | rv730_dpm.c | 95 u32 clk_v = ss.percentage * fbdiv / (clk_s * 10000); in rv730_populate_sclk_value() 171 u32 clk_v = ss.percentage * dividers.fb_div / (clk_s * 10000); in rv730_populate_mclk_value()
|
D | radeon_mode.h | 309 uint16_t percentage; member
|
D | rv6xx_dpm.c | 569 ss.percentage, in rv6xx_program_engine_spread_spectrum() 687 ss.percentage, in rv6xx_program_mclk_spread_spectrum_parameters()
|
D | ni_dpm.c | 2047 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in ni_calculate_sclk_params() 2249 clk_v = ss.percentage * in ni_populate_mclk_value()
|
D | cypress_dpm.c | 565 clk_v = ss.percentage * in cypress_populate_mclk_value()
|
D | rv770_dpm.c | 546 u32 clk_v = ss.percentage * fbdiv / (clk_s * 10000); in rv770_populate_sclk_value()
|
D | ci_dpm.c | 2807 u32 clkv = (u32)((((131 * ss.percentage * ss.rate) / 100) * tmp) / freq_nom); in ci_calculate_mclk_params() 3158 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in ci_calculate_sclk_params()
|
D | si_dpm.c | 4811 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in si_calculate_sclk_params() 4911 u32 clkv = (u32)((((131 * ss.percentage * ss.rate) / 100) * tmp) / freq_nom); in si_populate_mclk_value()
|
/drivers/ras/ |
D | Kconfig | 18 percentage of total time it should be operating.
|
/drivers/gpu/drm/amd/display/include/ |
D | bios_parser_types.h | 293 uint32_t percentage; member
|
/drivers/platform/x86/dell/ |
D | alienware-wmi.c | 198 u32 percentage; member 359 .percentage = brightness, in wmax_brightness()
|
/drivers/firmware/google/ |
D | gsmi.c | 544 u32 percentage; in gsmi_clear_eventlog_store() member 560 param.percentage = val; in gsmi_clear_eventlog_store()
|
/drivers/gpu/drm/amd/display/dc/bios/ |
D | command_table.c | 1328 if ((enable == true) && (bp_params->percentage > 0)) in enable_spread_spectrum_on_ppll_v1() 1334 cpu_to_le16((uint16_t)bp_params->percentage); in enable_spread_spectrum_on_ppll_v1() 1379 if ((enable == true) && (bp_params->percentage > 0)) { in enable_spread_spectrum_on_ppll_v2() 1383 cpu_to_le16((uint16_t)(bp_params->percentage)); in enable_spread_spectrum_on_ppll_v2()
|
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | smu8_hwmgr.c | 692 unsigned long percentage; in smu8_update_sclk_limit() local 722 percentage = 75; in smu8_update_sclk_limit() 725 percentage) / 100; in smu8_update_sclk_limit()
|
D | smu7_hwmgr.c | 3122 uint32_t percentage; in smu7_get_profiling_clk() local 3132 …percentage = 100 * golden_dpm_table->sclk_table.dpm_levels[golden_dpm_table->sclk_table.count - 1]… in smu7_get_profiling_clk() 3136 percentage = 70; in smu7_get_profiling_clk() 3144 tmp_sclk = tmp_mclk * percentage / 100; in smu7_get_profiling_clk()
|