Home
last modified time | relevance | path

Searched refs:SCALE_MUL (Results 1 – 2 of 2) sorted by relevance

/xnu-8792.61.2/bsd/netinet/
H A Dip_dummynet.h345 #define SCALE_MUL(x, y) ( ( (x) * (y) ) >> SCALE_RED ) macro
498 #define SCALE_MUL(x, y) ( ( (x) * (y) ) >> SCALE_RED ) macro
623 #define SCALE_MUL(x, y) ( ( (x) * (y) ) >> SCALE_RED ) macro
H A Dip_dummynet.c1397 int64_t v = SCALE_MUL((int64_t) diff, (int64_t) fs->w_q); in red_drops()
1412 SCALE_MUL(q->avg, fs->w_q_lookup[t]) : 0; in red_drops()
1431 p_b = SCALE_MUL((int64_t) fs->c_3, (int64_t) q->avg) - fs->c_4; in red_drops()
1443 p_b = SCALE_MUL((int64_t) fs->c_1, (int64_t) q->avg) - fs->c_2; in red_drops()
1455 if (SCALE_MUL(p_b, SCALE((int64_t) q->count)) > q->random) { in red_drops()
1909 x->c_2 = SCALE_MUL(x->c_1, SCALE(p->min_th)); in config_red()
1937 x->w_q_lookup[i] = SCALE_MUL(x->w_q_lookup[i - 1], x->lookup_weight); in config_red()