| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
| H A D | fantog.c | 34 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 D | fan.c | 44 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 D | priv.h | 47 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 D | fanpwm.c | 59 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 D | phy-fsl-imx8mq-usb.c | 285 static u32 phy_tx_vref_tune_from_property(u32 percent) in phy_tx_vref_tune_from_property() argument 287 percent = clamp(percent, 94U, 124U); in phy_tx_vref_tune_from_property() 289 return DIV_ROUND_CLOSEST(percent - 94U, 2); in phy_tx_vref_tune_from_property() 292 static u32 imx95_phy_tx_vref_tune_from_property(u32 percent) in imx95_phy_tx_vref_tune_from_property() argument 294 percent = clamp(percent, 90U, 108U); in imx95_phy_tx_vref_tune_from_property() 296 switch (percent) { in imx95_phy_tx_vref_tune_from_property() 298 percent = 0; in imx95_phy_tx_vref_tune_from_property() 301 percent in imx95_phy_tx_vref_tune_from_property() 314 phy_tx_rise_tune_from_property(u32 percent) phy_tx_rise_tune_from_property() argument 328 imx95_phy_tx_rise_tune_from_property(u32 percent) imx95_phy_tx_rise_tune_from_property() argument 368 phy_comp_dis_tune_from_property(u32 percent) phy_comp_dis_tune_from_property() argument 390 imx95_phy_comp_dis_tune_from_property(u32 percent) imx95_phy_comp_dis_tune_from_property() argument 412 phy_pcs_tx_swing_full_from_property(u32 percent) phy_pcs_tx_swing_full_from_property() argument [all...] |
| /linux/tools/testing/selftests/lkdtm/ |
| H A D | stack-entropy.sh | 29 percent=$(( 100 * $i / $samples )) 30 if [ "$percent" -ne "$report" ]; then 31 /bin/echo -en "$percent%\r" 32 report="$percent"
|
| /linux/tools/power/cpupower/utils/idle_monitor/ |
| H A D | mperf_monitor.c | 32 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 D | cpuidle_sysfs.c | 25 static int cpuidle_get_count_percent(unsigned int id, double *percent, in cpuidle_get_count_percent() argument 30 dprint("%s: - diff: %llu - percent: %f (%u)\n", in cpuidle_get_count_percent() 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() 38 dprint("%s: - timediff: %llu - statediff: %llu - percent: %f (%u)\n", in cpuidle_get_count_percent() 39 cpuidle_cstates[id].name, timediff, statediff, *percent, cpu); in cpuidle_get_count_percent()
|
| H A D | amd_fam14h_idle.c | 45 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 D | cpupower-monitor.c | 154 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/tests/shell/ |
| H A D | annotate.sh | 19 # disassembly format: "percent : offset: instruction (operands ...)" 55 perf annotate --no-demangle -i "${perfdata}" --stdio --percent-limit 10 2> /dev/null > "${perfout}" 57 perf annotate --no-demangle -i - --stdio 2> /dev/null --percent-limit 10 < "${perfdata}" > "${perfout}" 95 perf annotate --no-demangle -i "${perfdata}" --percent-limit 10 --objdump=objdump 2> /dev/null > "${perfout}" 97 perf annotate --no-demangle -i - "${testsym}" --percent-limit 10 --objdump=objdump 2> /dev/null < "${perfdata}" > "${perfout}"
|
| H A D | inject-callchain.sh | 34 perf report -i "${TESTDATA}" --no-children -q --percent-limit=1 > ${TESTDATA}.out 35 perf report -i "${TESTDATA}.new" --no-children -q --percent-limit=1 > ${TESTDATA}.new.out
|
| H A D | data_type_profiling.sh | 90 if ! perf annotate --code-with-type -i "${perfdata}" --stdio --percent-limit 1 2> /dev/null > "${perfout}" 97 if ! perf annotate --code-with-type -i - --stdio 2> /dev/null --percent-limit 1 < "${perfdata}" > "${perfout}"
|
| H A D | record_offcpu.sh | 60 if ! perf report -i ${perfdata} -q --percent-limit=70 | grep -E -q sleep 87 if ! perf report -i ${perfdata} -s comm -q -n -t ';' --percent-limit=90 | \
|
| /linux/tools/perf/ui/gtk/ |
| H A D | browser.c | 96 const char *perf_gtk__get_percent_color(double percent) 98 if (percent >= MIN_RED) 100 if (percent >= MIN_GREEN) 36 perf_gtk__get_percent_color(double percent) perf_gtk__get_percent_color() argument
|
| H A D | hists.c | 23 double percent; in __percent_color_snprintf() 30 percent = va_arg(args, double); in __percent_color_snprintf() 33 markup = perf_gtk__get_percent_color(percent); in __percent_color_snprintf() 37 ret += scnprintf(buf + ret, size - ret, fmt, len, percent); in __percent_color_snprintf() 364 float percent; in perf_gtk__show_hists() 369 percent = hist_entry__get_percent_limit(h); in perf_gtk__show_hists() 370 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_pcn in perf_gtk__add_hierarchy_entries() 21 double percent; __percent_color_snprintf() local 362 float percent; perf_gtk__show_hists() local [all...] |
| /linux/drivers/platform/x86/intel/ |
| H A D | oaktrail.c | 215 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 D | bloat-o-meter | 99 percent = (ntot - otot) * 100.0 / otot 101 percent = 0 102 print("Total: Before=%d, After=%d, chg %+.2f%%" % (otot, ntot, percent))
|
| /linux/drivers/platform/chrome/wilco_ec/ |
| H A D | keyboard_leds.c | 18 #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 89 request.percent = brightness; in set_kbbl() 156 return response.percent; in kbbl_init()
|
| /linux/tools/perf/util/ |
| H A D | annotate.c | 873 double percent; in annotation_line__print() 875 percent = annotation_data__percent(&al->data[i], in annotation_line__print() 878 if (percent > max_percent) in annotation_line__print() 879 max_percent = percent; in annotation_line__print() 909 double percent; in calc_percent() 913 percent = annotation_data__percent(data, percent_type); in calc_percent() 914 color = get_percent_color(percent); in calc_percent() 923 color_fprintf(stdout, color, " %7.2f", percent); in calc_percent() 1028 data->percent[PERCENT_HITS_LOCAL] = 100.0 * hits / sym_hist->nr_samples; in symbol__annotate() 1032 data->percent[PERCENT_HITS_GLOBA in symbol__annotate() 799 double percent; annotation_line__print() local 835 double percent; annotation_line__print() local 1163 double percent, percent_max = 0.0; print_summary() local 1636 double percent; annotation__calc_lines() local 1750 double percent; annotation_line__max_percent() local 2041 double percent; annotation_line__write() local [all...] |
| /linux/drivers/tty/serial/8250/ |
| H A D | 8250_bcm7271.c | 676 static u32 find_quot(struct device *dev, u32 freq, u32 baud, u32 *percent) in find_quot() argument 689 /* increase resolution to get xx.xx percent */ in find_quot() 699 *percent = (unsigned long)DIV_ROUND_CLOSEST_ULL(hires_err, baud); in find_quot() 702 baud, freq, *percent / 100, *percent % 100); in find_quot() 710 u32 percent; in set_clock_mux() local 725 quot = find_quot(up->dev, priv->default_mux_rate, baud, &percent); in set_clock_mux() 727 best_percent = percent; in set_clock_mux() 737 quot = find_quot(up->dev, freq, baud, &percent); in set_clock_mux() 741 if (percent < best_percen in set_clock_mux() [all...] |
| /linux/tools/testing/fault-injection/ |
| H A D | failcmd.sh | 24 -p percent 25 --probability=percent 26 likelihood of failure injection, in percent.
|
| /linux/tools/perf/Documentation/ |
| H A D | perf-annotate.txt | 150 --percent-type:: 151 Set annotation percent type from following choices: 159 --percent-limit:: 160 Do not show functions which have an overhead under that percent on
|
| /linux/tools/perf/ui/browsers/ |
| H A D | annotate.c | 101 static void annotate_browser__set_percent_color(void *browser, double percent, bool current) in annotate_browser__set_percent_color() 103 ui_browser__set_percent_color(browser, percent, current); in annotate_browser__set_percent_color() 276 if (a->data[i].percent[percent_type] == b->data[i].percent[percent_type]) in disasm__cmp() 278 return a->data[i].percent[percent_type] - in disasm__cmp() 279 b->data[i].percent[percent_type]; in disasm__cmp() 364 double percent; in annotate_browser__calc_percent() 366 percent = annotation_data__percent(&pos->al.data[i], in annotate_browser__calc_percent() 369 if (max_percent < percent) in annotate_browser__calc_percent() 370 max_percent = percent; in annotate_browser__calc_percent() 100 annotate_browser__set_percent_color(void * browser,double percent,bool current) annotate_browser__set_percent_color() argument 362 double percent; annotate_browser__calc_percent() local [all...] |
| H A D | hists.c | 290 float percent; in hierarchy_count_rows() 293 percent = hist_entry__get_percent_limit(child); in hierarchy_count_rows() 295 if (!child->filtered && percent >= hb->min_pcnt) { in hierarchy_count_rows() 570 float percent; in hierarchy_set_folding() 577 percent = hist_entry__get_percent_limit(child); in hierarchy_set_folding() 578 if (!child->filtered && percent >= hb->min_pcnt) in hierarchy_set_folding() 609 double percent; in __hist_browser__set_folding() 620 percent = hist_entry__get_percent_limit(he); in __hist_browser__set_folding() 621 if (he->filtered || percent < browser->min_pcnt) in __hist_browser__set_folding() 1216 double percent; in __hpp__slsmg_color_printf() 288 float percent; hierarchy_count_rows() local 568 float percent; hierarchy_set_folding() local 607 double percent; __hist_browser__set_folding() local 1214 double percent; __hpp__slsmg_color_printf() local 1871 float percent; hist_browser__refresh() local 1913 float percent = hist_entry__get_percent_limit(h); hists__filter_entries() local 1936 float percent = hist_entry__get_percent_limit(h); hists__filter_prev_entries() local 2958 hist_browser__update_percent_limit(struct hist_browser * hb,double percent) hist_browser__update_percent_limit() argument [all...] |