/drivers/macintosh/ |
D | apm_emu.c | 30 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/ |
D | fair_share.c | 62 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/ |
D | amdgpu_atombios.c | 783 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 …]
|
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 | 345 uint16_t percentage; member
|
D | si_dpm.c | 5289 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()
|
D | ci_dpm.c | 2974 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/ |
D | atombios_crtc.c | 457 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()
|
D | radeon_atombios.c | 1411 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 …]
|
D | rv740_dpm.c | 166 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()
|
D | rv730_dpm.c | 98 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()
|
D | radeon_mode.h | 310 uint16_t percentage; member
|
D | rv6xx_dpm.c | 570 ss.percentage, in rv6xx_program_engine_spread_spectrum() 688 ss.percentage, in rv6xx_program_mclk_spread_spectrum_parameters()
|
D | ni_dpm.c | 2045 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()
|
D | cypress_dpm.c | 562 u32 clk_v = ss.percentage * in cypress_populate_mclk_value()
|
D | rv770_dpm.c | 545 u32 clk_v = ss.percentage * fbdiv / (clk_s * 10000); in rv770_populate_sclk_value()
|
D | ci_dpm.c | 2819 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()
|
D | si_dpm.c | 4828 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/ |
D | Kconfig | 17 percentage of total time it should be operating.
|
/drivers/platform/x86/ |
D | alienware-wmi.c | 191 u32 percentage; member 352 .percentage = brightness, in wmax_brightness()
|
/drivers/firmware/google/ |
D | gsmi.c | 523 u32 percentage; in gsmi_clear_eventlog_store() member 539 param.percentage = val; in gsmi_clear_eventlog_store()
|
/drivers/base/ |
D | Kconfig | 303 Allocator as a percentage of the total memory in the system. 315 bool "Use percentage value only"
|
/drivers/gpu/drm/amd/powerplay/hwmgr/ |
D | cz_hwmgr.c | 713 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()
|
D | smu7_hwmgr.c | 2503 uint32_t percentage; in smu7_get_profiling_clk() local 2513 …percentage = 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/ |
D | sysfs-fs-lustre | 448 Controls what percentage of ldlm callback threads is dedicated
|