Home
last modified time | relevance | path

Searched refs:arch_num_cpus (Results 1 – 25 of 53) sorted by relevance

123

/Zephyr-latest/tests/boards/intel_adsp/smoke/src/
Dsmpboot.c43 unsigned int num_cpus = arch_num_cpus(); in ZTEST()
45 if (arch_num_cpus() < 2) { in ZTEST()
76 if (arch_num_cpus() < 2) { in ZTEST()
Dcpus.c47 __ASSERT_NO_MSG(cpu < arch_num_cpus()); in run_on_cpu()
145 unsigned int num_cpus = arch_num_cpus(); in ZTEST()
162 uint32_t all_cpus = BIT(arch_num_cpus()) - 1; in halt_and_restart()
204 unsigned int num_cpus = arch_num_cpus(); in halt_and_restart_thread()
/Zephyr-latest/kernel/
Dipi.c19 if (arch_num_cpus() > 1) { in flag_ipi()
33 uint32_t num_cpus = (uint32_t)arch_num_cpus(); in ipi_mask_create()
79 if (arch_num_cpus() > 1) { in signal_pending_ipi()
/Zephyr-latest/soc/intel/intel_adsp/cavs/
Dmultiprocessing.c32 unsigned int num_cpus = arch_num_cpus(); in soc_mp_startup()
109 unsigned int num_cpus = arch_num_cpus(); in soc_start_core()
129 unsigned int num_cpus = arch_num_cpus(); in send_ipi()
164 unsigned int num_cpus = arch_num_cpus(); in idc_isr()
179 unsigned int num_cpus = arch_num_cpus(); in soc_mp_init()
/Zephyr-latest/drivers/watchdog/
Dwdt_intel_adsp.c75 for (i = 0; i < arch_num_cpus(); i++) { in intel_adsp_wdt_setup()
123 if (channel_id >= arch_num_cpus()) { in intel_adsp_wdt_feed()
157 for (i = 0; i < arch_num_cpus(); i++) { in intel_adsp_wdt_init()
186 if (channel_id >= arch_num_cpus()) { in intel_adsp_watchdog_pause()
206 if (channel_id >= arch_num_cpus()) { in intel_adsp_watchdog_resume()
/Zephyr-latest/include/zephyr/arch/mips/
Darch_inlines.h12 static ALWAYS_INLINE unsigned int arch_num_cpus(void) in arch_num_cpus() function
/Zephyr-latest/include/zephyr/arch/nios2/
Darch_inlines.h12 static ALWAYS_INLINE unsigned int arch_num_cpus(void) in arch_num_cpus() function
/Zephyr-latest/include/zephyr/arch/posix/
Darch_inlines.h12 static ALWAYS_INLINE unsigned int arch_num_cpus(void) in arch_num_cpus() function
/Zephyr-latest/include/zephyr/arch/sparc/
Darch_inlines.h12 static ALWAYS_INLINE unsigned int arch_num_cpus(void) in arch_num_cpus() function
/Zephyr-latest/tests/kernel/smp/src/
Dmain.c218 unsigned int num_threads = arch_num_cpus(); in spin_for_threads_exit()
270 unsigned int num_threads = arch_num_cpus(); in cleanup_resources()
318 unsigned int num_threads = arch_num_cpus(); in ZTEST()
370 unsigned int num_threads = arch_num_cpus(); in ZTEST()
411 unsigned int num_threads = arch_num_cpus(); in ZTEST()
444 unsigned int num_threads = arch_num_cpus(); in ZTEST()
477 unsigned int num_threads = arch_num_cpus(); in ZTEST()
559 unsigned int num_threads = arch_num_cpus(); in ZTEST()
740 TC_PRINT("cpu num=%d", arch_num_cpus()); in ZTEST()
1127 unsigned int num_threads = arch_num_cpus(); in signal_raise()
[all …]
/Zephyr-latest/include/zephyr/arch/x86/
Darch_inlines.h42 static ALWAYS_INLINE unsigned int arch_num_cpus(void) in arch_num_cpus() function
/Zephyr-latest/include/zephyr/arch/arc/
Darch_inlines.h39 static ALWAYS_INLINE unsigned int arch_num_cpus(void) in arch_num_cpus() function
/Zephyr-latest/include/zephyr/arch/arm/
Darch_inlines.h39 static ALWAYS_INLINE unsigned int arch_num_cpus(void) in arch_num_cpus() function
/Zephyr-latest/include/zephyr/arch/arm64/
Darch_inlines.h37 static ALWAYS_INLINE unsigned int arch_num_cpus(void) in arch_num_cpus() function
/Zephyr-latest/arch/arc/core/
Dsmp.c143 unsigned int num_cpus = arch_num_cpus(); in arch_sched_directed_ipi()
194 z_arc_connect_gfrc_core_set((1 << arch_num_cpus()) - 1); in arch_smp_init()
/Zephyr-latest/include/zephyr/arch/riscv/
Darch_inlines.h40 static ALWAYS_INLINE unsigned int arch_num_cpus(void) in arch_num_cpus() function
/Zephyr-latest/soc/intel/intel_adsp/ace/
Dmultiprocessing.c97 unsigned int num_cpus = arch_num_cpus(); in soc_mp_init()
227 unsigned int num_cpus = arch_num_cpus(); in send_ipi()
263 CHECKIF(id <= 0 || id >= arch_num_cpus()) { in soc_adsp_halt_cpu()
/Zephyr-latest/drivers/interrupt_controller/
Dintc_dw_ace.c89 unsigned int num_cpus = arch_num_cpus(); in dw_ace_irq_enable()
105 unsigned int num_cpus = arch_num_cpus(); in dw_ace_irq_disable()
Dintc_plic.c259 for (uint32_t cpu_num = 0; cpu_num < arch_num_cpus(); cpu_num++) { in plic_irq_enable_set_state()
319 for (uint32_t cpu_num = 0; cpu_num < arch_num_cpus(); cpu_num++) { in local_irq_is_enabled()
440 if ((cpumask & ~BIT_MASK(arch_num_cpus())) != 0) { in riscv_plic_irq_set_affinity()
489 offset = arch_num_cpus() * config->nr_irqs + local_irq; in get_irq_hit_count_total()
591 for (uint32_t cpu_num = 0; cpu_num < arch_num_cpus(); cpu_num++) { in plic_init()
653 for (int cpu_id = 0; cpu_id < arch_num_cpus(); cpu_id++) { in cmd_stats_get()
671 for (int cpu_id = 0; cpu_id < arch_num_cpus(); cpu_id++) { in cmd_stats_get()
749 if ((mask & ~BIT_MASK(arch_num_cpus())) != 0) { in cmd_affinity_set()
750 shell_error(sh, "cpumask: 0x%X num_cpus: %d", mask, arch_num_cpus()); in cmd_affinity_set()
Dintc_arcv2_irq_unit.c72 z_arc_connect_idu_set_dest(i, BIT_MASK(arch_num_cpus())); in arc_shared_intc_update_post_smp()
/Zephyr-latest/soc/intel/intel_adsp/common/
Dclk.c70 unsigned int num_cpus = arch_num_cpus(); in adsp_clock_set_cpu_freq()
114 unsigned int num_cpus = arch_num_cpus(); in adsp_clock_init()
/Zephyr-latest/include/zephyr/arch/xtensa/
Darch_inlines.h86 static ALWAYS_INLINE unsigned int arch_num_cpus(void) in arch_num_cpus() function
/Zephyr-latest/arch/x86/core/
Dprep_c.c78 unsigned int num_cpus = arch_num_cpus(); in z_prep_c()
/Zephyr-latest/tests/drivers/clock_control/adsp_clock/src/
Dmain.c13 unsigned int num_cpus = arch_num_cpus(); in check_clocks()
/Zephyr-latest/arch/riscv/core/
Dipi_clint.c27 unsigned int num_cpus = arch_num_cpus(); in arch_sched_directed_ipi()

123