| /linux-6.15/tools/lib/perf/ |
| H A D | cpumap.c | 43 if (cpus) in perf_cpu_map__new_any_cpu() 46 return cpus; in perf_cpu_map__new_any_cpu() 101 return cpus; in cpu_map__new_sysconf() 114 return cpus; in cpu_map__new_sysfs_online() 121 if (cpus) in perf_cpu_map__new_online_cpus() 122 return cpus; in perf_cpu_map__new_online_cpus() 162 return cpus; in cpu_map__trim_new() 242 return cpus; in perf_cpu_map__new() 256 if (cpus && idx < __perf_cpu_map__nr(cpus)) in perf_cpu_map__cpu() 264 return cpus ? __perf_cpu_map__nr(cpus) : 1; in perf_cpu_map__nr() [all …]
|
| /linux-6.15/arch/riscv/kernel/ |
| H A D | sys_hwprobe.c | 29 for_each_cpu(cpu, cpus) { in hwprobe_arch_id() 82 for_each_cpu(cpu, cpus) { in hwprobe_isa_ext0() 186 for_each_cpu(cpu, cpus) { in hwprobe_misaligned() 223 for_each_cpu(cpu, cpus) { in hwprobe_vec_misaligned() 326 cpumask_t cpus; in hwprobe_get_values() local 337 cpumask_clear(&cpus); in hwprobe_get_values() 352 cpumask_and(&cpus, &cpus, cpu_online_mask); in hwprobe_get_values() 381 cpumask_t cpus, one_cpu; in hwprobe_get_cpus() local 402 cpumask_and(&cpus, &cpus, cpu_online_mask); in hwprobe_get_cpus() 440 cpumask_clear(&cpus); in hwprobe_get_cpus() [all …]
|
| /linux-6.15/tools/testing/selftests/riscv/hwprobe/ |
| H A D | which-cpus.c | 29 static void print_cpulist(cpu_set_t *cpus) in print_cpulist() argument 33 if (!CPU_COUNT(cpus)) { in print_cpulist() 40 if (start != end && !CPU_ISSET(c, cpus)) in print_cpulist() 43 while (!CPU_ISSET(c, cpus)) in print_cpulist() 80 print_cpulist(cpus); in do_which_cpus() 87 cpu_set_t cpus_aff, cpus; in main() local 116 CPU_ZERO(&cpus); in main() 125 CPU_ZERO(&cpus); in main() 131 CPU_ZERO(&cpus); in main() 137 CPU_ZERO(&cpus); in main() [all …]
|
| H A D | cbo.c | 93 cpu_set_t *cpus = (cpu_set_t *)arg; in test_zicbom() local 97 rc = riscv_hwprobe(&pair, 1, sizeof(cpu_set_t), (unsigned long *)cpus, 0); in test_zicbom() 117 cpu_set_t *cpus = (cpu_set_t *)arg; in test_zicboz() local 160 static void check_no_zicbo_cpus(cpu_set_t *cpus, __u64 cbo) in check_no_zicbo_cpus() argument 170 while (i++ < CPU_COUNT(cpus)) { in check_no_zicbo_cpus() 171 while (!CPU_ISSET(c, cpus)) in check_no_zicbo_cpus() 219 cpu_set_t cpus; in main() local 231 rc = sched_getaffinity(0, sizeof(cpu_set_t), &cpus); in main() 246 check_no_zicbo_cpus(&cpus, RISCV_HWPROBE_EXT_ZICBOZ); in main() 253 check_no_zicbo_cpus(&cpus, RISCV_HWPROBE_EXT_ZICBOM); in main() [all …]
|
| /linux-6.15/sound/soc/intel/boards/ |
| H A D | sof_board_helpers.c | 195 if (!cpus) in set_ssp_codec_link() 209 link->cpus = cpus; in set_ssp_codec_link() 232 if (!cpus) in set_dmic_link() 253 link->cpus = cpus; in set_dmic_link() 290 if (!cpus) in set_idisp_hdmi_link() 297 link->cpus = cpus; in set_idisp_hdmi_link() 349 if (!cpus) in set_ssp_amp_link() 356 link->cpus = cpus; in set_ssp_amp_link() 387 if (!cpus) in set_bt_offload_link() 394 link->cpus = cpus; in set_bt_offload_link() [all …]
|
| H A D | sof_pcm512x.c | 225 struct snd_soc_dai_link_component *cpus; in sof_card_dai_links_create() local 233 if (!links || !cpus) in sof_card_dai_links_create() 255 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() 261 if (!links[id].cpus->dai_name) in sof_card_dai_links_create() 267 if (!links[id].cpus->dai_name) in sof_card_dai_links_create() 276 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() 277 links[id].cpus->dai_name = "DMIC01 Pin"; in sof_card_dai_links_create() 282 links[id + 1].cpus = &cpus[id + 1]; in sof_card_dai_links_create() 283 links[id + 1].cpus->dai_name = "DMIC16k Pin"; in sof_card_dai_links_create() 316 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() [all …]
|
| /linux-6.15/tools/lib/perf/tests/ |
| H A D | test-cpumap.c | 16 struct perf_cpu_map *cpus; in test_cpumap() local 24 cpus = perf_cpu_map__new_any_cpu(); in test_cpumap() 25 if (!cpus) in test_cpumap() 28 perf_cpu_map__get(cpus); in test_cpumap() 29 perf_cpu_map__put(cpus); in test_cpumap() 30 perf_cpu_map__put(cpus); in test_cpumap() 32 cpus = perf_cpu_map__new_online_cpus(); in test_cpumap() 33 if (!cpus) in test_cpumap() 36 perf_cpu_map__for_each_cpu(cpu, idx, cpus) in test_cpumap() 39 perf_cpu_map__put(cpus); in test_cpumap()
|
| H A D | test-evlist.c | 36 struct perf_cpu_map *cpus; in test_stat_cpu() local 49 cpus = perf_cpu_map__new_online_cpus(); in test_stat_cpu() 50 __T("failed to create cpus", cpus); in test_stat_cpu() 75 cpus = perf_evsel__cpus(evsel); in test_stat_cpu() 88 perf_cpu_map__put(cpus); in test_stat_cpu() 218 struct perf_cpu_map *cpus; in test_mmap_thread() local 264 cpus = perf_cpu_map__new_any_cpu(); in test_mmap_thread() 265 __T("failed to create cpus", cpus); in test_mmap_thread() 313 perf_cpu_map__put(cpus); in test_mmap_thread() 329 struct perf_cpu_map *cpus; in test_mmap_cpus() local [all …]
|
| /linux-6.15/tools/lib/perf/include/perf/ |
| H A D | cpumap.h | 58 LIBPERF_API int perf_cpu_map__nr(const struct perf_cpu_map *cpus); 88 #define perf_cpu_map__for_each_cpu(cpu, idx, cpus) \ argument 89 for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \ 90 (idx) < perf_cpu_map__nr(cpus); \ 91 (idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx)) 93 #define perf_cpu_map__for_each_cpu_skip_any(_cpu, idx, cpus) \ argument 94 for ((idx) = 0, (_cpu) = perf_cpu_map__cpu(cpus, idx); \ 95 (idx) < perf_cpu_map__nr(cpus); \ 96 (idx)++, (_cpu) = perf_cpu_map__cpu(cpus, idx)) \ 99 #define perf_cpu_map__for_each_idx(idx, cpus) \ argument [all …]
|
| /linux-6.15/tools/testing/selftests/cgroup/ |
| H A D | test_cpuset_prs.sh | 79 echo 0-6 > test/cpuset.cpus 84 echo "" > test/cpuset.cpus 530 CFILE=$CGRP/cpuset.cpus 627 CPUS=$DIR/cpuset.cpus 995 echo "1-7" > cpuset.cpus 1060 echo 2-3 > cpuset.cpus 1091 echo 2-3 > cpuset.cpus 1105 echo 2 > cpuset.cpus 1109 echo 2-3 > cpuset.cpus 1150 echo 1 > cpuset.cpus [all …]
|
| /linux-6.15/arch/riscv/kernel/vdso/ |
| H A D | hwprobe.c | 12 size_t cpusetsize, unsigned long *cpus, 16 size_t cpusetsize, unsigned long *cpus, in riscv_vdso_get_values() argument 20 bool all_cpus = !cpusetsize && !cpus; in riscv_vdso_get_values() 31 return riscv_hwprobe(pairs, pair_count, cpusetsize, cpus, flags); in riscv_vdso_get_values() 50 size_t cpusetsize, unsigned long *cpus, in riscv_vdso_get_cpus() argument 56 unsigned char *c = (unsigned char *)cpus; in riscv_vdso_get_cpus() 61 if (!cpusetsize || !cpus) in riscv_vdso_get_cpus() 101 size_t cpusetsize, unsigned long *cpus, 105 size_t cpusetsize, unsigned long *cpus, in __vdso_riscv_hwprobe() argument 110 cpus, flags); in __vdso_riscv_hwprobe() [all …]
|
| /linux-6.15/drivers/clk/sunxi/ |
| H A D | clk-sun9i-cpus.c | 57 reg = readl(cpus->reg); in sun9i_a80_cpus_clk_recalc_rate() 159 reg = readl(cpus->reg); in sun9i_a80_cpus_clk_set_rate() 167 writel(reg, cpus->reg); in sun9i_a80_cpus_clk_set_rate() 189 struct sun9i_a80_cpus_clk *cpus; in sun9i_a80_cpus_setup() local 194 cpus = kzalloc(sizeof(*cpus), GFP_KERNEL); in sun9i_a80_cpus_setup() 195 if (!cpus) in sun9i_a80_cpus_setup() 199 if (IS_ERR(cpus->reg)) in sun9i_a80_cpus_setup() 212 mux->reg = cpus->reg; in sun9i_a80_cpus_setup() 220 &cpus->hw, &sun9i_a80_cpus_clk_ops, in sun9i_a80_cpus_setup() 236 iounmap(cpus->reg); in sun9i_a80_cpus_setup() [all …]
|
| /linux-6.15/drivers/cpufreq/ |
| H A D | cpufreq-dt.c | 30 cpumask_var_t cpus; member 44 if (cpumask_test_cpu(cpu, priv->cpus)) in cpufreq_dt_find_data() 109 cpumask_copy(policy->cpus, priv->cpus); in cpufreq_init() 176 if (!zalloc_cpumask_var(&priv->cpus, GFP_KERNEL)) in dt_cpufreq_early_init() 179 cpumask_set_cpu(cpu, priv->cpus); in dt_cpufreq_early_init() 222 ret = dev_pm_opp_of_cpumask_add_table(priv->cpus); in dt_cpufreq_early_init() 241 cpumask_setall(priv->cpus); in dt_cpufreq_early_init() 259 dev_pm_opp_of_cpumask_remove_table(priv->cpus); in dt_cpufreq_early_init() 262 free_cpumask_var(priv->cpus); in dt_cpufreq_early_init() 273 dev_pm_opp_of_cpumask_remove_table(priv->cpus); in dt_cpufreq_release() [all …]
|
| /linux-6.15/tools/perf/util/ |
| H A D | perf_api_probe.c | 63 struct perf_cpu_map *cpus; in perf_probe_api() local 67 cpus = perf_cpu_map__new_online_cpus(); in perf_probe_api() 68 if (!cpus) in perf_probe_api() 70 cpu = perf_cpu_map__cpu(cpus, 0); in perf_probe_api() 71 perf_cpu_map__put(cpus); in perf_probe_api() 139 struct perf_cpu_map *cpus; in perf_can_record_cpu_wide() local 143 cpus = perf_cpu_map__new_online_cpus(); in perf_can_record_cpu_wide() 144 if (!cpus) in perf_can_record_cpu_wide() 147 cpu = perf_cpu_map__cpu(cpus, 0); in perf_can_record_cpu_wide() 148 perf_cpu_map__put(cpus); in perf_can_record_cpu_wide()
|
| /linux-6.15/tools/perf/tests/ |
| H A D | openat-syscall-all-cpus.c | 27 struct perf_cpu_map *cpus; in test__openat_syscall_event_on_all_cpus() local 40 cpus = perf_cpu_map__new_online_cpus(); in test__openat_syscall_event_on_all_cpus() 41 if (cpus == NULL) { in test__openat_syscall_event_on_all_cpus() 56 if (evsel__open(evsel, cpus, threads) < 0) { in test__openat_syscall_event_on_all_cpus() 64 perf_cpu_map__for_each_cpu(cpu, idx, cpus) { in test__openat_syscall_event_on_all_cpus() 91 evsel->core.cpus = perf_cpu_map__get(cpus); in test__openat_syscall_event_on_all_cpus() 95 perf_cpu_map__for_each_cpu(cpu, idx, cpus) { in test__openat_syscall_event_on_all_cpus() 121 perf_cpu_map__put(cpus); in test__openat_syscall_event_on_all_cpus()
|
| H A D | event-times.c | 115 struct perf_cpu_map *cpus; in attach__cpu_disabled() local 120 cpus = perf_cpu_map__new("0"); in attach__cpu_disabled() 121 if (cpus == NULL) { in attach__cpu_disabled() 128 err = evsel__open_per_cpu(evsel, cpus, -1); in attach__cpu_disabled() 129 perf_cpu_map__put(cpus); in attach__cpu_disabled() 144 struct perf_cpu_map *cpus; in attach__cpu_enabled() local 149 cpus = perf_cpu_map__new("0"); in attach__cpu_enabled() 150 if (cpus == NULL) { in attach__cpu_enabled() 155 err = evsel__open_per_cpu(evsel, cpus, -1); in attach__cpu_enabled() 156 perf_cpu_map__put(cpus); in attach__cpu_enabled()
|
| /linux-6.15/Documentation/devicetree/bindings/csky/ |
| H A D | cpus.txt | 6 the "cpus" node, which in turn contains a number of subnodes (ie "cpu") 9 Only SMP system need to care about the cpus node and single processor 10 needn't define cpus node at all. 13 cpus and cpu node bindings definition 16 - cpus node 20 The node name must be "cpus". 22 A cpus node must define the following properties: 59 cpus {
|
| /linux-6.15/include/linux/ |
| H A D | stop_machine.h | 114 int stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus); 125 int stop_machine_cpuslocked(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus); 144 const struct cpumask *cpus); 148 const struct cpumask *cpus) in stop_machine_cpuslocked() argument 159 stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus) in stop_machine() argument 161 return stop_machine_cpuslocked(fn, data, cpus); in stop_machine() 166 const struct cpumask *cpus) in stop_machine_from_inactive_cpu() argument 168 return stop_machine(fn, data, cpus); in stop_machine_from_inactive_cpu()
|
| /linux-6.15/scripts/gdb/linux/ |
| H A D | interrupts.py | 8 from linux import cpus 39 for cpu in cpus.each_online_cpu(): 40 any_count += cpus.per_cpu(desc['kstat_irqs'], cpu)['cnt'] 46 for cpu in cpus.each_online_cpu(): 48 count = cpus.per_cpu(desc['kstat_irqs'], cpu)['cnt'] 103 for cpu in cpus.each_online_cpu(): 104 stat = cpus.per_cpu(irq_stat, cpu) 112 for cpu in cpus.each_online_cpu(): 113 text += "%10u " % (cpus.per_cpu(pvar, cpu)) 179 for cpu in cpus.each_online_cpu(): [all …]
|
| /linux-6.15/sound/soc/samsung/ |
| H A D | snow.c | 145 link->cpus = links_cpus; in snow_probe() 162 link->cpus->of_node = of_parse_phandle(cpu, "sound-dai", 0); in snow_probe() 165 if (!link->cpus->of_node) { in snow_probe() 175 of_node_put(link->cpus->of_node); in snow_probe() 180 priv->clk_i2s_bus = of_clk_get_by_name(link->cpus->of_node, in snow_probe() 184 of_node_put(link->cpus->of_node); in snow_probe() 190 link->cpus->of_node = of_parse_phandle(dev->of_node, in snow_probe() 192 if (!link->cpus->of_node) { in snow_probe() 200 of_node_put(link->cpus->of_node); in snow_probe() 206 link->platforms->of_node = link->cpus->of_node; in snow_probe() [all …]
|
| /linux-6.15/tools/testing/selftests/rcutorture/bin/ |
| H A D | jitter.sh | 58 if cpus=`grep 1 /sys/devices/system/cpu/*/online 2>&1 | 63 cpus= 66 cpus="$cpus $nohotplugcpus" 68 cpumask=`awk -v cpus="$cpus" -v me=$me -v n=$n 'BEGIN {
|
| /linux-6.15/sound/soc/kirkwood/ |
| H A D | armada-370-db.c | 111 a370db_dai[0].cpus->of_node = in a370db_probe() 114 a370db_dai[0].platforms->of_node = a370db_dai[0].cpus->of_node; in a370db_probe() 120 a370db_dai[1].cpus->of_node = a370db_dai[0].cpus->of_node; in a370db_probe() 121 a370db_dai[1].platforms->of_node = a370db_dai[0].cpus->of_node; in a370db_probe() 127 a370db_dai[2].cpus->of_node = a370db_dai[0].cpus->of_node; in a370db_probe() 128 a370db_dai[2].platforms->of_node = a370db_dai[0].cpus->of_node; in a370db_probe()
|
| /linux-6.15/tools/tracing/rtla/src/ |
| H A D | timerlat_bpf.c | 115 int cpus) in get_value() argument 121 sizeof(long long) * cpus, 0); in get_value() 126 sizeof(long long) * cpus, 0); in get_value() 131 sizeof(long long) * cpus, 0); in get_value() 144 int cpus) in timerlat_bpf_get_hist_value() argument 149 key, value_irq, value_thread, value_user, cpus); in timerlat_bpf_get_hist_value() 159 int cpus) in timerlat_bpf_get_summary_value() argument 164 key, value_irq, value_thread, value_user, cpus); in timerlat_bpf_get_summary_value()
|
| /linux-6.15/arch/x86/hyperv/ |
| H A D | mmu.c | 19 static u64 hyperv_flush_tlb_others_ex(const struct cpumask *cpus, 59 static void hyperv_flush_tlb_multi(const struct cpumask *cpus, in hyperv_flush_tlb_multi() argument 68 trace_hyperv_mmu_flush_tlb_multi(cpus, info); in hyperv_flush_tlb_multi() 96 if (cpumask_equal(cpus, cpu_present_mask)) { in hyperv_flush_tlb_multi() 110 cpu = cpumask_last(cpus); in hyperv_flush_tlb_multi() 115 for_each_cpu(cpu, cpus) { in hyperv_flush_tlb_multi() 161 status = hyperv_flush_tlb_others_ex(cpus, info); in hyperv_flush_tlb_multi() 169 native_flush_tlb_multi(cpus, info); in hyperv_flush_tlb_multi() 172 static u64 hyperv_flush_tlb_others_ex(const struct cpumask *cpus, in hyperv_flush_tlb_others_ex() argument 200 nr_bank = cpumask_to_vpset_skip(&flush->hv_vp_set, cpus, in hyperv_flush_tlb_others_ex()
|
| /linux-6.15/tools/power/cpupower/utils/ |
| H A D | cpufreq-info.c | 365 if (!cpus) { in get_affected_cpus() 370 while (cpus->next) { in get_affected_cpus() 371 printf("%d ", cpus->cpu); in get_affected_cpus() 372 cpus = cpus->next; in get_affected_cpus() 374 printf("%d\n", cpus->cpu); in get_affected_cpus() 386 if (!cpus) { in get_related_cpus() 391 while (cpus->next) { in get_related_cpus() 392 printf("%d ", cpus->cpu); in get_related_cpus() 393 cpus = cpus->next; in get_related_cpus() 395 printf("%d\n", cpus->cpu); in get_related_cpus() [all …]
|