Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/md/
Ddm-cache-policy-smq.c257 unsigned int nr_levels; member
270 static void q_init(struct queue *q, struct entry_space *es, unsigned int nr_levels) in q_init() argument
276 q->nr_levels = nr_levels; in q_init()
278 for (i = 0; i < q->nr_levels; i++) { in q_init()
341 max_level = min(max_level, q->nr_levels); in q_peek()
360 struct entry *e = q_peek(q, q->nr_levels, true); in q_pop()
377 for (; level < q->nr_levels; level++) in __redist_pop_from()
390 unsigned int level, nr_levels, entries_per_level, remainder; in q_set_targets_subrange_() local
393 BUG_ON(lend > q->nr_levels); in q_set_targets_subrange_()
394 nr_levels = lend - lbegin; in q_set_targets_subrange_()
[all …]
/linux-6.6.21/drivers/thermal/
Dcpufreq_cooling.c317 unsigned int nr_levels; in em_is_sane() local
330 nr_levels = cpufreq_cdev->max_level + 1; in em_is_sane()
331 if (em_pd_nr_perf_states(em) != nr_levels) { in em_is_sane()
334 em_pd_nr_perf_states(em), nr_levels); in em_is_sane()
/linux-6.6.21/kernel/sched/
Dtopology.c1826 int nr_levels = 0; in sched_init_numa() local
1857 nr_levels = bitmap_weight(distance_map, NR_DISTANCE_VALUES); in sched_init_numa()
1859 distances = kcalloc(nr_levels, sizeof(int), GFP_KERNEL); in sched_init_numa()
1865 for (i = 0, j = 0; i < nr_levels; i++, j++) { in sched_init_numa()
1891 masks = kzalloc(sizeof(void *) * nr_levels, GFP_KERNEL); in sched_init_numa()
1899 for (i = 0; i < nr_levels; i++) { in sched_init_numa()
1929 tl = kzalloc((i + nr_levels + 1) * in sched_init_numa()
1952 for (j = 1; j < nr_levels; i++, j++) { in sched_init_numa()
1965 sched_domains_numa_levels = nr_levels; in sched_init_numa()
1966 WRITE_ONCE(sched_max_numa_distance, sched_domains_numa_distance[nr_levels - 1]); in sched_init_numa()
[all …]