Lines Matching refs:limit
17 /* Records completed count and recalculates the queue limit */
20 unsigned int inprogress, prev_inprogress, limit;
30 limit = dql->limit;
31 ovlimit = POSDIFF(num_queued - dql->num_completed, limit);
40 * - The queue was over-limit in the last interval,
43 * - The queue was over-limit in the previous interval and
49 * When queue is starved increase the limit by the amount
51 * plus any previous over-limit.
53 limit += POSDIFF(completed, dql->prev_num_queued) +
59 * Queue was not starved, check if the limit can be decreased.
64 * the amount needed to prevent starvation, the queue limit
73 * - The queue limit plus previous over-limit minus twice
76 * of the limit.
78 * was not part of non-zero previous over-limit. That is
82 slack = POSDIFF(limit + dql->prev_ovlimit,
94 limit = POSDIFF(limit, dql->lowest_slack);
100 /* Enforce bounds on limit */
101 limit = clamp(limit, dql->min_limit, dql->max_limit);
103 if (limit != dql->limit) {
104 dql->limit = limit;
108 dql->adj_limit = limit + completed;
119 dql->limit = 0;