Searched refs:nr_levels (Results 1 – 3 of 3) sorted by relevance
/kernel/linux/linux-5.10/drivers/md/ |
D | dm-cache-policy-smq.c | 256 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 …]
|
/kernel/linux/linux-5.10/drivers/thermal/ |
D | cpufreq_cooling.c | 324 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()
|
/kernel/linux/linux-5.10/kernel/sched/ |
D | topology.c | 1635 int nr_levels = 0; in sched_init_numa() local 1663 nr_levels = bitmap_weight(distance_map, NR_DISTANCE_VALUES); in sched_init_numa() 1665 sched_domains_numa_distance = kcalloc(nr_levels, sizeof(int), GFP_KERNEL); in sched_init_numa() 1671 for (i = 0, j = 0; i < nr_levels; i++, j++) { in sched_init_numa() 1696 sched_domains_numa_masks = kzalloc(sizeof(void *) * nr_levels, GFP_KERNEL); in sched_init_numa() 1704 for (i = 0; i < nr_levels; i++) { in sched_init_numa() 1734 tl = kzalloc((i + nr_levels + 1) * in sched_init_numa() 1757 for (j = 1; j < nr_levels; i++, j++) { in sched_init_numa() 1769 sched_domains_numa_levels = nr_levels; in sched_init_numa() 1770 sched_max_numa_distance = sched_domains_numa_distance[nr_levels - 1]; in sched_init_numa()
|