Lines Matching refs:w_q
500 "\n\t %cRED w_q %f min_th %d max_th %d max_p %f",
502 1.0 * fs->w_q / (double)(1 << SCALE_RED),
1616 NEED1("red/gred needs w_q/min_th/max_th/max_p\n");
1621 * the format for parameters is w_q/min_th/max_th/max_p
1624 double w_q = strtod(end, NULL);
1625 if (w_q > 1 || w_q <= 0)
1626 errx(EX_DATAERR, "0 < w_q <= 1");
1627 fs->w_q = (int) (w_q * (1 << SCALE_RED));
1847 * NOTA: (3/w_q) is approx the value x so that
1848 * (1-w_q)^x < 10^-3.
1850 w_q = ((double)fs->w_q) / (1 << SCALE_RED);
1851 idle = s * 3. / w_q;
1855 weight = 1 - w_q;
1857 weight *= 1 - w_q;