Searched refs:SCALE_MUL (Results 1 – 4 of 4) sorted by relevance
| /f-stack/freebsd/netpfil/ipfw/ |
| H A D | ip_dn_io.c | 356 int64_t v = SCALE_MUL((int64_t)diff, (int64_t)fs->w_q); in red_drops() 371 SCALE_MUL(q->avg, fs->w_q_lookup[t]) : 0; in red_drops() 391 p_b = SCALE_MUL((int64_t)fs->c_3, (int64_t)q->avg) - in red_drops() 406 p_b = SCALE_MUL((int64_t)fs->c_1, (int64_t)q->avg) - fs->c_2; in red_drops() 418 if (SCALE_MUL(p_b, SCALE((int64_t)q->count)) > q->random) { in red_drops()
|
| H A D | ip_dn_glue.c | 115 #define SCALE_MUL(x,y) ( ( (x) * (y) ) >> SCALE_RED ) macro
|
| H A D | ip_dummynet.c | 1207 weight = SCALE_MUL(weight, w0); in config_red() 1218 fs->c_2 = SCALE_MUL(fs->c_1, SCALE(fs->fs.min_th)); in config_red() 1252 SCALE_MUL(fs->w_q_lookup[i - 1], fs->lookup_weight); in config_red()
|
| /f-stack/freebsd/netinet/ |
| H A D | ip_dummynet.h | 167 #define SCALE_MUL(x,y) ( ( (x) * (y) ) >> SCALE_RED ) macro
|