Home
last modified time | relevance | path

Searched refs:avg (Results 1 – 25 of 133) sorted by relevance

123456

/linux-6.1.9/net/netfilter/
Dxt_limit.c112 || user2credits(r->avg * r->burst) < user2credits(r->avg)) { in limit_mt_check()
114 r->avg, r->burst); in limit_mt_check()
127 priv->credit = user2credits(r->avg * r->burst); /* Credits full. */ in limit_mt_check()
130 r->cost = user2credits(r->avg); in limit_mt_check()
145 u_int32_t avg; member
161 .avg = cm->avg, in limit_mt_compat_from_user()
175 .avg = m->avg, in limit_mt_compat_to_user()
/linux-6.1.9/drivers/gpu/drm/msm/
Dmsm_gpu_devfreq.c98 struct devfreq_dev_status *avg = &df->average_status; in update_average_dev_status() local
113 !avg->total_time) { in update_average_dev_status()
114 *avg = *raw; in update_average_dev_status()
126 if (div_u64(avg->total_time + raw->total_time, USEC_PER_MSEC) >= in update_average_dev_status()
130 avg->busy_time = div_u64( in update_average_dev_status()
131 mul_u32_u32(avg->busy_time, new_total_time), in update_average_dev_status()
132 avg->total_time); in update_average_dev_status()
133 avg->total_time = new_total_time; in update_average_dev_status()
137 avg_freq = mul_u32_u32(avg->current_frequency, avg->total_time); in update_average_dev_status()
139 do_div(avg_freq, avg->total_time + raw->total_time); in update_average_dev_status()
[all …]
/linux-6.1.9/net/bridge/netfilter/
Debt_limit.c75 user2credits(info->avg * info->burst) < user2credits(info->avg)) { in ebt_limit_mt_check()
77 info->avg, info->burst); in ebt_limit_mt_check()
83 info->credit = user2credits(info->avg * info->burst); in ebt_limit_mt_check()
84 info->credit_cap = user2credits(info->avg * info->burst); in ebt_limit_mt_check()
85 info->cost = user2credits(info->avg); in ebt_limit_mt_check()
96 compat_uint_t avg, burst; member
/linux-6.1.9/drivers/mfd/
Dpcf50633-adc.c27 int avg; member
54 static void adc_setup(struct pcf50633 *pcf, int channel, int avg) in adc_setup() argument
63 pcf50633_reg_write(pcf, PCF50633_REG_ADCC1, channel | avg | in adc_setup()
77 adc_setup(pcf, adc->queue[head]->mux, adc->queue[head]->avg); in trigger_next_adc_job_if_any()
116 int pcf50633_adc_sync_read(struct pcf50633 *pcf, int mux, int avg) in pcf50633_adc_sync_read() argument
123 ret = pcf50633_adc_async_read(pcf, mux, avg, in pcf50633_adc_sync_read()
134 int pcf50633_adc_async_read(struct pcf50633 *pcf, int mux, int avg, in pcf50633_adc_async_read() argument
146 req->avg = avg; in pcf50633_adc_async_read()
/linux-6.1.9/tools/perf/util/
Dstat-shadow.c483 int map_idx, double avg, in print_stalled_cycles_frontend() argument
494 ratio = avg / total * 100.0; in print_stalled_cycles_frontend()
506 int map_idx, double avg, in print_stalled_cycles_backend() argument
517 ratio = avg / total * 100.0; in print_stalled_cycles_backend()
525 int map_idx, double avg, in print_branch_misses() argument
536 ratio = avg / total * 100.0; in print_branch_misses()
544 int map_idx, double avg, in print_l1_dcache_misses() argument
555 ratio = avg / total * 100.0; in print_l1_dcache_misses()
563 int map_idx, double avg, in print_l1_icache_misses() argument
574 ratio = avg / total * 100.0; in print_l1_icache_misses()
[all …]
/linux-6.1.9/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
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-6.1.9/drivers/iio/humidity/
Dhts221_core.c173 const struct hts221_avg *avg = &hts221_avg_list[type]; in hts221_update_avg() local
177 if (avg->avg_avl[i] == val) in hts221_update_avg()
183 data = ((i << __ffs(avg->mask)) & avg->mask); in hts221_update_avg()
184 err = regmap_update_bits(hw->regmap, avg->addr, in hts221_update_avg()
185 avg->mask, data); in hts221_update_avg()
214 const struct hts221_avg *avg = &hts221_avg_list[HTS221_SENSOR_H]; in hts221_sysfs_rh_oversampling_avail() local
218 for (i = 0; i < ARRAY_SIZE(avg->avg_avl); i++) in hts221_sysfs_rh_oversampling_avail()
220 avg->avg_avl[i]); in hts221_sysfs_rh_oversampling_avail()
231 const struct hts221_avg *avg = &hts221_avg_list[HTS221_SENSOR_T]; in hts221_sysfs_temp_oversampling_avail() local
235 for (i = 0; i < ARRAY_SIZE(avg->avg_avl); i++) in hts221_sysfs_temp_oversampling_avail()
[all …]
/linux-6.1.9/tools/testing/selftests/kvm/
Ddirty_log_perf_test.c79 struct timespec avg; in vcpu_worker() local
122 avg = timespec_div(total, vcpu_last_completed_iteration[vcpu_idx]); in vcpu_worker()
125 total.tv_sec, total.tv_nsec, avg.tv_sec, avg.tv_nsec); in vcpu_worker()
220 struct timespec avg; in run_test() local
334 avg = timespec_div(get_dirty_log_total, p->iterations); in run_test()
337 get_dirty_log_total.tv_nsec, avg.tv_sec, avg.tv_nsec); in run_test()
340 avg = timespec_div(clear_dirty_log_total, p->iterations); in run_test()
343 clear_dirty_log_total.tv_nsec, avg.tv_sec, avg.tv_nsec); in run_test()
/linux-6.1.9/kernel/sched/
Dpelt.c297 if (___update_load_sum(now, &se->avg, 0, 0, 0)) { in __update_load_avg_blocked_se()
298 ___update_load_avg(&se->avg, se_weight(se)); in __update_load_avg_blocked_se()
308 if (___update_load_sum(now, &se->avg, !!se->on_rq, se_runnable(se), in __update_load_avg_se()
311 ___update_load_avg(&se->avg, se_weight(se)); in __update_load_avg_se()
312 cfs_se_util_change(&se->avg); in __update_load_avg_se()
322 if (___update_load_sum(now, &cfs_rq->avg, in __update_load_avg_cfs_rq()
327 ___update_load_avg(&cfs_rq->avg, 1); in __update_load_avg_cfs_rq()
Dpelt.h42 static inline u32 get_pelt_divider(struct sched_avg *avg) in get_pelt_divider() argument
44 return PELT_MIN_DIVIDER + avg->period_contrib; in get_pelt_divider()
47 static inline void cfs_se_util_change(struct sched_avg *avg) in cfs_se_util_change() argument
55 enqueued = avg->util_est.enqueued; in cfs_se_util_change()
61 WRITE_ONCE(avg->util_est.enqueued, enqueued); in cfs_se_util_change()
136 u32 util_sum = rq->cfs.avg.util_sum; in update_idle_rq_clock_pelt()
Dpsi.c285 static void calc_avgs(unsigned long avg[3], int missed_periods, in calc_avgs()
292 avg[0] = calc_load_n(avg[0], EXP_10s, 0, missed_periods); in calc_avgs()
293 avg[1] = calc_load_n(avg[1], EXP_60s, 0, missed_periods); in calc_avgs()
294 avg[2] = calc_load_n(avg[2], EXP_300s, 0, missed_periods); in calc_avgs()
300 avg[0] = calc_load(avg[0], EXP_10s, pct); in calc_avgs()
301 avg[1] = calc_load(avg[1], EXP_60s, pct); in calc_avgs()
302 avg[2] = calc_load(avg[2], EXP_300s, pct); in calc_avgs()
407 calc_avgs(group->avg[s], missed_periods, sample, period); in update_averages()
1167 unsigned long avg[3] = { 0, }; in psi_show() local
1174 avg[w] = group->avg[res * 2 + full][w]; in psi_show()
[all …]
Dfair.c787 struct sched_avg *sa = &se->avg; in init_entity_runnable_average()
833 struct sched_avg *sa = &se->avg; in post_init_entity_util_avg()
835 long cap = (long)(cpu_scale - cfs_rq->avg.util_avg) / 2; in post_init_entity_util_avg()
848 se->avg.last_update_time = cfs_rq_clock_pelt(cfs_rq); in post_init_entity_util_avg()
853 if (cfs_rq->avg.util_avg != 0) { in post_init_entity_util_avg()
854 sa->util_avg = cfs_rq->avg.util_avg * se->load.weight; in post_init_entity_util_avg()
855 sa->util_avg /= (cfs_rq->avg.load_avg + 1); in post_init_entity_util_avg()
2442 delta = p->se.avg.load_sum; in numa_get_avg_runtime()
3286 cfs_rq->avg.load_avg += se->avg.load_avg; in enqueue_load_avg()
3287 cfs_rq->avg.load_sum += se_weight(se) * se->avg.load_sum; in enqueue_load_avg()
[all …]
Ddebug.c483 P(se->avg.load_avg); in print_cfs_group_stats()
484 P(se->avg.util_avg); in print_cfs_group_stats()
485 P(se->avg.runnable_avg); in print_cfs_group_stats()
631 cfs_rq->avg.load_avg); in print_cfs_rq()
633 cfs_rq->avg.runnable_avg); in print_cfs_rq()
635 cfs_rq->avg.util_avg); in print_cfs_rq()
637 cfs_rq->avg.util_est.enqueued); in print_cfs_rq()
1028 P(se.avg.load_sum); in proc_sched_show_task()
1029 P(se.avg.runnable_sum); in proc_sched_show_task()
1030 P(se.avg.util_sum); in proc_sched_show_task()
[all …]
/linux-6.1.9/kernel/trace/
Dtrace_benchmark.c45 unsigned int avg; in trace_do_benchmark() local
109 avg = delta; in trace_do_benchmark()
124 seed = avg; in trace_do_benchmark()
140 bm_last, bm_first, bm_max, bm_min, avg, std, stddev); in trace_do_benchmark()
143 bm_avg = avg; in trace_do_benchmark()
Dring_buffer_benchmark.c238 unsigned long avg; in ring_buffer_producer() local
348 avg = NSEC_PER_MSEC / hit; in ring_buffer_producer()
349 trace_printk("%ld ns per entry\n", avg); in ring_buffer_producer()
366 avg = NSEC_PER_MSEC / (hit + missed); in ring_buffer_producer()
367 trace_printk("%ld ns per entry\n", avg); in ring_buffer_producer()
/linux-6.1.9/include/uapi/linux/netfilter/
Dxt_hashlimit.h34 __u32 avg; /* Average secs between packets * scale */ member
58 __u32 avg; /* Average secs between packets * scale */ member
71 __u64 avg; /* Average secs between packets * scale */ member
85 __u64 avg; /* Average secs between packets * scale */ member
/linux-6.1.9/drivers/hwmon/pmbus/
Dadm1275.c478 u32 avg; in adm1275_probe() local
762 "adi,power-sample-average", &avg) == 0) { in adm1275_probe()
763 if (!avg || avg > ADM1275_SAMPLES_AVG_MAX || in adm1275_probe()
764 BIT(__fls(avg)) != avg) { in adm1275_probe()
770 ilog2(avg)); in adm1275_probe()
780 "adi,volt-curr-sample-average", &avg) == 0) { in adm1275_probe()
781 if (!avg || avg > ADM1275_SAMPLES_AVG_MAX || in adm1275_probe()
782 BIT(__fls(avg)) != avg) { in adm1275_probe()
788 ilog2(avg)); in adm1275_probe()
/linux-6.1.9/net/dccp/ccids/lib/
Dtfrc.h49 static inline u32 tfrc_ewma(const u32 avg, const u32 newval, const u8 weight) in tfrc_ewma() argument
51 return avg ? (weight * avg + (10 - weight) * newval) / 10 : newval; in tfrc_ewma()
/linux-6.1.9/tools/perf/bench/
Depoll-ctl.c294 unsigned long avg[EPOLL_NR_OPS]; in print_summary() local
298 avg[i] = avg_stats(&all_stats[i]); in print_summary()
303 avg[OP_EPOLL_ADD], rel_stddev_stats(stddev[OP_EPOLL_ADD], in print_summary()
304 avg[OP_EPOLL_ADD])); in print_summary()
306 avg[OP_EPOLL_MOD], rel_stddev_stats(stddev[OP_EPOLL_MOD], in print_summary()
307 avg[OP_EPOLL_MOD])); in print_summary()
309 avg[OP_EPOLL_DEL], rel_stddev_stats(stddev[OP_EPOLL_DEL], in print_summary()
310 avg[OP_EPOLL_DEL])); in print_summary()
/linux-6.1.9/drivers/cpuidle/governors/
Dmenu.c173 unsigned int min, max, thresh, avg; in get_typical_interval() local
206 avg = sum >> INTERVAL_SHIFT; in get_typical_interval()
208 avg = div_u64(sum, divisor); in get_typical_interval()
215 int64_t diff = (int64_t)value - avg; in get_typical_interval()
237 if ((((u64)avg*avg > variance*36) && (divisor * 4 >= INTERVALS * 3)) in get_typical_interval()
239 return avg; in get_typical_interval()
/linux-6.1.9/kernel/time/
Dtest_udelay.c31 uint64_t avg; in udelay_test_single() local
55 avg = sum; in udelay_test_single()
56 do_div(avg, iters); in udelay_test_single()
59 (usecs * 1000) - allowed_error_ns, min, avg, max); in udelay_test_single()
/linux-6.1.9/drivers/power/supply/
Dab8500_fg.c109 int avg; member
386 struct ab8500_fg_avg_cap *avg = &di->avg_cap; in ab8500_fg_add_cap_sample() local
389 avg->sum += sample - avg->samples[avg->pos]; in ab8500_fg_add_cap_sample()
390 avg->samples[avg->pos] = sample; in ab8500_fg_add_cap_sample()
391 avg->time_stamps[avg->pos] = now; in ab8500_fg_add_cap_sample()
392 avg->pos++; in ab8500_fg_add_cap_sample()
394 if (avg->pos == NBR_AVG_SAMPLES) in ab8500_fg_add_cap_sample()
395 avg->pos = 0; in ab8500_fg_add_cap_sample()
397 if (avg->nbr_samples < NBR_AVG_SAMPLES) in ab8500_fg_add_cap_sample()
398 avg->nbr_samples++; in ab8500_fg_add_cap_sample()
[all …]
/linux-6.1.9/fs/ceph/
Ddebugfs.c130 #define CEPH_LAT_METRIC_SHOW(name, total, avg, min, max, sq) { \ argument
132 _avg = ktime_to_us(avg); \
143 #define CEPH_SZ_METRIC_SHOW(name, total, avg, min, max, sum) { \ argument
146 name, total, avg, _min, max, sum); \
178 s64 total, avg, min, max, sq; in metrics_latency_show() local
188 avg = m->latency_avg; in metrics_latency_show()
193 CEPH_LAT_METRIC_SHOW(metric_str[i], total, avg, min, max, sq); in metrics_latency_show()
205 u64 sum, avg, min, max; in metrics_size_show() local
219 avg = total > 0 ? DIV64_U64_ROUND_CLOSEST(sum, total) : 0; in metrics_size_show()
223 CEPH_SZ_METRIC_SHOW(metric_str[i], total, avg, min, max, sum); in metrics_size_show()
/linux-6.1.9/drivers/clk/bcm/
Dclk-bcm53573-ilp.c50 int avg; in bcm53573_ilp_recalc_rate() local
87 avg = sum / num; in bcm53573_ilp_recalc_rate()
89 return parent_rate * 4 / avg; in bcm53573_ilp_recalc_rate()
/linux-6.1.9/include/linux/mfd/pcf50633/
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);

123456