Home
last modified time | relevance | path

Searched refs:percentage (Results 1 – 25 of 25) 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()
106 int percentage; in fair_share_throttle() local
113 percentage = 100 / total_instance; in fair_share_throttle()
115 percentage = (instance->weight * 100) / total_weight; in fair_share_throttle()
117 instance->target = get_target_state(tz, cdev, percentage, in fair_share_throttle()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_atombios.c783 u16 percentage = 0, rate = 0; in amdgpu_atombios_get_igp_ss_overrides() local
794 percentage = le16_to_cpu(igp_info->info_6.usDVISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
798 percentage = le16_to_cpu(igp_info->info_6.usHDMISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
802 percentage = le16_to_cpu(igp_info->info_6.usLvdsSSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
810 percentage = le16_to_cpu(igp_info->info_7.usDVISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
814 percentage = le16_to_cpu(igp_info->info_7.usHDMISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
818 percentage = le16_to_cpu(igp_info->info_7.usLvdsSSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
826 percentage = le16_to_cpu(igp_info->info_8.usDVISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
830 percentage = le16_to_cpu(igp_info->info_8.usHDMISSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
834 percentage = le16_to_cpu(igp_info->info_8.usLvdsSSPercentage); in amdgpu_atombios_get_igp_ss_overrides()
[all …]
Datombios_crtc.c257 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()
Damdgpu_mode.h345 uint16_t percentage; member
Dsi_dpm.c5289 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in si_calculate_sclk_params()
5389 u32 clkv = (u32)((((131 * ss.percentage * ss.rate) / 100) * tmp) / freq_nom); in si_populate_mclk_value()
Dci_dpm.c2974 u32 clkv = (u32)((((131 * ss.percentage * ss.rate) / 100) * tmp) / freq_nom); in ci_calculate_mclk_params()
3330 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in ci_calculate_sclk_params()
/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.c1411 ss->percentage = in radeon_atombios_get_ppll_ss_info()
1436 u16 percentage = 0, rate = 0; in radeon_atombios_get_igp_ss_overrides() local
1447 percentage = le16_to_cpu(igp_info->info_6.usDVISSPercentage); in radeon_atombios_get_igp_ss_overrides()
1451 percentage = le16_to_cpu(igp_info->info_6.usHDMISSPercentage); in radeon_atombios_get_igp_ss_overrides()
1455 percentage = le16_to_cpu(igp_info->info_6.usLvdsSSPercentage); in radeon_atombios_get_igp_ss_overrides()
1463 percentage = le16_to_cpu(igp_info->info_7.usDVISSPercentage); in radeon_atombios_get_igp_ss_overrides()
1467 percentage = le16_to_cpu(igp_info->info_7.usHDMISSPercentage); in radeon_atombios_get_igp_ss_overrides()
1471 percentage = le16_to_cpu(igp_info->info_7.usLvdsSSPercentage); in radeon_atombios_get_igp_ss_overrides()
1479 percentage = le16_to_cpu(igp_info->info_8.usDVISSPercentage); in radeon_atombios_get_igp_ss_overrides()
1483 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.h310 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.c2819 u32 clkv = (u32)((((131 * ss.percentage * ss.rate) / 100) * tmp) / freq_nom); in ci_calculate_mclk_params()
3170 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in ci_calculate_sclk_params()
Dsi_dpm.c4828 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in si_calculate_sclk_params()
4928 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.c191 u32 percentage; member
352 .percentage = brightness, in wmax_brightness()
/drivers/firmware/google/
Dgsmi.c523 u32 percentage; in gsmi_clear_eventlog_store() member
539 param.percentage = val; in gsmi_clear_eventlog_store()
/drivers/base/
DKconfig303 Allocator as a percentage of the total memory in the system.
315 bool "Use percentage value only"
/drivers/gpu/drm/amd/powerplay/hwmgr/
Dcz_hwmgr.c713 unsigned long percentage; in cz_tf_update_sclk_limit() local
742 percentage = 75; in cz_tf_update_sclk_limit()
745 percentage) / 100; in cz_tf_update_sclk_limit()
Dsmu7_hwmgr.c2503 uint32_t percentage; in smu7_get_profiling_clk() local
2513percentage = 100 * golden_dpm_table->sclk_table.dpm_levels[golden_dpm_table->sclk_table.count - 1]… in smu7_get_profiling_clk()
2517 percentage = 70; in smu7_get_profiling_clk()
2525 tmp_sclk = tmp_mclk * percentage / 100; in smu7_get_profiling_clk()
/drivers/staging/lustre/
Dsysfs-fs-lustre448 Controls what percentage of ldlm callback threads is dedicated