/linux-master/drivers/macintosh/ |
H A D | apm_emu.c | 19 int percentage = -1; local 41 if (percentage < 0) 42 percentage = 0; 45 percentage += (pmu_batteries[i].charge * 100) / 66 percentage /= real_count; 70 } else if (percentage <= APM_CRITICAL) { 73 } else if (percentage <= APM_LOW) { 82 info->battery_life = percentage;
|
/linux-master/drivers/thermal/ |
H A D | gov_fair_share.c | 44 struct thermal_cooling_device *cdev, int percentage, int level) 46 return (long)(percentage * level * cdev->max_state) / (100 * tz->num_trips); 59 * P2. percentage[i]/100: 87 int percentage; local 94 percentage = 100 / total_instance; 96 percentage = (instance->weight * 100) / total_weight; 98 instance->target = get_target_state(tz, cdev, percentage, 43 get_target_state(struct thermal_zone_device *tz, struct thermal_cooling_device *cdev, int percentage, int level) argument
|
/linux-master/arch/sh/boards/mach-hp6xx/ |
H A D | hp6xx_apm.c | 17 /* percentage values */ 32 int battery, backup, charging, percentage; local 39 percentage = 100 * (battery - HP680_BATTERY_MIN) / 43 info->battery_life = percentage; 62 } else if (percentage <= APM_CRITICAL) { 65 } else if (percentage <= APM_LOW) {
|
/linux-master/tools/testing/selftests/powerpc/pmu/ |
H A D | count_instructions.c | 33 double percentage; local 47 percentage = (double)difference / events[0].result.value * 100; 56 printf("Delta %lld, %f%%\n", difference, percentage);
|
H A D | count_stcx_fail.c | 33 double percentage; local 49 percentage = (double)difference / events[0].result.value * 100; 60 printf("Delta %lld, %f%%\n", difference, percentage);
|
/linux-master/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | instruction_count_test.c | 29 double percentage; local 48 percentage = (double)difference / event->result.value * 100; 54 printf("Delta %ld, %f%%\n", difference, percentage);
|
/linux-master/tools/testing/selftests/bpf/benchs/ |
H A D | run_common.sh | 31 function percentage() function 70 printf "%-20s %s%%\n" "$bench" "$(percentage $summary)"
|
/linux-master/arch/arm/mach-pxa/ |
H A D | sharpsl_pm.h | 56 int percentage; member in struct:battery_thresh
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_atombios.c | 785 u16 percentage = 0, rate = 0; local 796 percentage = le16_to_cpu(igp_info->info_6.usDVISSPercentage); 800 percentage = le16_to_cpu(igp_info->info_6.usHDMISSPercentage); 804 percentage = le16_to_cpu(igp_info->info_6.usLvdsSSPercentage); 812 percentage = le16_to_cpu(igp_info->info_7.usDVISSPercentage); 816 percentage = le16_to_cpu(igp_info->info_7.usHDMISSPercentage); 820 percentage = le16_to_cpu(igp_info->info_7.usLvdsSSPercentage); 828 percentage = le16_to_cpu(igp_info->info_8.usDVISSPercentage); 832 percentage = le16_to_cpu(igp_info->info_8.usHDMISSPercentage); 836 percentage [all...] |
H A D | atombios_crtc.c | 251 /* Don't mess with SS if percentage is 0 or external ss. 256 if (ss->percentage == 0) 393 if (amdgpu_crtc->ss_enabled && amdgpu_crtc->ss.percentage) 406 if (amdgpu_crtc->ss_enabled && amdgpu_crtc->ss.percentage) 868 (u32)amdgpu_crtc->ss.percentage) /
|
H A D | amdgpu_mode.h | 445 uint16_t percentage; member in struct:amdgpu_atom_ss
|
/linux-master/tools/tracing/rtla/src/ |
H A D | osnoise_top.c | 215 int percentage; local 224 percentage = ((cpu_data->sum_runtime - cpu_data->sum_noise) * 10000000) 226 decimal = percentage % 100000; 227 percentage = percentage / 100000; 231 trace_seq_printf(s, " %3d.%05d", percentage, decimal);
|
/linux-master/drivers/gpu/drm/amd/display/dc/inc/ |
H A D | clock_source.h | 36 uint32_t percentage; /*> In unit of 0.01% or 0.001%*/ member in struct:spread_spectrum_data 74 /* DP Reference clock SS percentage 77 /* DP Reference clock SS percentage divider */
|
/linux-master/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_clock_source.c | 502 pll_settings->ss_percentage = ss_data->percentage; 665 if (ss_data->percentage == 0) 682 fb_div, dc_fixpt_from_fraction(ss_data->percentage, 741 bp_params.percentage = ss_data->percentage; 1406 /* for HDMI check SS percentage, 1412 "Invalid SS percentage "); 1424 * which assumes fixed SS percentage Divider = 100)*/ 1430 ss_data_cur->percentage =
|
/linux-master/drivers/gpu/drm/radeon/ |
H A D | rv740_dpm.c | 164 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); 257 clk_v = 0x40000 * ss.percentage *
|
H A D | atombios_crtc.c | 454 /* Don't mess with SS if percentage is 0 or external ss. 459 if (ss->percentage == 0) 500 args.v2.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); 519 args.v1.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); 527 if ((enable == ATOM_DISABLE) || (ss->percentage == 0) || 532 args.lvds_ss_2.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); 543 args.lvds_ss.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); 690 if (radeon_crtc->ss_enabled && radeon_crtc->ss.percentage) 703 if (radeon_crtc->ss_enabled && radeon_crtc->ss.percentage) 1115 (u32)radeon_crtc->ss.percentage) / [all...] |
H A D | radeon_atombios.c | 1401 ss->percentage = 1426 u16 percentage = 0, rate = 0; local 1437 percentage = le16_to_cpu(igp_info->info_6.usDVISSPercentage); 1441 percentage = le16_to_cpu(igp_info->info_6.usHDMISSPercentage); 1445 percentage = le16_to_cpu(igp_info->info_6.usLvdsSSPercentage); 1453 percentage = le16_to_cpu(igp_info->info_7.usDVISSPercentage); 1457 percentage = le16_to_cpu(igp_info->info_7.usHDMISSPercentage); 1461 percentage = le16_to_cpu(igp_info->info_7.usLvdsSSPercentage); 1469 percentage = le16_to_cpu(igp_info->info_8.usDVISSPercentage); 1473 percentage [all...] |
H A D | rv730_dpm.c | 95 u32 clk_v = ss.percentage * fbdiv / (clk_s * 10000); 171 u32 clk_v = ss.percentage * dividers.fb_div / (clk_s * 10000);
|
/linux-master/drivers/gpu/drm/amd/display/include/ |
H A D | bios_parser_types.h | 295 uint32_t percentage; member in struct:bp_spread_spectrum_parameters
|
/linux-master/drivers/platform/x86/dell/ |
H A D | alienware-wmi.c | 198 u32 percentage; member in struct:wmax_brightness_args 359 .percentage = brightness,
|
/linux-master/arch/x86/kernel/ |
H A D | apm_32.c | 254 * idle[-_]threshold=<n> System idle percentage above which to 258 * which the idle percentage is 349 * idle percentage above which bios idle calls are done 1027 * source. The bat value returned give an estimate as a percentage 1616 int percentage = -1; local 1625 percentage = cx & 0xff; 1665 6) Remaining battery life (percentage of charge): 1681 percentage, 2403 "System idle percentage above which to make APM BIOS idle calls"); 2406 "Period (in sec/100) over which to calculate the idle percentage"); [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/bios/ |
H A D | command_table.c | 1329 if ((enable == true) && (bp_params->percentage > 0)) 1335 cpu_to_le16((uint16_t)bp_params->percentage); 1380 if ((enable == true) && (bp_params->percentage > 0)) { 1384 cpu_to_le16((uint16_t)(bp_params->percentage));
|
/linux-master/drivers/firmware/google/ |
H A D | gsmi.c | 544 u32 percentage; member in struct:__anon423 553 * Value entered is a percentage, 0 through 100, anything else 560 param.percentage = val;
|
/linux-master/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | smu8_hwmgr.c | 692 unsigned long percentage; local 722 percentage = 75; 723 /*Sclk - calculate sclk value based on percentage and find FLOOR sclk from VddcDependencyOnSCLK table */ 725 percentage) / 100;
|
H A D | smu7_hwmgr.c | 1507 int32_t tmp_sclk, count, percentage; local 1510 percentage = 70; 1513 percentage = 100 * golden_dpm_table->sclk_table.dpm_levels[golden_dpm_table->sclk_table.count - 1].value / 1518 tmp_sclk = hwmgr->pstate_mclk * percentage / 100; 3172 uint32_t percentage; local 3182 percentage = 100 * golden_dpm_table->sclk_table.dpm_levels[golden_dpm_table->sclk_table.count - 1].value / 3186 percentage = 70; 3194 tmp_sclk = tmp_mclk * percentage / 100;
|