Searched refs:avg (Results 1 - 25 of 106) sorted by relevance

12345

/linux-master/include/uapi/linux/netfilter_bridge/
H A Debt_limit.h16 __u32 avg; /* Average secs between packets * scale */ member in struct:ebt_limit_info
/linux-master/include/uapi/linux/netfilter/
H A Dxt_limit.h15 __u32 avg; /* Average secs between packets * scale */ member in struct:xt_rateinfo
H A Dxt_hashlimit.h34 __u32 avg; /* Average secs between packets * scale */ member in struct:hashlimit_cfg
58 __u32 avg; /* Average secs between packets * scale */ member in struct:hashlimit_cfg1
71 __u64 avg; /* Average secs between packets * scale */ member in struct:hashlimit_cfg2
85 __u64 avg; /* Average secs between packets * scale */ member in struct:hashlimit_cfg3
/linux-master/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
H A DUtil.py20 def avg(total, n): function
40 min, max, avg, count = dict[key]
45 avg = (avg + value) / 2
46 dict[key] = (min, max, avg, count + 1)
/linux-master/net/bridge/netfilter/
H A Debt_limit.c75 user2credits(info->avg * info->burst) < user2credits(info->avg)) {
77 info->avg, info->burst);
81 /* User avg in seconds * EBT_LIMIT_SCALE: convert to jiffies * 128. */
83 info->credit = user2credits(info->avg * info->burst);
84 info->credit_cap = user2credits(info->avg * info->burst);
85 info->cost = user2credits(info->avg);
93 * only avg/burst have meaningful values in userspace.
96 compat_uint_t avg, burst; member in struct:ebt_compat_limit_info
/linux-master/net/dccp/ccids/lib/
H A Dtfrc.h49 static inline u32 tfrc_ewma(const u32 avg, const u32 newval, const u8 weight) argument
51 return avg ? (weight * avg + (10 - weight) * newval) / 10 : newval;
/linux-master/kernel/trace/
H A Dtrace_benchmark.c45 unsigned int avg; local
83 * We should have enough data for the avg and stddev anyway.
87 "last=%llu first=%llu max=%llu min=%llu ** avg=%u std=%d std^2=%lld",
108 avg = delta;
123 seed = avg;
138 "last=%llu first=%llu max=%llu min=%llu avg=%u std=%d std^2=%lld",
139 bm_last, bm_first, bm_max, bm_min, avg, std, stddev);
142 bm_avg = avg;
/linux-master/net/netfilter/
H A Dxt_limit.c112 || user2credits(r->avg * r->burst) < user2credits(r->avg)) {
114 r->avg, r->burst);
124 /* User avg in seconds * XT_LIMIT_SCALE: convert to jiffies *
127 priv->credit = user2credits(r->avg * r->burst); /* Credits full. */
130 r->cost = user2credits(r->avg);
145 u_int32_t avg; member in struct:compat_xt_rateinfo
161 .avg = cm->avg,
175 .avg
[all...]
/linux-master/kernel/sched/
H A Dpelt.h42 static inline u32 get_pelt_divider(struct sched_avg *avg) argument
44 return PELT_MIN_DIVIDER + avg->period_contrib;
47 static inline void cfs_se_util_change(struct sched_avg *avg) argument
55 enqueued = avg->util_est;
61 WRITE_ONCE(avg->util_est, enqueued);
128 * (LOAD_AVG_MAX - 1024 + rq->cfs.avg.period_contrib) << SCHED_CAPACITY_SHIFT;
136 u32 util_sum = rq->cfs.avg.util_sum;
H A Dpelt.c288 * runnable_sum = \Sum se->avg.runnable_sum
289 * runnable_avg = \Sum se->avg.runnable_avg
291 * load_sum = \Sum se_weight(se) * se->avg.load_sum
292 * load_avg = \Sum se->avg.load_avg
297 if (___update_load_sum(now, &se->avg, 0, 0, 0)) {
298 ___update_load_avg(&se->avg, se_weight(se));
308 if (___update_load_sum(now, &se->avg, !!se->on_rq, se_runnable(se),
311 ___update_load_avg(&se->avg, se_weight(se));
312 cfs_se_util_change(&se->avg);
322 if (___update_load_sum(now, &cfs_rq->avg,
[all...]
H A Dpsi.c190 /* Init avg trigger-related members */
316 static void calc_avgs(unsigned long avg[3], int missed_periods, argument
323 avg[0] = calc_load_n(avg[0], EXP_10s, 0, missed_periods);
324 avg[1] = calc_load_n(avg[1], EXP_60s, 0, missed_periods);
325 avg[2] = calc_load_n(avg[2], EXP_300s, 0, missed_periods);
331 avg[0] = calc_load(avg[
1247 unsigned long avg[3] = { 0, }; local
[all...]
/linux-master/drivers/mfd/
H A Dpcf50633-adc.c27 int avg; member in struct:pcf50633_adc_request
54 static void adc_setup(struct pcf50633 *pcf, int channel, int avg) argument
63 pcf50633_reg_write(pcf, PCF50633_REG_ADCC1, channel | avg |
77 adc_setup(pcf, adc->queue[head]->mux, adc->queue[head]->avg);
116 int pcf50633_adc_sync_read(struct pcf50633 *pcf, int mux, int avg) argument
123 ret = pcf50633_adc_async_read(pcf, mux, avg,
134 int pcf50633_adc_async_read(struct pcf50633 *pcf, int mux, int avg, argument
147 req->avg = avg;
/linux-master/tools/testing/selftests/kvm/
H A Ddirty_log_perf_test.c79 struct timespec avg; local
122 avg = timespec_div(total, vcpu_last_completed_iteration[vcpu_idx]);
125 total.tv_sec, total.tv_nsec, avg.tv_sec, avg.tv_nsec);
151 struct timespec avg; local
280 avg = timespec_div(get_dirty_log_total, p->iterations);
283 get_dirty_log_total.tv_nsec, avg.tv_sec, avg.tv_nsec);
286 avg = timespec_div(clear_dirty_log_total, p->iterations);
289 clear_dirty_log_total.tv_nsec, avg
[all...]
/linux-master/include/linux/mfd/pcf50633/
H A Dadc.h63 pcf50633_adc_async_read(struct pcf50633 *pcf, int mux, int avg,
67 pcf50633_adc_sync_read(struct pcf50633 *pcf, int mux, int avg);
/linux-master/tools/perf/scripts/python/
H A Dfutex-contention.py55 min, max, avg, count = lock_waits[tid, lock]
56 print("%s[%d] lock %x contended %d times, %d avg ns [max: %d ns, min %d ns]" %
57 (process_names[tid], tid, lock, count, avg, max, min))
/linux-master/drivers/clk/bcm/
H A Dclk-bcm53573-ilp.c50 int avg; local
87 avg = sum / num;
89 return parent_rate * 4 / avg;
/linux-master/drivers/iio/humidity/
H A Dhts221_core.c174 const struct hts221_avg *avg = &hts221_avg_list[type]; local
178 if (avg->avg_avl[i] == val)
184 data = ((i << __ffs(avg->mask)) & avg->mask);
185 err = regmap_update_bits(hw->regmap, avg->addr,
186 avg->mask, data);
215 const struct hts221_avg *avg = &hts221_avg_list[HTS221_SENSOR_H]; local
219 for (i = 0; i < ARRAY_SIZE(avg->avg_avl); i++)
221 avg->avg_avl[i]);
232 const struct hts221_avg *avg local
448 const struct hts221_avg *avg; local
[all...]
/linux-master/kernel/time/
H A Dtest_udelay.c31 uint64_t avg; local
55 avg = sum;
56 do_div(avg, iters);
57 seq_printf(s, "%d usecs x %d: exp=%d allowed=%d min=%d avg=%lld max=%d",
59 (usecs * 1000) - allowed_error_ns, min, avg, max);
/linux-master/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/
H A DUtil.pm17 avg nsecs nsecs_secs nsecs_nsecs nsecs_usecs print_nsecs
23 sub avg subroutine
/linux-master/drivers/cpuidle/governors/
H A Dmenu.c174 unsigned int min, max, thresh, avg; local
203 avg = sum >> INTERVAL_SHIFT;
205 avg = div_u64(sum, divisor);
212 int64_t diff = (int64_t)value - avg;
224 * deviation is small compared to the average interval (avg >
225 * 6*stddev, avg^2 > 36*variance). The average is smaller than
234 if ((((u64)avg*avg > variance*36) && (divisor * 4 >= INTERVALS * 3))
236 return avg;
/linux-master/drivers/hwmon/pmbus/
H A Dadm1275.c521 u32 avg; local
786 "adi,power-sample-average", &avg) == 0) {
787 if (!avg || avg > ADM1275_SAMPLES_AVG_MAX ||
788 BIT(__fls(avg)) != avg) {
793 ret = adm1275_write_samples(data, client, true, ilog2(avg));
803 "adi,volt-curr-sample-average", &avg) == 0) {
804 if (!avg || avg > ADM1275_SAMPLES_AVG_MA
[all...]
/linux-master/drivers/platform/x86/amd/pmf/
H A Dspc.c58 u16 max, avg = 0; local
68 /* Get the avg and max C0 residency of all the cores */
71 avg += dev->m_table.avg_core_c0residency[i];
76 avg = DIV_ROUND_CLOSEST(avg, ARRAY_SIZE(dev->m_table.avg_core_c0residency));
77 in->ev_info.avg_c0residency = avg;
/linux-master/fs/ceph/
H A Dmetric.h76 struct ceph_timespec avg; member in struct:ceph_metric_read_latency
85 struct ceph_timespec avg; member in struct:ceph_metric_write_latency
94 struct ceph_timespec avg; member in struct:ceph_metric_metadata_latency
/linux-master/arch/mips/cavium-octeon/
H A Doct_ilm.c33 u64 cpuclk, avg, max, min; local
40 avg = (curr_li.latency_sum * 1000000000) / (cpuclk * curr_li.interrupt_cnt);
42 seq_printf(m, "cnt: %10lld, avg: %7lld ns, max: %7lld ns, min: %7lld ns\n",
43 curr_li.interrupt_cnt, avg, max, min);
/linux-master/tools/perf/bench/
H A Depoll-ctl.c294 unsigned long avg[EPOLL_NR_OPS]; local
298 avg[i] = avg_stats(&all_stats[i]);
303 avg[OP_EPOLL_ADD], rel_stddev_stats(stddev[OP_EPOLL_ADD],
304 avg[OP_EPOLL_ADD]));
306 avg[OP_EPOLL_MOD], rel_stddev_stats(stddev[OP_EPOLL_MOD],
307 avg[OP_EPOLL_MOD]));
309 avg[OP_EPOLL_DEL], rel_stddev_stats(stddev[OP_EPOLL_DEL],
310 avg[OP_EPOLL_DEL]));

Completed in 320 milliseconds

12345