Home
last modified time | relevance | path

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

12345678910>>...51

/linux/tools/lib/perf/
A Dcpumap.c39 if (cpus) in perf_cpu_map__new_any_cpu()
42 return cpus; in perf_cpu_map__new_any_cpu()
97 return cpus; in cpu_map__new_sysconf()
110 return cpus; in cpu_map__new_sysfs_online()
117 if (cpus) in perf_cpu_map__new_online_cpus()
118 return cpus; in perf_cpu_map__new_online_cpus()
158 return cpus; in cpu_map__trim_new()
214 return cpus; in perf_cpu_map__read()
307 if (cpus && idx < __perf_cpu_map__nr(cpus)) in perf_cpu_map__cpu()
315 return cpus ? __perf_cpu_map__nr(cpus) : 1; in perf_cpu_map__nr()
[all …]
/linux/tools/testing/selftests/riscv/hwprobe/
A Dwhich-cpus.c29 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 …]
A Dcbo.c89 cpu_set_t *cpus = (cpu_set_t *)arg; in test_zicboz() local
94 rc = riscv_hwprobe(&pair, 1, sizeof(cpu_set_t), (unsigned long *)cpus, 0); in test_zicboz()
132 static void check_no_zicboz_cpus(cpu_set_t *cpus) in check_no_zicboz_cpus() argument
141 while (i++ < CPU_COUNT(cpus)) { in check_no_zicboz_cpus()
142 while (!CPU_ISSET(c, cpus)) in check_no_zicboz_cpus()
183 cpu_set_t cpus; in main() local
194 rc = sched_getaffinity(0, sizeof(cpu_set_t), &cpus); in main()
200 rc = riscv_hwprobe(&pair, 1, sizeof(cpu_set_t), (unsigned long *)&cpus, 0); in main()
209 check_no_zicboz_cpus(&cpus); in main()
222 tests[i].test_fn(&cpus); in main()
/linux/arch/riscv/kernel/
A Dsys_hwprobe.c28 for_each_cpu(cpu, cpus) { in hwprobe_arch_id()
81 for_each_cpu(cpu, cpus) { in hwprobe_isa_ext0()
174 for_each_cpu(cpu, cpus) { in hwprobe_misaligned()
264 cpumask_t cpus; in hwprobe_get_values() local
275 cpumask_clear(&cpus); in hwprobe_get_values()
290 cpumask_and(&cpus, &cpus, cpu_online_mask); in hwprobe_get_values()
319 cpumask_t cpus, one_cpu; in hwprobe_get_cpus() local
337 if (cpumask_empty(&cpus)) in hwprobe_get_cpus()
340 cpumask_and(&cpus, &cpus, cpu_online_mask); in hwprobe_get_cpus()
378 cpumask_clear(&cpus); in hwprobe_get_cpus()
[all …]
/linux/sound/soc/intel/boards/
A Dsof_board_helpers.c195 if (!cpus) in set_ssp_codec_link()
209 link->cpus = cpus; in set_ssp_codec_link()
234 if (!cpus) in set_dmic_link()
255 link->cpus = cpus; in set_dmic_link()
292 if (!cpus) in set_idisp_hdmi_link()
299 link->cpus = cpus; in set_idisp_hdmi_link()
351 if (!cpus) in set_ssp_amp_link()
358 link->cpus = cpus; in set_ssp_amp_link()
390 if (!cpus) in set_bt_offload_link()
397 link->cpus = cpus; in set_bt_offload_link()
[all …]
A Dsof_pcm512x.c225 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 …]
/linux/tools/lib/perf/tests/
A Dtest-cpumap.c16 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()
A Dtest-evlist.c36 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/tools/testing/selftests/cgroup/
A Dtest_cpuset_prs.sh79 echo 0-6 > test/cpuset.cpus
84 echo "" > test/cpuset.cpus
454 CFILE=$CGRP/cpuset.cpus
551 CPUS=$DIR/cpuset.cpus
555 PRS=$DIR/cpuset.cpus.partition
585 FILE=cpuset.cpus.effective
872 echo 2-3 > cpuset.cpus
903 echo 2-3 > cpuset.cpus
917 echo 2 > cpuset.cpus
921 echo 2-3 > cpuset.cpus
[all …]
/linux/tools/lib/perf/include/perf/
A Dcpumap.h59 LIBPERF_API int perf_cpu_map__nr(const struct perf_cpu_map *cpus);
89 #define perf_cpu_map__for_each_cpu(cpu, idx, cpus) \ argument
90 for ((idx) = 0, (cpu) = perf_cpu_map__cpu(cpus, idx); \
91 (idx) < perf_cpu_map__nr(cpus); \
92 (idx)++, (cpu) = perf_cpu_map__cpu(cpus, idx))
94 #define perf_cpu_map__for_each_cpu_skip_any(_cpu, idx, cpus) \ argument
95 for ((idx) = 0, (_cpu) = perf_cpu_map__cpu(cpus, idx); \
96 (idx) < perf_cpu_map__nr(cpus); \
97 (idx)++, (_cpu) = perf_cpu_map__cpu(cpus, idx)) \
100 #define perf_cpu_map__for_each_idx(idx, cpus) \ argument
[all …]
/linux/arch/riscv/kernel/vdso/
A Dhwprobe.c12 size_t cpusetsize, unsigned long *cpus,
16 size_t cpusetsize, unsigned long *cpus, in riscv_vdso_get_values() argument
21 bool all_cpus = !cpusetsize && !cpus; in riscv_vdso_get_values()
32 return riscv_hwprobe(pairs, pair_count, cpusetsize, cpus, flags); in riscv_vdso_get_values()
51 size_t cpusetsize, unsigned long *cpus, in riscv_vdso_get_cpus() argument
58 unsigned char *c = (unsigned char *)cpus; in riscv_vdso_get_cpus()
63 if (!cpusetsize || !cpus) in riscv_vdso_get_cpus()
103 size_t cpusetsize, unsigned long *cpus,
107 size_t cpusetsize, unsigned long *cpus, in __vdso_riscv_hwprobe() argument
112 cpus, flags); in __vdso_riscv_hwprobe()
[all …]
/linux/drivers/clk/sunxi/
A Dclk-sun9i-cpus.c57 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/drivers/cpufreq/
A Dcpufreq-dt.c30 cpumask_var_t cpus; member
50 if (cpumask_test_cpu(cpu, priv->cpus)) in cpufreq_dt_find_data()
115 cpumask_copy(policy->cpus, priv->cpus); in cpufreq_init()
196 if (!zalloc_cpumask_var(&priv->cpus, GFP_KERNEL)) in dt_cpufreq_early_init()
199 cpumask_set_cpu(cpu, priv->cpus); in dt_cpufreq_early_init()
242 ret = dev_pm_opp_of_cpumask_add_table(priv->cpus); in dt_cpufreq_early_init()
261 cpumask_setall(priv->cpus); in dt_cpufreq_early_init()
279 dev_pm_opp_of_cpumask_remove_table(priv->cpus); in dt_cpufreq_early_init()
282 free_cpumask_var(priv->cpus); in dt_cpufreq_early_init()
293 dev_pm_opp_of_cpumask_remove_table(priv->cpus); in dt_cpufreq_release()
[all …]
/linux/tools/perf/util/
A Dperf_api_probe.c63 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/tools/perf/tests/
A 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_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()
A 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/tools/perf/arch/arm64/util/
A Dheader.c17 static int _get_cpuid(char *buf, size_t sz, struct perf_cpu_map *cpus) in _get_cpuid() argument
26 perf_cpu_map__for_each_cpu(cpu, idx, cpus) { in _get_cpuid()
55 struct perf_cpu_map *cpus = perf_cpu_map__new_online_cpus(); in get_cpuid() local
58 if (!cpus) in get_cpuid()
61 ret = _get_cpuid(buf, sz, cpus); in get_cpuid()
63 perf_cpu_map__put(cpus); in get_cpuid()
73 if (!pmu || !pmu->cpus) in get_cpuid_str()
81 res = _get_cpuid(buf, MIDR_SIZE, pmu->cpus); in get_cpuid_str()
/linux/include/linux/
A 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/Documentation/devicetree/bindings/csky/
A 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/scripts/gdb/linux/
A Dinterrupts.py8 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/sound/soc/samsung/
A Dsnow.c145 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/tools/testing/selftests/rcutorture/bin/
A 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/sound/soc/kirkwood/
A 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/arch/x86/hyperv/
A 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/drivers/irqchip/
A Dirq-bcm7038-l1.c41 struct bcm7038_l1_cpu *cpus[NR_CPUS]; member
127 cpu = intc->cpus[cpu_logical_map(smp_processor_id())]; in bcm7038_l1_irq_handle()
129 cpu = intc->cpus[0]; in bcm7038_l1_irq_handle()
157 intc->cpus[cpu_idx]->mask_cache[word] &= ~mask; in __bcm7038_l1_unmask()
158 l1_writel(mask, intc->cpus[cpu_idx]->map_base + in __bcm7038_l1_unmask()
168 intc->cpus[cpu_idx]->mask_cache[word] |= mask; in __bcm7038_l1_mask()
169 l1_writel(mask, intc->cpus[cpu_idx]->map_base + in __bcm7038_l1_mask()
312 intc->cpus[boot_cpu]->map_base + reg_mask_set(intc, word)); in bcm7038_l1_suspend()
334 l1_writel(intc->cpus[boot_cpu]->mask_cache[word], in bcm7038_l1_resume()
336 l1_writel(~intc->cpus[boot_cpu]->mask_cache[word], in bcm7038_l1_resume()
[all …]

Completed in 57 milliseconds

12345678910>>...51