Home
last modified time | relevance | path

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

12345

/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
H A 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 …]
H A 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()
H A 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);
H A 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/drivers/phy/freescale/
H A Dphy-fsl-imx8mq-usb.c277 static u32 phy_tx_vref_tune_from_property(u32 percent) in phy_tx_vref_tune_from_property() argument
279 percent = clamp(percent, 94U, 124U); in phy_tx_vref_tune_from_property()
281 return DIV_ROUND_CLOSEST(percent - 94U, 2); in phy_tx_vref_tune_from_property()
284 static u32 imx95_phy_tx_vref_tune_from_property(u32 percent) in imx95_phy_tx_vref_tune_from_property() argument
286 percent = clamp(percent, 90U, 108U); in imx95_phy_tx_vref_tune_from_property()
288 switch (percent) { in imx95_phy_tx_vref_tune_from_property()
290 percent = 0; in imx95_phy_tx_vref_tune_from_property()
293 percent -= 91; in imx95_phy_tx_vref_tune_from_property()
296 percent -= 92; in imx95_phy_tx_vref_tune_from_property()
299 percent -= 93; in imx95_phy_tx_vref_tune_from_property()
[all …]
/linux/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/kernel/trace/
H A Dtrace_branch.c243 long percent; in get_incorrect_percent() local
246 percent = p->incorrect * 100; in get_incorrect_percent()
247 percent /= p->correct + p->incorrect; in get_incorrect_percent()
249 percent = p->incorrect ? 100 : -1; in get_incorrect_percent()
251 return percent; in get_incorrect_percent()
268 long percent; in branch_stat_show() local
273 percent = get_incorrect_percent(p); in branch_stat_show()
275 if (percent < 0) in branch_stat_show()
278 seq_printf(m, "%3ld ", percent); in branch_stat_show()
/linux/tools/perf/tests/shell/
H A Dannotate.sh56 …perf annotate --no-demangle -i "${perfdata}" --stdio --percent-limit 10 2> /dev/null > "${perfout}"
58 …perf annotate --no-demangle -i - --stdio 2> /dev/null --percent-limit 10 < "${perfdata}" > "${perf…
96 …perf annotate --no-demangle -i "${perfdata}" --percent-limit 10 --objdump=objdump 2> /dev/null > "…
98 …perf annotate --no-demangle -i - "${testsym}" --percent-limit 10 --objdump=objdump 2> /dev/null < …
H A Drecord_offcpu.sh60 if ! perf report -i ${perfdata} -q --percent-limit=90 | grep -E -q sleep
87 if ! perf report -i ${perfdata} -s comm -q -n -t ';' --percent-limit=90 | \
/linux/tools/power/cpupower/utils/idle_monitor/
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, in mperf_get_count_percent() argument
173 *percent = 100.0 * mperf_diff / tsc_diff; in mperf_get_count_percent()
178 *percent = 100.0 * mperf_diff / timediff; in mperf_get_count_percent()
185 *percent = 100.0 - *percent; in mperf_get_count_percent()
189 dprint("%s: %f\n", mperf_cstates[id].name, *percent); in mperf_get_count_percent()
H A Dcpuidle_sysfs.c25 static int cpuidle_get_count_percent(unsigned int id, double *percent, in cpuidle_get_count_percent() argument
31 cpuidle_cstates[id].name, timediff, *percent, cpu); in cpuidle_get_count_percent()
34 *percent = 0.0; in cpuidle_get_count_percent()
36 *percent = ((100.0 * statediff) / timediff); in cpuidle_get_count_percent()
39 cpuidle_cstates[id].name, timediff, statediff, *percent, cpu); in cpuidle_get_count_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, in fam14h_get_count_percent() argument
218 *percent = 0.0; in fam14h_get_count_percent()
220 *percent = 100.0 * diff / timediff / 12.5; in fam14h_get_count_percent()
223 timediff, diff * 10 / 125, *percent); in fam14h_get_count_percent()
H A Dcpupower-monitor.c154 double percent; in print_results() local
188 ret = s.get_count_percent(s.id, &percent, in print_results()
192 else if (percent >= 100.0) in print_results()
193 printf("%6.1f", percent); in print_results()
195 printf("%6.2f", percent); in print_results()
/linux/tools/perf/ui/gtk/
H A Dbrowser.c36 const char *perf_gtk__get_percent_color(double percent) in perf_gtk__get_percent_color() argument
38 if (percent >= MIN_RED) in perf_gtk__get_percent_color()
40 if (percent >= MIN_GREEN) in perf_gtk__get_percent_color()
H A Dhists.c21 double percent; in __percent_color_snprintf() local
28 percent = va_arg(args, double); in __percent_color_snprintf()
31 markup = perf_gtk__get_percent_color(percent); in __percent_color_snprintf()
35 ret += scnprintf(buf + ret, size - ret, fmt, len, percent); in __percent_color_snprintf()
362 float percent; in perf_gtk__show_hists() local
367 percent = hist_entry__get_percent_limit(h); in perf_gtk__show_hists()
368 if (percent < min_pcnt) in perf_gtk__show_hists()
422 float percent; in perf_gtk__add_hierarchy_entries() local
429 percent = hist_entry__get_percent_limit(he); in perf_gtk__add_hierarchy_entries()
430 if (percent < min_pcnt) in perf_gtk__add_hierarchy_entries()
/linux/drivers/power/supply/
H A Dtwl4030_madc_battery.c139 int percent = twl4030_madc_bat_voltscale(bat, in twl4030_madc_bat_get_property() local
141 val->intval = (percent * bat->pdata->capacity) / 100; in twl4030_madc_bat_get_property()
155 int percent = twl4030_madc_bat_voltscale(bat, in twl4030_madc_bat_get_property() local
158 int chg = (percent * (bat->pdata->capacity/1000))/100; in twl4030_madc_bat_get_property()
/linux/drivers/platform/x86/intel/
H A Doaktrail.c215 u8 percent = (u8) b->props.brightness; in set_backlight_brightness() local
216 if (percent < 0 || percent > OT_EC_BL_BRIGHTNESS_MAX) in set_backlight_brightness()
219 ec_write(OT_EC_BL_BRIGHTNESS_ADDRESS, percent); in set_backlight_brightness()
/linux/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/drivers/platform/chrome/wilco_ec/
H A Dkeyboard_leds.c50 u8 percent; member
89 request.percent = brightness; in set_kbbl()
156 return response.percent; in kbbl_init()
/linux/drivers/md/dm-pcache/
H A Dcache.c67 static void cache_info_set_gc_percent(struct pcache_cache_info *cache_info, u8 percent) in cache_info_set_gc_percent() argument
70 cache_info->flags |= FIELD_PREP(PCACHE_CACHE_FLAGS_GC_PERCENT_MASK, percent); in cache_info_set_gc_percent()
73 int pcache_cache_set_gc_percent(struct pcache_cache *cache, u8 percent) in pcache_cache_set_gc_percent() argument
75 if (percent > PCACHE_CACHE_GC_PERCENT_MAX || percent < PCACHE_CACHE_GC_PERCENT_MIN) in pcache_cache_set_gc_percent()
79 cache_info_set_gc_percent(&cache->cache_info, percent); in pcache_cache_set_gc_percent()
/linux/tools/perf/util/
H A Dannotate.c797 double percent; in annotation_line__print() local
799 percent = annotation_data__percent(&al->data[i], in annotation_line__print()
802 if (percent > max_percent) in annotation_line__print()
803 max_percent = percent; in annotation_line__print()
833 double percent; in annotation_line__print() local
835 percent = annotation_data__percent(data, percent_type); in annotation_line__print()
836 color = get_percent_color(percent); in annotation_line__print()
845 color_fprintf(stdout, color, " %7.2f", percent); in annotation_line__print()
931 data->percent[PERCENT_HITS_LOCAL] = 100.0 * hits / sym_hist->nr_samples; in calc_percent()
935 data->percent[PERCENT_HITS_GLOBAL] = 100.0 * hits / hists->stats.nr_non_filtered_samples; in calc_percent()
[all …]
/linux/tools/testing/fault-injection/
H A Dfailcmd.sh24 -p percent
25 --probability=percent
26 likelihood of failure injection, in percent.
/linux/arch/arm64/boot/dts/renesas/
H A Dbeacon-renesom-som.dtsi180 idt,slew-percent = <100>;
186 idt,slew-percent = <100>;
192 idt,slew-percent = <100>;
198 idt,slew-percent = <100>;
/linux/tools/perf/Documentation/
H A Dperf-annotate.txt144 --percent-type::
145 Set annotation percent type from following choices:
153 --percent-limit::
154 Do not show functions which have an overhead under that percent on
/linux/tools/perf/ui/browsers/
H A Dannotate.c100 static void annotate_browser__set_percent_color(void *browser, double percent, bool current) in annotate_browser__set_percent_color() argument
102 ui_browser__set_percent_color(browser, percent, current); in annotate_browser__set_percent_color()
274 if (a->data[i].percent[percent_type] == b->data[i].percent[percent_type]) in disasm__cmp()
276 return a->data[i].percent[percent_type] - in disasm__cmp()
277 b->data[i].percent[percent_type]; in disasm__cmp()
362 double percent; in annotate_browser__calc_percent() local
364 percent = annotation_data__percent(&pos->al.data[i], in annotate_browser__calc_percent()
367 if (max_percent < percent) in annotate_browser__calc_percent()
368 max_percent = percent; in annotate_browser__calc_percent()

12345