Home
last modified time | relevance | path

Searched refs:cpus (Results 1 – 25 of 1233) sorted by relevance

12345678910>>...50

/linux-6.6.21/tools/lib/perf/
Dcpumap.c20 RC_STRUCT(perf_cpu_map) *cpus = malloc(sizeof(*cpus) + sizeof(struct perf_cpu) * nr_cpus); in perf_cpu_map__alloc()
23 if (ADD_RC_CHK(result, cpus)) { in perf_cpu_map__alloc()
24 cpus->nr = nr_cpus; in perf_cpu_map__alloc()
25 refcount_set(&cpus->refcnt, 1); in perf_cpu_map__alloc()
32 struct perf_cpu_map *cpus = perf_cpu_map__alloc(1); in perf_cpu_map__dummy_new() local
34 if (cpus) in perf_cpu_map__dummy_new()
35 RC_CHK_ACCESS(cpus)->map[0].cpu = -1; in perf_cpu_map__dummy_new()
37 return cpus; in perf_cpu_map__dummy_new()
71 struct perf_cpu_map *cpus; in cpu_map__default_new() local
78 cpus = perf_cpu_map__alloc(nr_cpus); in cpu_map__default_new()
[all …]
/linux-6.6.21/tools/lib/perf/tests/
Dtest-cpumap.c16 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()
Dtest-evlist.c36 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()
69 perf_evlist__set_maps(evlist, cpus, NULL); in test_stat_cpu()
75 cpus = perf_evsel__cpus(evsel); in test_stat_cpu()
77 for (idx = 0; idx < perf_cpu_map__nr(cpus); idx++) { 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()
265 __T("failed to create cpus", cpus); in test_mmap_thread()
[all …]
/linux-6.6.21/arch/riscv/kernel/
Dsys_riscv.c86 const struct cpumask *cpus) in hwprobe_arch_id() argument
92 for_each_cpu(cpu, cpus) { in hwprobe_arch_id()
126 const struct cpumask *cpus) in hwprobe_isa_ext0() argument
145 for_each_cpu(cpu, cpus) { in hwprobe_isa_ext0()
168 static u64 hwprobe_misaligned(const struct cpumask *cpus) in hwprobe_misaligned() argument
173 for_each_cpu(cpu, cpus) { in hwprobe_misaligned()
192 const struct cpumask *cpus) in hwprobe_one_pair() argument
198 hwprobe_arch_id(pair, cpus); in hwprobe_one_pair()
211 hwprobe_isa_ext0(pair, cpus); in hwprobe_one_pair()
215 pair->value = hwprobe_misaligned(cpus); in hwprobe_one_pair()
[all …]
/linux-6.6.21/tools/perf/arch/arm64/util/
Dheader.c19 static int _get_cpuid(char *buf, size_t sz, struct perf_cpu_map *cpus) in _get_cpuid() argument
28 cpus = perf_cpu_map__get(cpus); in _get_cpuid()
30 for (cpu = 0; cpu < perf_cpu_map__nr(cpus); cpu++) { in _get_cpuid()
35 sysfs, RC_CHK_ACCESS(cpus)->map[cpu].cpu); in _get_cpuid()
54 perf_cpu_map__put(cpus); in _get_cpuid()
60 struct perf_cpu_map *cpus = perf_cpu_map__new(NULL); in get_cpuid() local
63 if (!cpus) in get_cpuid()
66 ret = _get_cpuid(buf, sz, cpus); in get_cpuid()
68 perf_cpu_map__put(cpus); in get_cpuid()
78 if (!pmu || !pmu->cpus) in get_cpuid_str()
[all …]
/linux-6.6.21/sound/soc/intel/boards/
Dsof_cs42l42.c301 struct snd_soc_dai_link_component *cpus, in create_spk_amp_dai_links() argument
336 links[*id].cpus = &cpus[*id]; in create_spk_amp_dai_links()
339 links[*id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in create_spk_amp_dai_links()
341 if (!links[*id].cpus->dai_name) { in create_spk_amp_dai_links()
354 struct snd_soc_dai_link_component *cpus, in create_hp_codec_dai_links() argument
374 links[*id].cpus = &cpus[*id]; in create_hp_codec_dai_links()
377 links[*id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in create_hp_codec_dai_links()
380 if (!links[*id].cpus->dai_name) in create_hp_codec_dai_links()
393 struct snd_soc_dai_link_component *cpus, in create_dmic_dai_links() argument
404 links[*id].cpus = &cpus[*id]; in create_dmic_dai_links()
[all …]
Dsof_ssp_amp.c198 struct snd_soc_dai_link_component *cpus; in sof_card_dai_links_create() local
204 cpus = devm_kcalloc(dev, sof_ssp_amp_card.num_links, in sof_card_dai_links_create()
206 if (!links || !cpus) in sof_card_dai_links_create()
220 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
221 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
223 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
257 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
259 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_codec); in sof_card_dai_links_create()
260 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
269 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
[all …]
Dsof_pcm512x.c225 struct snd_soc_dai_link_component *cpus; in sof_card_dai_links_create() local
231 cpus = devm_kcalloc(dev, sof_audio_card_pcm512x.num_links, in sof_card_dai_links_create()
233 if (!links || !cpus) in sof_card_dai_links_create()
256 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
259 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
262 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
265 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, 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()
[all …]
Dsof_nau8825.c356 struct snd_soc_dai_link_component *cpus; in sof_card_dai_links_create() local
362 cpus = devm_kcalloc(dev, sof_audio_card_nau8825.num_links, in sof_card_dai_links_create()
364 if (!links || !cpus) in sof_card_dai_links_create()
384 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
387 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
390 if (!links[id].cpus->dai_name) in sof_card_dai_links_create()
399 links[id].cpus = &cpus[id]; in sof_card_dai_links_create()
400 links[id].cpus->dai_name = "DMIC01 Pin"; in sof_card_dai_links_create()
405 links[id + 1].cpus = &cpus[id + 1]; in sof_card_dai_links_create()
406 links[id + 1].cpus->dai_name = "DMIC16k Pin"; in sof_card_dai_links_create()
[all …]
/linux-6.6.21/drivers/clk/sunxi/
Dclk-sun9i-cpus.c55 struct sun9i_a80_cpus_clk *cpus = to_sun9i_a80_cpus_clk(hw); in sun9i_a80_cpus_clk_recalc_rate() local
60 reg = readl(cpus->reg); in sun9i_a80_cpus_clk_recalc_rate()
155 struct sun9i_a80_cpus_clk *cpus = to_sun9i_a80_cpus_clk(hw); in sun9i_a80_cpus_clk_set_rate() local
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()
197 cpus->reg = of_io_request_and_map(node, 0, of_node_full_name(node)); in sun9i_a80_cpus_setup()
198 if (IS_ERR(cpus->reg)) in sun9i_a80_cpus_setup()
[all …]
/linux-6.6.21/tools/lib/perf/include/perf/
Dcpumap.h34 LIBPERF_API struct perf_cpu perf_cpu_map__cpu(const struct perf_cpu_map *cpus, int idx);
35 LIBPERF_API int perf_cpu_map__nr(const struct perf_cpu_map *cpus);
49 #define perf_cpu_map__for_each_cpu(cpu, idx, cpus) \ argument
50 for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \
51 (idx) < perf_cpu_map__nr(cpus); \
52 (idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx))
54 #define perf_cpu_map__for_each_idx(idx, cpus) \ argument
55 for ((idx) = 0; (idx) < perf_cpu_map__nr(cpus); (idx)++)
/linux-6.6.21/tools/perf/util/
Dperf_api_probe.c63 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.6.21/tools/perf/tests/
Dopenat-syscall-all-cpus.c27 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()
Devent-times.c115 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()
/linux-6.6.21/drivers/cpufreq/
Dcpufreq-dt.c30 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()
232 ret = dev_pm_opp_of_get_sharing_cpus(cpu_dev, priv->cpus); in dt_cpufreq_early_init()
242 if (dev_pm_opp_get_sharing_cpus(cpu_dev, 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()
277 ret = dev_pm_opp_set_sharing_cpus(cpu_dev, priv->cpus); in dt_cpufreq_early_init()
[all …]
/linux-6.6.21/tools/testing/selftests/cgroup/
Dtest_cpuset_prs.sh102 echo $EXPECTED_VAL > cpuset.cpus.partition
104 ACTUAL_VAL=$(cat cpuset.cpus.partition)
115 ACTUAL_VAL=$(cat cpuset.cpus.effective)
142 echo 2-3 > cpuset.cpus
143 TYPE=$(cat cpuset.cpus.partition)
144 [[ $TYPE = member ]] || echo member > cpuset.cpus.partition
173 echo 2-3 > cpuset.cpus
187 echo 2 > cpuset.cpus
191 echo 2-3 > cpuset.cpus
363 PFILE=$CGRP/cpuset.cpus.partition
[all …]
/linux-6.6.21/include/linux/
Dstop_machine.h114 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.6.21/Documentation/devicetree/bindings/csky/
Dcpus.txt6 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.6.21/scripts/gdb/linux/
Dinterrupts.py8 from linux import cpus
39 for cpu in cpus.each_online_cpu():
40 any_count += cpus.per_cpu(desc['kstat_irqs'], cpu)
46 for cpu in cpus.each_online_cpu():
48 count = cpus.per_cpu(desc['kstat_irqs'], cpu)
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.6.21/tools/testing/selftests/riscv/hwprobe/
Dhwprobe.c11 size_t cpu_count, unsigned long *cpus, unsigned int flags);
16 unsigned long cpus; in main() local
20 cpus = -1; in main()
28 out = riscv_hwprobe(pairs, 8, 1, &cpus, 0); in main()
53 out = riscv_hwprobe(pairs, 8, 0, &cpus, 0); in main()
66 out = riscv_hwprobe(pairs, 1, 1, &cpus, 0); in main()
/linux-6.6.21/sound/soc/samsung/
Dsnow.c146 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.6.21/tools/testing/selftests/rcutorture/bin/
Djitter.sh58 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.6.21/sound/soc/kirkwood/
Darmada-370-db.c111 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.6.21/arch/x86/hyperv/
Dmmu.c20 static u64 hyperv_flush_tlb_others_ex(const struct cpumask *cpus,
60 static void hyperv_flush_tlb_multi(const struct cpumask *cpus, in hyperv_flush_tlb_multi() argument
69 trace_hyperv_mmu_flush_tlb_multi(cpus, info); in hyperv_flush_tlb_multi()
97 if (cpumask_equal(cpus, cpu_present_mask)) { in hyperv_flush_tlb_multi()
111 cpu = cpumask_last(cpus); in hyperv_flush_tlb_multi()
116 for_each_cpu(cpu, cpus) { in hyperv_flush_tlb_multi()
162 status = hyperv_flush_tlb_others_ex(cpus, info); in hyperv_flush_tlb_multi()
170 native_flush_tlb_multi(cpus, info); in hyperv_flush_tlb_multi()
173 static u64 hyperv_flush_tlb_others_ex(const struct cpumask *cpus, in hyperv_flush_tlb_others_ex() argument
201 nr_bank = cpumask_to_vpset_skip(&flush->hv_vp_set, cpus, in hyperv_flush_tlb_others_ex()
/linux-6.6.21/arch/riscv/kernel/vdso/
Dhwprobe.c11 size_t cpu_count, unsigned long *cpus,
16 size_t cpu_count, unsigned long *cpus,
20 size_t cpu_count, unsigned long *cpus, in __vdso_riscv_hwprobe() argument
25 bool all_cpus = !cpu_count && !cpus; in __vdso_riscv_hwprobe()
36 return riscv_hwprobe(pairs, pair_count, cpu_count, cpus, flags); in __vdso_riscv_hwprobe()

12345678910>>...50