Home
last modified time | relevance | path

Searched refs:nr_cpumask_bits (Results 1 – 19 of 19) sorted by relevance

/Linux-v6.1/include/linux/
Dcpumask.h54 #define nr_cpumask_bits nr_cpu_ids macro
117 cpu_max_bits_warn(cpu, nr_cpumask_bits); in cpumask_check()
129 return find_first_bit(cpumask_bits(srcp), nr_cpumask_bits); in cpumask_first()
140 return find_first_zero_bit(cpumask_bits(srcp), nr_cpumask_bits); in cpumask_first_zero()
153 return find_first_and_bit(cpumask_bits(srcp1), cpumask_bits(srcp2), nr_cpumask_bits); in cpumask_first_and()
164 return find_last_bit(cpumask_bits(srcp), nr_cpumask_bits); in cpumask_last()
180 return find_next_bit(cpumask_bits(srcp), nr_cpumask_bits, n + 1); in cpumask_next()
195 return find_next_zero_bit(cpumask_bits(srcp), nr_cpumask_bits, n+1); in cpumask_next_zero()
238 nr_cpumask_bits, n + 1); in cpumask_next_and()
249 for_each_set_bit(cpu, cpumask_bits(mask), nr_cpumask_bits)
[all …]
/Linux-v6.1/lib/
Dcpumask.c30 return nr_cpumask_bits; in cpumask_next_wrap()
32 } else if (next >= nr_cpumask_bits) { in cpumask_next_wrap()
170 nr_cpumask_bits, prev + 1); in cpumask_any_and_distribute()
184 next = find_next_bit_wrap(cpumask_bits(srcp), nr_cpumask_bits, prev + 1); in cpumask_any_distribute()
Dcpumask_kunit.c14 nr_cpumask_bits, cpumask_bits(m)
80 KUNIT_EXPECT_EQ_MSG(test, nr_cpumask_bits, cpumask_weight(&mask_all), MASK_MSG(&mask_all)); in test_cpumask_weight()
95 KUNIT_EXPECT_LE_MSG(test, nr_cpumask_bits, cpumask_last(&mask_empty), in test_cpumask_last()
Dnmi_backtrace.c66 this_cpu, nr_cpumask_bits, to_cpumask(backtrace_mask)); in nmi_trigger_cpumask_backtrace()
/Linux-v6.1/include/trace/events/
Dipi.h26 __bitmask(target_cpus, nr_cpumask_bits)
31 __assign_bitmask(target_cpus, cpumask_bits(mask), nr_cpumask_bits);
/Linux-v6.1/drivers/net/wireguard/
Dqueueing.h109 if (unlikely(cpu == nr_cpumask_bits || in wg_cpumask_choose_online()
132 cpu = cpumask_next(cpu, cpu_online_mask) % nr_cpumask_bits; in wg_cpumask_next_online()
133 *next = cpumask_next(cpu, cpu_online_mask) % nr_cpumask_bits; in wg_cpumask_next_online()
Dpeer.c43 peer->serial_work_cpu = nr_cpumask_bits; in wg_peer_create()
/Linux-v6.1/arch/x86/events/amd/
Dpower.c232 if (target < nr_cpumask_bits) { in power_cpu_exit()
253 if (target >= nr_cpumask_bits) in power_cpu_init()
/Linux-v6.1/arch/x86/kernel/
Dsetup_percpu.c126 NR_CPUS, nr_cpumask_bits, nr_cpu_ids, nr_node_ids); in setup_per_cpu_areas()
/Linux-v6.1/arch/x86/hyperv/
Dmmu.c111 if (cpu < nr_cpumask_bits && hv_cpu_number_to_vp_number(cpu) >= 64) in hyperv_flush_tlb_multi()
/Linux-v6.1/kernel/bpf/
Dcpumap.c578 if (key_cpu >= nr_cpumask_bits || !cpu_possible(key_cpu)) in cpu_map_update_elem()
/Linux-v6.1/kernel/sched/
Dfair.c6239 return nr_cpumask_bits; in wake_affine_idle()
6282 return this_eff_load < prev_eff_load ? this_cpu : nr_cpumask_bits; in wake_affine_weight()
6288 int target = nr_cpumask_bits; in wake_affine()
6293 if (sched_feat(WA_WEIGHT) && target == nr_cpumask_bits) in wake_affine()
6297 if (target == nr_cpumask_bits) in wake_affine()
6619 if ((unsigned int)i < nr_cpumask_bits) in select_idle_cpu()
6626 if ((unsigned int)idle_cpu < nr_cpumask_bits) in select_idle_cpu()
6771 return ((unsigned)i < nr_cpumask_bits) ? i : target; in select_idle_sibling()
6784 if ((unsigned int)i < nr_cpumask_bits) in select_idle_sibling()
6790 if ((unsigned)i < nr_cpumask_bits) in select_idle_sibling()
Dtopology.c2360 for (i = nr_cpumask_bits-1; i >= 0; i--) { in build_sched_domains()
/Linux-v6.1/net/core/
Dnet-sysfs.c848 err = bitmap_parse(buf, len, cpumask_bits(mask), nr_cpumask_bits); in store_rps_map()
1522 err = bitmap_parse(buf, len, cpumask_bits(mask), nr_cpumask_bits); in xps_cpus_store()
/Linux-v6.1/kernel/
Dpadata.c885 nr_cpumask_bits); in store_cpumask()
Dworkqueue.c3427 BITS_TO_LONGS(nr_cpumask_bits) * sizeof(long), hash); in wqattrs_hash()
4706 pr_cont(" cpus=%*pbl", nr_cpumask_bits, pool->attrs->cpumask); in pr_cont_pool_info()
/Linux-v6.1/drivers/scsi/lpfc/
Dlpfc_init.c12511 if (new_cpu == nr_cpumask_bits) in lpfc_cpu_affinity_check()
12525 if (start_cpu == nr_cpumask_bits) in lpfc_cpu_affinity_check()
12561 if (new_cpu == nr_cpumask_bits) in lpfc_cpu_affinity_check()
12579 if (start_cpu == nr_cpumask_bits) in lpfc_cpu_affinity_check()
12652 if (new_cpu == nr_cpumask_bits) in lpfc_cpu_affinity_check()
12667 if (new_cpu == nr_cpumask_bits) in lpfc_cpu_affinity_check()
12678 if (start_cpu == nr_cpumask_bits) in lpfc_cpu_affinity_check()
/Linux-v6.1/drivers/hv/
Dvmbus_drv.c1775 if (target_cpu >= nr_cpumask_bits) in target_cpu_store()
/Linux-v6.1/arch/powerpc/xmon/
Dxmon.c1280 if (cpu == nr_cpumask_bits) in xmon_batch_next_cpu()