Lines Matching refs:level
168 static void queue_push(struct queue *q, unsigned level, struct list_head *elt) in queue_push() argument
171 list_add_tail(elt, q->qs + level); in queue_push()
191 unsigned level; in queue_peek() local
194 for (level = 0; level < NR_QUEUE_LEVELS; level++) in queue_peek()
195 list_for_each(h, q->qs + level) in queue_peek()
219 unsigned level; in queue_pop_old() local
222 for (level = 0; level < NR_QUEUE_LEVELS; level++) in queue_pop_old()
223 list_for_each(h, q->qs + level) { in queue_pop_old()
245 static struct list_head *writeback_sentinel(struct queue *q, unsigned level) in writeback_sentinel() argument
248 return q->sentinels + NR_QUEUE_LEVELS + level; in writeback_sentinel()
250 return q->sentinels + 2 * NR_QUEUE_LEVELS + level; in writeback_sentinel()
640 unsigned total = 0, nr = 0, count = 0, level; in check_generation() local
648 for (level = 0; level < NR_QUEUE_LEVELS && count < MAX_TO_AVERAGE; level++) { in check_generation()
649 head = mq->cache_clean.qs + level; in check_generation()
658 head = mq->cache_dirty.qs + level; in check_generation()
1124 unsigned level; in mq_save_hints() local
1128 for (level = 0; level < NR_QUEUE_LEVELS; level++) in mq_save_hints()
1129 list_for_each(h, q->qs + level) { in mq_save_hints()