Lines Matching defs:thresh
46 int thresh;
70 * to support "thresh == NO_THRESHOLD" case, but it requires
74 if (wq->normal->thresh == NO_THRESHOLD)
77 return atomic_read(&wq->normal->pending) > wq->normal->thresh * 2;
82 unsigned int flags, int limit_active, int thresh)
92 if (thresh == 0)
93 thresh = DFT_THRESHOLD;
95 if (thresh < DFT_THRESHOLD) {
97 ret->thresh = NO_THRESHOLD;
105 ret->thresh = thresh;
133 int thresh)
142 limit_active, thresh);
150 limit_active, thresh);
167 if (wq->thresh == NO_THRESHOLD)
183 if (wq->thresh == NO_THRESHOLD)
193 wq->count %= (wq->thresh / 4);
203 if (pending > wq->thresh)
205 if (pending < wq->thresh / 2)