Home
last modified time | relevance | path

Searched refs:cpu_nr (Results 1 – 21 of 21) sorted by relevance

/openbmc/qemu/contrib/elf2dmp/
H A Dqemu_elf.c69 size_t cpu_nr = 0; in init_states() local
84 cpu_nr, state->size); in init_states()
91 cpu_nr++; in init_states()
95 printf("%zu CPU states has been found\n", cpu_nr); in init_states()
97 qe->state = g_new(QEMUCPUState*, cpu_nr); in init_states()
99 cpu_nr = 0; in init_states()
103 qe->state[cpu_nr] = nhdr_get_desc(nhdr); in init_states()
104 cpu_nr++; in init_states()
108 qe->state_nr = cpu_nr; in init_states()
/openbmc/linux/kernel/locking/
H A Dosq_lock.c20 static inline int encode_cpu(int cpu_nr) in encode_cpu() argument
22 return cpu_nr + 1; in encode_cpu()
32 int cpu_nr = encoded_cpu_val - 1; in decode_cpu() local
34 return per_cpu_ptr(&osq_node, cpu_nr); in decode_cpu()
/openbmc/linux/arch/powerpc/kvm/
H A Dtrace.h105 __field( __u32, cpu_nr )
110 __entry->cpu_nr = vcpu->vcpu_id;
115 __entry->cpu_nr, __entry->requests)
H A Dtrace_booke.h184 __field( __u32, cpu_nr )
190 __entry->cpu_nr = vcpu->vcpu_id;
196 __entry->cpu_nr,
/openbmc/linux/drivers/macintosh/
H A Dwindfarm_ad7417_sensor.c237 int cpu_nr; in wf_ad7417_probe() local
250 cpu_nr = 0; in wf_ad7417_probe()
252 cpu_nr = 1; in wf_ad7417_probe()
257 mpu = wf_get_mpu(cpu_nr); in wf_ad7417_probe()
270 pv->cpu = cpu_nr; in wf_ad7417_probe()
/openbmc/linux/arch/s390/include/asm/
H A Dtopology.h57 static inline int topology_cpu_dedicated(int cpu_nr) { return 0; } in topology_cpu_dedicated() argument
58 static inline int topology_booted_cores(int cpu_nr) { return 1; } in topology_booted_cores() argument
H A Dsmp.h14 #define raw_smp_processor_id() (S390_lowcore.cpu_nr)
H A Dlowcore.h154 __u32 cpu_nr; /* 0x03a0 */ member
/openbmc/linux/arch/powerpc/platforms/chrp/
H A Dsmp.c40 static void smp_chrp_setup_cpu(int cpu_nr) in smp_chrp_setup_cpu() argument
/openbmc/linux/arch/powerpc/platforms/powermac/
H A Dsmp.c400 static void __init smp_psurge_setup_cpu(int cpu_nr) in smp_psurge_setup_cpu() argument
405 if (cpu_nr != 0 || !psurge_start) in smp_psurge_setup_cpu()
836 static void smp_core99_setup_cpu(int cpu_nr) in smp_core99_setup_cpu() argument
839 if (cpu_nr != 0) in smp_core99_setup_cpu()
840 core99_init_caches(cpu_nr); in smp_core99_setup_cpu()
/openbmc/linux/arch/s390/include/uapi/asm/
H A Dhwctrset.h37 __u32 cpu_nr; /* CPU number */ member
/openbmc/linux/arch/powerpc/platforms/86xx/
H A Dmpc86xx_smp.c97 smp_86xx_setup_cpu(int cpu_nr) in smp_86xx_setup_cpu() argument
/openbmc/linux/drivers/thermal/
H A Darmada_thermal.c111 unsigned int cpu_nr; member
326 if (channel < 0 || channel > priv->data->cpu_nr) in armada_select_channel()
637 .cpu_nr = 4,
661 .cpu_nr = 4,
932 for (sensor_id = 0; sensor_id <= priv->data->cpu_nr; sensor_id++) { in armada_thermal_probe()
/openbmc/linux/fs/xfs/
H A Dxfs_log_cil.c562 unsigned int cpu_nr; in xlog_cil_insert_items() local
586 cpu_nr = get_cpu(); in xlog_cil_insert_items()
590 if (!cpumask_test_cpu(cpu_nr, &ctx->cil_pcpmask)) in xlog_cil_insert_items()
591 cpumask_test_and_set_cpu(cpu_nr, &ctx->cil_pcpmask); in xlog_cil_insert_items()
H A Dxfs_icache.c2070 unsigned int cpu_nr; in xfs_inodegc_queue() local
2078 cpu_nr = get_cpu(); in xfs_inodegc_queue()
2091 if (!cpumask_test_cpu(cpu_nr, &mp->m_inodegc_cpumask)) in xfs_inodegc_queue()
2092 cpumask_test_and_set_cpu(cpu_nr, &mp->m_inodegc_cpumask); in xfs_inodegc_queue()
/openbmc/linux/arch/powerpc/platforms/85xx/
H A Dsmp.c470 static void smp_85xx_setup_cpu(int cpu_nr) in smp_85xx_setup_cpu() argument
/openbmc/linux/arch/s390/kernel/
H A Dsmp.c209 lc->cpu_nr = cpu; in pcpu_alloc_lowcore()
261 lc->cpu_nr = cpu; in pcpu_prepare_secondary()
1037 S390_lowcore.cpu_nr = 0; in smp_setup_processor_id()
H A Dperf_cpum_cf.c1468 (bytes + sizeof(((struct s390_ctrset_cpudata *)0)->cpu_nr) + in cfset_needspace()
1486 rc = put_user(cpu, &ctrset_cpudata->cpu_nr); in cfset_all_copy()
/openbmc/linux/tools/perf/util/
H A Dheader.c1708 int cpu_nr = ph->env.nr_cpus_avail; in print_cpu_topology() local
1740 for (i = 0; i < cpu_nr; i++) in print_cpu_topology()
1751 for (i = 0; i < cpu_nr; i++) in print_cpu_topology()
2580 int cpu_nr = ff->ph->env.nr_cpus_avail; in process_cpu_topology() local
2585 ph->env.cpu = calloc(cpu_nr, sizeof(*ph->env.cpu)); in process_cpu_topology()
2647 for (i = 0; i < (u32)cpu_nr; i++) { in process_cpu_topology()
2657 if (do_core_id_test && nr != (u32)-1 && nr > (u32)cpu_nr) { in process_cpu_topology()
2693 for (i = 0; i < (u32)cpu_nr; i++) { in process_cpu_topology()
/openbmc/qemu/hw/arm/
H A Dxlnx-zynqmp.c207 static inline int arm_gic_ppi_index(int cpu_nr, int ppi_index) in arm_gic_ppi_index() argument
209 return GIC_NUM_SPI_INTR + cpu_nr * GIC_INTERNAL + ppi_index; in arm_gic_ppi_index()
/openbmc/linux/tools/arch/x86/kcpuid/
H A Dcpuid.csv237 0xB, 0, EBX, 15:0, cpu_nr, Number of logical processors at this level type