Searched refs:SCALE_MUL (Results 1 - 4 of 4) sorted by relevance

/freebsd-11.0-release/sys/netinet/
H A Dip_dummynet.h165 #define SCALE_MUL(x,y) ( ( (x) * (y) ) >> SCALE_RED ) macro
/freebsd-11.0-release/sys/netpfil/ipfw/
H A Dip_dn_io.c366 int64_t v = SCALE_MUL((int64_t)diff, (int64_t)fs->w_q);
381 SCALE_MUL(q->avg, fs->w_q_lookup[t]) : 0;
401 p_b = SCALE_MUL((int64_t)fs->c_3, (int64_t)q->avg) -
416 p_b = SCALE_MUL((int64_t)fs->c_1, (int64_t)q->avg) - fs->c_2;
428 if (SCALE_MUL(p_b, SCALE((int64_t)q->count)) > q->random) {
H A Dip_dummynet.c1199 weight = SCALE_MUL(weight, w0);
1210 fs->c_2 = SCALE_MUL(fs->c_1, SCALE(fs->fs.min_th));
1244 SCALE_MUL(fs->w_q_lookup[i - 1], fs->lookup_weight);
H A Dip_dn_glue.c113 #define SCALE_MUL(x,y) ( ( (x) * (y) ) >> SCALE_RED ) macro

Completed in 112 milliseconds