Searched refs:percent (Results 1 - 25 of 79) sorted by relevance

1234

/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
H A Dfantog.c34 u32 percent; member in struct:nvkm_fantog
39 nvkm_fantog_update(struct nvkm_fantog *fan, int percent) argument
49 if (percent < 0)
50 percent = fan->percent;
51 fan->percent = percent;
56 if (percent != (duty * 100)) {
57 u64 next_change = (percent * fan->period_us) / 100;
77 return fan->percent;
81 nvkm_fantog_set(struct nvkm_therm *therm, int percent) argument
[all...]
H A Dfannil.c33 nvkm_fannil_set(struct nvkm_therm *therm, int percent) argument
H A Dpriv.h47 int percent; member in struct:nvkm_fan
50 int (*set)(struct nvkm_therm *, int percent);
67 int nvkm_therm_fan_set(struct nvkm_therm *, bool now, int percent);
69 int nvkm_therm_fan_user_set(struct nvkm_therm *, int percent);
H A Dfan.c44 target = fan->percent;
47 if (fan->percent != target) {
49 fan->percent = target;
118 nvkm_therm_fan_set(struct nvkm_therm *therm, bool immediate, int percent) argument
120 return nvkm_fan_update(therm->fan, immediate, percent);
175 nvkm_therm_fan_user_set(struct nvkm_therm *therm, int percent) argument
180 return nvkm_therm_fan_set(therm, true, percent);
256 therm->fan->percent = nvkm_therm_fan_get(therm);
H A Dfanpwm.c59 nvkm_fanpwm_set(struct nvkm_therm *therm, int percent) argument
74 duty = ((divs * percent) + 99) / 100;
/linux-master/tools/testing/selftests/lkdtm/
H A Dstack-entropy.sh29 percent=$(( 100 * $i / $samples ))
30 if [ "$percent" -ne "$report" ]; then
31 /bin/echo -en "$percent%\r"
32 report="$percent"
/linux-master/tools/perf/util/
H A Dcolor.c124 const char *get_percent_color(double percent) argument
133 if (fabs(percent) >= MIN_RED)
136 if (fabs(percent) > MIN_GREEN)
142 int percent_color_fprintf(FILE *fp, const char *fmt, double percent) argument
147 color = get_percent_color(percent);
148 r = color_fprintf(fp, color, fmt, percent);
162 double percent; local
165 percent = va_arg(args, double);
167 return value_color_snprintf(bf, size, fmt, percent);
174 double percent; local
[all...]
H A Dcolor.h46 int percent_color_fprintf(FILE *fp, const char *fmt, double percent);
47 const char *get_percent_color(double percent);
/linux-master/tools/perf/ui/gtk/
H A Dbrowser.c36 const char *perf_gtk__get_percent_color(double percent) argument
38 if (percent >= MIN_RED)
40 if (percent >= MIN_GREEN)
H A Dgtk.h43 const char *perf_gtk__get_percent_color(double percent);
/linux-master/arch/mips/include/asm/mach-loongson64/
H A Dloongson_hwmon.h39 /* percent only used when type is CONSTANT_SPEED_POLICY */
40 u8 percent; member in struct:loongson_fan_policy
/linux-master/tools/perf/tests/shell/
H A Drecord_offcpu.sh54 if ! perf report -i ${perfdata} -q --percent-limit=90 | grep -E -q sleep
81 if ! perf report -i ${perfdata} -s comm -q -n -t ';' --percent-limit=90 | \
/linux-master/tools/power/cpupower/utils/idle_monitor/
H A Dcpuidle_sysfs.c25 static int cpuidle_get_count_percent(unsigned int id, double *percent, argument
30 dprint("%s: - diff: %llu - percent: %f (%u)\n",
31 cpuidle_cstates[id].name, timediff, *percent, cpu);
34 *percent = 0.0;
36 *percent = ((100.0 * statediff) / timediff);
38 dprint("%s: - timediff: %llu - statediff: %llu - percent: %f (%u)\n",
39 cpuidle_cstates[id].name, timediff, statediff, *percent, cpu);
H A Dsnb_idle.c26 static int snb_get_count_percent(unsigned int self_id, double *percent,
86 static int snb_get_count_percent(unsigned int id, double *percent, argument
89 *percent = 0.0;
94 *percent = (100.0 *
102 dprint("%s: tsc_diff: %llu - count_diff: %llu - percent: %2.f (%u)\n",
106 *percent, cpu);
H A Dnhm_idle.c29 static int nhm_get_count_percent(unsigned int self_id, double *percent,
101 static int nhm_get_count_percent(unsigned int id, double *percent, argument
104 *percent = 0.0;
109 *percent = (100.0 *
117 dprint("%s: tsc_diff: %llu - count_diff: %llu - percent: %2.f (%u)\n",
121 *percent, cpu);
H A Dhsw_ext_idle.c28 static int hsw_ext_get_count_percent(unsigned int self_id, double *percent,
88 static int hsw_ext_get_count_percent(unsigned int id, double *percent, argument
91 *percent = 0.0;
96 *percent = (100.0 *
104 dprint("%s: tsc_diff: %llu - count_diff: %llu - percent: %2.f (%u)\n",
108 *percent, cpu);
H A Dmperf_monitor.c32 static int mperf_get_count_percent(unsigned int self_id, double *percent,
156 static int mperf_get_count_percent(unsigned int id, double *percent, argument
173 *percent = 100.0 * mperf_diff / tsc_diff;
178 *percent = 100.0 * mperf_diff / timediff;
185 *percent = 100.0 - *percent;
189 dprint("%s: %f\n", mperf_cstates[id].name, *percent);
H A Damd_fam14h_idle.c45 static int fam14h_get_count_percent(unsigned int self_id, double *percent,
207 static int fam14h_get_count_percent(unsigned int id, double *percent, argument
218 *percent = 0.0;
220 *percent = 100.0 * diff / timediff / 12.5;
222 dprint("Timediff: %llu - res~: %lu us - percent: %.2f %%\n",
223 timediff, diff * 10 / 125, *percent);
H A Dcpupower-monitor.h19 * sum of percent width and two spaces for padding.
46 int (*get_count_percent)(unsigned int self_id, double *percent,
/linux-master/kernel/trace/
H A Dtrace_branch.c249 long percent; local
252 percent = p->incorrect * 100;
253 percent /= p->correct + p->incorrect;
255 percent = p->incorrect ? 100 : -1;
257 return percent;
274 long percent; local
279 percent = get_incorrect_percent(p);
281 if (percent < 0)
284 seq_printf(m, "%3ld ", percent);
/linux-master/drivers/phy/freescale/
H A Dphy-fsl-imx8mq-usb.c67 static u32 phy_tx_vref_tune_from_property(u32 percent) argument
69 percent = clamp(percent, 94U, 124U);
71 return DIV_ROUND_CLOSEST(percent - 94U, 2);
74 static u32 phy_tx_rise_tune_from_property(u32 percent) argument
76 switch (percent) {
112 static u32 phy_comp_dis_tune_from_property(u32 percent) argument
114 switch (percent) {
133 static u32 phy_pcs_tx_swing_full_from_property(u32 percent) argument
135 percent
[all...]
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
H A Dboost.h20 u8 percent; member in struct:nvbios_boostS
/linux-master/drivers/platform/chrome/wilco_ec/
H A Dkeyboard_leds.c18 #define WILCO_KBBL_MODE_FLAG_PWM BIT(1) /* Set brightness by percent. */
40 * @percent: Brightness in 0-100. Only meaningful in PWM mode.
50 u8 percent; member in struct:wilco_keyboard_leds_msg
89 request.percent = brightness;
156 return response.percent;
/linux-master/scripts/
H A Dbloat-o-meter97 percent = (ntot - otot) * 100.0 / otot
99 percent = 0
100 print("Total: Before=%d, After=%d, chg %+.2f%%" % (otot, ntot, percent))
/linux-master/fs/btrfs/
H A Dmisc.h43 static inline u64 mult_perc(u64 num, u32 percent) argument
45 return div_u64(num * percent, 100);

Completed in 337 milliseconds

1234