/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);
|
/linux/tools/perf/util/ |
H A D | color.c | 124 const char *get_percent_color(double percent) in get_percent_color() argument 133 if (fabs(percent) >= MIN_RED) in get_percent_color() 136 if (fabs(percent) > MIN_GREEN) in get_percent_color() 142 int percent_color_fprintf(FILE *fp, const char *fmt, double percent) in percent_color_fprintf() argument 147 color = get_percent_color(percent); in percent_color_fprintf() 148 r = color_fprintf(fp, color, fmt, percent); in percent_color_fprintf() 162 double percent; in percent_color_snprintf() local 165 percent = va_arg(args, double); in percent_color_snprintf() 167 return value_color_snprintf(bf, size, fmt, percent); in percent_color_snprintf() 174 double percent; in percent_color_len_snprintf() local [all …]
|
H A D | annotate.c | 777 double percent; in annotation_line__print() local 779 percent = annotation_data__percent(&al->data[i], in annotation_line__print() 782 if (percent > max_percent) in annotation_line__print() 783 max_percent = percent; in annotation_line__print() 809 double percent; in annotation_line__print() local 811 percent = annotation_data__percent(data, percent_type); in annotation_line__print() 812 color = get_percent_color(percent); in annotation_line__print() 821 color_fprintf(stdout, color, " %7.2f", percent); in annotation_line__print() 883 data->percent[PERCENT_HITS_LOCAL] = 100.0 * hits / sym_hist->nr_samples; in calc_percent() 887 data->percent[PERCENT_HITS_GLOBAL] = 100.0 * hits / hists->stats.nr_non_filtered_samples; in calc_percent() [all …]
|
H A D | color.h | 46 int percent_color_fprintf(FILE *fp, const char *fmt, double percent); 47 const char *get_percent_color(double percent);
|
/linux/drivers/phy/freescale/ |
H A D | phy-fsl-imx8mq-usb.c | 67 static u32 phy_tx_vref_tune_from_property(u32 percent) in phy_tx_vref_tune_from_property() argument 69 percent = clamp(percent, 94U, 124U); in phy_tx_vref_tune_from_property() 71 return DIV_ROUND_CLOSEST(percent - 94U, 2); in phy_tx_vref_tune_from_property() 74 static u32 phy_tx_rise_tune_from_property(u32 percent) in phy_tx_rise_tune_from_property() argument 76 switch (percent) { in phy_tx_rise_tune_from_property() 112 static u32 phy_comp_dis_tune_from_property(u32 percent) in phy_comp_dis_tune_from_property() argument 114 switch (percent) { in phy_comp_dis_tune_from_property() 133 static u32 phy_pcs_tx_swing_full_from_property(u32 percent) in phy_pcs_tx_swing_full_from_property() argument 135 percent = min(percent, 100U); in phy_pcs_tx_swing_full_from_property() 137 return (percent * 127) / 100; in phy_pcs_tx_swing_full_from_property()
|
/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/kernel/trace/ |
H A D | trace_branch.c | 249 long percent; in get_incorrect_percent() local 252 percent = p->incorrect * 100; in get_incorrect_percent() 253 percent /= p->correct + p->incorrect; in get_incorrect_percent() 255 percent = p->incorrect ? 100 : -1; in get_incorrect_percent() 257 return percent; in get_incorrect_percent() 274 long percent; in branch_stat_show() local 279 percent = get_incorrect_percent(p); in branch_stat_show() 281 if (percent < 0) in branch_stat_show() 284 seq_printf(m, "%3ld ", percent); in branch_stat_show()
|
/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 | snb_idle.c | 26 static int snb_get_count_percent(unsigned int self_id, double *percent, 86 static int snb_get_count_percent(unsigned int id, double *percent, in snb_get_count_percent() argument 89 *percent = 0.0; in snb_get_count_percent() 94 *percent = (100.0 * in snb_get_count_percent() 106 *percent, cpu); in snb_get_count_percent()
|
H A D | hsw_ext_idle.c | 28 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, in hsw_ext_get_count_percent() argument 91 *percent = 0.0; in hsw_ext_get_count_percent() 96 *percent = (100.0 * in hsw_ext_get_count_percent() 108 *percent, cpu); in hsw_ext_get_count_percent()
|
H A D | nhm_idle.c | 29 static int nhm_get_count_percent(unsigned int self_id, double *percent, 101 static int nhm_get_count_percent(unsigned int id, double *percent, in nhm_get_count_percent() argument 104 *percent = 0.0; in nhm_get_count_percent() 109 *percent = (100.0 * in nhm_get_count_percent() 121 *percent, cpu); in nhm_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 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 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 | 144 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/Documentation/devicetree/bindings/regulator/ |
H A D | vctrl.txt | 17 - 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/tools/perf/ui/gtk/ |
H A D | browser.c | 36 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 D | hists.c | 21 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 D | twl4030_madc_battery.c | 139 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 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 | 97 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 D | keyboard_leds.c | 50 u8 percent; member 89 request.percent = brightness; in set_kbbl() 156 return response.percent; in kbbl_init()
|
/linux/tools/perf/ui/browsers/ |
H A D | annotate.c | 75 static void annotate_browser__set_percent_color(void *browser, double percent, bool current) in annotate_browser__set_percent_color() argument 77 ui_browser__set_percent_color(browser, percent, current); in annotate_browser__set_percent_color() 240 if (a->data[i].percent[percent_type] == b->data[i].percent[percent_type]) in disasm__cmp() 242 return a->data[i].percent[percent_type] - in disasm__cmp() 243 b->data[i].percent[percent_type]; in disasm__cmp() 328 double percent; in annotate_browser__calc_percent() local 330 percent = annotation_data__percent(&pos->al.data[i], in annotate_browser__calc_percent() 333 if (max_percent < percent) in annotate_browser__calc_percent() 334 max_percent = percent; in annotate_browser__calc_percent()
|
/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 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_percent) { in set_clock_mux() 742 best_percent = percent; in set_clock_mux() 759 baud, percent / 100, percent % 100); in set_clock_mux()
|