Lines Matching full:cpus
22 const struct cpumask *cpus) in hwprobe_arch_id() argument
28 for_each_cpu(cpu, cpus) { in hwprobe_arch_id()
62 const struct cpumask *cpus) in hwprobe_isa_ext0() argument
81 for_each_cpu(cpu, cpus) { in hwprobe_isa_ext0()
160 static bool hwprobe_ext0_has(const struct cpumask *cpus, unsigned long ext) in hwprobe_ext0_has() argument
164 hwprobe_isa_ext0(&pair, cpus); in hwprobe_ext0_has()
169 static u64 hwprobe_misaligned(const struct cpumask *cpus) in hwprobe_misaligned() argument
174 for_each_cpu(cpu, cpus) { in hwprobe_misaligned()
192 static u64 hwprobe_misaligned(const struct cpumask *cpus) in hwprobe_misaligned() argument
205 const struct cpumask *cpus) in hwprobe_one_pair() argument
211 hwprobe_arch_id(pair, cpus); in hwprobe_one_pair()
224 hwprobe_isa_ext0(pair, cpus); in hwprobe_one_pair()
229 pair->value = hwprobe_misaligned(cpus); in hwprobe_one_pair()
234 if (hwprobe_ext0_has(cpus, RISCV_HWPROBE_EXT_ZICBOZ)) in hwprobe_one_pair()
264 cpumask_t cpus; in hwprobe_get_values() local
273 * 0 as a shortcut to all online CPUs. in hwprobe_get_values()
275 cpumask_clear(&cpus); in hwprobe_get_values()
277 cpumask_copy(&cpus, cpu_online_mask); in hwprobe_get_values()
282 ret = copy_from_user(&cpus, cpus_user, cpusetsize); in hwprobe_get_values()
290 cpumask_and(&cpus, &cpus, cpu_online_mask); in hwprobe_get_values()
291 if (cpumask_empty(&cpus)) in hwprobe_get_values()
302 hwprobe_one_pair(&pair, &cpus); in hwprobe_get_values()
319 cpumask_t cpus, one_cpu; in hwprobe_get_cpus() local
333 ret = copy_from_user(&cpus, cpus_user, cpusetsize); in hwprobe_get_cpus()
337 if (cpumask_empty(&cpus)) in hwprobe_get_cpus()
338 cpumask_copy(&cpus, cpu_online_mask); in hwprobe_get_cpus()
340 cpumask_and(&cpus, &cpus, cpu_online_mask); in hwprobe_get_cpus()
365 for_each_cpu(cpu, &cpus) { in hwprobe_get_cpus()
371 cpumask_clear_cpu(cpu, &cpus); in hwprobe_get_cpus()
378 cpumask_clear(&cpus); in hwprobe_get_cpus()
380 ret = copy_to_user(cpus_user, &cpus, cpusetsize); in hwprobe_get_cpus()
411 * Initialize vDSO data with the answers for the "all CPUs" case, to in init_hwprobe_vdso_data()
431 * all harts, then assume all CPUs are the same, and allow the vDSO to in init_hwprobe_vdso_data()
433 * populated) or any value returns -1 (varies across CPUs), then the in init_hwprobe_vdso_data()
446 cpus, unsigned int, flags) in SYSCALL_DEFINE5() argument
449 cpus, flags); in SYSCALL_DEFINE5()