Searched refs:SCALE (Results 1 – 4 of 4) sorted by relevance
165 #define SCALE(x) ( (x) << SCALE_RED ) macro
1197 hz * dn_cfg.red_avg_pkt_size * 8 * SCALE(1) / i; in config_red()1204 w0 = weight = SCALE(1) - fs->w_q; //fs->w_q scaled in config_red()1211 fs->min_th = SCALE(fs->fs.min_th); in config_red()1212 fs->max_th = SCALE(fs->fs.max_th); in config_red()1217 fs->c_1 = SCALE((int64_t)(fs->max_p)) / (fs->fs.max_th - fs->fs.min_th); in config_red()1218 fs->c_2 = SCALE_MUL(fs->c_1, SCALE(fs->fs.min_th)); in config_red()1221 fs->c_3 = (SCALE(1) - fs->max_p) / fs->fs.max_th; in config_red()1222 fs->c_4 = SCALE(1) - 2 * fs->max_p; in config_red()1248 fs->w_q_lookup[0] = SCALE(1) - fs->w_q; in config_red()
355 int diff = SCALE(q_size) - q->avg; in red_drops()418 if (SCALE_MUL(p_b, SCALE((int64_t)q->count)) > q->random) { in red_drops()
113 #define SCALE(x) ( (x) << SCALE_RED ) macro