Lines Matching full:cpus
20 const struct cpumask *cpus) in hwprobe_arch_id() argument
26 for_each_cpu(cpu, cpus) { in hwprobe_arch_id()
60 const struct cpumask *cpus) in hwprobe_isa_ext0() argument
79 for_each_cpu(cpu, cpus) { in hwprobe_isa_ext0()
142 static bool hwprobe_ext0_has(const struct cpumask *cpus, unsigned long ext) in hwprobe_ext0_has() argument
146 hwprobe_isa_ext0(&pair, cpus); in hwprobe_ext0_has()
150 static u64 hwprobe_misaligned(const struct cpumask *cpus) in hwprobe_misaligned() argument
155 for_each_cpu(cpu, cpus) { in hwprobe_misaligned()
174 const struct cpumask *cpus) in hwprobe_one_pair() argument
180 hwprobe_arch_id(pair, cpus); in hwprobe_one_pair()
193 hwprobe_isa_ext0(pair, cpus); in hwprobe_one_pair()
197 pair->value = hwprobe_misaligned(cpus); in hwprobe_one_pair()
202 if (hwprobe_ext0_has(cpus, RISCV_HWPROBE_EXT_ZICBOZ)) in hwprobe_one_pair()
225 cpumask_t cpus; in hwprobe_get_values() local
234 * 0 as a shortcut to all online CPUs. in hwprobe_get_values()
236 cpumask_clear(&cpus); in hwprobe_get_values()
238 cpumask_copy(&cpus, cpu_online_mask); in hwprobe_get_values()
243 ret = copy_from_user(&cpus, cpus_user, cpusetsize); in hwprobe_get_values()
251 cpumask_and(&cpus, &cpus, cpu_online_mask); in hwprobe_get_values()
252 if (cpumask_empty(&cpus)) in hwprobe_get_values()
263 hwprobe_one_pair(&pair, &cpus); in hwprobe_get_values()
280 cpumask_t cpus, one_cpu; in hwprobe_get_cpus() local
294 ret = copy_from_user(&cpus, cpus_user, cpusetsize); in hwprobe_get_cpus()
298 if (cpumask_empty(&cpus)) in hwprobe_get_cpus()
299 cpumask_copy(&cpus, cpu_online_mask); in hwprobe_get_cpus()
301 cpumask_and(&cpus, &cpus, cpu_online_mask); in hwprobe_get_cpus()
326 for_each_cpu(cpu, &cpus) { in hwprobe_get_cpus()
332 cpumask_clear_cpu(cpu, &cpus); in hwprobe_get_cpus()
339 cpumask_clear(&cpus); in hwprobe_get_cpus()
341 ret = copy_to_user(cpus_user, &cpus, cpusetsize); in hwprobe_get_cpus()
372 * Initialize vDSO data with the answers for the "all CPUs" case, to in init_hwprobe_vdso_data()
392 * all harts, then assume all CPUs are the same, and allow the vDSO to in init_hwprobe_vdso_data()
394 * populated) or any value returns -1 (varies across CPUs), then the in init_hwprobe_vdso_data()
407 cpus, unsigned int, flags) in SYSCALL_DEFINE5() argument
410 cpus, flags); in SYSCALL_DEFINE5()