| /freebsd-10-stable/sys/contrib/altq/altq/ |
| D | altq_rio.c | 255 prec->avg = 0; in rio_alloc() 305 sp->q_avg = rp->rio_precstate[i].avg >> rp->rio_wshift; in rio_getstats() 343 int avg, droptype; in rio_addq() local 359 avg = prec->avg; in rio_addq() 366 avg = 0; in rio_addq() 373 avg = (avg >> FP_SHIFT) * in rio_addq() 379 avg += (prec->qlen << FP_SHIFT) - (avg >> rp->rio_wshift); in rio_addq() 380 prec->avg = avg; /* save the new value */ in rio_addq() 389 avg = prec->avg; in rio_addq() 393 if (avg >= prec->th_min_s && prec->qlen > 1) { in rio_addq() [all …]
|
| D | altq_red.c | 347 int avg, droptype; in red_addq() local 361 avg = rp->red_avg; in red_addq() 379 avg = 0; in red_addq() 386 avg = (avg >> FP_SHIFT) * in red_addq() 392 avg += (qlen(q) << FP_SHIFT) - (avg >> rp->red_wshift); in red_addq() 393 rp->red_avg = avg; /* save the new value */ in red_addq() 403 if (avg >= rp->red_thmin_s && qlen(q) > 1) { in red_addq() 404 if (avg >= rp->red_thmax_s) { in red_addq() 411 } else if (drop_early((avg - rp->red_thmin_s) >> rp->red_wshift, in red_addq()
|
| /freebsd-10-stable/usr.sbin/timed/timedc/ |
| D | cmds.c | 170 register long avg; in clockdiff() local 200 for (avg_cnt = 0, avg = 0; avg_cnt < 16; avg_cnt++) { in clockdiff() 204 avg += measure_delta; in clockdiff() 207 measure_delta = avg/avg_cnt; in clockdiff() 231 avg = daydiff(*argv); in clockdiff() 232 if (avg > SECDAY) { in clockdiff() 234 hp->h_name, avg/SECDAY, myname); in clockdiff() 236 } else if (avg < -SECDAY) { in clockdiff() 238 hp->h_name, -avg/SECDAY, myname); in clockdiff()
|
| /freebsd-10-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/aggs/ |
| D | tst.avg_neg.d | 43 @ = avg(0); 44 @ = avg(-900);
|
| D | err.D_PROTO_LEN.avgtoomany.d | 42 @a[1] = avg(1, 2);
|
| D | err.D_PROTO_LEN.avgnoarg.d | 42 @a[1] = avg();
|
| D | err.D_AGG_SCALAR.avgtoofew.d | 41 @a[pid] = avg(probefunc);
|
| D | tst.avg.d | 49 @a = avg(i);
|
| D | tst.clearavg.d | 47 @a = avg(timestamp);
|
| D | tst.clearavg2.d | 49 @time = avg(0);
|
| D | tst.multiaggs2.d | 46 @a = avg(i);
|
| D | tst.multiaggs3.d | 50 @b = avg(i);
|
| D | tst.multiaggs1.d | 50 @c[pid] = avg(new_time);
|
| /freebsd-10-stable/cddl/contrib/dtracetoolkit/Misc/ |
| D | wpm.d | 92 @avg = avg(this->elapsed); 136 printa("Average keystroke latency : %@d ms\n", @avg);
|
| /freebsd-10-stable/cddl/contrib/dtracetoolkit/Bin/ |
| D | wpm.d | 92 @avg = avg(this->elapsed); 136 printa("Average keystroke latency : %@d ms\n", @avg);
|
| /freebsd-10-stable/tools/tools/crypto/ |
| D | cryptostats.c | 45 uint64_t avg, min, max; in printt() local 49 avg = (1000000000LL*ts->acc.tv_sec + ts->acc.tv_nsec) / ts->count; in printt() 53 tag, avg, min, max, ts->count); in printt()
|
| D | cryptotest.c | 415 uint64_t avg, min, max; in printt() local 419 avg = (1000000000LL*ts->acc.tv_sec + ts->acc.tv_nsec) / ts->count; in printt() 423 tag, avg, min, max, ts->count); in printt()
|
| /freebsd-10-stable/sys/netpfil/ipfw/ |
| D | ip_dn_io.c | 318 int diff = SCALE(q_size) - q->avg; in red_drops() 321 q->avg += (int)v; in red_drops() 330 if (q->avg) { in red_drops() 333 q->avg = (t < fs->lookup_depth) ? in red_drops() 334 SCALE_MUL(q->avg, fs->w_q_lookup[t]) : 0; in red_drops() 339 if (q->avg < fs->min_th) { in red_drops() 343 if (q->avg >= fs->max_th) { /* average queue >= max threshold */ in red_drops() 354 p_b = SCALE_MUL((int64_t)fs->c_3, (int64_t)q->avg) - in red_drops() 360 } else if (q->avg > fs->min_th) { in red_drops() 369 p_b = SCALE_MUL((int64_t)fs->c_1, (int64_t)q->avg) - fs->c_2; in red_drops()
|
| /freebsd-10-stable/sys/boot/ficl/ |
| D | dict.c | 487 double avg = 0.0; in dictHashSummary() local 510 avg += (double)(n * (n+1)) / 2.0; in dictHashSummary() 519 avg = avg / nWords; in dictHashSummary() 531 avg, in dictHashSummary() 533 100.0 * best / avg); in dictHashSummary()
|
| /freebsd-10-stable/sys/kern/ |
| D | kern_synch.c | 535 struct loadavg *avg; in loadav() local 538 avg = &averunnable; in loadav() 541 avg->ldavg[i] = (cexp[i] * avg->ldavg[i] + in loadav()
|
| /freebsd-10-stable/contrib/unbound/services/ |
| D | mesh.c | 91 timeval_divide(struct timeval* avg, const struct timeval* sum, size_t d) in timeval_divide() argument 96 avg->tv_sec = 0; in timeval_divide() 97 avg->tv_usec = 0; in timeval_divide() 100 avg->tv_sec = sum->tv_sec / d; in timeval_divide() 101 avg->tv_usec = sum->tv_usec / d; in timeval_divide() 103 leftover = sum->tv_sec - avg->tv_sec*d; in timeval_divide() 104 avg->tv_usec += (leftover*1000000)/d; in timeval_divide() 1143 struct timeval avg; in mesh_stats() local 1144 timeval_divide(&avg, &mesh->replies_sum_wait, in mesh_stats() 1148 (long long)avg.tv_sec, (int)avg.tv_usec); in mesh_stats()
|
| /freebsd-10-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/speculation/ |
| D | err.D_AGG_SPEC.SpeculateWithAvg.d | 49 @avrg["speculate"] = avg(i);
|
| /freebsd-10-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/printa/ |
| D | tst.basics.d | 39 @a = avg(1);
|
| /freebsd-10-stable/cddl/contrib/opensolaris/cmd/plockstat/ |
| D | plockstat.c | 562 uint64_t sum, count, avg; in process_aggregate() local 599 avg = sum / count; in process_aggregate() 600 (void) printf("%5llu %8llu ", (u_longlong_t)count, (u_longlong_t)avg); in process_aggregate()
|
| /freebsd-10-stable/cddl/contrib/dtracetoolkit/Apps/ |
| D | nfswizard.d | 64 @avgtime = avg(this->elapsed);
|