percent 228 arch/arm/mach-pxa/sharpsl_pm.c int voltage, percent, apm_status, i; percent 252 arch/arm/mach-pxa/sharpsl_pm.c percent = get_percentage(voltage); percent 258 arch/arm/mach-pxa/sharpsl_pm.c || percent <= sharpsl_pm.battstat.mainbat_percent) { percent 261 arch/arm/mach-pxa/sharpsl_pm.c sharpsl_pm.battstat.mainbat_percent = percent; percent 40 arch/mips/include/asm/mach-loongson64/loongson_hwmon.h u8 percent; percent 429 arch/s390/kernel/perf_cpum_sf.c static unsigned long min_percent(unsigned int percent, unsigned long base, percent 432 arch/s390/kernel/perf_cpum_sf.c return min_t(unsigned long, min, DIV_ROUND_UP(percent * base, 100)); percent 78 drivers/cpufreq/intel_pstate.c static inline int32_t percent_fp(int percent) percent 80 drivers/cpufreq/intel_pstate.c return div_fp(percent, 100); percent 93 drivers/cpufreq/intel_pstate.c static inline int32_t percent_ext_fp(int percent) percent 95 drivers/cpufreq/intel_pstate.c return div_ext_fp(percent, 100); percent 534 drivers/gpu/drm/amd/powerplay/amd_powerplay.c static int pp_dpm_set_fan_speed_percent(void *handle, uint32_t percent) percent 547 drivers/gpu/drm/amd/powerplay/amd_powerplay.c ret = hwmgr->hwmgr_func->set_fan_speed_percent(hwmgr, percent); percent 1078 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c uint32_t percent, current_rpm; percent 1088 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c percent = current_rpm * 100 / pptable->FanMaximumRpm; percent 1089 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c *speed = percent > 100 ? 100 : percent; percent 72 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c uint32_t percent = 0; percent 82 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c percent = current_rpm * 100 / percent 86 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c *speed = percent > 100 ? 100 : percent; percent 122 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_thermal.c uint32_t current_rpm, percent = 0; percent 129 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_thermal.c percent = current_rpm * 100 / pp_table->FanMaximumRpm; percent 131 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_thermal.c *speed = percent > 100 ? 100 : percent; percent 280 drivers/gpu/drm/amd/powerplay/inc/hwmgr.h int (*set_fan_speed_percent)(struct pp_hwmgr *hwmgr, uint32_t percent); percent 282 drivers/gpu/drm/amd/powerplay/inc/hwmgr.h int (*set_fan_speed_rpm)(struct pp_hwmgr *hwmgr, uint32_t percent); percent 1022 drivers/gpu/drm/amd/powerplay/navi10_ppt.c uint32_t percent = 0; percent 1030 drivers/gpu/drm/amd/powerplay/navi10_ppt.c percent = current_rpm * 100 / pptable->FanMaximumRpm; percent 1031 drivers/gpu/drm/amd/powerplay/navi10_ppt.c *speed = percent > 100 ? 100 : percent; percent 2908 drivers/gpu/drm/amd/powerplay/vega20_ppt.c uint32_t current_rpm = 0, percent = 0; percent 2915 drivers/gpu/drm/amd/powerplay/vega20_ppt.c percent = current_rpm * 100 / pptable->FanMaximumRpm; percent 2916 drivers/gpu/drm/amd/powerplay/vega20_ppt.c *speed = percent > 100 ? 100 : percent; percent 13 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c static inline s32 linear_inter(s32 tmax, s32 tmin, s32 percent, percent 18 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c v = (tmax - tmin) * percent; percent 20 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/boost.h u8 percent; percent 121 drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c info->percent = nvbios_rd08(bios, data + 0x01); percent 64 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c input = input * boostS.percent / 100; percent 386 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c nvkm_therm_fan_set(therm, true, therm->fan->percent); percent 44 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c target = fan->percent; percent 47 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c if (fan->percent != target) { percent 49 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c fan->percent = target; percent 118 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c nvkm_therm_fan_set(struct nvkm_therm *therm, bool immediate, int percent) percent 120 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c return nvkm_fan_update(therm->fan, immediate, percent); percent 175 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c nvkm_therm_fan_user_set(struct nvkm_therm *therm, int percent) percent 180 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c return nvkm_therm_fan_set(therm, true, percent); percent 256 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c therm->fan->percent = nvkm_therm_fan_get(therm); percent 33 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fannil.c nvkm_fannil_set(struct nvkm_therm *therm, int percent) percent 59 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c nvkm_fanpwm_set(struct nvkm_therm *therm, int percent) percent 74 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c duty = ((divs * percent) + 99) / 100; percent 34 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c u32 percent; percent 39 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c nvkm_fantog_update(struct nvkm_fantog *fan, int percent) percent 49 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c if (percent < 0) percent 50 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c percent = fan->percent; percent 51 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c fan->percent = percent; percent 56 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c if (percent != (duty * 100)) { percent 57 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c u64 next_change = (percent * fan->period_us) / 100; percent 77 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c return fan->percent; percent 81 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c nvkm_fantog_set(struct nvkm_therm *therm, int percent) percent 86 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c nvkm_fantog_update(fan, percent); percent 112 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c fan->percent = 100; percent 47 drivers/gpu/drm/nouveau/nvkm/subdev/therm/priv.h int percent; percent 50 drivers/gpu/drm/nouveau/nvkm/subdev/therm/priv.h int (*set)(struct nvkm_therm *, int percent); percent 67 drivers/gpu/drm/nouveau/nvkm/subdev/therm/priv.h int nvkm_therm_fan_set(struct nvkm_therm *, bool now, int percent); percent 69 drivers/gpu/drm/nouveau/nvkm/subdev/therm/priv.h int nvkm_therm_fan_user_set(struct nvkm_therm *, int percent); percent 93 drivers/hwmon/pmbus/max31785.c rv = pmbus_get_fan_rate_device(client, page, 0, percent); percent 201 drivers/hwmon/pmbus/max31785.c rate = pmbus_get_fan_rate_cached(client, page, 0, percent); percent 618 drivers/infiniband/hw/hfi1/pio.c u32 sc_percent_to_threshold(struct send_context *sc, u32 percent) percent 620 drivers/infiniband/hw/hfi1/pio.c return (sc->credits * percent) / 100; percent 302 drivers/infiniband/hw/hfi1/pio.h u32 sc_percent_to_threshold(struct send_context *sc, u32 percent); percent 2139 drivers/net/ethernet/micrel/ksz884x.c static void sw_cfg_broad_storm(struct ksz_hw *hw, u8 percent) percent 2142 drivers/net/ethernet/micrel/ksz884x.c u32 value = ((u32) BROADCAST_STORM_VALUE * (u32) percent / 100); percent 2160 drivers/net/ethernet/micrel/ksz884x.c static void sw_get_broad_storm(struct ksz_hw *hw, u8 *percent) percent 2170 drivers/net/ethernet/micrel/ksz884x.c *percent = (u8) num; percent 2223 drivers/net/ethernet/micrel/ksz884x.c static void hw_cfg_broad_storm(struct ksz_hw *hw, u8 percent) percent 2225 drivers/net/ethernet/micrel/ksz884x.c if (percent > 100) percent 2226 drivers/net/ethernet/micrel/ksz884x.c percent = 100; percent 2228 drivers/net/ethernet/micrel/ksz884x.c sw_cfg_broad_storm(hw, percent); percent 2229 drivers/net/ethernet/micrel/ksz884x.c sw_get_broad_storm(hw, &percent); percent 2230 drivers/net/ethernet/micrel/ksz884x.c hw->ksz_switch->broad_per = percent; percent 4937 drivers/net/wireless/broadcom/b43/phy_n.c scale = (ladder_lo[i].percent * tmp) / 100; percent 4941 drivers/net/wireless/broadcom/b43/phy_n.c scale = (ladder_iq[i].percent * tmp) / 100; percent 19 drivers/net/wireless/broadcom/b43/tables_nphy.h u8 percent; percent 182 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c u8 percent; percent 24214 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bbmult_scale = ladder_lo[index].percent * bbmult; percent 24222 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bbmult_scale = ladder_iq[index].percent * bbmult; percent 216 drivers/platform/x86/intel_oaktrail.c u8 percent = (u8) b->props.brightness; percent 217 drivers/platform/x86/intel_oaktrail.c if (percent < 0 || percent > OT_EC_BL_BRIGHTNESS_MAX) percent 220 drivers/platform/x86/intel_oaktrail.c ec_write(OT_EC_BL_BRIGHTNESS_ADDRESS, percent); percent 1152 drivers/power/supply/ab8500_fg.c int ret, percent; percent 1154 drivers/power/supply/ab8500_fg.c percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10); percent 1156 drivers/power/supply/ab8500_fg.c if (percent <= di->bm->cap_levels->critical || percent 1159 drivers/power/supply/ab8500_fg.c else if (percent <= di->bm->cap_levels->low) percent 1161 drivers/power/supply/ab8500_fg.c else if (percent <= di->bm->cap_levels->normal) percent 1163 drivers/power/supply/ab8500_fg.c else if (percent <= di->bm->cap_levels->high) percent 1275 drivers/power/supply/ab8500_fg.c int percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10); percent 1307 drivers/power/supply/ab8500_fg.c percent = 0; percent 1317 drivers/power/supply/ab8500_fg.c di->bat_cap.prev_percent = percent; percent 1330 drivers/power/supply/ab8500_fg.c } else if (di->bat_cap.prev_percent != percent) { percent 1334 drivers/power/supply/ab8500_fg.c percent); percent 1335 drivers/power/supply/ab8500_fg.c di->bat_cap.prev_percent = percent; percent 1340 drivers/power/supply/ab8500_fg.c } else if (di->bat_cap.prev_percent != percent) { percent 1341 drivers/power/supply/ab8500_fg.c if (percent == 0) { percent 1348 drivers/power/supply/ab8500_fg.c percent = 1; percent 1352 drivers/power/supply/ab8500_fg.c percent > di->bat_cap.prev_percent) || init) { percent 1360 drivers/power/supply/ab8500_fg.c percent, percent 1362 drivers/power/supply/ab8500_fg.c di->bat_cap.prev_percent = percent; percent 1370 drivers/power/supply/ab8500_fg.c percent, percent 90 drivers/power/supply/abx500_chargalg.c int percent; percent 959 drivers/power/supply/abx500_chargalg.c di->batt_data.percent = ret.intval; percent 1250 drivers/power/supply/abx500_chargalg.c di->batt_data.percent = ret.intval; percent 1399 drivers/power/supply/abx500_chargalg.c di->batt_data.percent, percent 1543 drivers/power/supply/abx500_chargalg.c if (di->batt_data.percent <= percent 139 drivers/power/supply/twl4030_madc_battery.c int percent = twl4030_madc_bat_voltscale(bat, percent 141 drivers/power/supply/twl4030_madc_battery.c val->intval = (percent * bat->pdata->capacity) / 100; percent 155 drivers/power/supply/twl4030_madc_battery.c int percent = twl4030_madc_bat_voltscale(bat, percent 158 drivers/power/supply/twl4030_madc_battery.c int chg = (percent * (bat->pdata->capacity/1000))/100; percent 364 drivers/scsi/gdth.h u8 percent; /* progress for surface check */ percent 1710 include/linux/platform_data/cros_ec_commands.h uint8_t percent; percent 1719 include/linux/platform_data/cros_ec_commands.h uint8_t percent; percent 1727 include/linux/platform_data/cros_ec_commands.h uint32_t percent; percent 1732 include/linux/platform_data/cros_ec_commands.h uint32_t percent; percent 7239 kernel/sched/core.c s64 percent; percent 7248 kernel/sched/core.c .percent = UCLAMP_PERCENT_SCALE, percent 7256 kernel/sched/core.c &req.percent); percent 7259 kernel/sched/core.c if ((u64)req.percent > UCLAMP_PERCENT_SCALE) { percent 7264 kernel/sched/core.c req.util = req.percent << SCHED_CAPACITY_SHIFT; percent 7293 kernel/sched/core.c tg->uclamp_pct[clamp_id] = req.percent; percent 7323 kernel/sched/core.c u64 percent; percent 7336 kernel/sched/core.c percent = tg->uclamp_pct[clamp_id]; percent 7337 kernel/sched/core.c percent = div_u64_rem(percent, POW10(UCLAMP_PERCENT_SHIFT), &rem); percent 7338 kernel/sched/core.c seq_printf(sf, "%llu.%0*u\n", percent, UCLAMP_PERCENT_SHIFT, rem); percent 249 kernel/trace/trace_branch.c long percent; percent 252 kernel/trace/trace_branch.c percent = p->incorrect * 100; percent 253 kernel/trace/trace_branch.c percent /= p->correct + p->incorrect; percent 255 kernel/trace/trace_branch.c percent = p->incorrect ? 100 : -1; percent 257 kernel/trace/trace_branch.c return percent; percent 274 kernel/trace/trace_branch.c long percent; percent 279 kernel/trace/trace_branch.c percent = get_incorrect_percent(p); percent 281 kernel/trace/trace_branch.c if (percent < 0) percent 284 kernel/trace/trace_branch.c seq_printf(m, "%3ld ", percent); percent 7425 mm/page_alloc.c unsigned long *percent) percent 7439 mm/page_alloc.c *percent = coremem; percent 7446 mm/page_alloc.c *percent = 0UL; percent 388 scripts/kconfig/lxdialog/textbox.c int percent; percent 392 scripts/kconfig/lxdialog/textbox.c percent = (page - buf) * 100 / strlen(buf); percent 394 scripts/kconfig/lxdialog/textbox.c wprintw(win, "(%3d%%)", percent); percent 915 tools/perf/builtin-c2c.c #define PERCENT(__h, __f) percent(he_stats(__h)->__f, total_stats(__h)->__f) percent 923 tools/perf/builtin-c2c.c return percent(c2c_he->stats.__f, hists->stats.__f); \ percent 1128 tools/perf/builtin-c2c.c percent(stats->__h, c2c_he->stats.__h));\ percent 1152 tools/perf/builtin-c2c.c percent(stats->store, c2c_he->stats.store)); percent 1305 tools/perf/builtin-diff.c double percent = baseline_percent(he); percent 1311 tools/perf/builtin-diff.c pfmt, percent); percent 1319 tools/perf/builtin-diff.c double percent = baseline_percent(he); percent 1324 tools/perf/builtin-diff.c ret = scnprintf(buf, size, fmt, percent); percent 1594 tools/perf/builtin-script.c unsigned int percent, freq; percent 1603 tools/perf/builtin-script.c percent = (5 + (1000 * data->cbr) / data->max_nonturbo) / 10; percent 1604 tools/perf/builtin-script.c len += fprintf(fp, "(%3u%%) ", percent); percent 21 tools/perf/ui/browser.c double percent, bool current) percent 25 tools/perf/ui/browser.c if (percent >= MIN_RED) percent 27 tools/perf/ui/browser.c if (percent >= MIN_GREEN) percent 41 tools/perf/ui/browser.c double percent, bool current) percent 43 tools/perf/ui/browser.c int color = ui_browser__percent_color(browser, percent, current); percent 39 tools/perf/ui/browser.h double percent, bool current); percent 23 tools/perf/ui/browsers/annotate.c double percent; percent 82 tools/perf/ui/browsers/annotate.c static void annotate_browser__set_percent_color(void *browser, double percent, bool current) percent 84 tools/perf/ui/browsers/annotate.c ui_browser__set_percent_color(browser, percent, current); percent 236 tools/perf/ui/browsers/annotate.c if (a->data[i].percent[percent_type] == b->data[i].percent[percent_type]) percent 238 tools/perf/ui/browsers/annotate.c return a->data[i].percent[percent_type] - percent 239 tools/perf/ui/browsers/annotate.c b->data[i].percent[percent_type]; percent 326 tools/perf/ui/browsers/annotate.c double percent; percent 328 tools/perf/ui/browsers/annotate.c percent = annotation_data__percent(&pos->al.data[i], percent 331 tools/perf/ui/browsers/annotate.c if (max_percent < percent) percent 332 tools/perf/ui/browsers/annotate.c max_percent = percent; percent 284 tools/perf/ui/browsers/hists.c float percent; percent 287 tools/perf/ui/browsers/hists.c percent = hist_entry__get_percent_limit(child); percent 289 tools/perf/ui/browsers/hists.c if (!child->filtered && percent >= hb->min_pcnt) { percent 518 tools/perf/ui/browsers/hists.c float percent; percent 525 tools/perf/ui/browsers/hists.c percent = hist_entry__get_percent_limit(child); percent 526 tools/perf/ui/browsers/hists.c if (!child->filtered && percent >= hb->min_pcnt) percent 555 tools/perf/ui/browsers/hists.c double percent; percent 557 tools/perf/ui/browsers/hists.c percent = hist_entry__get_percent_limit(he); percent 558 tools/perf/ui/browsers/hists.c if (he->filtered || percent < browser->min_pcnt) percent 1162 tools/perf/ui/browsers/hists.c double percent; percent 1166 tools/perf/ui/browsers/hists.c percent = va_arg(args, double); percent 1169 tools/perf/ui/browsers/hists.c ui_browser__set_percent_color(arg->b, percent, arg->current_entry); percent 1171 tools/perf/ui/browsers/hists.c ret = scnprintf(hpp->buf, hpp->size, fmt, len, percent); percent 1778 tools/perf/ui/browsers/hists.c float percent; percent 1786 tools/perf/ui/browsers/hists.c percent = hist_entry__get_percent_limit(h); percent 1787 tools/perf/ui/browsers/hists.c if (percent < hb->min_pcnt) percent 1816 tools/perf/ui/browsers/hists.c float percent = hist_entry__get_percent_limit(h); percent 1818 tools/perf/ui/browsers/hists.c if (!h->filtered && percent >= min_pcnt) percent 1839 tools/perf/ui/browsers/hists.c float percent = hist_entry__get_percent_limit(h); percent 1841 tools/perf/ui/browsers/hists.c if (!h->filtered && percent >= min_pcnt) percent 2782 tools/perf/ui/browsers/hists.c double percent) percent 2787 tools/perf/ui/browsers/hists.c u64 min_callchain_hits = total * (percent / 100); percent 2789 tools/perf/ui/browsers/hists.c hb->min_pcnt = callchain_param.min_percent = percent; percent 2808 tools/perf/ui/browsers/hists.c min_callchain_hits = total * (percent / 100); percent 32 tools/perf/ui/gtk/annotate.c double percent = 0.0; percent 45 tools/perf/ui/gtk/annotate.c percent = 100.0 * symhist->addr[dl->al.offset].nr_samples / symhist->nr_samples; percent 47 tools/perf/ui/gtk/annotate.c markup = perf_gtk__get_percent_color(percent); percent 50 tools/perf/ui/gtk/annotate.c ret += scnprintf(buf + ret, size - ret, "%6.2f%%", percent); percent 36 tools/perf/ui/gtk/browser.c const char *perf_gtk__get_percent_color(double percent) percent 38 tools/perf/ui/gtk/browser.c if (percent >= MIN_RED) percent 40 tools/perf/ui/gtk/browser.c if (percent >= MIN_GREEN) percent 43 tools/perf/ui/gtk/gtk.h const char *perf_gtk__get_percent_color(double percent); percent 21 tools/perf/ui/gtk/hists.c double percent; percent 28 tools/perf/ui/gtk/hists.c percent = va_arg(args, double); percent 31 tools/perf/ui/gtk/hists.c markup = perf_gtk__get_percent_color(percent); percent 35 tools/perf/ui/gtk/hists.c ret += scnprintf(buf + ret, size - ret, fmt, len, percent); percent 362 tools/perf/ui/gtk/hists.c float percent; percent 367 tools/perf/ui/gtk/hists.c percent = hist_entry__get_percent_limit(h); percent 368 tools/perf/ui/gtk/hists.c if (percent < min_pcnt) percent 422 tools/perf/ui/gtk/hists.c float percent; percent 429 tools/perf/ui/gtk/hists.c percent = hist_entry__get_percent_limit(he); percent 430 tools/perf/ui/gtk/hists.c if (percent < min_pcnt) percent 36 tools/perf/ui/hist.c double percent = 0.0; percent 40 tools/perf/ui/hist.c percent = 100.0 * get_field(he) / total; percent 42 tools/perf/ui/hist.c ret = hpp__call_print_fn(hpp, print_fn, fmt, len, percent); percent 252 tools/perf/ui/hist.c double percent; percent 257 tools/perf/ui/hist.c percent = va_arg(args, double); percent 258 tools/perf/ui/hist.c ret = percent_color_len_snprintf(hpp->buf, hpp->size, fmt, len, percent); percent 832 tools/perf/ui/stdio/hist.c float percent; percent 837 tools/perf/ui/stdio/hist.c percent = hist_entry__get_percent_limit(h); percent 838 tools/perf/ui/stdio/hist.c if (percent < min_pcnt) percent 1383 tools/perf/util/annotate.c double percent; percent 1385 tools/perf/util/annotate.c percent = annotation_data__percent(&al->data[i], percent 1388 tools/perf/util/annotate.c if (percent > max_percent) percent 1389 tools/perf/util/annotate.c max_percent = percent; percent 1429 tools/perf/util/annotate.c double percent; percent 1431 tools/perf/util/annotate.c percent = annotation_data__percent(data, percent_type); percent 1432 tools/perf/util/annotate.c color = get_percent_color(percent); percent 1441 tools/perf/util/annotate.c color_fprintf(stdout, color, " %7.2f", percent); percent 2023 tools/perf/util/annotate.c data->percent[PERCENT_HITS_LOCAL] = 100.0 * hits / sym_hist->nr_samples; percent 2027 tools/perf/util/annotate.c data->percent[PERCENT_HITS_GLOBAL] = 100.0 * hits / hists->stats.nr_non_filtered_samples; percent 2030 tools/perf/util/annotate.c data->percent[PERCENT_PERIOD_LOCAL] = 100.0 * period / sym_hist->period; percent 2033 tools/perf/util/annotate.c data->percent[PERCENT_PERIOD_GLOBAL] = 100.0 * period / hists->stats.total_period; percent 2217 tools/perf/util/annotate.c double percent, percent_max = 0.0; percent 2224 tools/perf/util/annotate.c percent = al->data[i].percent_sum; percent 2225 tools/perf/util/annotate.c color = get_percent_color(percent); percent 2226 tools/perf/util/annotate.c color_fprintf(stdout, color, " %7.2f", percent); percent 2228 tools/perf/util/annotate.c if (percent > percent_max) percent 2229 tools/perf/util/annotate.c percent_max = percent; percent 2365 tools/perf/util/annotate.c double percent __maybe_unused, percent 2653 tools/perf/util/annotate.c double percent; percent 2655 tools/perf/util/annotate.c percent = annotation_data__percent(&al->data[i], percent 2658 tools/perf/util/annotate.c if (percent > percent_max) percent 2659 tools/perf/util/annotate.c percent_max = percent; percent 2749 tools/perf/util/annotate.c double percent; percent 2751 tools/perf/util/annotate.c percent = annotation_data__percent(&al->data[i], percent 2754 tools/perf/util/annotate.c if (percent > percent_max) percent 2755 tools/perf/util/annotate.c percent_max = percent; percent 2812 tools/perf/util/annotate.c void (*obj__set_percent_color)(void *obj, double percent, bool current), percent 2837 tools/perf/util/annotate.c double percent; percent 2839 tools/perf/util/annotate.c percent = annotation_data__percent(&al->data[i], percent_type); percent 2841 tools/perf/util/annotate.c obj__set_percent_color(obj, percent, current_entry); percent 2848 tools/perf/util/annotate.c obj__printf(obj, "%6.2f ", percent); percent 125 tools/perf/util/annotate.h double percent[PERCENT_MAX]; percent 160 tools/perf/util/annotate.h return which < PERCENT_MAX ? data->percent[which] : -1; percent 207 tools/perf/util/annotate.h void (*set_percent_color)(void *obj, double percent, bool current); percent 1179 tools/perf/util/callchain.c double percent = 0.0; percent 1198 tools/perf/util/callchain.c percent = period * 100.0 / total; percent 1199 tools/perf/util/callchain.c scnprintf(bf, bfsize, "%.2f%%", percent); percent 1208 tools/perf/util/callchain.c double percent = 0.0; percent 1225 tools/perf/util/callchain.c percent = period * 100.0 / total; percent 1226 tools/perf/util/callchain.c return percent_color_fprintf(fp, "%.2f%%", percent); percent 124 tools/perf/util/color.c const char *get_percent_color(double percent) percent 133 tools/perf/util/color.c if (fabs(percent) >= MIN_RED) percent 136 tools/perf/util/color.c if (fabs(percent) > MIN_GREEN) percent 142 tools/perf/util/color.c int percent_color_fprintf(FILE *fp, const char *fmt, double percent) percent 147 tools/perf/util/color.c color = get_percent_color(percent); percent 148 tools/perf/util/color.c r = color_fprintf(fp, color, fmt, percent); percent 162 tools/perf/util/color.c double percent; percent 165 tools/perf/util/color.c percent = va_arg(args, double); percent 167 tools/perf/util/color.c return value_color_snprintf(bf, size, fmt, percent); percent 174 tools/perf/util/color.c double percent; percent 179 tools/perf/util/color.c percent = va_arg(args, double); percent 182 tools/perf/util/color.c color = get_percent_color(percent); percent 183 tools/perf/util/color.c return color_snprintf(bf, size, color, fmt, len, percent); percent 46 tools/perf/util/color.h int percent_color_fprintf(FILE *fp, const char *fmt, double percent); percent 47 tools/perf/util/color.h const char *get_percent_color(double percent); percent 1977 tools/perf/util/hist.c float percent; percent 1991 tools/perf/util/hist.c percent = hist_entry__get_percent_limit(child); percent 1993 tools/perf/util/hist.c percent = 0; percent 1995 tools/perf/util/hist.c return node && percent >= limit; percent 45 tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c static int fam14h_get_count_percent(unsigned int self_id, double *percent, percent 207 tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c static int fam14h_get_count_percent(unsigned int id, double *percent, percent 218 tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c *percent = 0.0; percent 220 tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c *percent = 100.0 * diff / timediff / 12.5; percent 223 tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c timediff, diff * 10 / 125, *percent); percent 25 tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c static int cpuidle_get_count_percent(unsigned int id, double *percent, percent 31 tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c cpuidle_cstates[id].name, timediff, *percent, cpu); percent 34 tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c *percent = 0.0; percent 36 tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c *percent = ((100.0 * statediff) / timediff); percent 39 tools/power/cpupower/utils/idle_monitor/cpuidle_sysfs.c cpuidle_cstates[id].name, timediff, statediff, *percent, cpu); percent 144 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c double percent; percent 173 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c ret = s.get_count_percent(s.id, &percent, percent 177 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c else if (percent >= 100.0) percent 178 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c printf("%6.1f", percent); percent 180 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c printf("%6.2f", percent); percent 46 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.h int (*get_count_percent)(unsigned int self_id, double *percent, percent 28 tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c static int hsw_ext_get_count_percent(unsigned int self_id, double *percent, percent 88 tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c static int hsw_ext_get_count_percent(unsigned int id, double *percent, percent 91 tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c *percent = 0.0; percent 96 tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c *percent = (100.0 * percent 108 tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c *percent, cpu); percent 28 tools/power/cpupower/utils/idle_monitor/mperf_monitor.c static int mperf_get_count_percent(unsigned int self_id, double *percent, percent 117 tools/power/cpupower/utils/idle_monitor/mperf_monitor.c static int mperf_get_count_percent(unsigned int id, double *percent, percent 134 tools/power/cpupower/utils/idle_monitor/mperf_monitor.c *percent = 100.0 * mperf_diff / tsc_diff; percent 139 tools/power/cpupower/utils/idle_monitor/mperf_monitor.c *percent = 100.0 * mperf_diff / timediff; percent 146 tools/power/cpupower/utils/idle_monitor/mperf_monitor.c *percent = 100.0 - *percent; percent 150 tools/power/cpupower/utils/idle_monitor/mperf_monitor.c dprint("%s: %f\n", mperf_cstates[id].name, *percent); percent 29 tools/power/cpupower/utils/idle_monitor/nhm_idle.c static int nhm_get_count_percent(unsigned int self_id, double *percent, percent 101 tools/power/cpupower/utils/idle_monitor/nhm_idle.c static int nhm_get_count_percent(unsigned int id, double *percent, percent 104 tools/power/cpupower/utils/idle_monitor/nhm_idle.c *percent = 0.0; percent 109 tools/power/cpupower/utils/idle_monitor/nhm_idle.c *percent = (100.0 * percent 121 tools/power/cpupower/utils/idle_monitor/nhm_idle.c *percent, cpu); percent 26 tools/power/cpupower/utils/idle_monitor/snb_idle.c static int snb_get_count_percent(unsigned int self_id, double *percent, percent 86 tools/power/cpupower/utils/idle_monitor/snb_idle.c static int snb_get_count_percent(unsigned int id, double *percent, percent 89 tools/power/cpupower/utils/idle_monitor/snb_idle.c *percent = 0.0; percent 94 tools/power/cpupower/utils/idle_monitor/snb_idle.c *percent = (100.0 * percent 106 tools/power/cpupower/utils/idle_monitor/snb_idle.c *percent, cpu);