Home
last modified time | relevance | path

Searched refs:percent (Results 1 – 25 of 107) sorted by relevance

12345

/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
Dfantog.c34 u32 percent; member
39 nvkm_fantog_update(struct nvkm_fantog *fan, int percent) in nvkm_fantog_update() argument
49 if (percent < 0) in nvkm_fantog_update()
50 percent = fan->percent; in nvkm_fantog_update()
51 fan->percent = percent; in nvkm_fantog_update()
56 if (percent != (duty * 100)) { in nvkm_fantog_update()
57 u64 next_change = (percent * fan->period_us) / 100; in nvkm_fantog_update()
77 return fan->percent; in nvkm_fantog_get()
81 nvkm_fantog_set(struct nvkm_therm *therm, int percent) in nvkm_fantog_set() argument
86 nvkm_fantog_update(fan, percent); in nvkm_fantog_set()
[all …]
Dfan.c44 target = fan->percent; in nvkm_fan_update()
47 if (fan->percent != target) { in nvkm_fan_update()
49 fan->percent = target; in nvkm_fan_update()
118 nvkm_therm_fan_set(struct nvkm_therm *therm, bool immediate, int percent) in nvkm_therm_fan_set() argument
120 return nvkm_fan_update(therm->fan, immediate, percent); in nvkm_therm_fan_set()
175 nvkm_therm_fan_user_set(struct nvkm_therm *therm, int percent) in nvkm_therm_fan_user_set() argument
180 return nvkm_therm_fan_set(therm, true, percent); in nvkm_therm_fan_user_set()
256 therm->fan->percent = nvkm_therm_fan_get(therm); in nvkm_therm_fan_ctor()
Dpriv.h47 int percent; member
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);
Dfanpwm.c59 nvkm_fanpwm_set(struct nvkm_therm *therm, int percent) in nvkm_fanpwm_set() argument
74 duty = ((divs * percent) + 99) / 100; in nvkm_fanpwm_set()
/Linux-v4.19/tools/perf/util/
Dcolor.c162 const char *get_percent_color(double percent) in get_percent_color() argument
171 if (fabs(percent) >= MIN_RED) in get_percent_color()
174 if (fabs(percent) > MIN_GREEN) in get_percent_color()
180 int percent_color_fprintf(FILE *fp, const char *fmt, double percent) in percent_color_fprintf() argument
185 color = get_percent_color(percent); in percent_color_fprintf()
186 r = color_fprintf(fp, color, fmt, percent); in percent_color_fprintf()
200 double percent; in percent_color_snprintf() local
203 percent = va_arg(args, double); in percent_color_snprintf()
205 return value_color_snprintf(bf, size, fmt, percent); in percent_color_snprintf()
212 double percent; in percent_color_len_snprintf() local
[all …]
Dcolor.h45 int percent_color_fprintf(FILE *fp, const char *fmt, double percent);
46 const char *get_percent_color(double percent);
Dannotate.c1341 double percent; in annotation_line__print() local
1343 percent = annotation_data__percent(&al->data[i], in annotation_line__print()
1346 if (percent > max_percent) in annotation_line__print()
1347 max_percent = percent; in annotation_line__print()
1387 double percent; in annotation_line__print() local
1389 percent = annotation_data__percent(data, percent_type); in annotation_line__print()
1390 color = get_percent_color(percent); in annotation_line__print()
1399 color_fprintf(stdout, color, " %7.2f", percent); in annotation_line__print()
1809 data->percent[PERCENT_HITS_LOCAL] = 100.0 * hits / sym_hist->nr_samples; in calc_percent()
1813 data->percent[PERCENT_HITS_GLOBAL] = 100.0 * hits / hists->stats.nr_non_filtered_samples; in calc_percent()
[all …]
/Linux-v4.19/tools/power/cpupower/utils/idle_monitor/
Dmperf_monitor.c29 static int mperf_get_count_percent(unsigned int self_id, double *percent,
118 static int mperf_get_count_percent(unsigned int id, double *percent, in mperf_get_count_percent() argument
135 *percent = 100.0 * mperf_diff / tsc_diff; in mperf_get_count_percent()
140 *percent = 100.0 * mperf_diff / timediff; in mperf_get_count_percent()
147 *percent = 100.0 - *percent; in mperf_get_count_percent()
151 dprint("%s: %f\n", mperf_cstates[id].name, *percent); in mperf_get_count_percent()
Dhsw_ext_idle.c29 static int hsw_ext_get_count_percent(unsigned int self_id, double *percent,
90 static int hsw_ext_get_count_percent(unsigned int id, double *percent, in hsw_ext_get_count_percent() argument
93 *percent = 0.0; in hsw_ext_get_count_percent()
98 *percent = (100.0 * in hsw_ext_get_count_percent()
110 *percent, cpu); in hsw_ext_get_count_percent()
Dsnb_idle.c27 static int snb_get_count_percent(unsigned int self_id, double *percent,
87 static int snb_get_count_percent(unsigned int id, double *percent, in snb_get_count_percent() argument
90 *percent = 0.0; in snb_get_count_percent()
95 *percent = (100.0 * in snb_get_count_percent()
107 *percent, cpu); in snb_get_count_percent()
Dcpuidle_sysfs.c27 static int cpuidle_get_count_percent(unsigned int id, double *percent, in cpuidle_get_count_percent() argument
33 cpuidle_cstates[id].name, timediff, *percent, cpu); in cpuidle_get_count_percent()
36 *percent = 0.0; in cpuidle_get_count_percent()
38 *percent = ((100.0 * statediff) / timediff); in cpuidle_get_count_percent()
41 cpuidle_cstates[id].name, timediff, statediff, *percent, cpu); in cpuidle_get_count_percent()
Dnhm_idle.c30 static int nhm_get_count_percent(unsigned int self_id, double *percent,
102 static int nhm_get_count_percent(unsigned int id, double *percent, in nhm_get_count_percent() argument
105 *percent = 0.0; in nhm_get_count_percent()
110 *percent = (100.0 * in nhm_get_count_percent()
122 *percent, cpu); in nhm_get_count_percent()
Damd_fam14h_idle.c46 static int fam14h_get_count_percent(unsigned int self_id, double *percent,
208 static int fam14h_get_count_percent(unsigned int id, double *percent, in fam14h_get_count_percent() argument
219 *percent = 0.0; in fam14h_get_count_percent()
221 *percent = 100.0 * diff / timediff / 12.5; in fam14h_get_count_percent()
224 timediff, diff * 10 / 125, *percent); in fam14h_get_count_percent()
Dcpupower-monitor.c144 double percent; in print_results() local
173 ret = s.get_count_percent(s.id, &percent, in print_results()
177 else if (percent >= 100.0) in print_results()
178 printf("%6.1f", percent); in print_results()
180 printf("%6.2f", percent); in print_results()
/Linux-v4.19/kernel/trace/
Dtrace_branch.c245 long percent; in get_incorrect_percent() local
248 percent = p->incorrect * 100; in get_incorrect_percent()
249 percent /= p->correct + p->incorrect; in get_incorrect_percent()
251 percent = p->incorrect ? 100 : -1; in get_incorrect_percent()
253 return percent; in get_incorrect_percent()
270 long percent; in branch_stat_show() local
275 percent = get_incorrect_percent(p); in branch_stat_show()
277 if (percent < 0) in branch_stat_show()
280 seq_printf(m, "%3ld ", percent); in branch_stat_show()
/Linux-v4.19/tools/perf/ui/gtk/
Dbrowser.c38 const char *perf_gtk__get_percent_color(double percent) in perf_gtk__get_percent_color() argument
40 if (percent >= MIN_RED) in perf_gtk__get_percent_color()
42 if (percent >= MIN_GREEN) in perf_gtk__get_percent_color()
Dhists.c19 double percent; in __percent_color_snprintf() local
26 percent = va_arg(args, double); in __percent_color_snprintf()
29 markup = perf_gtk__get_percent_color(percent); in __percent_color_snprintf()
33 ret += scnprintf(buf + ret, size - ret, fmt, len, percent); in __percent_color_snprintf()
360 float percent; in perf_gtk__show_hists() local
365 percent = hist_entry__get_percent_limit(h); in perf_gtk__show_hists()
366 if (percent < min_pcnt) in perf_gtk__show_hists()
420 float percent; in perf_gtk__add_hierarchy_entries() local
427 percent = hist_entry__get_percent_limit(he); in perf_gtk__add_hierarchy_entries()
428 if (percent < min_pcnt) in perf_gtk__add_hierarchy_entries()
Dannotate.c28 double percent = 0.0; in perf_gtk__get_percent() local
41 percent = 100.0 * symhist->addr[dl->al.offset].nr_samples / symhist->nr_samples; in perf_gtk__get_percent()
43 markup = perf_gtk__get_percent_color(percent); in perf_gtk__get_percent()
46 ret += scnprintf(buf + ret, size - ret, "%6.2f%%", percent); in perf_gtk__get_percent()
/Linux-v4.19/Documentation/devicetree/bindings/regulator/
Dvctrl.txt17 - ovp-threshold-percent : overvoltage protection (OVP) threshold of the
18 regulator in percent. Some regulators have an OVP
31 This value is required when ovp-threshold-percent is
48 ovp-threshold-percent = <16>;
/Linux-v4.19/drivers/platform/x86/
Dintel_oaktrail.c230 u8 percent = (u8) b->props.brightness; in set_backlight_brightness() local
231 if (percent < 0 || percent > OT_EC_BL_BRIGHTNESS_MAX) in set_backlight_brightness()
234 ec_write(OT_EC_BL_BRIGHTNESS_ADDRESS, percent); in set_backlight_brightness()
/Linux-v4.19/drivers/power/supply/
Dtwl4030_madc_battery.c138 int percent = twl4030_madc_bat_voltscale(bat, in twl4030_madc_bat_get_property() local
140 val->intval = (percent * bat->pdata->capacity) / 100; in twl4030_madc_bat_get_property()
154 int percent = twl4030_madc_bat_voltscale(bat, in twl4030_madc_bat_get_property() local
157 int chg = (percent * (bat->pdata->capacity/1000))/100; in twl4030_madc_bat_get_property()
/Linux-v4.19/scripts/
Dbloat-o-meter87 percent = (ntot - otot) * 100.0 / otot
89 percent = 0
90 print("Total: Before=%d, After=%d, chg %+.2f%%" % (otot, ntot, percent))
/Linux-v4.19/tools/perf/ui/browsers/
Dannotate.c21 double percent; member
80 static void annotate_browser__set_percent_color(void *browser, double percent, bool current) in annotate_browser__set_percent_color() argument
82 ui_browser__set_percent_color(browser, percent, current); in annotate_browser__set_percent_color()
232 if (a->data[i].percent == b->data[i].percent) in disasm__cmp()
234 return a->data[i].percent < b->data[i].percent; in disasm__cmp()
319 double percent; in annotate_browser__calc_percent() local
321 percent = annotation_data__percent(&pos->al.data[i], in annotate_browser__calc_percent()
324 if (max_percent < percent) in annotate_browser__calc_percent()
325 max_percent = percent; in annotate_browser__calc_percent()
Dhists.c272 float percent; in hierarchy_count_rows() local
275 percent = hist_entry__get_percent_limit(child); in hierarchy_count_rows()
277 if (!child->filtered && percent >= hb->min_pcnt) { in hierarchy_count_rows()
506 float percent; in hierarchy_set_folding() local
513 percent = hist_entry__get_percent_limit(child); in hierarchy_set_folding()
514 if (!child->filtered && percent >= hb->min_pcnt) in hierarchy_set_folding()
543 double percent; in hist_entry__set_folding() local
545 percent = hist_entry__get_percent_limit(he); in hist_entry__set_folding()
546 if (he->filtered || percent < browser->min_pcnt) in hist_entry__set_folding()
1146 double percent; in __hpp__slsmg_color_printf() local
[all …]
/Linux-v4.19/tools/testing/fault-injection/
Dfailcmd.sh24 -p percent
25 --probability=percent
26 likelihood of failure injection, in percent.

12345