Lines Matching refs:Wlog
28 W is the filter time constant (chosen as 2^(-Wlog)), it controls
52 Wlog - bits (<32) log(1/W).
130 u32 qth_min; /* Min avg length threshold: Wlog scaled */
131 u32 qth_max; /* Max avg length threshold: Wlog scaled */
140 u8 Wlog; /* log(W) */
151 unsigned long qavg; /* Average queue length: Wlog scaled */
171 static inline bool red_check_params(u32 qth_min, u32 qth_max, u8 Wlog,
174 if (fls(qth_min) + Wlog >= 32)
176 if (fls(qth_max) + Wlog >= 32)
231 u32 qth_min, u32 qth_max, u8 Wlog, u8 Plog,
237 p->qth_min = qth_min << Wlog;
238 p->qth_max = qth_max << Wlog;
239 p->Wlog = Wlog;
343 * NOTE: v->qavg is fixed point number with point at Wlog.
351 return v->qavg + (backlog - (v->qavg >> p->Wlog));
383 point at Wlog, two lines
390 return !(((qavg - p->qth_min) >> p->Wlog) * v->qcount < v->qR);
454 /* v->qavg is fixed point number with point at Wlog */
455 qavg >>= p->Wlog;