Lines Matching refs:qth_min
50 qth_min - bytes (should be < qth_max/2)
51 qth_max - bytes (should be at least 2*qth_min and less limit)
57 max_P = (qth_max-qth_min)/2^Plog;
59 F.e. if qth_max=128K and qth_min=32K, then Plog=22
103 * target :[qth_min + 0.4*(qth_min - qth_max),
104 * qth_min + 0.6*(qth_min - qth_max)].
129 u32 qth_min; /* Min avg length threshold: Wlog scaled */
170 static inline bool red_check_params(u32 qth_min, u32 qth_max, u8 Wlog,
173 if (fls(qth_min) + Wlog >= 32)
179 if (qth_max < qth_min)
230 u32 qth_min, u32 qth_max, u8 Wlog, u8 Plog,
233 int delta = qth_max - qth_min;
236 WRITE_ONCE(p->qth_min, qth_min << Wlog);
245 max_P *= delta; /* max_P = (qth_max - qth_min)/2^Plog */
257 p->target_min = qth_min + 2*delta;
258 p->target_max = qth_min + 3*delta;
376 (0..1/max_P)*(qth_max-qth_min)
385 max_P*(qavg - qth_min)/(qth_max-qth_min) < rnd/qcount
389 return !(((qavg - p->qth_min) >> p->Wlog) * v->qcount < v->qR);
400 if (qavg < p->qth_min)