/openbmc/qemu/hw/misc/ |
H A D | a9scu.c | 29 return (((1 << s->num_cpu) - 1) << 4) | (s->num_cpu - 1); in a9_scu_read() 105 if (!s->num_cpu || s->num_cpu > A9_SCU_CPU_MAX) { in a9_scu_realize() 106 error_setg(errp, "Illegal CPU count: %u", s->num_cpu); in a9_scu_realize() 127 DEFINE_PROP_UINT32("num-cpu", A9SCUState, num_cpu, 1),
|
H A D | arm11scu.c | 27 id = ((1 << s->num_cpu) - 1) << 4; in mpcore_scu_read() 28 return id | (s->num_cpu - 1); in mpcore_scu_read() 79 DEFINE_PROP_UINT32("num-cpu", ARM11SCUState, num_cpu, 1),
|
/openbmc/qemu/hw/cpu/ |
H A D | arm11mpcore.c | 41 for (i = 0; i < (s->num_cpu + 1); i++) { in mpcore_priv_map_setup() 49 for (i = 0; i < (s->num_cpu + 1); i++) { in mpcore_priv_map_setup() 62 for (i = 0; i < s->num_cpu; i++) { in mpcore_priv_map_setup() 80 qdev_prop_set_uint32(scudev, "num-cpu", s->num_cpu); in mpcore_priv_realize() 85 qdev_prop_set_uint32(gicdev, "num-cpu", s->num_cpu); in mpcore_priv_realize() 101 qdev_prop_set_uint32(mptimerdev, "num-cpu", s->num_cpu); in mpcore_priv_realize() 106 qdev_prop_set_uint32(wdtimerdev, "num-cpu", s->num_cpu); in mpcore_priv_realize() 135 DEFINE_PROP_UINT32("num-cpu", ARM11MPCorePriveState, num_cpu, 1),
|
H A D | a9mpcore.c | 69 qdev_prop_set_uint32(scudev, "num-cpu", s->num_cpu); in a9mp_priv_realize() 76 qdev_prop_set_uint32(gicdev, "num-cpu", s->num_cpu); in a9mp_priv_realize() 100 qdev_prop_set_uint32(gtimerdev, "num-cpu", s->num_cpu); in a9mp_priv_realize() 107 qdev_prop_set_uint32(mptimerdev, "num-cpu", s->num_cpu); in a9mp_priv_realize() 114 qdev_prop_set_uint32(wdtdev, "num-cpu", s->num_cpu); in a9mp_priv_realize() 150 for (i = 0; i < s->num_cpu; i++) { in a9mp_priv_realize() 162 DEFINE_PROP_UINT32("num-cpu", A9MPPrivState, num_cpu, 1),
|
H A D | a15mpcore.c | 62 qdev_prop_set_uint32(gicdev, "num-cpu", s->num_cpu); in a15mp_priv_realize() 93 for (i = 0; i < s->num_cpu; i++) { in a15mp_priv_realize() 113 sysbus_connect_irq(SYS_BUS_DEVICE(gicdev), i + 4 * s->num_cpu, in a15mp_priv_realize() 138 for (i = 0; i < s->num_cpu; i++) { in a15mp_priv_realize() 141 4 + s->num_cpu + i); in a15mp_priv_realize() 148 DEFINE_PROP_UINT32("num-cpu", A15MPPrivState, num_cpu, 1),
|
H A D | realview_mpcore.c | 31 uint32_t num_cpu; member 71 qdev_prop_set_uint32(priv, "num-cpu", s->num_cpu); in realview_mpcore_realize() 112 DEFINE_PROP_UINT32("num-cpu", mpcore_rirq_state, num_cpu, 1),
|
/openbmc/qemu/hw/intc/ |
H A D | arm_gic_common.c | 145 i += (GIC_INTERNAL * s->num_cpu); in gic_init_irqs_and_mmio() 148 for (i = 0; i < s->num_cpu; i++) { in gic_init_irqs_and_mmio() 151 for (i = 0; i < s->num_cpu; i++) { in gic_init_irqs_and_mmio() 154 for (i = 0; i < s->num_cpu; i++) { in gic_init_irqs_and_mmio() 157 for (i = 0; i < s->num_cpu; i++) { in gic_init_irqs_and_mmio() 161 for (i = 0; i < s->num_cpu; i++) { in gic_init_irqs_and_mmio() 194 if (s->num_cpu > GIC_NCPU) { in arm_gic_common_realize() 196 s->num_cpu, GIC_NCPU); in arm_gic_common_realize() 306 if (s->num_cpu == 1) { in arm_gic_common_reset_hold() 320 for (j = 0; j < s->num_cpu; j++) { in arm_gic_common_reset_hold() [all …]
|
H A D | arm_gicv3_common.c | 328 for (i = 0; i < s->num_cpu; i++) { in gicv3_init_irqs_and_mmio() 331 for (i = 0; i < s->num_cpu; i++) { in gicv3_init_irqs_and_mmio() 334 for (i = 0; i < s->num_cpu; i++) { in gicv3_init_irqs_and_mmio() 337 for (i = 0; i < s->num_cpu; i++) { in gicv3_init_irqs_and_mmio() 340 for (i = 0; i < s->num_cpu; i++) { in gicv3_init_irqs_and_mmio() 343 for (i = 0; i < s->num_cpu; i++) { in gicv3_init_irqs_and_mmio() 398 if (s->num_cpu == 0) { in arm_gicv3_common_realize() 424 if (rdist_capacity != s->num_cpu) { in arm_gicv3_common_realize() 427 rdist_capacity, s->num_cpu); in arm_gicv3_common_realize() 438 for (i = 0; i < s->num_cpu; i++) { in arm_gicv3_common_realize() [all …]
|
H A D | loongson_ipi_common.c | 61 if (attrs.requester_id >= ipi->num_cpu) { in loongson_ipi_iocsr_readl() 182 if (cs == NULL || cs->cpu_index >= ipi->num_cpu) { in loongson_ipi_core_writel() 203 if (attrs.requester_id >= ipi->num_cpu) { in loongson_ipi_iocsr_writel() 258 if (s->num_cpu == 0) { in loongson_ipi_common_realize() 277 s->cpu = g_new0(IPICore, s->num_cpu); in loongson_ipi_common_realize() 278 for (i = 0; i < s->num_cpu; i++) { in loongson_ipi_common_realize() 312 num_cpu, vmstate_ipi_core, 319 DEFINE_PROP_UINT32("num-cpu", LoongsonIPICommonState, num_cpu, 1),
|
H A D | arm_gic_kvm.c | 246 while ((cpu < s->num_cpu && irq < GIC_INTERNAL) || cpu == 0) { in kvm_dist_get() 274 while ((cpu < s->num_cpu && irq < GIC_INTERNAL) || cpu == 0) { in kvm_dist_put() 293 int num_cpu; in kvm_arm_gic_put() local 311 num_cpu = ((reg & 0xe0) >> 5) + 1; in kvm_arm_gic_put() 317 } else if (num_cpu != s->num_cpu) { in kvm_arm_gic_put() 319 s->num_cpu, num_cpu); in kvm_arm_gic_put() 364 for (cpu = 0; cpu < s->num_cpu; cpu++) { in kvm_arm_gic_put() 406 s->num_cpu = ((reg & 0xe0) >> 5) + 1; in kvm_arm_gic_get() 451 for (cpu = 0; cpu < s->num_cpu; cpu++) { in kvm_arm_gic_get()
|
H A D | arm_gicv3.c | 267 for (i = 0; i < s->num_cpu; i++) { in gicv3_update_noirqset() 310 for (i = 0; i < s->num_cpu; i++) { in gicv3_update_noirqset() 330 for (i = 0; i < s->num_cpu; i++) { in gicv3_update() 342 for (i = 0; i < s->num_cpu; i++) { in gicv3_full_update_noirqset() 354 for (i = 0; i < s->num_cpu; i++) { in gicv3_full_update_noirqset() 367 for (i = 0; i < s->num_cpu; i++) { in gicv3_full_update() 393 assert(cpu < s->num_cpu); in gicv3_set_irq() 408 for (i = 0; i < s->num_cpu; i++) { in arm_gicv3_post_load()
|
H A D | exynos4210_gic.c | 60 uint32_t n = s->num_cpu; in exynos4210_gic_realize() 64 qdev_prop_set_uint32(s->gic, "num-cpu", s->num_cpu); in exynos4210_gic_realize() 115 DEFINE_PROP_UINT32("num-cpu", Exynos4210GicState, num_cpu, 1),
|
H A D | loongson_ipi.c | 55 s->ipi_mmio_mem = g_new0(MemoryRegion, sc->num_cpu); in loongson_ipi_realize() 56 for (unsigned i = 0; i < sc->num_cpu; i++) { in loongson_ipi_realize()
|
H A D | loongarch_extioi.c | 332 if (s->num_cpu == 0) { in loongarch_extioi_realize() 355 s->cpu = g_new0(ExtIOICore, s->num_cpu); in loongarch_extioi_realize() 361 for (i = 0; i < s->num_cpu; i++) { in loongarch_extioi_realize() 423 VMSTATE_STRUCT_VARRAY_POINTER_UINT32(cpu, LoongArchExtIOI, num_cpu, 432 DEFINE_PROP_UINT32("num-cpu", LoongArchExtIOI, num_cpu, 1),
|
/openbmc/linux/samples/bpf/ |
H A D | test_overhead_user.c | 174 int num_cpu = sysconf(_SC_NPROCESSORS_ONLN); in main() local 183 num_cpu = atoi(argv[2]) ? : num_cpu; in main() 187 run_perf_test(num_cpu, test_flags); in main() 197 run_perf_test(num_cpu, test_flags >> 2); in main() 208 run_perf_test(num_cpu, test_flags >> 4); in main() 219 run_perf_test(num_cpu, test_flags >> 6); in main()
|
/openbmc/qemu/hw/timer/ |
H A D | a9gtimer.c | 56 if (current_cpu->cpu_index >= s->num_cpu) { in a9_gtimer_get_current_cpu() 58 s->num_cpu, current_cpu->cpu_index); in a9_gtimer_get_current_cpu() 88 for (i = 0; i < s->num_cpu; ++i) { in a9_gtimer_update() 287 for (i = 0; i < s->num_cpu; i++) { in a9_gtimer_reset() 304 if (s->num_cpu < 1 || s->num_cpu > A9_GTIMER_MAX_CPUS) { in a9_gtimer_realize() 315 for (i = 0; i < s->num_cpu; i++) { in a9_gtimer_realize() 365 VMSTATE_STRUCT_VARRAY_UINT32(per_cpu, A9GTimerState, num_cpu, 377 DEFINE_PROP_UINT32("num-cpu", A9GTimerState, num_cpu, 0),
|
H A D | arm_mptimer.c | 48 if (cpu_id >= s->num_cpu) { in get_current_cpu() 50 s->num_cpu, cpu_id); in get_current_cpu() 255 if (s->num_cpu < 1 || s->num_cpu > ARM_MPTIMER_MAX_CPUS) { in arm_mptimer_realize() 270 for (i = 0; i < s->num_cpu; i++) { in arm_mptimer_realize() 297 VMSTATE_STRUCT_VARRAY_UINT32(timerblock, ARMMPTimerState, num_cpu, 304 DEFINE_PROP_UINT32("num-cpu", ARMMPTimerState, num_cpu, 0),
|
/openbmc/linux/tools/bpf/bpftool/skeleton/ |
H A D | profiler.bpf.c | 41 const volatile __u32 num_cpu = 1; variable 70 key += num_cpu; in BPF_PROG() 110 err = bpf_perf_event_read_value(&events, cpu + i * num_cpu, in BPF_PROG()
|
/openbmc/linux/tools/perf/util/ |
H A D | cs-etm-base.c | 169 int num_cpu; in cs_etm__process_auxtrace_info() local 188 num_cpu = ptr[CS_PMU_TYPE_CPUS] & 0xffffffff; in cs_etm__process_auxtrace_info() 189 cs_etm__print_auxtrace_info(ptr, num_cpu); in cs_etm__process_auxtrace_info()
|
H A D | cs-etm.c | 71 int num_cpu; member 294 for (i = 0; i < etm->num_cpu; i++) { in get_cpu_data() 869 for (i = 0; i < aux->num_cpu; i++) in cs_etm__free() 1028 int decoders = formatted ? etm->num_cpu : 1; in cs_etm__alloc_queue() 3132 for (j = 0; j < num_cpu; j++) { in cs_etm__has_virtual_ts() 3157 for (i = 0; i < num_cpu; i++) { in cs_etm__map_trace_ids_metadata() 3189 for (i = 0; i < num_cpu; i++) { in cs_etm__clear_unused_trace_ids_metadata() 3218 int num_cpu; in cs_etm__process_auxtrace_info_full() local 3252 for (j = 0; j < num_cpu; j++) { in cs_etm__process_auxtrace_info_full() 3319 etm->num_cpu = num_cpu; in cs_etm__process_auxtrace_info_full() [all …]
|
/openbmc/openbmc-build-scripts/ |
H A D | build-setup.sh | 90 num_cpu=${num_cpu:-$(nproc)} 353 BB_NUMBER_THREADS = "$num_cpu" 354 PARALLEL_MAKE = "-j$num_cpu"
|
/openbmc/qemu/include/hw/misc/ |
H A D | arm11scu.h | 26 uint32_t num_cpu; member
|
H A D | a9scu.h | 26 uint32_t num_cpu; member
|
/openbmc/qemu/include/hw/cpu/ |
H A D | a15mpcore.h | 37 uint32_t num_cpu; member
|
H A D | arm11mpcore.h | 25 uint32_t num_cpu; member
|