Home
last modified time | relevance | path

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

/linux-4.4.14/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 (list_empty(&fan->alarm.head) && 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.h45 int percent; member
48 int (*set)(struct nvkm_therm *, int percent);
65 int nvkm_therm_fan_set(struct nvkm_therm *, bool now, int percent);
67 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()
Dfannil.c33 nvkm_fannil_set(struct nvkm_therm *therm, int percent) in nvkm_fannil_set() argument
Dbase.c333 nvkm_therm_fan_set(therm, true, therm->fan->percent); in nvkm_therm_init()
/linux-4.4.14/tools/perf/util/
Dcolor.c156 const char *get_percent_color(double percent) in get_percent_color() argument
165 if (fabs(percent) >= MIN_RED) in get_percent_color()
168 if (fabs(percent) > MIN_GREEN) in get_percent_color()
174 int percent_color_fprintf(FILE *fp, const char *fmt, double percent) in percent_color_fprintf() argument
179 color = get_percent_color(percent); in percent_color_fprintf()
180 r = color_fprintf(fp, color, fmt, percent); in percent_color_fprintf()
194 double percent; in percent_color_snprintf() local
197 percent = va_arg(args, double); in percent_color_snprintf()
199 return value_color_snprintf(bf, size, fmt, percent); in percent_color_snprintf()
206 double percent; in percent_color_len_snprintf() local
[all …]
Dannotate.c784 double percent = 0.0; in disasm__calc_percent() local
798 percent += src_line->samples[evidx].percent; in disasm__calc_percent()
811 percent = 100.0 * hits / h->sum; in disasm__calc_percent()
815 return percent; in disasm__calc_percent()
828 double percent, max_percent = 0.0; in disasm_line__print() local
829 double *ppercents = &percent; in disasm_line__print()
850 percent = disasm__calc_percent(notes, in disasm_line__print()
856 ppercents[i] = percent; in disasm_line__print()
858 if (percent > max_percent) in disasm_line__print()
859 max_percent = percent; in disasm_line__print()
[all …]
Dcolor.h42 int percent_color_fprintf(FILE *fp, const char *fmt, double percent);
43 const char *get_percent_color(double percent);
Dannotate.h96 double percent; member
/linux-4.4.14/kernel/trace/
Dtrace_branch.c237 long percent; in get_incorrect_percent() local
240 percent = p->incorrect * 100; in get_incorrect_percent()
241 percent /= p->correct + p->incorrect; in get_incorrect_percent()
243 percent = p->incorrect ? 100 : -1; in get_incorrect_percent()
245 return percent; in get_incorrect_percent()
252 long percent; in branch_stat_show() local
263 percent = get_incorrect_percent(p); in branch_stat_show()
266 if (percent < 0) in branch_stat_show()
269 seq_printf(m, "%3ld ", percent); in branch_stat_show()
/linux-4.4.14/tools/perf/ui/gtk/
Dhists.c16 double percent; in __percent_color_snprintf() local
23 percent = va_arg(args, double); in __percent_color_snprintf()
26 markup = perf_gtk__get_percent_color(percent); in __percent_color_snprintf()
30 ret += scnprintf(buf + ret, size - ret, fmt, len, percent); in __percent_color_snprintf()
103 double percent; in perf_gtk__add_callchain() local
109 percent = 100.0 * hits / total; in perf_gtk__add_callchain()
119 scnprintf(buf, sizeof(buf), "%5.2f%%", percent); in perf_gtk__add_callchain()
227 float percent; in perf_gtk__show_hists() local
232 percent = hist_entry__get_percent_limit(h); in perf_gtk__show_hists()
233 if (percent < min_pcnt) in perf_gtk__show_hists()
Dbrowser.c37 const char *perf_gtk__get_percent_color(double percent) in perf_gtk__get_percent_color() argument
39 if (percent >= MIN_RED) in perf_gtk__get_percent_color()
41 if (percent >= MIN_GREEN) in perf_gtk__get_percent_color()
Dannotate.c26 double percent = 0.0; in perf_gtk__get_percent() local
39 percent = 100.0 * symhist->addr[dl->offset] / symhist->sum; in perf_gtk__get_percent()
41 markup = perf_gtk__get_percent_color(percent); in perf_gtk__get_percent()
44 ret += scnprintf(buf + ret, size - ret, "%6.2f%%", percent); in perf_gtk__get_percent()
Dgtk.h42 const char *perf_gtk__get_percent_color(double percent);
/linux-4.4.14/tools/power/cpupower/utils/idle_monitor/
Dmperf_monitor.c29 static int mperf_get_count_percent(unsigned int self_id, double *percent,
117 static int mperf_get_count_percent(unsigned int id, double *percent, in mperf_get_count_percent() argument
134 *percent = 100.0 * mperf_diff / tsc_diff; in mperf_get_count_percent()
139 *percent = 100.0 * mperf_diff / timediff; in mperf_get_count_percent()
146 *percent = 100.0 - *percent; in mperf_get_count_percent()
150 dprint("%s: %f\n", mperf_cstates[id].name, *percent); in mperf_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()
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()
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.c139 double percent; in print_results() local
168 ret = s.get_count_percent(s.id, &percent, in print_results()
172 else if (percent >= 100.0) in print_results()
173 printf("%6.1f", percent); in print_results()
175 printf("%6.2f", percent); in print_results()
Dcpupower-monitor.h39 int (*get_count_percent)(unsigned int self_id, double *percent,
/linux-4.4.14/tools/perf/ui/stdio/
Dhist.c53 double percent; in ipchain__fprintf_graph() local
55 percent = hits * 100.0 / total_samples; in ipchain__fprintf_graph()
56 ret += percent_color_fprintf(fp, "--%2.2f%%-- ", percent); in ipchain__fprintf_graph()
246 double percent; in callchain__fprintf_flat() local
249 percent = chain->hit * 100.0 / total_samples; in callchain__fprintf_flat()
251 ret = percent_color_fprintf(fp, " %6.2f%%\n", percent); in callchain__fprintf_flat()
463 float percent; in hists__fprintf() local
468 percent = hist_entry__get_percent_limit(h); in hists__fprintf()
469 if (percent < min_pcnt) in hists__fprintf()
/linux-4.4.14/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-4.4.14/drivers/power/
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()
Dab8500_fg.c1159 int ret, percent; in ab8500_fg_capacity_level() local
1161 percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10); in ab8500_fg_capacity_level()
1163 if (percent <= di->bm->cap_levels->critical || in ab8500_fg_capacity_level()
1166 else if (percent <= di->bm->cap_levels->low) in ab8500_fg_capacity_level()
1168 else if (percent <= di->bm->cap_levels->normal) in ab8500_fg_capacity_level()
1170 else if (percent <= di->bm->cap_levels->high) in ab8500_fg_capacity_level()
1282 int percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10); in ab8500_fg_check_capacity_limits() local
1314 percent = 0; in ab8500_fg_check_capacity_limits()
1324 di->bat_cap.prev_percent = percent; in ab8500_fg_check_capacity_limits()
1337 } else if (di->bat_cap.prev_percent != percent) { in ab8500_fg_check_capacity_limits()
[all …]
Dabx500_chargalg.c93 int percent; member
1002 di->batt_data.percent = ret.intval; in abx500_chargalg_get_ext_psy_data()
1293 di->batt_data.percent = ret.intval; in abx500_chargalg_get_ext_psy_data()
1442 di->batt_data.percent, in abx500_chargalg_algorithm()
1609 if (di->batt_data.percent <= in abx500_chargalg_algorithm()
/linux-4.4.14/tools/testing/fault-injection/
Dfailcmd.sh23 -p percent
24 --probability=percent
25 likelihood of failure injection, in percent.
/linux-4.4.14/tools/perf/ui/browsers/
Dannotate.c14 double percent; member
126 if (bdl->samples[i].percent > percent_max) in annotate_browser__write()
127 percent_max = bdl->samples[i].percent; in annotate_browser__write()
134 bdl->samples[i].percent, in annotate_browser__write()
141 bdl->samples[i].percent); in annotate_browser__write()
312 if (a->samples[i].percent == b->samples[i].percent) in disasm__cmp()
314 return a->samples[i].percent < b->samples[i].percent; in disasm__cmp()
407 bpos->samples[i].percent = disasm__calc_percent(notes, in annotate_browser__calc_percent()
414 if (max_percent < bpos->samples[i].percent) in annotate_browser__calc_percent()
415 max_percent = bpos->samples[i].percent; in annotate_browser__calc_percent()
Dhists.c625 double percent = cumul * 100.0 / total; in hist_browser__show_callchain() local
627 if (asprintf(&alloc_str, "%2.2f%% %s", percent, str) < 0) in hist_browser__show_callchain()
675 double percent; in __hpp__slsmg_color_printf() local
679 percent = va_arg(args, double); in __hpp__slsmg_color_printf()
682 ui_browser__set_percent_color(arg->b, percent, arg->current_entry); in __hpp__slsmg_color_printf()
684 ret = scnprintf(hpp->buf, hpp->size, fmt, len, percent); in __hpp__slsmg_color_printf()
939 float percent; in hist_browser__refresh() local
944 percent = hist_entry__get_percent_limit(h); in hist_browser__refresh()
945 if (percent < hb->min_pcnt) in hist_browser__refresh()
961 float percent = hist_entry__get_percent_limit(h); in hists__filter_entries() local
[all …]
/linux-4.4.14/tools/perf/ui/
Dhist.c29 double percent = 0.0; in __hpp__fmt() local
33 percent = 100.0 * get_field(he) / total; in __hpp__fmt()
35 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, percent); in __hpp__fmt()
241 double percent; in hpp_color_scnprintf() local
246 percent = va_arg(args, double); in hpp_color_scnprintf()
247 ret = percent_color_len_snprintf(hpp->buf, hpp->size, fmt, len, percent); in hpp_color_scnprintf()
Dbrowser.c18 double percent, bool current) in ui_browser__percent_color() argument
22 if (percent >= MIN_RED) in ui_browser__percent_color()
24 if (percent >= MIN_GREEN) in ui_browser__percent_color()
38 double percent, bool current) in ui_browser__set_percent_color() argument
40 int color = ui_browser__percent_color(browser, percent, current); in ui_browser__set_percent_color()
Dbrowser.h34 double percent, bool current);
/linux-4.4.14/arch/mips/include/asm/mach-loongson64/
Dloongson_hwmon.h39 u8 percent; member
/linux-4.4.14/scripts/kconfig/lxdialog/
Dtextbox.c401 int percent; in print_position() local
405 percent = (page - buf) * 100 / strlen(buf); in print_position()
407 wprintw(win, "(%3d%%)", percent); in print_position()
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
Dboost.h19 u8 percent; member
/linux-4.4.14/Documentation/misc-devices/
Dics932s40121 percent the clock signal is being spread, which should be between 0 and -0.5%.
/linux-4.4.14/arch/arm/mach-pxa/
Dsharpsl_pm.c232 int voltage, percent, apm_status, i; in sharpsl_battery_thread() local
256 percent = get_percentage(voltage); in sharpsl_battery_thread()
262 || percent <= sharpsl_pm.battstat.mainbat_percent) { in sharpsl_battery_thread()
265 sharpsl_pm.battstat.mainbat_percent = percent; in sharpsl_battery_thread()
/linux-4.4.14/drivers/cpufreq/
Dintel_pstate.c200 static inline void pid_p_gain_set(struct _pid *pid, int percent) in pid_p_gain_set() argument
202 pid->p_gain = div_fp(int_tofp(percent), int_tofp(100)); in pid_p_gain_set()
205 static inline void pid_i_gain_set(struct _pid *pid, int percent) in pid_i_gain_set() argument
207 pid->i_gain = div_fp(int_tofp(percent), int_tofp(100)); in pid_i_gain_set()
210 static inline void pid_d_gain_set(struct _pid *pid, int percent) in pid_d_gain_set() argument
212 pid->d_gain = div_fp(int_tofp(percent), int_tofp(100)); in pid_d_gain_set()
/linux-4.4.14/Documentation/devicetree/bindings/power/
Drt9455_charger.txt13 - richtek,end-of-charge-percentage: integer, percent of the output charge current.
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dboost.c121 info->percent = nvbios_rd08(bios, data + 0x01); in nvbios_boostSp()
/linux-4.4.14/Documentation/devicetree/bindings/regulator/
Dpwm-regulator.txt35 Second cell is duty-cycle in percent (%)
/linux-4.4.14/drivers/gpu/drm/msm/dsi/phy/
Ddsi_phy.c21 static inline s32 linear_inter(s32 tmax, s32 tmin, s32 percent, in linear_inter() argument
26 v = (tmax - tmin) * percent; in linear_inter()
/linux-4.4.14/tools/perf/
Dbuiltin-diff.c836 double percent = baseline_percent(he); in hpp__color_baseline() local
842 pfmt, percent); in hpp__color_baseline()
850 double percent = baseline_percent(he); in hpp__entry_baseline() local
855 ret = scnprintf(buf, size, fmt, percent); in hpp__entry_baseline()
/linux-4.4.14/tools/perf/Documentation/
Dperf-report.txt174 Display call chains using type, min percent threshold, print limit,
186 threshold is a percentage value which specifies a minimum percent to be
322 --percent-limit::
323 Do not show entries which have an overhead under that percent.
Dperf-top.txt187 --percent-limit::
188 Do not show entries which have an overhead under that percent.
/linux-4.4.14/scripts/
Dget_maintainer.pl1905 my $percent = $sign_offs * 100 / $divisor;
1907 $percent = 100 if ($percent > 100);
1912 $percent < $email_git_min_percent);
1915 my $fmt_percent = sprintf("%.0f", $percent);
/linux-4.4.14/drivers/net/wireless/b43/
Dtables_nphy.h18 u8 percent; member
Dphy_n.c4949 scale = (ladder_lo[i].percent * tmp) / 100; in b43_nphy_update_tx_cal_ladder()
4953 scale = (ladder_iq[i].percent * tmp) / 100; in b43_nphy_update_tx_cal_ladder()
/linux-4.4.14/drivers/block/drbd/
DKconfig66 fault_rate: frequency in percent
/linux-4.4.14/include/linux/mfd/
Dcros_ec_commands.h934 uint8_t percent; member
942 uint8_t percent; member
949 uint32_t percent; member
/linux-4.4.14/Documentation/usb/
Diuu_phoenix.txt37 parm: boost:overclock boost percent 100 to 500 (int)
/linux-4.4.14/Documentation/fault-injection/
Dfault-injection.txt43 likelihood of failure injection, in percent.
44 Format: <percent>
/linux-4.4.14/Documentation/filesystems/
Dafs.txt94 Where the initial character is either a hash or a percent symbol depending on
96 volume, but are willing to use a R/W volume instead (percent).
Df2fs.txt275 -o [int] : Set overprovision ratio in percent over volume size.
/linux-4.4.14/drivers/s390/char/
Ddefkeymap.map112 keycode 108 = percent Odiaeresis
/linux-4.4.14/arch/m68k/hp300/
Dhp300map.map72 keycode 58 = five percent
/linux-4.4.14/drivers/net/ethernet/micrel/
Dksz884x.c2147 static void sw_cfg_broad_storm(struct ksz_hw *hw, u8 percent) in sw_cfg_broad_storm() argument
2150 u32 value = ((u32) BROADCAST_STORM_VALUE * (u32) percent / 100); in sw_cfg_broad_storm()
2168 static void sw_get_broad_storm(struct ksz_hw *hw, u8 *percent) in sw_get_broad_storm() argument
2178 *percent = (u8) num; in sw_get_broad_storm()
2231 static void hw_cfg_broad_storm(struct ksz_hw *hw, u8 percent) in hw_cfg_broad_storm() argument
2233 if (percent > 100) in hw_cfg_broad_storm()
2234 percent = 100; in hw_cfg_broad_storm()
2236 sw_cfg_broad_storm(hw, percent); in hw_cfg_broad_storm()
2237 sw_get_broad_storm(hw, &percent); in hw_cfg_broad_storm()
2238 hw->ksz_switch->broad_per = percent; in hw_cfg_broad_storm()
/linux-4.4.14/arch/s390/kernel/
Dperf_cpum_sf.c452 static unsigned long min_percent(unsigned int percent, unsigned long base, in min_percent() argument
455 return min_t(unsigned long, min, DIV_ROUND_UP(percent * base, 100)); in min_percent()
/linux-4.4.14/drivers/tty/vt/
Ddefkeymap.map28 keycode 6 = five percent
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dpio.c600 static u32 sc_percent_to_threshold(struct send_context *sc, u32 percent) in sc_percent_to_threshold() argument
602 return (sc->credits * percent) / 100; in sc_percent_to_threshold()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dbase.c63 input = input * boostS.percent / 100; in nvkm_clk_adjust()
/linux-4.4.14/drivers/scsi/
Dgdth.h385 u8 percent; /* progress for surface check */ member
/linux-4.4.14/Documentation/thermal/
Dintel_powerclamp.txt229 percent. As mentioned earlier, since interrupts are allowed during
/linux-4.4.14/drivers/base/
DKconfig286 If 0 percent is selected, CMA is disabled by default, but it can be
/linux-4.4.14/Documentation/laptops/
Dlaptop-mode.txt264 # Allowed dirty background ratio, in percent. Once DIRTY_RATIO has been
386 # Allowed dirty background ratio, in percent. Once DIRTY_RATIO has been
/linux-4.4.14/Documentation/sysctl/
Dvm.txt450 The default is 5 percent.
471 The default is 1 percent.
/linux-4.4.14/Documentation/vm/
Dfrontswap.txt132 to be I/O bound and using a small fraction of a percent of a CPU
/linux-4.4.14/arch/x86/math-emu/
DREADME347 percent of the arguments tested.
/linux-4.4.14/Documentation/hwmon/
Dsysfs-interface584 Unit: milli-percent (per cent mille, pcm)
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-bus-iio234 scale and offset are milli percent.
240 Scaled humidity measurement in milli percent.
/linux-4.4.14/drivers/ide/
DKconfig341 Linux. This may slow disk throughput by a few percent, but at least
/linux-4.4.14/Documentation/m68k/
Dkernel-options.txt295 how much percent of error will be tolerated when setting a frequency
/linux-4.4.14/drivers/staging/rtl8723au/hal/
Drtl8723a_bt-coexist.c9300 u8 percent, u1tmp; in BTDM_FwC2hBtRssi8723A() local
9303 percent = u1tmp*2+10; in BTDM_FwC2hBtRssi8723A()
9305 pHalData->bt_coexist.halCoex8723.btRssi = percent; in BTDM_FwC2hBtRssi8723A()
/linux-4.4.14/Documentation/video4linux/
Dvivid.txt692 Fill Percentage of Frame: can be used to draw only the top X percent
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/phy/
Dphy_n.c193 u8 percent; member
24311 bbmult_scale = ladder_lo[index].percent * bbmult; in wlc_phy_update_txcal_ladder_nphy()
24319 bbmult_scale = ladder_iq[index].percent * bbmult; in wlc_phy_update_txcal_ladder_nphy()
/linux-4.4.14/init/
DKconfig174 will create a few percent smaller kernel than plain LZMA.