Home
last modified time | relevance | path

Searched refs:nr_levels (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/drivers/md/
Ddm-cache-policy-smq.c256 unsigned nr_levels; member
269 static void q_init(struct queue *q, struct entry_space *es, unsigned nr_levels) in q_init() argument
275 q->nr_levels = nr_levels; in q_init()
277 for (i = 0; i < q->nr_levels; i++) { in q_init()
340 max_level = min(max_level, q->nr_levels); in q_peek()
359 struct entry *e = q_peek(q, q->nr_levels, true); in q_pop()
376 for (; level < q->nr_levels; level++) in __redist_pop_from()
388 unsigned level, nr_levels, entries_per_level, remainder; in q_set_targets_subrange_() local
391 BUG_ON(lend > q->nr_levels); in q_set_targets_subrange_()
392 nr_levels = lend - lbegin; in q_set_targets_subrange_()
[all …]
/Linux-v5.10/drivers/thermal/
Dcpufreq_cooling.c324 unsigned int nr_levels; in em_is_sane() local
337 nr_levels = cpufreq_cdev->max_level + 1; in em_is_sane()
338 if (em_pd_nr_perf_states(em) != nr_levels) { in em_is_sane()
341 em_pd_nr_perf_states(em), nr_levels); in em_is_sane()