Home
last modified time | relevance | path

Searched refs:NUM_SPIN_LOCKS (Results 1 – 8 of 8) sorted by relevance

/hal_rpi_pico-latest/test/hardware_sync_spin_lock_test/
Dhardware_sync_spin_lock_test.c11 uint counter_local[NUM_CORES][NUM_SPIN_LOCKS];
12 uint counter_shared[NUM_SPIN_LOCKS];
27 for (int i = 0; i < NUM_SPIN_LOCKS; ++i) { in prepare_clear_counters()
40 for (int i = 0; i < NUM_SPIN_LOCKS; ++i) { in check_counter_sums()
116 counter_test_per_core(NUM_SPIN_LOCKS - 1); in counter_test1()
120 counter_test_per_core((NUM_SPIN_LOCKS - 1) >> 1); in counter_test2()
124 counter_test_per_core((NUM_SPIN_LOCKS - 1) >> 2); in counter_test3()
128 counter_test_per_core((NUM_SPIN_LOCKS - 1) >> 3); in counter_test4()
132 counter_test_per_core((NUM_SPIN_LOCKS - 1) >> 4); in counter_test5()
136 counter_try_test_per_core(NUM_SPIN_LOCKS - 1); in counter_try_test1()
[all …]
/hal_rpi_pico-latest/src/rp2_common/hardware_sync_spin_lock/
Dsync_spin_lock.c9 for (uint i = 0; i < NUM_SPIN_LOCKS; i++) { in spin_locks_reset()
15 assert(lock_num < NUM_SPIN_LOCKS); in spin_lock_init()
22 spin_lock_t _sw_spin_locks[NUM_SPIN_LOCKS];
/hal_rpi_pico-latest/src/host/pico_platform/include/hardware/
Dplatform_defs.h19 #define NUM_SPIN_LOCKS 32u macro
23 #define NUM_SPIN_LOCKS 32u macro
/hal_rpi_pico-latest/src/rp2_common/hardware_sync_spin_lock/include/hardware/sync/
Dspin_lock.h96 extern spin_lock_t _sw_spin_locks[NUM_SPIN_LOCKS]; \
103 extern spin_lock_t _sw_spin_locks[NUM_SPIN_LOCKS]; \
226 invalid_params_if(HARDWARE_SYNC, lock_num >= NUM_SPIN_LOCKS); in spin_lock_instance()
243 invalid_params_if(HARDWARE_SYNC, lock_num >= (uint)NUM_SPIN_LOCKS); in spin_lock_get_num()
247 … (uint) lock >= NUM_SPIN_LOCKS * sizeof(spin_lock_t) + SIO_BASE + SIO_SPINLOCK0_OFFSET || in spin_lock_get_num()
/hal_rpi_pico-latest/src/host/hardware_sync/
Dsync_core0_only.c14 } _spinlocks[NUM_SPIN_LOCKS];
38 assert(lock_num < NUM_SPIN_LOCKS); in PICO_WEAK_FUNCTION_DEF()
110 for (uint i = 0; i < NUM_SPIN_LOCKS; i++) { in PICO_WEAK_FUNCTION_DEF()
/hal_rpi_pico-latest/src/common/pico_sync/
Dlock_core.c10 valid_params_if(LOCK_CORE, lock_num < NUM_SPIN_LOCKS); in lock_init()
/hal_rpi_pico-latest/src/rp2040/hardware_regs/include/hardware/
Dplatform_defs.h31 #define NUM_SPIN_LOCKS _u(32) macro
/hal_rpi_pico-latest/src/rp2350/hardware_regs/include/hardware/
Dplatform_defs.h32 #define NUM_SPIN_LOCKS _u(32) macro