Home
last modified time | relevance | path

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

12345678910>>...17

/openbmc/phosphor-pid-control/pid/
H A Dfancontroller.cpp128 double percent = value; in outputProc() local
149 percent = failsafePercent; in outputProc()
155 if (percent < failsafePercent) in outputProc()
157 percent = failsafePercent; in outputProc()
167 << " mode, output pwm: " << percent << "\n"; in outputProc()
188 << percent << "\n"; in outputProc()
193 percent /= 100.0; in outputProc()
201 sensor->write(percent, redundantWrite, &rawWritten); in outputProc()
216 double percent = _owner->getFailSafePercent(); in ~FanController() local
224 percent /= 100.0; in ~FanController()
[all …]
/openbmc/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);
/openbmc/linux/tools/perf/util/
H A Dcolor.c124 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()
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
179 percent = va_arg(args, double); in percent_color_len_snprintf()
[all …]
/openbmc/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"
/openbmc/linux/drivers/phy/freescale/
H A Dphy-fsl-imx8mq-usb.c67 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()
/openbmc/linux/kernel/trace/
H A Dtrace_branch.c249 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()
/openbmc/linux/tools/power/cpupower/utils/idle_monitor/
H A Dsnb_idle.c26 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 Dhsw_ext_idle.c28 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 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 Dnhm_idle.c29 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 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()
/openbmc/u-boot/drivers/video/
H A Dpwm_backlight.c118 static int pwm_backlight_set_brightness(struct udevice *dev, int percent) in pwm_backlight_set_brightness() argument
130 if (percent == BACKLIGHT_OFF) { in pwm_backlight_set_brightness()
132 percent = 0; in pwm_backlight_set_brightness()
134 if (percent == BACKLIGHT_DEFAULT) { in pwm_backlight_set_brightness()
138 level = priv->levels[percent * (priv->num_levels - 1) in pwm_backlight_set_brightness()
143 percent / 100; in pwm_backlight_set_brightness()
H A Dbacklight-uclass.c21 int backlight_set_brightness(struct udevice *dev, int percent) in backlight_set_brightness() argument
28 return ops->set_brightness(dev, percent); in backlight_set_brightness()
H A Dpanel-uclass.c29 int panel_set_backlight(struct udevice *dev, int percent) in panel_set_backlight() argument
36 return ops->set_backlight(dev, percent); in panel_set_backlight()
/openbmc/openbmc/meta-arm/ci/
H A Dpatchreview184 def percent(num): function
200 percent(summary.sob_missing),
201 percent(summary.sob_malformed),
202 percent(summary.cve_missing),
203 percent(summary.status_missing),
204 percent(summary.status_malformed),
205 percent(summary.status_pending)))
/openbmc/openbmc/poky/scripts/contrib/
H A Dpatchreview.py174 def percent(num): function
190 percent(missing_sob),
191 percent(malformed_sob),
192 percent(missing_cve),
193 percent(missing_status),
194 percent(malformed_status),
195 percent(pending_patches)))
/openbmc/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()
/openbmc/linux/Documentation/devicetree/bindings/regulator/
H A 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>;
/openbmc/u-boot/include/
H A Dbacklight.h33 int (*set_brightness)(struct udevice *dev, int percent);
53 int backlight_set_brightness(struct udevice *dev, int percent);
H A Dpanel.h26 int (*set_backlight)(struct udevice *dev, int percent);
57 int panel_set_backlight(struct udevice *dev, int percent);
/openbmc/qemu/dump/
H A Ddump-hmp-cmds.c94 float percent = 0; in hmp_info_dump() local
96 percent = 100.0 * result->completed / result->total; in hmp_info_dump()
97 monitor_printf(mon, "Finished: %.2f %%\n", percent); in hmp_info_dump()
/openbmc/linux/Documentation/devicetree/bindings/phy/
H A Dfsl,imx8mq-usb-phy.yaml38 fsl,phy-tx-vref-tune-percent:
44 fsl,phy-tx-rise-tune-percent:
64 fsl,phy-comp-dis-tune-percent:
79 fsl,phy-pcs-tx-swing-full-percent:

12345678910>>...17