Lines Matching defs:w_q
244 "\n\t %cRED w_q %f min_th %d max_th %d max_p %f",
246 1.0 * fs->w_q / (double)(1 << SCALE_RED),
1024 NEED1("red/gred needs w_q/min_th/max_th/max_p\n");
1029 * the format for parameters is w_q/min_th/max_th/max_p
1032 double w_q = strtod(end, NULL);
1033 if (w_q > 1 || w_q <= 0)
1034 errx(EX_DATAERR, "0 < w_q <= 1");
1035 fs->w_q = (int) (w_q * (1 << SCALE_RED));
1222 * NOTA: (3/w_q) is approx the value x so that
1223 * (1-w_q)^x < 10^-3.
1225 w_q = ((double)fs->w_q) / (1 << SCALE_RED);
1226 idle = s * 3. / w_q;
1230 weight = 1 - w_q;
1232 weight *= 1 - w_q;