Home
last modified time | relevance | path

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

12

/drivers/macintosh/
Dapm_emu.c19 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/
Dgov_fair_share.c50 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/
Damdgpu_atombios.c785 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 …]
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.h372 uint16_t percentage; member
/drivers/gpu/drm/amd/display/dc/dce/
Ddce_clock_source.c500 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/
Dclock_source.h36 uint32_t percentage; /*> In unit of 0.01% or 0.001%*/ member
/drivers/gpu/drm/radeon/
Datombios_crtc.c459 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()
Dradeon_atombios.c1398 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 …]
Drv740_dpm.c164 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()
Drv730_dpm.c95 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()
Dradeon_mode.h309 uint16_t percentage; member
Drv6xx_dpm.c569 ss.percentage, in rv6xx_program_engine_spread_spectrum()
687 ss.percentage, in rv6xx_program_mclk_spread_spectrum_parameters()
Dni_dpm.c2047 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()
Dcypress_dpm.c565 clk_v = ss.percentage * in cypress_populate_mclk_value()
Drv770_dpm.c546 u32 clk_v = ss.percentage * fbdiv / (clk_s * 10000); in rv770_populate_sclk_value()
Dci_dpm.c2807 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()
Dsi_dpm.c4811 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/
DKconfig18 percentage of total time it should be operating.
/drivers/gpu/drm/amd/display/include/
Dbios_parser_types.h293 uint32_t percentage; member
/drivers/platform/x86/dell/
Dalienware-wmi.c198 u32 percentage; member
359 .percentage = brightness, in wmax_brightness()
/drivers/firmware/google/
Dgsmi.c544 u32 percentage; in gsmi_clear_eventlog_store() member
560 param.percentage = val; in gsmi_clear_eventlog_store()
/drivers/gpu/drm/amd/display/dc/bios/
Dcommand_table.c1328 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/
Dsmu8_hwmgr.c692 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()
Dsmu7_hwmgr.c3122 uint32_t percentage; in smu7_get_profiling_clk() local
3132percentage = 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()

12