Home
last modified time | relevance | path

Searched refs:percentage (Results 1 – 24 of 24) sorted by relevance

/drivers/macintosh/
Dapm_emu.c30 int percentage = -1; in pmu_apm_get_power_status() local
52 if (percentage < 0) in pmu_apm_get_power_status()
53 percentage = 0; in pmu_apm_get_power_status()
56 percentage += (pmu_batteries[i].charge * 100) / in pmu_apm_get_power_status()
77 percentage /= real_count; in pmu_apm_get_power_status()
81 } else if (percentage <= APM_CRITICAL) { in pmu_apm_get_power_status()
84 } else if (percentage <= APM_LOW) { in pmu_apm_get_power_status()
93 info->battery_life = percentage; in pmu_apm_get_power_status()
/drivers/thermal/
Dfair_share.c62 struct thermal_cooling_device *cdev, int percentage, int level) in get_target_state() argument
68 return (long)(percentage * level * max_state) / (100 * tz->trips); in get_target_state()
105 int percentage; in fair_share_throttle() local
112 percentage = 100 / total_instance; in fair_share_throttle()
114 percentage = (instance->weight * 100) / total_weight; in fair_share_throttle()
116 instance->target = get_target_state(tz, cdev, percentage, in fair_share_throttle()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_atombios.c770 u16 percentage = 0, rate = 0; in amdgpu_atombios_get_igp_ss_overrides() local
781 percentage = le16_to_cpu(igp_info->info_6.usDVISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
785 percentage = le16_to_cpu(igp_info->info_6.usHDMISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
789 percentage = le16_to_cpu(igp_info->info_6.usLvdsSSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
797 percentage = le16_to_cpu(igp_info->info_7.usDVISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
801 percentage = le16_to_cpu(igp_info->info_7.usHDMISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
805 percentage = le16_to_cpu(igp_info->info_7.usLvdsSSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
813 percentage = le16_to_cpu(igp_info->info_8.usDVISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
817 percentage = le16_to_cpu(igp_info->info_8.usHDMISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
821 percentage = le16_to_cpu(igp_info->info_8.usLvdsSSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
[all …]
Datombios_crtc.c256 if (ss->percentage == 0) in amdgpu_atombios_crtc_program_ss()
393 if (amdgpu_crtc->ss_enabled && amdgpu_crtc->ss.percentage) in amdgpu_atombios_crtc_adjust_pll()
406 if (amdgpu_crtc->ss_enabled && amdgpu_crtc->ss.percentage) in amdgpu_atombios_crtc_adjust_pll()
868 (u32)amdgpu_crtc->ss.percentage) / in amdgpu_atombios_crtc_set_pll()
Damdgpu_mode.h360 uint16_t percentage; member
Dci_dpm.c2955 u32 clkv = (u32)((((131 * ss.percentage * ss.rate) / 100) * tmp) / freq_nom); in ci_calculate_mclk_params()
3310 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in ci_calculate_sclk_params()
Dsi_dpm.c5364 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in si_calculate_sclk_params()
5464 u32 clkv = (u32)((((131 * ss.percentage * ss.rate) / 100) * tmp) / freq_nom); in si_populate_mclk_value()
/drivers/gpu/drm/radeon/
Datombios_crtc.c457 if (ss->percentage == 0) in atombios_crtc_program_ss()
498 args.v2.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); in atombios_crtc_program_ss()
517 args.v1.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); in atombios_crtc_program_ss()
525 if ((enable == ATOM_DISABLE) || (ss->percentage == 0) || in atombios_crtc_program_ss()
530 args.lvds_ss_2.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); in atombios_crtc_program_ss()
541 args.lvds_ss.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); in atombios_crtc_program_ss()
695 if (radeon_crtc->ss_enabled && radeon_crtc->ss.percentage) in atombios_adjust_pll()
708 if (radeon_crtc->ss_enabled && radeon_crtc->ss.percentage) in atombios_adjust_pll()
1122 (u32)radeon_crtc->ss.percentage) / in atombios_crtc_set_pll()
Dradeon_atombios.c1410 ss->percentage = in radeon_atombios_get_ppll_ss_info()
1435 u16 percentage = 0, rate = 0; in radeon_atombios_get_igp_ss_overrides() local
1446 percentage = le16_to_cpu(igp_info->info_6.usDVISSPercentage); in radeon_atombios_get_igp_ss_overrides()
1450 percentage = le16_to_cpu(igp_info->info_6.usHDMISSPercentage); in radeon_atombios_get_igp_ss_overrides()
1454 percentage = le16_to_cpu(igp_info->info_6.usLvdsSSPercentage); in radeon_atombios_get_igp_ss_overrides()
1462 percentage = le16_to_cpu(igp_info->info_7.usDVISSPercentage); in radeon_atombios_get_igp_ss_overrides()
1466 percentage = le16_to_cpu(igp_info->info_7.usHDMISSPercentage); in radeon_atombios_get_igp_ss_overrides()
1470 percentage = le16_to_cpu(igp_info->info_7.usLvdsSSPercentage); in radeon_atombios_get_igp_ss_overrides()
1478 percentage = le16_to_cpu(igp_info->info_8.usDVISSPercentage); in radeon_atombios_get_igp_ss_overrides()
1482 percentage = le16_to_cpu(igp_info->info_8.usHDMISSPercentage); in radeon_atombios_get_igp_ss_overrides()
[all …]
Drv740_dpm.c166 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in rv740_populate_sclk_value()
255 u32 clk_v = 0x40000 * ss.percentage * in rv740_populate_mclk_value()
Drv730_dpm.c98 u32 clk_v = ss.percentage * fbdiv / (clk_s * 10000); in rv730_populate_sclk_value()
174 u32 clk_v = ss.percentage * dividers.fb_div / (clk_s * 10000); in rv730_populate_mclk_value()
Dradeon_mode.h309 uint16_t percentage; member
Drv6xx_dpm.c570 ss.percentage, in rv6xx_program_engine_spread_spectrum()
688 ss.percentage, in rv6xx_program_mclk_spread_spectrum_parameters()
Dni_dpm.c2045 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in ni_calculate_sclk_params()
2243 u32 clk_v = ss.percentage * in ni_populate_mclk_value()
Dcypress_dpm.c562 u32 clk_v = ss.percentage * in cypress_populate_mclk_value()
Drv770_dpm.c545 u32 clk_v = ss.percentage * fbdiv / (clk_s * 10000); in rv770_populate_sclk_value()
Dci_dpm.c2825 u32 clkv = (u32)((((131 * ss.percentage * ss.rate) / 100) * tmp) / freq_nom); in ci_calculate_mclk_params()
3176 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in ci_calculate_sclk_params()
Dsi_dpm.c4884 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in si_calculate_sclk_params()
4984 u32 clkv = (u32)((((131 * ss.percentage * ss.rate) / 100) * tmp) / freq_nom); in si_populate_mclk_value()
/drivers/ras/
DKconfig17 percentage of total time it should be operating.
/drivers/platform/x86/
Dalienware-wmi.c192 u32 percentage; member
352 .percentage = brightness, in wmax_brightness()
/drivers/firmware/google/
Dgsmi.c524 u32 percentage; in gsmi_clear_eventlog_store() member
540 param.percentage = val; in gsmi_clear_eventlog_store()
/drivers/base/
DKconfig300 Allocator as a percentage of the total memory in the system.
312 bool "Use percentage value only"
/drivers/gpu/drm/amd/powerplay/hwmgr/
Dcz_hwmgr.c714 unsigned long percentage; in cz_tf_update_sclk_limit() local
743 percentage = 75; in cz_tf_update_sclk_limit()
746 percentage) / 100; in cz_tf_update_sclk_limit()
/drivers/staging/lustre/
Dsysfs-fs-lustre448 Controls what percentage of ldlm callback threads is dedicated