Home
last modified time | relevance | path

Searched full:cpu_id (Results 1 – 25 of 173) sorted by relevance

1234567

/openbmc/linux/drivers/accel/habanalabs/include/gaudi/
H A Dgaudi_async_ids_map_extended.h18 int cpu_id; member
24 { .fc_id = 0, .cpu_id = 0, .valid = 0, .name = "" },
25 { .fc_id = 1, .cpu_id = 1, .valid = 0, .name = "" },
26 { .fc_id = 2, .cpu_id = 2, .valid = 0, .name = "" },
27 { .fc_id = 3, .cpu_id = 3, .valid = 0, .name = "" },
28 { .fc_id = 4, .cpu_id = 4, .valid = 0, .name = "" },
29 { .fc_id = 5, .cpu_id = 5, .valid = 0, .name = "" },
30 { .fc_id = 6, .cpu_id = 6, .valid = 0, .name = "" },
31 { .fc_id = 7, .cpu_id = 7, .valid = 0, .name = "" },
32 { .fc_id = 8, .cpu_id = 8, .valid = 0, .name = "" },
[all …]
/openbmc/linux/drivers/accel/habanalabs/include/gaudi2/
H A Dgaudi2_async_ids_map_extended.h24 int cpu_id; member
32 { .fc_id = 0, .cpu_id = 0, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
34 { .fc_id = 1, .cpu_id = 1, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
36 { .fc_id = 2, .cpu_id = 2, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
38 { .fc_id = 3, .cpu_id = 3, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
40 { .fc_id = 4, .cpu_id = 4, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
42 { .fc_id = 5, .cpu_id = 5, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
44 { .fc_id = 6, .cpu_id = 6, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
46 { .fc_id = 7, .cpu_id = 7, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
48 { .fc_id = 8, .cpu_id = 8, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
[all …]
/openbmc/linux/include/trace/events/
H A Dpower.h18 TP_PROTO(unsigned int state, unsigned int cpu_id),
20 TP_ARGS(state, cpu_id),
24 __field( u32, cpu_id )
29 __entry->cpu_id = cpu_id;
32 TP_printk("state=%lu cpu_id=%lu", (unsigned long)__entry->state,
33 (unsigned long)__entry->cpu_id)
38 TP_PROTO(unsigned int state, unsigned int cpu_id),
40 TP_ARGS(state, cpu_id)
45 TP_PROTO(unsigned int cpu_id, unsigned int state, bool below),
47 TP_ARGS(cpu_id, state, below),
[all …]
H A Drseq.h18 __field(s32, cpu_id)
24 __entry->cpu_id = raw_smp_processor_id();
25 __entry->node_id = cpu_to_node(__entry->cpu_id);
29 TP_printk("cpu_id=%d node_id=%d mm_cid=%d", __entry->cpu_id,
/openbmc/linux/tools/testing/selftests/rseq/
H A Drseq-riscv-bits.h20 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
25 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, "%l[error1]") in RSEQ_TEMPLATE_IDENTIFIER()
32 : [cpu_id] "r" (cpu), in RSEQ_TEMPLATE_IDENTIFIER()
55 rseq_bug("cpu_id comparison failed"); in RSEQ_TEMPLATE_IDENTIFIER()
74 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
79 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, "%l[error1]") in RSEQ_TEMPLATE_IDENTIFIER()
89 : [cpu_id] "r" (cpu), in RSEQ_TEMPLATE_IDENTIFIER()
112 rseq_bug("cpu_id comparison failed"); in RSEQ_TEMPLATE_IDENTIFIER()
128 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
131 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, "%l[error1]") in RSEQ_TEMPLATE_IDENTIFIER()
[all …]
H A Drseq-arm64-bits.h27 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
32 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in RSEQ_TEMPLATE_IDENTIFIER()
39 : [cpu_id] "r" (cpu), in RSEQ_TEMPLATE_IDENTIFIER()
64 rseq_bug("cpu_id comparison failed"); in RSEQ_TEMPLATE_IDENTIFIER()
85 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
90 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in RSEQ_TEMPLATE_IDENTIFIER()
100 : [cpu_id] "r" (cpu), in RSEQ_TEMPLATE_IDENTIFIER()
126 rseq_bug("cpu_id comparison failed"); in RSEQ_TEMPLATE_IDENTIFIER()
144 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
147 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in RSEQ_TEMPLATE_IDENTIFIER()
[all …]
H A Drseq-x86-bits.h29 RSEQ_ASM_CMP_CPU_ID(cpu_id, RSEQ_ASM_TP_SEGMENT:RSEQ_TEMPLATE_CPU_ID_OFFSET(%[rseq_offset]), 4f) in RSEQ_TEMPLATE_IDENTIFIER()
35 …RSEQ_ASM_CMP_CPU_ID(cpu_id, RSEQ_ASM_TP_SEGMENT:RSEQ_TEMPLATE_CPU_ID_OFFSET(%[rseq_offset]), %l[er… in RSEQ_TEMPLATE_IDENTIFIER()
45 : [cpu_id] "r" (cpu), in RSEQ_TEMPLATE_IDENTIFIER()
69 rseq_bug("cpu_id comparison failed"); in RSEQ_TEMPLATE_IDENTIFIER()
95 RSEQ_ASM_CMP_CPU_ID(cpu_id, RSEQ_ASM_TP_SEGMENT:RSEQ_TEMPLATE_CPU_ID_OFFSET(%[rseq_offset]), 4f) in RSEQ_TEMPLATE_IDENTIFIER()
102 …RSEQ_ASM_CMP_CPU_ID(cpu_id, RSEQ_ASM_TP_SEGMENT:RSEQ_TEMPLATE_CPU_ID_OFFSET(%[rseq_offset]), %l[er… in RSEQ_TEMPLATE_IDENTIFIER()
116 : [cpu_id] "r" (cpu), in RSEQ_TEMPLATE_IDENTIFIER()
142 rseq_bug("cpu_id comparison failed"); in RSEQ_TEMPLATE_IDENTIFIER()
161 RSEQ_ASM_CMP_CPU_ID(cpu_id, RSEQ_ASM_TP_SEGMENT:RSEQ_TEMPLATE_CPU_ID_OFFSET(%[rseq_offset]), 4f) in RSEQ_TEMPLATE_IDENTIFIER()
164 …RSEQ_ASM_CMP_CPU_ID(cpu_id, RSEQ_ASM_TP_SEGMENT:RSEQ_TEMPLATE_CPU_ID_OFFSET(%[rseq_offset]), %l[er… in RSEQ_TEMPLATE_IDENTIFIER()
[all …]
H A Drseq-s390-bits.h22 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
28 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in RSEQ_TEMPLATE_IDENTIFIER()
38 : [cpu_id] "r" (cpu), in RSEQ_TEMPLATE_IDENTIFIER()
64 rseq_bug("cpu_id comparison failed"); in RSEQ_TEMPLATE_IDENTIFIER()
90 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
97 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in RSEQ_TEMPLATE_IDENTIFIER()
111 : [cpu_id] "r" (cpu), in RSEQ_TEMPLATE_IDENTIFIER()
139 rseq_bug("cpu_id comparison failed"); in RSEQ_TEMPLATE_IDENTIFIER()
158 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
161 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in RSEQ_TEMPLATE_IDENTIFIER()
[all …]
H A Drseq-ppc-bits.h29 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
36 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in RSEQ_TEMPLATE_IDENTIFIER()
45 : [cpu_id] "r" (cpu), in RSEQ_TEMPLATE_IDENTIFIER()
71 rseq_bug("cpu_id comparison failed"); in RSEQ_TEMPLATE_IDENTIFIER()
94 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
101 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in RSEQ_TEMPLATE_IDENTIFIER()
116 : [cpu_id] "r" (cpu), in RSEQ_TEMPLATE_IDENTIFIER()
144 rseq_bug("cpu_id comparison failed"); in RSEQ_TEMPLATE_IDENTIFIER()
164 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
168 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in RSEQ_TEMPLATE_IDENTIFIER()
[all …]
H A Drseq-mips-bits.h27 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
33 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in RSEQ_TEMPLATE_IDENTIFIER()
45 : [cpu_id] "r" (cpu), in RSEQ_TEMPLATE_IDENTIFIER()
67 rseq_bug("cpu_id comparison failed"); in RSEQ_TEMPLATE_IDENTIFIER()
88 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
94 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in RSEQ_TEMPLATE_IDENTIFIER()
109 : [cpu_id] "r" (cpu), in RSEQ_TEMPLATE_IDENTIFIER()
133 rseq_bug("cpu_id comparison failed"); in RSEQ_TEMPLATE_IDENTIFIER()
151 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
154 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in RSEQ_TEMPLATE_IDENTIFIER()
[all …]
H A Drseq-arm-bits.h27 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
34 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in RSEQ_TEMPLATE_IDENTIFIER()
47 : [cpu_id] "r" (cpu), in RSEQ_TEMPLATE_IDENTIFIER()
73 rseq_bug("cpu_id comparison failed"); in RSEQ_TEMPLATE_IDENTIFIER()
95 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
102 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in RSEQ_TEMPLATE_IDENTIFIER()
118 : [cpu_id] "r" (cpu), in RSEQ_TEMPLATE_IDENTIFIER()
146 rseq_bug("cpu_id comparison failed"); in RSEQ_TEMPLATE_IDENTIFIER()
165 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, 4f) in RSEQ_TEMPLATE_IDENTIFIER()
168 RSEQ_ASM_CMP_CPU_ID(cpu_id, current_cpu_id, %l[error1]) in RSEQ_TEMPLATE_IDENTIFIER()
[all …]
/openbmc/linux/arch/loongarch/vdso/
H A Dvgetcpu.c11 int cpu_id; in read_cpu_id() local
15 : "=r" (cpu_id) in read_cpu_id()
19 return cpu_id; in read_cpu_id()
31 int cpu_id; in __vdso_getcpu() local
34 cpu_id = read_cpu_id(); in __vdso_getcpu()
37 *cpu = cpu_id; in __vdso_getcpu()
41 *node = data[cpu_id].node; in __vdso_getcpu()
/openbmc/linux/arch/powerpc/kernel/
H A Dcacheinfo.c455 * If sub-groups of threads in a core containing @cpu_id share the
463 static int get_group_id(unsigned int cpu_id, int level) in get_group_id() argument
467 cpu_id)); in get_group_id()
470 cpu_id)); in get_group_id()
473 cpu_id)); in get_group_id()
477 static void do_subsidiary_caches(struct cache *cache, unsigned int cpu_id) in do_subsidiary_caches() argument
489 group_id = get_group_id(cpu_id, level); in do_subsidiary_caches()
500 static struct cache *cache_chain_instantiate(unsigned int cpu_id) in cache_chain_instantiate() argument
506 pr_debug("creating cache object(s) for CPU %i\n", cpu_id); in cache_chain_instantiate()
508 cpu_node = of_get_cpu_node(cpu_id, NULL); in cache_chain_instantiate()
[all …]
/openbmc/linux/drivers/cpufreq/
H A Damd-pstate-trace.h34 unsigned int cpu_id,
46 cpu_id,
59 __field(unsigned int, cpu_id)
72 __entry->cpu_id = cpu_id;
77 …d_des_perf=%lu amd_max_perf=%lu freq=%llu mperf=%llu aperf=%llu tsc=%llu cpu_id=%u changed=%s fast…
85 (unsigned int)__entry->cpu_id,
/openbmc/linux/drivers/xen/
H A Dpcpu.c55 * @cpu_id: Xen physical cpu logic number
63 uint32_t cpu_id; member
77 static int xen_pcpu_down(uint32_t cpu_id) in xen_pcpu_down() argument
82 .u.cpu_ol.cpuid = cpu_id, in xen_pcpu_down()
88 static int xen_pcpu_up(uint32_t cpu_id) in xen_pcpu_up() argument
93 .u.cpu_ol.cpuid = cpu_id, in xen_pcpu_up()
124 ret = xen_pcpu_down(pcpu->cpu_id); in online_store()
127 ret = xen_pcpu_up(pcpu->cpu_id); in online_store()
187 static struct pcpu *get_pcpu(uint32_t cpu_id) in get_pcpu() argument
192 if (pcpu->cpu_id == cpu_id) in get_pcpu()
[all …]
/openbmc/u-boot/arch/arm/mach-zynq/
H A Dcpu.c113 int cpu_id = cpu_desc_id(); in arch_early_init_r() local
115 if (cpu_id < 0) in arch_early_init_r()
118 fpga.size = zynq_fpga_descs[cpu_id].fpga_size; in arch_early_init_r()
119 fpga.name = zynq_fpga_descs[cpu_id].devicename; in arch_early_init_r()
131 int cpu_id = cpu_desc_id(); in print_cpuinfo() local
133 if (cpu_id < 0) in print_cpuinfo()
140 printf("CPU: Zynq %s\n", zynq_fpga_descs[cpu_id].devicename); in print_cpuinfo()
/openbmc/linux/Documentation/trace/
H A Devents-power.rst28 cpu_idle "state=%lu cpu_id=%lu"
29 cpu_frequency "state=%lu cpu_id=%lu"
30 cpu_frequency_limits "min=%lu max=%lu cpu_id=%lu"
54 clock_enable "%s state=%lu cpu_id=%lu"
55 clock_disable "%s state=%lu cpu_id=%lu"
56 clock_set_rate "%s state=%lu cpu_id=%lu"
67 power_domain_target "%s state=%lu cpu_id=%lu"
/openbmc/linux/arch/arm64/kernel/
H A Dacpi_parking_protocol.c15 __le32 cpu_id; member
63 u32 cpu_id; in acpi_parking_protocol_cpu_boot() local
80 cpu_id = readl_relaxed(&mailbox->cpu_id); in acpi_parking_protocol_cpu_boot()
85 if (cpu_id != ~0U) { in acpi_parking_protocol_cpu_boot()
104 writel_relaxed(cpu_entry->gic_cpu_id, &mailbox->cpu_id); in acpi_parking_protocol_cpu_boot()
/openbmc/linux/arch/riscv/kernel/
H A Dcpu.c172 unsigned long riscv_cached_mvendorid(unsigned int cpu_id) in riscv_cached_mvendorid() argument
174 struct riscv_cpuinfo *ci = per_cpu_ptr(&riscv_cpuinfo, cpu_id); in riscv_cached_mvendorid()
180 unsigned long riscv_cached_marchid(unsigned int cpu_id) in riscv_cached_marchid() argument
182 struct riscv_cpuinfo *ci = per_cpu_ptr(&riscv_cpuinfo, cpu_id); in riscv_cached_marchid()
188 unsigned long riscv_cached_mimpid(unsigned int cpu_id) in riscv_cached_mimpid() argument
190 struct riscv_cpuinfo *ci = per_cpu_ptr(&riscv_cpuinfo, cpu_id); in riscv_cached_mimpid()
305 unsigned long cpu_id = (unsigned long)v - 1; in c_show() local
306 struct riscv_cpuinfo *ci = per_cpu_ptr(&riscv_cpuinfo, cpu_id); in c_show()
310 seq_printf(m, "processor\t: %lu\n", cpu_id); in c_show()
311 seq_printf(m, "hart\t\t: %lu\n", cpuid_to_hartid_map(cpu_id)); in c_show()
[all …]
/openbmc/qemu/target/i386/kvm/
H A Dvmsr_energy.h32 * @ cpu_id: CPU number last executed on
47 unsigned int cpu_id; member
81 unsigned int *cpu_id);
84 uint64_t vmsr_read_msr(uint32_t reg, uint32_t cpu_id,
91 int vmsr_get_physical_package_id(int cpu_id);
H A Dvmsr_energy.c89 uint64_t vmsr_read_msr(uint32_t reg, uint32_t cpu_id, uint32_t tid, in vmsr_read_msr() argument
103 buffer[1] = cpu_id; in vmsr_read_msr()
213 for (int cpu_id = 0; ; cpu_id++) { in vmsr_count_cpus_per_package() local
215 "topology/physical_package_id", cpu_id); in vmsr_count_cpus_per_package()
237 int vmsr_get_physical_package_id(int cpu_id) in vmsr_get_physical_package_id() argument
245 "/topology/physical_package_id", cpu_id); in vmsr_get_physical_package_id()
262 unsigned int *cpu_id) in vmsr_read_thread_stat() argument
280 utime, stime, cpu_id) != 3) in vmsr_read_thread_stat()
/openbmc/linux/kernel/sched/
H A Dmembarrier.c314 static int membarrier_private_expedited(int flags, int cpu_id) in membarrier_private_expedited() argument
351 if (cpu_id < 0 && !zalloc_cpumask_var(&tmpmask, GFP_KERNEL)) in membarrier_private_expedited()
357 if (cpu_id >= 0) { in membarrier_private_expedited()
360 if (cpu_id >= nr_cpu_ids || !cpu_online(cpu_id)) in membarrier_private_expedited()
363 p = rcu_dereference(cpu_rq(cpu_id)->curr); in membarrier_private_expedited()
383 if (cpu_id >= 0) { in membarrier_private_expedited()
385 * smp_call_function_single() will call ipi_func() if cpu_id in membarrier_private_expedited()
388 smp_call_function_single(cpu_id, ipi_func, NULL, 1); in membarrier_private_expedited()
417 if (cpu_id < 0) in membarrier_private_expedited()
589 * case it can be MEMBARRIER_CMD_FLAG_CPU, indicating that @cpu_id
[all …]
/openbmc/linux/kernel/
H A Drseq.c44 * [2] if (cpu != TLS->rseq::cpu_id)
64 * 2. Userspace tests to check whether the current cpu_id field match
91 u32 cpu_id = raw_smp_processor_id(); in rseq_update_cpu_node_id() local
92 u32 node_id = cpu_to_node(cpu_id); in rseq_update_cpu_node_id()
98 unsafe_put_user(cpu_id, &rseq->cpu_id_start, efault_end); in rseq_update_cpu_node_id()
99 unsafe_put_user(cpu_id, &rseq->cpu_id, efault_end); in rseq_update_cpu_node_id()
119 u32 cpu_id_start = 0, cpu_id = RSEQ_CPU_ID_UNINITIALIZED, node_id = 0, in rseq_reset_rseq_cpu_node_id() local
128 * Reset cpu_id to RSEQ_CPU_ID_UNINITIALIZED, so any user coming in rseq_reset_rseq_cpu_node_id()
132 if (put_user(cpu_id, &t->rseq->cpu_id)) in rseq_reset_rseq_cpu_node_id()
428 * registered, ensure the cpu_id_start and cpu_id fields in SYSCALL_DEFINE4()
/openbmc/linux/arch/s390/kernel/
H A Dprocessor.c35 struct cpuid cpu_id; member
87 struct cpuid *id = this_cpu_ptr(&cpu_info.cpu_id); in cpu_init()
152 struct cpuid *id = &per_cpu(cpu_info.cpu_id, cpu); in show_cpu_summary()
248 struct cpuid cpu_id; in setup_elf_platform() local
250 get_cpu_id(&cpu_id); in setup_elf_platform()
251 add_device_randomness(&cpu_id, sizeof(cpu_id)); in setup_elf_platform()
252 switch (cpu_id.machine) { in setup_elf_platform()
301 struct cpuid *id = &per_cpu(cpu_info.cpu_id, n); in show_cpu_ids()
/openbmc/linux/drivers/peci/
H A Ddevice.c47 static int peci_get_cpu_id(struct peci_device *device, u32 *cpu_id) in peci_get_cpu_id() argument
60 *cpu_id = peci_request_data_readl(req); in peci_get_cpu_id()
96 u32 cpu_id; in peci_device_info_init() local
99 ret = peci_get_cpu_id(device, &cpu_id); in peci_device_info_init()
103 device->info.family = peci_x86_cpu_family(cpu_id); in peci_device_info_init()
104 device->info.model = peci_x86_cpu_model(cpu_id); in peci_device_info_init()

1234567