| /freebsd-14-stable/contrib/unbound/util/ |
| HD | timeval_func.c | 76 timeval_divide(struct timeval* avg, const struct timeval* sum, long long d) in timeval_divide() argument 81 avg->tv_sec = 0; in timeval_divide() 82 avg->tv_usec = 0; in timeval_divide() 85 avg->tv_sec = sum->tv_sec / d; in timeval_divide() 86 avg->tv_usec = sum->tv_usec / d; in timeval_divide() 88 leftover = sum->tv_sec - avg->tv_sec*d; in timeval_divide() 91 avg->tv_usec += (((long long)leftover)*((long long)1000000))/d; in timeval_divide() 92 if(avg->tv_sec < 0) in timeval_divide() 93 avg->tv_sec = 0; in timeval_divide() 94 if(avg->tv_usec < 0) in timeval_divide() [all …]
|
| HD | timeval_func.h | 52 void timeval_divide(struct timeval* avg, const struct timeval* sum, long long d);
|
| /freebsd-14-stable/sys/net/altq/ |
| HD | altq_rio.c | 231 prec->avg = 0; in rio_alloc() 281 sp->q_avg = rp->rio_precstate[i].avg >> rp->rio_wshift; in rio_getstats() 319 int avg, droptype; in rio_addq() local 335 avg = prec->avg; in rio_addq() 342 avg = 0; in rio_addq() 349 avg = (avg >> FP_SHIFT) * in rio_addq() 355 avg += (prec->qlen << FP_SHIFT) - (avg >> rp->rio_wshift); in rio_addq() 356 prec->avg = avg; /* save the new value */ in rio_addq() 365 avg = prec->avg; in rio_addq() 369 if (avg >= prec->th_min_s && prec->qlen > 1) { in rio_addq() [all …]
|
| HD | altq_red.c | 284 int avg, droptype; in red_addq() local 287 avg = rp->red_avg; in red_addq() 305 avg = 0; in red_addq() 312 avg = (avg >> FP_SHIFT) * in red_addq() 318 avg += (qlen(q) << FP_SHIFT) - (avg >> rp->red_wshift); in red_addq() 319 rp->red_avg = avg; /* save the new value */ in red_addq() 329 if (avg >= rp->red_thmin_s && qlen(q) > 1) { in red_addq() 330 if (avg >= rp->red_thmax_s) { in red_addq() 337 } else if (drop_early((avg - rp->red_thmin_s) >> rp->red_wshift, in red_addq()
|
| HD | altq_rio.h | 62 int avg; /* (scaled) queue length average */ member
|
| /freebsd-14-stable/tools/tools/qrndtest/ |
| HD | r.c | 54 uint64_t avg; in main() local 73 avg = vals[0] + vals[1] + vals[2] + vals[3]; in main() 74 avg /= 4; in main() 75 printf("%d: %ld %ld %ld %ld\n", i, vals[0] - avg, vals[1] - avg, vals[2] - avg, vals[3] - avg); in main()
|
| /freebsd-14-stable/share/dtrace/ |
| HD | disklatency | 49 @avg[args[1]->device_name, args[1]->unit_number] = avg(this->delta); 58 printa("avg%s (%d), us:\n%@d\n", @avg); 63 clear(@avg);
|
| HD | disklatencycmd | 58 @avg[args[1]->device_name, args[1]->unit_number] = avg(this->delta); 68 printa("avg%s (%d), us: %@d\n", @avg);
|
| /freebsd-14-stable/sbin/ping/ |
| HD | main.c | 238 double avg = tsum / num; in pr_summary() local 239 double stddev = sqrt(fmax(0, tsumsq / num - avg * avg)); in pr_summary() 242 tmin, avg, tmax, stddev); in pr_summary()
|
| /freebsd-14-stable/tools/tools/crypto/ |
| HD | cryptostats.c | 47 uint64_t avg, min, max; in printt() local 51 avg = (1000000000LL*ts->acc.tv_sec + ts->acc.tv_nsec) / ts->count; in printt() 55 tag, avg, min, max, ts->count); in printt()
|
| /freebsd-14-stable/sys/netpfil/ipfw/ |
| HD | ip_dn_io.c | 337 int diff = SCALE(q_size) - q->avg; in red_drops() 340 q->avg += (int)v; in red_drops() 349 if (q->avg) { in red_drops() 352 q->avg = (t < fs->lookup_depth) ? in red_drops() 353 SCALE_MUL(q->avg, fs->w_q_lookup[t]) : 0; in red_drops() 358 if (q->avg < fs->min_th) { in red_drops() 362 if (q->avg >= fs->max_th) { /* average queue >= max threshold */ in red_drops() 373 p_b = SCALE_MUL((int64_t)fs->c_3, (int64_t)q->avg) - in red_drops() 379 } else if (q->avg > fs->min_th) { in red_drops() 388 p_b = SCALE_MUL((int64_t)fs->c_1, (int64_t)q->avg) - fs->c_2; in red_drops()
|
| /freebsd-14-stable/stand/ficl/ |
| HD | dict.c | 486 double avg = 0.0; in dictHashSummary() local 509 avg += (double)(n * (n+1)) / 2.0; in dictHashSummary() 518 avg = avg / nWords; in dictHashSummary() 530 avg, in dictHashSummary() 532 100.0 * best / avg); in dictHashSummary()
|
| /freebsd-14-stable/sys/contrib/device-tree/Bindings/power/supply/ |
| HD | rt9455_charger.txt | 26 - richtek,avg-input-current-regulation: integer, input current value in uA drained by the 45 richtek,avg-input-current-regulation = <500000>;
|
| /freebsd-14-stable/sys/kern/ |
| HD | kern_synch.c | 619 struct loadavg *avg; in loadav() local 622 avg = &averunnable; in loadav() 625 avg->ldavg[i] = (cexp[i] * (uint64_t)avg->ldavg[i] + in loadav()
|
| /freebsd-14-stable/contrib/one-true-awk/testdir/ |
| HD | t.avg | 4 print "avg=", s/c
|
| HD | ctimes | 36 printf "avg new/old = %.3f\n", rat/nrat
|
| HD | sgi.ctimes | 36 printf "avg new/old = %.3f\n", rat/nrat
|
| /freebsd-14-stable/sbin/ping/tests/ |
| HD | ping_6_c1_s8_t1.out | 6 round-trip min/avg/max/stddev = /// ms
|
| HD | ping_c1_s8_t1_S1.out | 6 round-trip min/avg/max/stddev = /// ms
|
| HD | ping_c1_s56_t1.out | 6 round-trip min/avg/max/stddev = /// ms
|
| HD | ping_c1_s56_t1_S127.out | 6 round-trip min/avg/max/stddev = /// ms
|
| /freebsd-14-stable/contrib/bc/scripts/ |
| HD | karatsuba.py | 227 avg = sum(run_times) / len(run_times) variable 229 times.append(avg)
|
| /freebsd-14-stable/sys/contrib/device-tree/src/arm64/qcom/ |
| HD | sc8280xp-lenovo-thinkpad-x13s.dts | 738 qcom,avg-samples = <2>; 746 qcom,avg-samples = <2>; 754 qcom,avg-samples = <2>; 762 qcom,avg-samples = <2>; 770 qcom,avg-samples = <2>; 778 qcom,avg-samples = <2>; 786 qcom,avg-samples = <2>; 794 qcom,avg-samples = <2>;
|
| HD | sc7180-trogdor-quackingstick-r0-lte.dts | 30 semtech,avg-pos-strength = <256>;
|
| /freebsd-14-stable/sys/contrib/device-tree/Bindings/sound/ |
| HD | da7219.txt | 67 - dlg,btn-avg : Number of 8-bit readings for averaged button measurement 109 dlg,btn-avg = <4>;
|