Lines Matching defs: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)].
130 u32 qth_min; /* Min avg length threshold: Wlog scaled */
171 static inline bool red_check_params(u32 qth_min, u32 qth_max, u8 Wlog,
174 if (fls(qth_min) + Wlog >= 32)
180 if (qth_max < qth_min)
231 u32 qth_min, u32 qth_max, u8 Wlog, u8 Plog,
234 int delta = qth_max - qth_min;
237 p->qth_min = qth_min << Wlog;
246 max_P *= delta; /* max_P = (qth_max - qth_min)/2^Plog */
258 p->target_min = qth_min + 2*delta;
259 p->target_max = qth_min + 3*delta;
377 (0..1/max_P)*(qth_max-qth_min)
386 max_P*(qavg - qth_min)/(qth_max-qth_min) < rnd/qcount
390 return !(((qavg - p->qth_min) >> p->Wlog) * v->qcount < v->qR);
401 if (qavg < p->qth_min)