/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() 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/ |
D | amdgpu_atombios.c | 770 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 …]
|
D | atombios_crtc.c | 256 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()
|
D | amdgpu_mode.h | 360 uint16_t percentage; member
|
D | ci_dpm.c | 2955 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()
|
D | si_dpm.c | 5364 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/ |
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 | 1410 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 …]
|
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 | 309 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 | 2825 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()
|
D | si_dpm.c | 4884 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/ |
D | Kconfig | 17 percentage of total time it should be operating.
|
/drivers/platform/x86/ |
D | alienware-wmi.c | 192 u32 percentage; member 352 .percentage = brightness, in wmax_brightness()
|
/drivers/firmware/google/ |
D | gsmi.c | 524 u32 percentage; in gsmi_clear_eventlog_store() member 540 param.percentage = val; in gsmi_clear_eventlog_store()
|
/drivers/base/ |
D | Kconfig | 300 Allocator as a percentage of the total memory in the system. 312 bool "Use percentage value only"
|
/drivers/gpu/drm/amd/powerplay/hwmgr/ |
D | cz_hwmgr.c | 714 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/ |
D | sysfs-fs-lustre | 448 Controls what percentage of ldlm callback threads is dedicated
|