Symbol: percent
arch/arm/mach-pxa/sharpsl_pm.c
222
int voltage, percent, apm_status, i;
arch/arm/mach-pxa/sharpsl_pm.c
246
percent = get_percentage(voltage);
arch/arm/mach-pxa/sharpsl_pm.c
252
|| percent <= sharpsl_pm.battstat.mainbat_percent) {
arch/arm/mach-pxa/sharpsl_pm.c
255
sharpsl_pm.battstat.mainbat_percent = percent;
arch/mips/include/asm/mach-loongson64/loongson_hwmon.h
40
u8 percent;
arch/s390/kernel/perf_cpum_sf.c
449
static unsigned long min_percent(unsigned int percent, unsigned long base,
arch/s390/kernel/perf_cpum_sf.c
452
return min_t(unsigned long, min, DIV_ROUND_UP(percent * base, 100));
drivers/crypto/intel/qat/qat_common/adf_transport.c
12
#define ADF_PERCENT(tot, percent) (((tot) * (percent)) / 100)
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
17
static inline s32 linear_inter(s32 tmax, s32 tmin, s32 percent,
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c
22
v = (tmax - tmin) * percent;
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/boost.h
20
u8 percent;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
121
info->percent = nvbios_rd08(bios, data + 0x01);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
64
input = input * boostS.percent / 100;
drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c
386
nvkm_therm_fan_set(therm, true, therm->fan->percent);
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c
118
nvkm_therm_fan_set(struct nvkm_therm *therm, bool immediate, int percent)
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c
120
return nvkm_fan_update(therm->fan, immediate, percent);
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c
175
nvkm_therm_fan_user_set(struct nvkm_therm *therm, int percent)
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c
180
return nvkm_therm_fan_set(therm, true, percent);
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c
256
therm->fan->percent = nvkm_therm_fan_get(therm);
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c
44
target = fan->percent;
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c
47
if (fan->percent != target) {
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c
49
fan->percent = target;
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fannil.c
33
nvkm_fannil_set(struct nvkm_therm *therm, int percent)
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c
59
nvkm_fanpwm_set(struct nvkm_therm *therm, int percent)
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c
74
duty = ((divs * percent) + 99) / 100;
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c
112
fan->percent = 100;
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c
34
u32 percent;
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c
39
nvkm_fantog_update(struct nvkm_fantog *fan, int percent)
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c
49
if (percent < 0)
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c
50
percent = fan->percent;
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c
51
fan->percent = percent;
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c
56
if (percent != (duty * 100)) {
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c
57
u64 next_change = (percent * fan->period_us) / 100;
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c
77
return fan->percent;
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c
81
nvkm_fantog_set(struct nvkm_therm *therm, int percent)
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c
86
nvkm_fantog_update(fan, percent);
drivers/gpu/drm/nouveau/nvkm/subdev/therm/priv.h
47
int percent;
drivers/gpu/drm/nouveau/nvkm/subdev/therm/priv.h
50
int (*set)(struct nvkm_therm *, int percent);
drivers/gpu/drm/nouveau/nvkm/subdev/therm/priv.h
67
int nvkm_therm_fan_set(struct nvkm_therm *, bool now, int percent);
drivers/gpu/drm/nouveau/nvkm/subdev/therm/priv.h
69
int nvkm_therm_fan_user_set(struct nvkm_therm *, int percent);
drivers/hwmon/cros_ec_hwmon.c
255
.percent = DIV_ROUND_CLOSEST((uint32_t)val * 100, 255),
drivers/hwmon/cros_ec_hwmon.c
67
*pwm_value = (u8)DIV_ROUND_CLOSEST(le32_to_cpu(resp.percent) * 255, 100);
drivers/hwmon/pmbus/max31785.c
195
rv = pmbus_get_fan_rate_device(client, page, 0, percent);
drivers/hwmon/pmbus/max31785.c
336
rate = pmbus_get_fan_rate_cached(client, page, 0, percent);
drivers/infiniband/hw/hfi1/pio.c
575
u32 sc_percent_to_threshold(struct send_context *sc, u32 percent)
drivers/infiniband/hw/hfi1/pio.c
577
return (sc->credits * percent) / 100;
drivers/infiniband/hw/hfi1/pio.h
257
u32 sc_percent_to_threshold(struct send_context *sc, u32 percent);
drivers/md/dm-pcache/cache.c
67
static void cache_info_set_gc_percent(struct pcache_cache_info *cache_info, u8 percent)
drivers/md/dm-pcache/cache.c
70
cache_info->flags |= FIELD_PREP(PCACHE_CACHE_FLAGS_GC_PERCENT_MASK, percent);
drivers/md/dm-pcache/cache.c
73
int pcache_cache_set_gc_percent(struct pcache_cache *cache, u8 percent)
drivers/md/dm-pcache/cache.c
75
if (percent > PCACHE_CACHE_GC_PERCENT_MAX || percent < PCACHE_CACHE_GC_PERCENT_MIN)
drivers/md/dm-pcache/cache.c
79
cache_info_set_gc_percent(&cache->cache_info, percent);
drivers/md/dm-pcache/cache.h
228
int pcache_cache_set_gc_percent(struct pcache_cache *cache, u8 percent);
drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c
1325
u32 percent;
drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c
1328
percent = (mcam->hprio_count * 100) / mcam->bmap_entries;
drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c
1329
ctx->val.vu8 = (u8)percent;
drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c
1341
u32 percent;
drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c
1343
percent = ctx->val.vu8;
drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c
1345
mcam->hprio_count = (mcam->bmap_entries * percent) / 100;
drivers/net/ethernet/micrel/ksz884x.c
1989
static void sw_cfg_broad_storm(struct ksz_hw *hw, u8 percent)
drivers/net/ethernet/micrel/ksz884x.c
1992
u32 value = ((u32) BROADCAST_STORM_VALUE * (u32) percent / 100);
drivers/net/ethernet/micrel/ksz884x.c
2010
static void sw_get_broad_storm(struct ksz_hw *hw, u8 *percent)
drivers/net/ethernet/micrel/ksz884x.c
2020
*percent = (u8) num;
drivers/net/ethernet/micrel/ksz884x.c
2073
static void hw_cfg_broad_storm(struct ksz_hw *hw, u8 percent)
drivers/net/ethernet/micrel/ksz884x.c
2075
if (percent > 100)
drivers/net/ethernet/micrel/ksz884x.c
2076
percent = 100;
drivers/net/ethernet/micrel/ksz884x.c
2078
sw_cfg_broad_storm(hw, percent);
drivers/net/ethernet/micrel/ksz884x.c
2079
sw_get_broad_storm(hw, &percent);
drivers/net/ethernet/micrel/ksz884x.c
2080
hw->ksz_switch->broad_per = percent;
drivers/net/phy/dp83822.c
877
static int dp83826_to_dac_minus_one_regval(int percent)
drivers/net/phy/dp83822.c
879
int tmp = DP83826_CFG_DAC_PERCENT_DEFAULT - percent;
drivers/net/phy/dp83822.c
884
static int dp83826_to_dac_plus_one_regval(int percent)
drivers/net/phy/dp83822.c
886
int tmp = percent - DP83826_CFG_DAC_PERCENT_DEFAULT;
drivers/net/wireless/broadcom/b43/phy_n.c
4889
scale = (ladder_lo[i].percent * tmp) / 100;
drivers/net/wireless/broadcom/b43/phy_n.c
4893
scale = (ladder_iq[i].percent * tmp) / 100;
drivers/net/wireless/broadcom/b43/tables_nphy.h
19
u8 percent;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c
182
u8 percent;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c
24189
bbmult_scale = ladder_lo[index].percent * bbmult;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c
24197
bbmult_scale = ladder_iq[index].percent * bbmult;
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
282
static u32 phy_tx_vref_tune_from_property(u32 percent)
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
284
percent = clamp(percent, 94U, 124U);
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
286
return DIV_ROUND_CLOSEST(percent - 94U, 2);
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
289
static u32 imx95_phy_tx_vref_tune_from_property(u32 percent)
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
291
percent = clamp(percent, 90U, 108U);
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
293
switch (percent) {
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
295
percent = 0;
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
298
percent -= 91;
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
301
percent -= 92;
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
304
percent -= 93;
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
308
return percent;
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
311
static u32 phy_tx_rise_tune_from_property(u32 percent)
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
313
switch (percent) {
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
325
static u32 imx95_phy_tx_rise_tune_from_property(u32 percent)
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
327
percent = clamp(percent, 90U, 120U);
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
329
switch (percent) {
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
365
static u32 phy_comp_dis_tune_from_property(u32 percent)
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
367
switch (percent) {
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
387
static u32 imx95_phy_comp_dis_tune_from_property(u32 percent)
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
389
percent = clamp(percent, 94, 104);
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
391
switch (percent) {
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
393
percent = 0;
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
396
percent -= 95;
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
399
percent -= 96;
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
402
percent -= 97;
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
406
return percent;
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
409
static u32 phy_pcs_tx_swing_full_from_property(u32 percent)
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
411
percent = min(percent, 100U);
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
413
return (percent * 127) / 100;
drivers/platform/chrome/cros_kbd_led_backlight.c
149
params->percent = brightness;
drivers/platform/chrome/cros_kbd_led_backlight.c
171
return resp->percent;
drivers/platform/chrome/wilco_ec/keyboard_leds.c
156
return response.percent;
drivers/platform/chrome/wilco_ec/keyboard_leds.c
50
u8 percent;
drivers/platform/chrome/wilco_ec/keyboard_leds.c
89
request.percent = brightness;
drivers/platform/x86/intel/oaktrail.c
215
u8 percent = (u8) b->props.brightness;
drivers/platform/x86/intel/oaktrail.c
216
if (percent < 0 || percent > OT_EC_BL_BRIGHTNESS_MAX)
drivers/platform/x86/intel/oaktrail.c
219
ec_write(OT_EC_BL_BRIGHTNESS_ADDRESS, percent);
drivers/power/supply/ab8500_chargalg.c
1162
di->batt_data.percent = ret.intval;
drivers/power/supply/ab8500_chargalg.c
1204
if (!di->batt_data.volt_uv || !di->batt_data.percent)
drivers/power/supply/ab8500_chargalg.c
1213
if (di->batt_data.percent <= AB8500_RECHARGE_CAP)
drivers/power/supply/ab8500_chargalg.c
1333
di->batt_data.percent,
drivers/power/supply/ab8500_chargalg.c
85
int percent;
drivers/power/supply/ab8500_chargalg.c
872
di->batt_data.percent = ret.intval;
drivers/power/supply/ab8500_fg.c
1167
int ret, percent;
drivers/power/supply/ab8500_fg.c
1169
percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10);
drivers/power/supply/ab8500_fg.c
1171
if (percent <= di->bm->cap_levels->critical ||
drivers/power/supply/ab8500_fg.c
1174
else if (percent <= di->bm->cap_levels->low)
drivers/power/supply/ab8500_fg.c
1176
else if (percent <= di->bm->cap_levels->normal)
drivers/power/supply/ab8500_fg.c
1178
else if (percent <= di->bm->cap_levels->high)
drivers/power/supply/ab8500_fg.c
1290
int percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10);
drivers/power/supply/ab8500_fg.c
1322
percent = 0;
drivers/power/supply/ab8500_fg.c
1332
di->bat_cap.prev_percent = percent;
drivers/power/supply/ab8500_fg.c
1345
} else if (di->bat_cap.prev_percent != percent) {
drivers/power/supply/ab8500_fg.c
1349
percent);
drivers/power/supply/ab8500_fg.c
1350
di->bat_cap.prev_percent = percent;
drivers/power/supply/ab8500_fg.c
1355
} else if (di->bat_cap.prev_percent != percent) {
drivers/power/supply/ab8500_fg.c
1356
if (percent == 0) {
drivers/power/supply/ab8500_fg.c
1363
percent = 1;
drivers/power/supply/ab8500_fg.c
1367
percent > di->bat_cap.prev_percent) || init) {
drivers/power/supply/ab8500_fg.c
1375
percent,
drivers/power/supply/ab8500_fg.c
1377
di->bat_cap.prev_percent = percent;
drivers/power/supply/ab8500_fg.c
1385
percent,
drivers/power/supply/qcom_battmgr.c
130
__le32 percent;
drivers/power/supply/qcom_battmgr.c
1338
battmgr->status.percent =
drivers/power/supply/qcom_battmgr.c
1346
battmgr->status.percent = (unsigned int)-1;
drivers/power/supply/qcom_battmgr.c
1420
battmgr->status.percent = le32_to_cpu(resp->intval.value) / 100;
drivers/power/supply/qcom_battmgr.c
275
unsigned int percent;
drivers/power/supply/qcom_battmgr.c
409
.percent = cpu_to_le32(100),
drivers/power/supply/qcom_battmgr.c
611
if (battmgr->status.percent == (unsigned int)-1)
drivers/power/supply/qcom_battmgr.c
613
val->intval = battmgr->status.percent;
drivers/power/supply/twl4030_madc_battery.c
139
int percent = twl4030_madc_bat_voltscale(bat,
drivers/power/supply/twl4030_madc_battery.c
141
val->intval = (percent * bat->pdata->capacity) / 100;
drivers/power/supply/twl4030_madc_battery.c
155
int percent = twl4030_madc_bat_voltscale(bat,
drivers/power/supply/twl4030_madc_battery.c
158
int chg = (percent * (bat->pdata->capacity/1000))/100;
drivers/soc/mediatek/mtk-svs.c
1850
svsb->freq_pct[i] = percent(svsb->opp_dfreq[i],
drivers/tty/serial/8250/8250_bcm7271.c
676
static u32 find_quot(struct device *dev, u32 freq, u32 baud, u32 *percent)
drivers/tty/serial/8250/8250_bcm7271.c
699
*percent = (unsigned long)DIV_ROUND_CLOSEST_ULL(hires_err, baud);
drivers/tty/serial/8250/8250_bcm7271.c
702
baud, freq, *percent / 100, *percent % 100);
drivers/tty/serial/8250/8250_bcm7271.c
710
u32 percent;
drivers/tty/serial/8250/8250_bcm7271.c
725
quot = find_quot(up->dev, priv->default_mux_rate, baud, &percent);
drivers/tty/serial/8250/8250_bcm7271.c
727
best_percent = percent;
drivers/tty/serial/8250/8250_bcm7271.c
737
quot = find_quot(up->dev, freq, baud, &percent);
drivers/tty/serial/8250/8250_bcm7271.c
741
if (percent < best_percent) {
drivers/tty/serial/8250/8250_bcm7271.c
742
best_percent = percent;
drivers/tty/serial/8250/8250_bcm7271.c
759
baud, percent / 100, percent % 100);
fs/btrfs/misc.h
101
static inline u64 mult_perc(u64 num, u32 percent)
fs/btrfs/misc.h
103
return div_u64(num * percent, 100);
include/linux/platform_data/cros_ec_commands.h
1771
uint8_t percent;
include/linux/platform_data/cros_ec_commands.h
1780
uint8_t percent;
include/linux/platform_data/cros_ec_commands.h
1788
uint32_t percent;
include/linux/platform_data/cros_ec_commands.h
1793
uint32_t percent;
include/linux/platform_data/cros_ec_commands.h
1835
uint32_t percent; /* Percentage of duty cycle, ranging from 0 ~ 100 */
kernel/sched/core.c
9354
s64 percent;
kernel/sched/core.c
9363
.percent = UCLAMP_PERCENT_SCALE,
kernel/sched/core.c
9371
&req.percent);
kernel/sched/core.c
9374
if ((u64)req.percent > UCLAMP_PERCENT_SCALE) {
kernel/sched/core.c
9379
req.util = req.percent << SCHED_CAPACITY_SHIFT;
kernel/sched/core.c
9410
tg->uclamp_pct[clamp_id] = req.percent;
kernel/sched/core.c
9437
u64 percent;
kernel/sched/core.c
9450
percent = tg->uclamp_pct[clamp_id];
kernel/sched/core.c
9451
percent = div_u64_rem(percent, POW10(UCLAMP_PERCENT_SHIFT), &rem);
kernel/sched/core.c
9452
seq_printf(sf, "%llu.%0*u\n", percent, UCLAMP_PERCENT_SHIFT, rem);
kernel/trace/trace_branch.c
243
long percent;
kernel/trace/trace_branch.c
246
percent = p->incorrect * 100;
kernel/trace/trace_branch.c
247
percent /= p->correct + p->incorrect;
kernel/trace/trace_branch.c
249
percent = p->incorrect ? 100 : -1;
kernel/trace/trace_branch.c
251
return percent;
kernel/trace/trace_branch.c
268
long percent;
kernel/trace/trace_branch.c
273
percent = get_incorrect_percent(p);
kernel/trace/trace_branch.c
275
if (percent < 0)
kernel/trace/trace_branch.c
278
seq_printf(m, "%3ld ", percent);
mm/mm_init.c
253
unsigned long *percent)
mm/mm_init.c
267
*percent = coremem;
mm/mm_init.c
274
*percent = 0UL;
scripts/kconfig/lxdialog/textbox.c
121
int percent;
scripts/kconfig/lxdialog/textbox.c
125
percent = (page - buf) * 100 / strlen(buf);
scripts/kconfig/lxdialog/textbox.c
127
wprintw(win, "(%3d%%)", percent);
sound/soc/codecs/rk3308_codec.c
873
u32 percent;
sound/soc/codecs/rk3308_codec.c
877
err = of_property_read_u32(np, "rockchip,micbias-avdd-percent", &percent);
sound/soc/codecs/rk3308_codec.c
885
mult = (percent - 50) / 5;
sound/soc/codecs/rk3308_codec.c
888
if (mult > RK3308_ADC_LEVEL_RANGE_MICBIAS_MAX || mult * 5 + 50 != percent)
sound/soc/codecs/rk3308_codec.c
891
percent);
tools/perf/builtin-annotate.c
433
float percent = 0;
tools/perf/builtin-annotate.c
437
percent = 100.0 * he->stat.period / total;
tools/perf/builtin-annotate.c
439
if (percent < ann->min_percent)
tools/perf/builtin-c2c.c
1203
percent(val, sum));
tools/perf/builtin-c2c.c
1278
percent(stats->store, c2c_he->stats.store));
tools/perf/builtin-c2c.c
934
#define PERCENT(__h, __f) percent(he_stats(__h)->__f, total_stats(__h)->__f)
tools/perf/builtin-c2c.c
942
return percent(c2c_he->stats.__f, hists->stats.__f); \
tools/perf/builtin-diff.c
1313
double percent = baseline_percent(he);
tools/perf/builtin-diff.c
1319
pfmt, percent);
tools/perf/builtin-diff.c
1327
double percent = baseline_percent(he);
tools/perf/builtin-diff.c
1332
ret = scnprintf(buf, size, fmt, percent);
tools/perf/builtin-kvm.c
250
return percent(get_event_##metric(event, perf_kvm->trace_vcpu), \
tools/perf/builtin-script.c
1928
unsigned int percent, freq;
tools/perf/builtin-script.c
1937
percent = (5 + (1000 * data->cbr) / data->max_nonturbo) / 10;
tools/perf/builtin-script.c
1938
len += fprintf(fp, "(%3u%%) ", percent);
tools/perf/ui/browser.c
21
double percent, bool current)
tools/perf/ui/browser.c
25
if (percent >= MIN_RED)
tools/perf/ui/browser.c
27
if (percent >= MIN_GREEN)
tools/perf/ui/browser.c
41
double percent, bool current)
tools/perf/ui/browser.c
43
int color = ui_browser__percent_color(browser, percent, current);
tools/perf/ui/browser.h
39
double percent, bool current);
tools/perf/ui/browsers/annotate-data.c
371
double percent = total->period ? (100.0 * period / total->period) : 0;
tools/perf/ui/browsers/annotate-data.c
375
ui_browser__set_percent_color(uib, percent, current);
tools/perf/ui/browsers/annotate-data.c
382
ui_browser__printf(uib, " %10.2f", percent);
tools/perf/ui/browsers/annotate.c
100
static void annotate_browser__set_percent_color(void *browser, double percent, bool current)
tools/perf/ui/browsers/annotate.c
102
ui_browser__set_percent_color(browser, percent, current);
tools/perf/ui/browsers/annotate.c
274
if (a->data[i].percent[percent_type] == b->data[i].percent[percent_type])
tools/perf/ui/browsers/annotate.c
276
return a->data[i].percent[percent_type] -
tools/perf/ui/browsers/annotate.c
277
b->data[i].percent[percent_type];
tools/perf/ui/browsers/annotate.c
362
double percent;
tools/perf/ui/browsers/annotate.c
364
percent = annotation_data__percent(&pos->al.data[i],
tools/perf/ui/browsers/annotate.c
367
if (max_percent < percent)
tools/perf/ui/browsers/annotate.c
368
max_percent = percent;
tools/perf/ui/browsers/hists.c
1214
double percent;
tools/perf/ui/browsers/hists.c
1218
percent = va_arg(args, double);
tools/perf/ui/browsers/hists.c
1221
ui_browser__set_percent_color(arg->b, percent, arg->current_entry);
tools/perf/ui/browsers/hists.c
1223
ret = scnprintf(hpp->buf, hpp->size, fmt, len, percent);
tools/perf/ui/browsers/hists.c
1871
float percent;
tools/perf/ui/browsers/hists.c
1880
percent = block_info__total_cycles_percent(h);
tools/perf/ui/browsers/hists.c
1882
percent = hist_entry__get_percent_limit(h);
tools/perf/ui/browsers/hists.c
1884
if (percent < hb->min_pcnt)
tools/perf/ui/browsers/hists.c
1913
float percent = hist_entry__get_percent_limit(h);
tools/perf/ui/browsers/hists.c
1915
if (!h->filtered && percent >= min_pcnt)
tools/perf/ui/browsers/hists.c
1936
float percent = hist_entry__get_percent_limit(h);
tools/perf/ui/browsers/hists.c
1938
if (!h->filtered && percent >= min_pcnt)
tools/perf/ui/browsers/hists.c
288
float percent;
tools/perf/ui/browsers/hists.c
291
percent = hist_entry__get_percent_limit(child);
tools/perf/ui/browsers/hists.c
293
if (!child->filtered && percent >= hb->min_pcnt) {
tools/perf/ui/browsers/hists.c
2958
double percent)
tools/perf/ui/browsers/hists.c
2963
u64 min_callchain_hits = total * (percent / 100);
tools/perf/ui/browsers/hists.c
2965
hb->min_pcnt = callchain_param.min_percent = percent;
tools/perf/ui/browsers/hists.c
2984
min_callchain_hits = total * (percent / 100);
tools/perf/ui/browsers/hists.c
568
float percent;
tools/perf/ui/browsers/hists.c
575
percent = hist_entry__get_percent_limit(child);
tools/perf/ui/browsers/hists.c
576
if (!child->filtered && percent >= hb->min_pcnt)
tools/perf/ui/browsers/hists.c
607
double percent;
tools/perf/ui/browsers/hists.c
618
percent = hist_entry__get_percent_limit(he);
tools/perf/ui/browsers/hists.c
619
if (he->filtered || percent < browser->min_pcnt)
tools/perf/ui/gtk/annotate.c
35
double percent = 0.0;
tools/perf/ui/gtk/annotate.c
54
percent = 100.0 * nr_samples / symhist->nr_samples;
tools/perf/ui/gtk/annotate.c
56
markup = perf_gtk__get_percent_color(percent);
tools/perf/ui/gtk/annotate.c
59
ret += scnprintf(buf + ret, size - ret, "%6.2f%%", percent);
tools/perf/ui/gtk/browser.c
36
const char *perf_gtk__get_percent_color(double percent)
tools/perf/ui/gtk/browser.c
38
if (percent >= MIN_RED)
tools/perf/ui/gtk/browser.c
40
if (percent >= MIN_GREEN)
tools/perf/ui/gtk/gtk.h
43
const char *perf_gtk__get_percent_color(double percent);
tools/perf/ui/gtk/hists.c
21
double percent;
tools/perf/ui/gtk/hists.c
28
percent = va_arg(args, double);
tools/perf/ui/gtk/hists.c
31
markup = perf_gtk__get_percent_color(percent);
tools/perf/ui/gtk/hists.c
35
ret += scnprintf(buf + ret, size - ret, fmt, len, percent);
tools/perf/ui/gtk/hists.c
362
float percent;
tools/perf/ui/gtk/hists.c
367
percent = hist_entry__get_percent_limit(h);
tools/perf/ui/gtk/hists.c
368
if (percent < min_pcnt)
tools/perf/ui/gtk/hists.c
422
float percent;
tools/perf/ui/gtk/hists.c
429
percent = hist_entry__get_percent_limit(he);
tools/perf/ui/gtk/hists.c
430
if (percent < min_pcnt)
tools/perf/ui/hist.c
34
double percent = 0.0;
tools/perf/ui/hist.c
39
percent = 100.0 * val / total;
tools/perf/ui/hist.c
41
return hpp__call_print_fn(hpp, print_fn, fmt, len, percent);
tools/perf/ui/hist.c
478
double percent;
tools/perf/ui/hist.c
483
percent = va_arg(args, double);
tools/perf/ui/hist.c
484
ret = percent_color_len_snprintf(hpp->buf, hpp->size, fmt, len, percent);
tools/perf/ui/stdio/hist.c
872
float percent;
tools/perf/ui/stdio/hist.c
878
percent = block_info__total_cycles_percent(h);
tools/perf/ui/stdio/hist.c
880
percent = hist_entry__get_percent_limit(h);
tools/perf/ui/stdio/hist.c
882
if (percent < min_pcnt)
tools/perf/util/annotate-data.c
1870
double percent = h->period ? (100.0 * period / h->period) : 0;
tools/perf/util/annotate-data.c
1871
const char *color = get_percent_color(percent);
tools/perf/util/annotate-data.c
1878
color_fprintf(stdout, color, " %7.2f", percent);
tools/perf/util/annotate.c
1164
double percent, percent_max = 0.0;
tools/perf/util/annotate.c
1171
percent = al->data[i].percent_sum;
tools/perf/util/annotate.c
1172
color = get_percent_color(percent);
tools/perf/util/annotate.c
1173
color_fprintf(stdout, color, " %7.2f", percent);
tools/perf/util/annotate.c
1175
if (percent > percent_max)
tools/perf/util/annotate.c
1176
percent_max = percent;
tools/perf/util/annotate.c
1319
double percent __maybe_unused,
tools/perf/util/annotate.c
1637
double percent;
tools/perf/util/annotate.c
1639
percent = annotation_data__percent(&al->data[i],
tools/perf/util/annotate.c
1642
if (percent > percent_max)
tools/perf/util/annotate.c
1643
percent_max = percent;
tools/perf/util/annotate.c
1751
double percent;
tools/perf/util/annotate.c
1753
percent = annotation_data__percent(&al->data[i],
tools/perf/util/annotate.c
1756
if (percent > percent_max)
tools/perf/util/annotate.c
1757
percent_max = percent;
tools/perf/util/annotate.c
2025
void (*obj__set_percent_color)(void *obj, double percent, bool current) = wops->set_percent_color;
tools/perf/util/annotate.c
2042
double percent;
tools/perf/util/annotate.c
2044
percent = annotation_data__percent(&al->data[i],
tools/perf/util/annotate.c
2047
obj__set_percent_color(obj, percent, current_entry);
tools/perf/util/annotate.c
2054
obj__printf(obj, "%7.2f ", percent);
tools/perf/util/annotate.c
800
double percent;
tools/perf/util/annotate.c
802
percent = annotation_data__percent(&al->data[i],
tools/perf/util/annotate.c
805
if (percent > max_percent)
tools/perf/util/annotate.c
806
max_percent = percent;
tools/perf/util/annotate.c
836
double percent;
tools/perf/util/annotate.c
838
percent = annotation_data__percent(data, percent_type);
tools/perf/util/annotate.c
839
color = get_percent_color(percent);
tools/perf/util/annotate.c
848
color_fprintf(stdout, color, " %7.2f", percent);
tools/perf/util/annotate.c
934
data->percent[PERCENT_HITS_LOCAL] = 100.0 * hits / sym_hist->nr_samples;
tools/perf/util/annotate.c
938
data->percent[PERCENT_HITS_GLOBAL] = 100.0 * hits / hists->stats.nr_non_filtered_samples;
tools/perf/util/annotate.c
941
data->percent[PERCENT_PERIOD_LOCAL] = 100.0 * period / sym_hist->period;
tools/perf/util/annotate.c
944
data->percent[PERCENT_PERIOD_GLOBAL] = 100.0 * period / hists->stats.total_period;
tools/perf/util/annotate.h
100
double percent[PERCENT_MAX];
tools/perf/util/annotate.h
150
return which < PERCENT_MAX ? data->percent[which] : -1;
tools/perf/util/annotate.h
196
void (*set_percent_color)(void *obj, double percent, bool current);
tools/perf/util/callchain.c
1225
double percent = 0.0;
tools/perf/util/callchain.c
1244
percent = period * 100.0 / total;
tools/perf/util/callchain.c
1245
scnprintf(bf, bfsize, "%.2f%%", percent);
tools/perf/util/callchain.c
1254
double percent = 0.0;
tools/perf/util/callchain.c
1271
percent = period * 100.0 / total;
tools/perf/util/callchain.c
1272
return percent_color_fprintf(fp, "%.2f%%", percent);
tools/perf/util/color.c
105
if (fabs(percent) >= MIN_RED)
tools/perf/util/color.c
108
if (fabs(percent) > MIN_GREEN)
tools/perf/util/color.c
114
int percent_color_fprintf(FILE *fp, const char *fmt, double percent)
tools/perf/util/color.c
119
color = get_percent_color(percent);
tools/perf/util/color.c
120
r = color_fprintf(fp, color, fmt, percent);
tools/perf/util/color.c
134
double percent;
tools/perf/util/color.c
137
percent = va_arg(args, double);
tools/perf/util/color.c
139
return value_color_snprintf(bf, size, fmt, percent);
tools/perf/util/color.c
146
double percent;
tools/perf/util/color.c
151
percent = va_arg(args, double);
tools/perf/util/color.c
154
color = get_percent_color(percent);
tools/perf/util/color.c
155
return color_snprintf(bf, size, color, fmt, len, percent);
tools/perf/util/color.c
96
const char *get_percent_color(double percent)
tools/perf/util/color.h
42
int percent_color_fprintf(FILE *fp, const char *fmt, double percent);
tools/perf/util/color.h
43
const char *get_percent_color(double percent);
tools/perf/util/hist.c
2207
float percent;
tools/perf/util/hist.c
2221
percent = hist_entry__get_percent_limit(child);
tools/perf/util/hist.c
2223
percent = 0;
tools/perf/util/hist.c
2225
return node && percent >= limit;
tools/perf/util/sort.c
730
double percent = 0.0;
tools/perf/util/sort.c
737
percent = predicted_count * 100.0 / branch_count;
tools/perf/util/sort.c
739
snprintf(str, sizeof(str), "%.1f%%", percent);
tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c
207
static int fam14h_get_count_percent(unsigned int id, double *percent,
tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c
218
*percent = 0.0;
tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c
220
*percent = 100.0 * diff / timediff / 12.5;
tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c
223
timediff, diff * 10 / 125, *percent);
tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c
45
static int fam14h_get_count_percent(unsigned int self_id, double *percent,
tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c
25
static int cpuidle_get_count_percent(unsigned int id, double *percent,
tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c
31
cpuidle_cstates[id].name, timediff, *percent, cpu);
tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c
34
*percent = 0.0;
tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c
36
*percent = ((100.0 * statediff) / timediff);
tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c
39
cpuidle_cstates[id].name, timediff, statediff, *percent, cpu);
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c
154
double percent;
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c
188
ret = s.get_count_percent(s.id, &percent,
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c
192
else if (percent >= 100.0)
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c
193
printf("%6.1f", percent);
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c
195
printf("%6.2f", percent);
tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h
46
int (*get_count_percent)(unsigned int self_id, double *percent,
tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c
108
*percent, cpu);
tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c
28
static int hsw_ext_get_count_percent(unsigned int self_id, double *percent,
tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c
88
static int hsw_ext_get_count_percent(unsigned int id, double *percent,
tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c
91
*percent = 0.0;
tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c
96
*percent = (100.0 *
tools/power/cpupower/utils/idle_monitor/mperf_monitor.c
156
static int mperf_get_count_percent(unsigned int id, double *percent,
tools/power/cpupower/utils/idle_monitor/mperf_monitor.c
173
*percent = 100.0 * mperf_diff / tsc_diff;
tools/power/cpupower/utils/idle_monitor/mperf_monitor.c
178
*percent = 100.0 * mperf_diff / timediff;
tools/power/cpupower/utils/idle_monitor/mperf_monitor.c
185
*percent = 100.0 - *percent;
tools/power/cpupower/utils/idle_monitor/mperf_monitor.c
189
dprint("%s: %f\n", mperf_cstates[id].name, *percent);
tools/power/cpupower/utils/idle_monitor/mperf_monitor.c
32
static int mperf_get_count_percent(unsigned int self_id, double *percent,
tools/power/cpupower/utils/idle_monitor/nhm_idle.c
101
static int nhm_get_count_percent(unsigned int id, double *percent,
tools/power/cpupower/utils/idle_monitor/nhm_idle.c
104
*percent = 0.0;
tools/power/cpupower/utils/idle_monitor/nhm_idle.c
109
*percent = (100.0 *
tools/power/cpupower/utils/idle_monitor/nhm_idle.c
121
*percent, cpu);
tools/power/cpupower/utils/idle_monitor/nhm_idle.c
29
static int nhm_get_count_percent(unsigned int self_id, double *percent,
tools/power/cpupower/utils/idle_monitor/snb_idle.c
106
*percent, cpu);
tools/power/cpupower/utils/idle_monitor/snb_idle.c
26
static int snb_get_count_percent(unsigned int self_id, double *percent,
tools/power/cpupower/utils/idle_monitor/snb_idle.c
86
static int snb_get_count_percent(unsigned int id, double *percent,
tools/power/cpupower/utils/idle_monitor/snb_idle.c
89
*percent = 0.0;
tools/power/cpupower/utils/idle_monitor/snb_idle.c
94
*percent = (100.0 *
tools/testing/selftests/kvm/include/test_util.h
120
uint8_t percent)
tools/testing/selftests/kvm/include/test_util.h
122
return (guest_random_u32(state) % 100) < percent;