/linux-6.3-rc2/tools/lib/perf/ |
A D | cpumap.c | 22 return cpus; in perf_cpu_map__alloc() 29 if (cpus) in perf_cpu_map__dummy_new() 32 return cpus; in perf_cpu_map__dummy_new() 74 return cpus; in cpu_map__default_new() 102 if (i == 0 || cpus->map[i].cpu != cpus->map[i - 1].cpu) in cpu_map__trim_new() 103 cpus->map[j++].cpu = cpus->map[i].cpu; in cpu_map__trim_new() 108 return cpus; in cpu_map__trim_new() 166 return cpus; in perf_cpu_map__read() 266 if (cpus && idx < cpus->nr) in perf_cpu_map__cpu() 274 return cpus ? cpus->nr : 1; in perf_cpu_map__nr() [all …]
|
/linux-6.3-rc2/tools/perf/util/ |
A D | evlist-hybrid.c | 24 struct perf_cpu_map *cpus; in evlist__add_default_hybrid() local 34 cpus = perf_cpu_map__get(pmu->cpus); in evlist__add_default_hybrid() 35 evsel->core.cpus = cpus; in evlist__add_default_hybrid() 36 evsel->core.own_cpus = perf_cpu_map__get(cpus); in evlist__add_default_hybrid() 92 struct perf_cpu_map *cpus; in evlist__fix_hybrid_cpus() local 100 cpus = perf_cpu_map__new(cpu_list); in evlist__fix_hybrid_cpus() 101 if (!cpus) in evlist__fix_hybrid_cpus() 131 perf_cpu_map__put(evsel->core.cpus); in evlist__fix_hybrid_cpus() 147 cpu_map__snprint(cpus, buf1, sizeof(buf1)); in evlist__fix_hybrid_cpus() 148 cpu_map__snprint(pmu->cpus, buf2, sizeof(buf2)); in evlist__fix_hybrid_cpus() [all …]
|
A D | perf_api_probe.c | 63 struct perf_cpu_map *cpus; in perf_probe_api() local 67 cpus = perf_cpu_map__new(NULL); 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(NULL); 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.3-rc2/tools/lib/perf/tests/ |
A D | test-cpumap.c | 16 struct perf_cpu_map *cpus; in test_cpumap() local 24 cpus = perf_cpu_map__dummy_new(); 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__default_new(); 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()
|
A D | test-evlist.c | 36 struct perf_cpu_map *cpus; in test_stat_cpu() local 49 cpus = perf_cpu_map__new(NULL); 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__dummy_new(); 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 353 cpus = perf_cpu_map__new(NULL); in test_mmap_cpus() [all …]
|
/linux-6.3-rc2/tools/perf/arch/arm64/util/ |
A D | header.c | 17 static int _get_cpuid(char *buf, size_t sz, struct perf_cpu_map *cpus) in _get_cpuid() argument 26 cpus = perf_cpu_map__get(cpus); in _get_cpuid() 28 for (cpu = 0; cpu < perf_cpu_map__nr(cpus); cpu++) { in _get_cpuid() 33 sysfs, cpus->map[cpu]); in _get_cpuid() 57 perf_cpu_map__put(cpus); in _get_cpuid() 67 struct perf_cpu_map *cpus = perf_cpu_map__new(NULL); in get_cpuid() local 70 if (!cpus) in get_cpuid() 73 ret = _get_cpuid(buf, sz, cpus); in get_cpuid() 75 perf_cpu_map__put(cpus); in get_cpuid() 85 if (!pmu || !pmu->cpus) in get_cpuid_str() [all …]
|
/linux-6.3-rc2/sound/soc/intel/boards/ |
A D | sof_cs42l42.c | 343 links[*id].cpus = &cpus[*id]; in create_spk_amp_dai_links() 348 if (!links[*id].cpus->dai_name) { in create_spk_amp_dai_links() 381 links[*id].cpus = &cpus[*id]; in create_hp_codec_dai_links() 387 if (!links[*id].cpus->dai_name) in create_hp_codec_dai_links() 411 links[*id].cpus = &cpus[*id]; in create_dmic_dai_links() 417 links[*id + 1].cpus = &cpus[*id + 1]; in create_dmic_dai_links() 464 links[*id].cpus = &cpus[*id]; in create_hdmi_dai_links() 470 if (!links[*id].cpus->dai_name) in create_hdmi_dai_links() 521 links[*id].cpus = &cpus[*id]; in create_bt_offload_dai_links() 527 if (!links[*id].cpus->dai_name) in create_bt_offload_dai_links() [all …]
|
A D | sof_ssp_amp.c | 213 if (!links || !cpus) in sof_card_dai_links_create() 227 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() 230 if (!links[id].cpus->dai_name) in sof_card_dai_links_create() 264 links[id].cpus = &cpus[id]; 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() 281 links[id + 1].cpus = &cpus[id + 1]; in sof_card_dai_links_create() 318 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() 322 if (!links[id].cpus->dai_name) in sof_card_dai_links_create() 355 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() [all …]
|
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() 256 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() 262 if (!links[id].cpus->dai_name) in sof_card_dai_links_create() 268 if (!links[id].cpus->dai_name) in sof_card_dai_links_create() 277 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() 278 links[id].cpus->dai_name = "DMIC01 Pin"; in sof_card_dai_links_create() 283 links[id + 1].cpus = &cpus[id + 1]; in sof_card_dai_links_create() 284 links[id + 1].cpus->dai_name = "DMIC16k Pin"; in sof_card_dai_links_create() 317 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() [all …]
|
A D | sof_nau8825.c | 371 if (!links || !cpus) in sof_card_dai_links_create() 391 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() 397 if (!links[id].cpus->dai_name) in sof_card_dai_links_create() 406 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() 412 links[id + 1].cpus = &cpus[id + 1]; in sof_card_dai_links_create() 447 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() 451 if (!links[id].cpus->dai_name) in sof_card_dai_links_create() 511 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() 516 if (!links[id].cpus->dai_name) in sof_card_dai_links_create() 527 links[id].cpus = &cpus[id]; in sof_card_dai_links_create() [all …]
|
/linux-6.3-rc2/drivers/clk/sunxi/ |
A D | clk-sun9i-cpus.c | 60 reg = readl(cpus->reg); in sun9i_a80_cpus_clk_recalc_rate() 162 reg = readl(cpus->reg); in sun9i_a80_cpus_clk_set_rate() 170 writel(reg, cpus->reg); in sun9i_a80_cpus_clk_set_rate() 188 struct sun9i_a80_cpus_clk *cpus; in sun9i_a80_cpus_setup() local 193 cpus = kzalloc(sizeof(*cpus), GFP_KERNEL); in sun9i_a80_cpus_setup() 194 if (!cpus) in sun9i_a80_cpus_setup() 198 if (IS_ERR(cpus->reg)) in sun9i_a80_cpus_setup() 211 mux->reg = cpus->reg; in sun9i_a80_cpus_setup() 219 &cpus->hw, &sun9i_a80_cpus_clk_ops, in sun9i_a80_cpus_setup() 235 iounmap(cpus->reg); in sun9i_a80_cpus_setup() [all …]
|
/linux-6.3-rc2/tools/lib/perf/include/perf/ |
A D | cpumap.h | 24 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx); 25 LIBPERF_API int perf_cpu_map__nr(const struct perf_cpu_map *cpus); 30 #define perf_cpu_map__for_each_cpu(cpu, idx, cpus) \ argument 31 for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \ 32 (idx) < perf_cpu_map__nr(cpus); \ 33 (idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx)) 35 #define perf_cpu_map__for_each_idx(idx, cpus) \ argument 36 for ((idx) = 0; (idx) < perf_cpu_map__nr(cpus); (idx)++)
|
/linux-6.3-rc2/tools/perf/tests/ |
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(NULL); 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()
|
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() 137 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() 159 perf_cpu_map__put(cpus); in attach__cpu_enabled()
|
A D | cpumap.c | 105 struct perf_cpu_map *cpus; in test__cpu_map_synthesize() local 108 cpus = perf_cpu_map__new("0,2-20"); in test__cpu_map_synthesize() 111 !perf_event__synthesize_cpu_map(NULL, cpus, process_event_mask, NULL)); in test__cpu_map_synthesize() 113 perf_cpu_map__put(cpus); in test__cpu_map_synthesize() 116 cpus = perf_cpu_map__new("1,256"); in test__cpu_map_synthesize() 119 !perf_event__synthesize_cpu_map(NULL, cpus, process_event_cpus, NULL)); in test__cpu_map_synthesize() 121 perf_cpu_map__put(cpus); in test__cpu_map_synthesize() 124 cpus = perf_cpu_map__new("1-256"); in test__cpu_map_synthesize() 127 !perf_event__synthesize_cpu_map(NULL, cpus, process_event_range_cpus, NULL)); in test__cpu_map_synthesize() 129 perf_cpu_map__put(cpus); in test__cpu_map_synthesize()
|
/linux-6.3-rc2/drivers/cpufreq/ |
A D | cpufreq-dt.c | 30 cpumask_var_t cpus; member 50 if (cpumask_test_cpu(cpu, priv->cpus)) in cpufreq_dt_find_data() 129 cpumask_copy(policy->cpus, priv->cpus); in cpufreq_init() 211 if (!alloc_cpumask_var(&priv->cpus, GFP_KERNEL)) in dt_cpufreq_early_init() 214 cpumask_set_cpu(cpu, priv->cpus); in dt_cpufreq_early_init() 257 ret = dev_pm_opp_of_cpumask_add_table(priv->cpus); in dt_cpufreq_early_init() 276 cpumask_setall(priv->cpus); in dt_cpufreq_early_init() 294 dev_pm_opp_of_cpumask_remove_table(priv->cpus); in dt_cpufreq_early_init() 297 free_cpumask_var(priv->cpus); in dt_cpufreq_early_init() 308 dev_pm_opp_of_cpumask_remove_table(priv->cpus); in dt_cpufreq_release() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/cgroup/ |
A D | test_cpuset_prs.sh | 136 echo 2-3 > cpuset.cpus 137 TYPE=$(cat cpuset.cpus.partition) 167 echo 2-3 > cpuset.cpus 181 echo 2 > cpuset.cpus 185 echo 2-3 > cpuset.cpus 358 CFILE=$CGRP/cpuset.cpus 448 ECPUS=$DIR/cpuset.cpus.effective 449 PRS=$DIR/cpuset.cpus.partition 469 FILE=$CGRP/cpuset.cpus.effective 538 echo $CPULIST > cpuset.cpus [all …]
|
/linux-6.3-rc2/Documentation/devicetree/bindings/csky/ |
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.3-rc2/include/linux/ |
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.3-rc2/sound/soc/samsung/ |
A D | snow.c | 146 link->cpus = links_cpus; in snow_probe() 163 link->cpus->of_node = of_parse_phandle(cpu, "sound-dai", 0); in snow_probe() 166 if (!link->cpus->of_node) { in snow_probe() 176 of_node_put(link->cpus->of_node); in snow_probe() 181 priv->clk_i2s_bus = of_clk_get_by_name(link->cpus->of_node, in snow_probe() 185 of_node_put(link->cpus->of_node); in snow_probe() 191 link->cpus->of_node = of_parse_phandle(dev->of_node, in snow_probe() 193 if (!link->cpus->of_node) { in snow_probe() 201 of_node_put(link->cpus->of_node); in snow_probe() 207 link->platforms->of_node = link->cpus->of_node; in snow_probe() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/rcutorture/bin/ |
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.3-rc2/sound/soc/kirkwood/ |
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.3-rc2/arch/x86/hyperv/ |
A D | mmu.c | 20 static u64 hyperv_flush_tlb_others_ex(const struct cpumask *cpus, 55 static void hyperv_flush_tlb_multi(const struct cpumask *cpus, in hyperv_flush_tlb_multi() argument 64 trace_hyperv_mmu_flush_tlb_multi(cpus, info); in hyperv_flush_tlb_multi() 95 if (cpumask_equal(cpus, cpu_present_mask)) { in hyperv_flush_tlb_multi() 109 cpu = cpumask_last(cpus); in hyperv_flush_tlb_multi() 114 for_each_cpu(cpu, cpus) { in hyperv_flush_tlb_multi() 158 status = hyperv_flush_tlb_others_ex(cpus, info); in hyperv_flush_tlb_multi() 166 native_flush_tlb_multi(cpus, info); in hyperv_flush_tlb_multi() 169 static u64 hyperv_flush_tlb_others_ex(const struct cpumask *cpus, in hyperv_flush_tlb_others_ex() argument 201 nr_bank = cpumask_to_vpset(&(flush->hv_vp_set), cpus); in hyperv_flush_tlb_others_ex()
|
/linux-6.3-rc2/sound/soc/meson/ |
A D | gx-card.c | 60 link->dai_fmt = meson_card_parse_daifmt(node, link->cpus->of_node); in gx_card_parse_i2s() 90 dai_link->cpus = cpu; in gx_card_add_link() 93 ret = meson_card_parse_dai(card, np, &dai_link->cpus->of_node, in gx_card_add_link() 94 &dai_link->cpus->dai_name); in gx_card_add_link() 98 if (gx_card_cpu_identify(dai_link->cpus, "FIFO")) in gx_card_add_link() 106 if (gx_card_cpu_identify(dai_link->cpus, "CODEC CTRL")) { in gx_card_add_link() 112 if (gx_card_cpu_identify(dai_link->cpus, "I2S Encoder")) in gx_card_add_link()
|
/linux-6.3-rc2/drivers/irqchip/ |
A D | irq-bcm6345-l1.c | 81 struct bcm6345_l1_cpu *cpus[NR_CPUS]; member 124 cpu = intc->cpus[cpu_logical_map(smp_processor_id())]; in bcm6345_l1_irq_handle() 126 cpu = intc->cpus[0]; in bcm6345_l1_irq_handle() 155 intc->cpus[cpu_idx]->enable_cache[word] |= mask; in __bcm6345_l1_unmask() 156 __raw_writel(intc->cpus[cpu_idx]->enable_cache[word], in __bcm6345_l1_unmask() 157 intc->cpus[cpu_idx]->map_base + reg_enable(intc, word)); in __bcm6345_l1_unmask() 167 intc->cpus[cpu_idx]->enable_cache[word] &= ~mask; in __bcm6345_l1_mask() 168 __raw_writel(intc->cpus[cpu_idx]->enable_cache[word], in __bcm6345_l1_mask() 169 intc->cpus[cpu_idx]->map_base + reg_enable(intc, word)); in __bcm6345_l1_mask() 336 struct bcm6345_l1_cpu *cpu = intc->cpus[idx]; in bcm6345_l1_of_init() [all …]
|