Home
last modified time | relevance | path

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

/xnu-11215.81.4/bsd/netinet/
H A Dip_dummynet.h343 #define SCALE(x) ( (x) << SCALE_RED ) macro
496 #define SCALE(x) ( (x) << SCALE_RED ) macro
621 #define SCALE(x) ( (x) << SCALE_RED ) macro
H A Dip_dummynet.c1402 int diff = SCALE(q_size) - q->avg; in red_drops()
1461 if (SCALE_MUL(p_b, SCALE((int64_t) q->count)) > q->random) { in red_drops()
1910 x->min_th = SCALE(p->min_th); in config_red()
1911 x->max_th = SCALE(p->max_th); in config_red()
1915 x->c_2 = SCALE_MUL(x->c_1, SCALE(p->min_th)); in config_red()
1917 x->c_3 = (SCALE(1) - p->max_p) / p->max_th; in config_red()
1918 x->c_4 = (SCALE(1) - 2 * p->max_p); in config_red()
1941 x->w_q_lookup[0] = SCALE(1) - x->w_q; in config_red()