/openbmc/qemu/target/arm/tcg/ |
H A D | cpu32.c | 23 void aa32_max_features(ARMCPU *cpu) in aa32_max_features() 128 ARMCPU *cpu = ARM_CPU(obj); in arm926_initfn() local 155 ARMCPU *cpu = ARM_CPU(obj); in arm946_initfn() local 168 ARMCPU *cpu = ARM_CPU(obj); in arm1026_initfn() local 208 ARMCPU *cpu = ARM_CPU(obj); in arm1136_r2_initfn() local 246 ARMCPU *cpu = ARM_CPU(obj); in arm1136_initfn() local 277 ARMCPU *cpu = ARM_CPU(obj); in arm1176_initfn() local 309 ARMCPU *cpu = ARM_CPU(obj); in arm11mpcore_initfn() local 345 ARMCPU *cpu = ARM_CPU(obj); in cortex_a8_initfn() local 414 ARMCPU *cpu = ARM_CPU(obj); in cortex_a9_initfn() local [all …]
|
H A D | cpu64.c | 60 ARMCPU *cpu = ARM_CPU(obj); in aarch64_a35_initfn() local 142 ARMCPU *cpu = ARM_CPU(obj); in cpu_max_get_sve_max_vq() local 157 ARMCPU *cpu = ARM_CPU(obj); in cpu_max_set_sve_max_vq() local 176 ARMCPU *cpu = ARM_CPU(obj); in cpu_arm_get_rme() local 182 ARMCPU *cpu = ARM_CPU(obj); in cpu_arm_set_rme() local 193 ARMCPU *cpu = ARM_CPU(obj); in cpu_max_set_l0gptsz() local 218 ARMCPU *cpu = ARM_CPU(obj); in cpu_max_get_l0gptsz() local 229 ARMCPU *cpu = ARM_CPU(obj); in aarch64_a55_initfn() local 298 ARMCPU *cpu = ARM_CPU(obj); in aarch64_a72_initfn() local 354 ARMCPU *cpu = ARM_CPU(obj); in aarch64_a76_initfn() local [all …]
|
/openbmc/linux/include/linux/ |
H A D | topology.h | 94 static inline int cpu_to_node(int cpu) in cpu_to_node() 151 static inline int cpu_to_mem(int cpu) in cpu_to_mem() 175 static inline int cpu_to_mem(int cpu) in cpu_to_mem() 200 #define topology_die_id(cpu) ((void)(cpu), -1) argument 203 #define topology_cluster_id(cpu) ((void)(cpu), -1) argument 206 #define topology_core_id(cpu) ((void)(cpu), 0) argument 209 #define topology_book_id(cpu) ((void)(cpu), -1) argument 212 #define topology_drawer_id(cpu) ((void)(cpu), -1) argument 215 #define topology_ppin(cpu) ((void)(cpu), 0ull) argument 221 #define topology_core_cpumask(cpu) cpumask_of(cpu) argument [all …]
|
H A D | cpumask.h | 281 #define for_each_cpu(cpu, mask) \ argument 315 #define for_each_cpu_wrap(cpu, mask, start) \ argument 332 #define for_each_cpu_and(cpu, mask1, mask2) \ argument 367 #define for_each_cpu_or(cpu, mask1, mask2) \ argument 764 #define cpumask_of(cpu) (get_cpu_mask(cpu)) argument 999 set_cpu_present(unsigned int cpu, bool present) in set_cpu_present() 1010 set_cpu_active(unsigned int cpu, bool active) in set_cpu_active() 1019 set_cpu_dying(unsigned int cpu, bool dying) in set_cpu_dying() 1080 static inline bool cpu_online(unsigned int cpu) in cpu_online() 1100 static inline bool cpu_dying(unsigned int cpu) in cpu_dying() [all …]
|
/openbmc/qemu/system/ |
H A D | cpus.c | 105 CPUState *cpu; in all_cpu_threads_idle() local 119 CPUState *cpu; in hw_error() local 135 CPUState *cpu; in cpu_synchronize_all_states() local 144 CPUState *cpu; in cpu_synchronize_all_post_reset() local 153 CPUState *cpu; in cpu_synchronize_all_post_init() local 162 CPUState *cpu; in cpu_synchronize_all_pre_loadvm() local 571 void cpu_pause(CPUState *cpu) in cpu_pause() 590 CPUState *cpu; in all_vcpus_paused() local 603 CPUState *cpu; in pause_all_vcpus() local 629 CPUState *cpu; in resume_all_vcpus() local [all …]
|
/openbmc/qemu/target/arm/ |
H A D | machine.c | 14 ARMCPU *cpu = opaque; in vfp_needed() local 43 ARMCPU *cpu = opaque; in vfp_fpcr_fpsr_needed() local 53 ARMCPU *cpu = opaque; in get_fpscr() local 67 ARMCPU *cpu = opaque; in put_fpscr() local 84 ARMCPU *cpu = opaque; in get_fpcr() local 95 ARMCPU *cpu = opaque; in put_fpcr() local 111 ARMCPU *cpu = opaque; in get_fpsr() local 122 ARMCPU *cpu = opaque; in put_fpsr() local 225 ARMCPU *cpu = opaque; in iwmmxt_needed() local 251 ARMCPU *cpu = opaque; in sve_needed() local [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | topology.h | 53 static inline int early_cpu_to_node(int cpu) in early_cpu_to_node() 76 static inline int early_cpu_to_node(int cpu) { return 0; } in early_cpu_to_node() 105 static inline void map_cpu_to_node(int cpu, int node) {} in map_cpu_to_node() 107 static inline void unmap_cpu_from_node(unsigned long cpu) {} in unmap_cpu_from_node() 117 static inline void find_and_update_cpu_nid(int cpu) {} in find_and_update_cpu_nid() 118 static inline int cpu_to_coregroup_id(int cpu) in cpu_to_coregroup_id() 137 #define topology_physical_package_id(cpu) (cpu_to_chip_id(cpu)) argument 140 #define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu)) argument 141 #define topology_core_id(cpu) (cpu_to_core_id(cpu)) argument 151 static inline bool topology_is_primary_thread(unsigned int cpu) in topology_is_primary_thread() [all …]
|
H A D | smp.h | 97 static inline int get_hard_smp_processor_id(int cpu) in get_hard_smp_processor_id() 102 static inline void set_hard_smp_processor_id(int cpu, int phys) in set_hard_smp_processor_id() 113 static inline struct cpumask *cpu_sibling_mask(int cpu) in cpu_sibling_mask() 118 static inline struct cpumask *cpu_core_mask(int cpu) in cpu_core_mask() 123 static inline struct cpumask *cpu_l2_cache_mask(int cpu) in cpu_l2_cache_mask() 128 static inline struct cpumask *cpu_smallcore_mask(int cpu) in cpu_smallcore_mask() 141 static inline const struct cpumask *cpu_smt_mask(int cpu) in cpu_smt_mask() 193 static inline const struct cpumask *cpu_sibling_mask(int cpu) in cpu_sibling_mask() 203 static inline const struct cpumask *cpu_l2_cache_mask(int cpu) in cpu_l2_cache_mask() 210 static inline int get_hard_smp_processor_id(int cpu) in get_hard_smp_processor_id() [all …]
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | topology.h | 56 static inline int early_cpu_to_node(int cpu) in early_cpu_to_node() 94 static inline int early_cpu_to_node(int cpu) in early_cpu_to_node() 111 #define topology_die_id(cpu) (cpu_data(cpu).cpu_die_id) argument 112 #define topology_core_id(cpu) (cpu_data(cpu).cpu_core_id) argument 113 #define topology_ppin(cpu) (cpu_data(cpu).ppin) argument 118 #define topology_cluster_id(cpu) (per_cpu(cpu_l2c_id, cpu)) argument 119 #define topology_die_cpumask(cpu) (per_cpu(cpu_die_map, cpu)) argument 120 #define topology_cluster_cpumask(cpu) (cpu_clustergroup_mask(cpu)) argument 121 #define topology_core_cpumask(cpu) (per_cpu(cpu_core_map, cpu)) argument 152 static inline bool topology_is_primary_thread(unsigned int cpu) in topology_is_primary_thread() [all …]
|
/openbmc/qemu/target/i386/hvf/ |
H A D | x86.c | 49 bool x86_read_segment_descriptor(CPUState *cpu, in x86_read_segment_descriptor() 79 bool x86_write_segment_descriptor(CPUState *cpu, in x86_write_segment_descriptor() 102 bool x86_read_call_gate(CPUState *cpu, struct x86_call_gate *idt_desc, in x86_read_call_gate() 118 bool x86_is_protected(CPUState *cpu) in x86_is_protected() 124 bool x86_is_real(CPUState *cpu) in x86_is_real() 129 bool x86_is_v8086(CPUState *cpu) in x86_is_v8086() 136 bool x86_is_long_mode(CPUState *cpu) in x86_is_long_mode() 141 bool x86_is_long64_mode(CPUState *cpu) in x86_is_long64_mode() 149 bool x86_is_paging_mode(CPUState *cpu) in x86_is_paging_mode() 155 bool x86_is_pae_enabled(CPUState *cpu) in x86_is_pae_enabled() [all …]
|
H A D | x86.h | 229 #define AX(cpu) RX(cpu, R_EAX) argument 230 #define CX(cpu) RX(cpu, R_ECX) argument 231 #define DX(cpu) RX(cpu, R_EDX) argument 232 #define BP(cpu) RX(cpu, R_EBP) argument 233 #define SP(cpu) RX(cpu, R_ESP) argument 234 #define BX(cpu) RX(cpu, R_EBX) argument 235 #define SI(cpu) RX(cpu, R_ESI) argument 236 #define DI(cpu) RX(cpu, R_EDI) argument 239 #define AL(cpu) RL(cpu, R_EAX) argument 240 #define CL(cpu) RL(cpu, R_ECX) argument [all …]
|
/openbmc/qemu/target/i386/ |
H A D | machine.c | 221 X86CPU *cpu = opaque; in cpu_pre_save() local 315 X86CPU *cpu = opaque; in cpu_post_load() local 410 X86CPU *cpu = opaque; in async_pf_msr_needed() local 417 X86CPU *cpu = opaque; in async_pf_int_msr_needed() local 424 X86CPU *cpu = opaque; in pv_eoi_msr_needed() local 431 X86CPU *cpu = opaque; in steal_time_msr_needed() local 438 X86CPU *cpu = opaque; in exception_info_needed() local 468 X86CPU *cpu = opaque; in poll_control_msr_needed() local 530 X86CPU *cpu = opaque; in fpop_ip_dp_needed() local 551 X86CPU *cpu = opaque; in tsc_adjust_needed() local [all …]
|
/openbmc/linux/arch/powerpc/platforms/cell/ |
H A D | pmu.c | 62 u32 cbe_read_phys_ctr(u32 cpu, u32 phys_ctr) in cbe_read_phys_ctr() 114 u32 cbe_read_ctr(u32 cpu, u32 ctr) in cbe_read_ctr() 128 void cbe_write_ctr(u32 cpu, u32 ctr, u32 val) in cbe_write_ctr() 153 u32 cbe_read_pm07_control(u32 cpu, u32 ctr) in cbe_read_pm07_control() 175 u32 cbe_read_pm(u32 cpu, enum pm_reg_name reg) in cbe_read_pm() 259 u32 cbe_get_ctr_size(u32 cpu, u32 phys_ctr) in cbe_get_ctr_size() 297 void cbe_enable_pm(u32 cpu) in cbe_enable_pm() 310 void cbe_disable_pm(u32 cpu) in cbe_disable_pm() 324 void cbe_read_trace_buffer(u32 cpu, u64 *buf) in cbe_read_trace_buffer() 337 u32 cbe_get_and_clear_pm_interrupts(u32 cpu) in cbe_get_and_clear_pm_interrupts() [all …]
|
/openbmc/linux/tools/power/cpupower/utils/ |
H A D | cpufreq-info.c | 58 unsigned int cpu, nr_cpus; in proc_cpufreq_output() local 126 static int get_boost_mode_x86(unsigned int cpu) in get_boost_mode_x86() 210 static int get_boost_mode(unsigned int cpu) in get_boost_mode() 297 static int get_driver(unsigned int cpu) in get_driver() 311 static int get_policy(unsigned int cpu) in get_policy() 333 static int get_available_governors(unsigned int cpu) in get_available_governors() 356 static int get_affected_cpus(unsigned int cpu) in get_affected_cpus() 377 static int get_related_cpus(unsigned int cpu) in get_related_cpus() 443 static int get_perf_cap(unsigned int cpu) in get_perf_cap() 452 static void debug_output_one(unsigned int cpu) in debug_output_one() [all …]
|
/openbmc/linux/arch/arm/mach-bcm/ |
H A D | platsmp-brcmstb.c | 59 static int per_cpu_sw_state_rd(u32 cpu) in per_cpu_sw_state_rd() 65 static void per_cpu_sw_state_wr(u32 cpu, int val) in per_cpu_sw_state_wr() 72 static inline void per_cpu_sw_state_wr(u32 cpu, int val) { } in per_cpu_sw_state_wr() 75 static void __iomem *pwr_ctrl_get_base(u32 cpu) in pwr_ctrl_get_base() 82 static u32 pwr_ctrl_rd(u32 cpu) in pwr_ctrl_rd() 119 static void cpu_rst_cfg_set(u32 cpu, int set) in cpu_rst_cfg_set() 137 static void brcmstb_cpu_boot(u32 cpu) in brcmstb_cpu_boot() 152 static void brcmstb_cpu_power_on(u32 cpu) in brcmstb_cpu_power_on() 176 static int brcmstb_cpu_get_power_state(u32 cpu) in brcmstb_cpu_get_power_state() 184 static void brcmstb_cpu_die(u32 cpu) in brcmstb_cpu_die() [all …]
|
/openbmc/qemu/accel/tcg/ |
H A D | cpu-exec.c | 147 bool tcg_cflags_has(CPUState *cpu, uint32_t flags) in tcg_cflags_has() 152 void tcg_cflags_set(CPUState *cpu, uint32_t flags) in tcg_cflags_set() 157 uint32_t curr_cflags(CPUState *cpu) in curr_cflags() 289 static void log_cpu_exec(vaddr pc, CPUState *cpu, in log_cpu_exec() 403 CPUState *cpu = env_cpu(env); in HELPER() local 513 static void cpu_exec_enter(CPUState *cpu) in cpu_exec_enter() 522 static void cpu_exec_exit(CPUState *cpu) in cpu_exec_exit() 568 void cpu_exec_step_atomic(CPUState *cpu) in cpu_exec_step_atomic() 952 cpu_exec_loop(CPUState *cpu, SyncClocks *sc) in cpu_exec_loop() 1042 int cpu_exec(CPUState *cpu) in cpu_exec() [all …]
|
/openbmc/qemu/hw/core/ |
H A D | cpu-common.c | 39 CPUState *cpu; in cpu_by_arch_id() local 59 CPUState *cpu = CPU(object_new(typename)); in cpu_create() local 70 void cpu_reset_interrupt(CPUState *cpu, int mask) in cpu_reset_interrupt() 83 void cpu_exit(CPUState *cpu) in cpu_exit() 101 void cpu_dump_state(CPUState *cpu, FILE *f, int flags) in cpu_dump_state() 111 void cpu_reset(CPUState *cpu) in cpu_reset() 120 CPUState *cpu = CPU(obj); in cpu_common_reset_hold() local 197 CPUState *cpu = CPU(dev); in cpu_common_realizefn() local 223 CPUState *cpu = CPU(dev); in cpu_common_unrealizefn() local 238 CPUState *cpu = CPU(obj); in cpu_common_initfn() local [all …]
|
H A D | cpu-sysemu.c | 26 bool cpu_paging_enabled(const CPUState *cpu) in cpu_paging_enabled() 37 bool cpu_get_memory_mapping(CPUState *cpu, MemoryMappingList *list, in cpu_get_memory_mapping() 50 hwaddr cpu_get_phys_page_attrs_debug(CPUState *cpu, vaddr addr, in cpu_get_phys_page_attrs_debug() 63 hwaddr cpu_get_phys_page_debug(CPUState *cpu, vaddr addr) in cpu_get_phys_page_debug() 70 int cpu_asidx_from_attrs(CPUState *cpu, MemTxAttrs attrs) in cpu_asidx_from_attrs() 81 int cpu_write_elf32_qemunote(WriteCoreDumpFunction f, CPUState *cpu, in cpu_write_elf32_qemunote() 92 int cpu_write_elf32_note(WriteCoreDumpFunction f, CPUState *cpu, in cpu_write_elf32_note() 103 int cpu_write_elf64_qemunote(WriteCoreDumpFunction f, CPUState *cpu, in cpu_write_elf64_qemunote() 114 int cpu_write_elf64_note(WriteCoreDumpFunction f, CPUState *cpu, in cpu_write_elf64_note() 125 bool cpu_virtio_is_big_endian(CPUState *cpu) in cpu_virtio_is_big_endian() [all …]
|
/openbmc/linux/drivers/base/ |
H A D | cacheinfo.c | 28 #define per_cpu_cacheinfo_idx(cpu, idx) \ argument 57 bool last_level_cache_is_valid(unsigned int cpu) in last_level_cache_is_valid() 203 static int cache_setup_of_node(unsigned int cpu) in cache_setup_of_node() 287 int init_of_cache_level(unsigned int cpu) in init_of_cache_level() 334 int __weak cache_setup_acpi(unsigned int cpu) in cache_setup_acpi() 466 int __weak early_cache_level(unsigned int cpu) in early_cache_level() 471 int __weak init_cache_level(unsigned int cpu) in init_cache_level() 482 int allocate_cache_info(int cpu) in allocate_cache_info() 494 int fetch_cache_info(unsigned int cpu) in fetch_cache_info() 564 int detect_cache_attributes(unsigned int cpu) in detect_cache_attributes() [all …]
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | smp.c | 370 void arch_smp_send_reschedule(int cpu) in arch_smp_send_reschedule() 384 unsigned int cpu; in arch_send_call_function_ipi_mask() local 581 unsigned int cpu; in tick_broadcast() local 603 int cpu; in crash_send_ipi() local 1060 int cpu; in init_big_cores() local 1091 unsigned int cpu, num_threads; in smp_prepare_cpus() local 1240 int is_cpu_dead(unsigned int cpu) in is_cpu_dead() 1356 int cpu_to_core_id(int cpu) in cpu_to_core_id() 1373 int cpu_core_index_of_thread(int cpu) in cpu_core_index_of_thread() 1744 int cpu = smp_processor_id(); in __cpu_disable() local [all …]
|
H A D | watchdog.c | 148 int cpu = raw_smp_processor_id(); in wd_lockup_ipi() local 182 static bool set_cpu_stuck(int cpu) in set_cpu_stuck() 200 static void watchdog_smp_panic(int cpu) in watchdog_smp_panic() 263 static void wd_smp_clear_cpu_pending(int cpu) in wd_smp_clear_cpu_pending() 372 int cpu = raw_smp_processor_id(); in DEFINE_INTERRUPT_HANDLER_NMI() local 439 int cpu = smp_processor_id(); in watchdog_timer_fn() local 457 int cpu = smp_processor_id(); in arch_touch_nmi_watchdog() local 474 int cpu = smp_processor_id(); in start_watchdog() local 512 int cpu = smp_processor_id(); in stop_watchdog() local 551 int cpu; in watchdog_hardlockup_stop() local [all …]
|
/openbmc/qemu/target/riscv/ |
H A D | machine.c | 29 RISCVCPU *cpu = opaque; in pmp_needed() local 36 RISCVCPU *cpu = opaque; in pmp_post_load() local 74 RISCVCPU *cpu = opaque; in hyper_needed() local 130 RISCVCPU *cpu = opaque; in vector_needed() local 155 RISCVCPU *cpu = opaque; in pointermasking_needed() local 207 RISCVCPU *cpu = opaque; in cpu_kvmtimer_post_load() local 231 RISCVCPU *cpu = opaque; in debug_needed() local 238 RISCVCPU *cpu = opaque; in debug_post_load() local 265 RISCVCPU *cpu = opaque; in riscv_cpu_post_load() local 275 RISCVCPU *cpu = opaque; in smstateen_needed() local [all …]
|
/openbmc/qemu/target/s390x/ |
H A D | interrupt.c | 45 void cpu_inject_clock_comparator(S390CPU *cpu) in cpu_inject_clock_comparator() 53 void cpu_inject_cpu_timer(S390CPU *cpu) in cpu_inject_cpu_timer() 72 int cpu_inject_external_call(S390CPU *cpu, uint16_t src_cpu_addr) in cpu_inject_external_call() 87 void cpu_inject_restart(S390CPU *cpu) in cpu_inject_restart() 100 void cpu_inject_stop(S390CPU *cpu) in cpu_inject_stop() 143 bool s390_cpu_has_mcck_int(S390CPU *cpu) in s390_cpu_has_mcck_int() 161 bool s390_cpu_has_ext_int(S390CPU *cpu) in s390_cpu_has_ext_int() 203 bool s390_cpu_has_io_int(S390CPU *cpu) in s390_cpu_has_io_int() 215 bool s390_cpu_has_restart_int(S390CPU *cpu) in s390_cpu_has_restart_int() 222 bool s390_cpu_has_stop_int(S390CPU *cpu) in s390_cpu_has_stop_int() [all …]
|
/openbmc/linux/kernel/ |
H A D | smpboot.c | 30 struct task_struct *idle_thread_get(unsigned int cpu) in idle_thread_get() 50 static __always_inline void idle_init(unsigned int cpu) in idle_init() 68 unsigned int cpu, boot_cpu; in idle_threads_init() local 85 unsigned int cpu; member 170 __smpboot_create_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in __smpboot_create_thread() 213 int smpboot_create_threads(unsigned int cpu) in smpboot_create_threads() 236 int smpboot_unpark_threads(unsigned int cpu) in smpboot_unpark_threads() 247 static void smpboot_park_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in smpboot_park_thread() 255 int smpboot_park_threads(unsigned int cpu) in smpboot_park_threads() 268 unsigned int cpu; in smpboot_destroy_threads() local [all …]
|
/openbmc/linux/arch/arm/kernel/ |
H A D | smp.c | 238 static void ipi_teardown(int cpu) in ipi_teardown() 254 unsigned int cpu = smp_processor_id(); in __cpu_disable() local 320 unsigned int cpu = smp_processor_id(); in arch_cpu_idle_dead() local 413 unsigned int cpu; in secondary_start_kernel() local 483 int cpu; in smp_cpus_done() local 548 unsigned int cpu, i; in show_ipi_list() local 598 static void ipi_cpu_stop(unsigned int cpu) in ipi_cpu_stop() 635 unsigned int cpu = smp_processor_id(); in do_handle_IPI() local 712 static void ipi_setup(int cpu) in ipi_setup() 747 void arch_smp_send_reschedule(int cpu) in arch_smp_send_reschedule() [all …]
|