Lines Matching defs:thresh
45 int thresh;
64 * to support "thresh == NO_THRESHOLD" case, but it requires
68 if (wq->thresh == NO_THRESHOLD)
71 return atomic_read(&wq->pending) > wq->thresh * 2;
86 int limit_active, int thresh)
96 if (thresh == 0)
97 thresh = DFT_THRESHOLD;
99 if (thresh < DFT_THRESHOLD) {
101 ret->thresh = NO_THRESHOLD;
109 ret->thresh = thresh;
138 ret->thresh = NO_THRESHOLD;
157 if (wq->thresh == NO_THRESHOLD)
173 if (wq->thresh == NO_THRESHOLD)
183 wq->count %= (wq->thresh / 4);
193 if (pending > wq->thresh)
195 if (pending < wq->thresh / 2)