Lines Matching defs:Wlog
28 W is the filter time constant (chosen as 2^(-Wlog)), it controls
52 Wlog - bits (<32) log(1/W).
129 u32 qth_min; /* Min avg length threshold: Wlog scaled */
130 u32 qth_max; /* Max avg length threshold: Wlog scaled */
139 u8 Wlog; /* log(W) */
150 unsigned long qavg; /* Average queue length: Wlog scaled */
170 static inline bool red_check_params(u32 qth_min, u32 qth_max, u8 Wlog,
173 if (fls(qth_min) + Wlog >= 32)
175 if (fls(qth_max) + Wlog >= 32)
230 u32 qth_min, u32 qth_max, u8 Wlog, u8 Plog,
236 WRITE_ONCE(p->qth_min, qth_min << Wlog);
237 WRITE_ONCE(p->qth_max, qth_max << Wlog);
238 WRITE_ONCE(p->Wlog, Wlog);
342 * NOTE: v->qavg is fixed point number with point at Wlog.
350 return v->qavg + (backlog - (v->qavg >> p->Wlog));
382 point at Wlog, two lines
389 return !(((qavg - p->qth_min) >> p->Wlog) * v->qcount < v->qR);
453 /* v->qavg is fixed point number with point at Wlog */
454 qavg >>= p->Wlog;