/Zephyr-Core-3.5.0/include/zephyr/drivers/ |
D | hwspinlock.h | 11 * @brief HW spinlock Interface 12 * @defgroup hwspinlock_interface HW spinlock Interface 29 * @brief Callback API for trying to lock HW spinlock 35 * @brief Callback API to lock HW spinlock 41 * @brief Callback API to unlock HW spinlock 47 * @brief Callback API to get HW spinlock max ID 63 * @brief Try to lock HW spinlock 65 * This function is used for try to lock specific HW spinlock. It should 68 * @param dev HW spinlock device instance. 69 * @param id Spinlock identifier. [all …]
|
/Zephyr-Core-3.5.0/drivers/hwspinlock/ |
D | Kconfig | 1 # HW spinlock configuration options 7 bool "HW spinlock Support" 9 Include support for HW spinlock. 14 int "HW spinlock init priority" 17 HW spinlock driver device initialization priority.
|
D | Kconfig.sqn | 1 # Sequans HW spinlock configuration 7 bool "Sequans HW spinlock Driver" 11 Enable HW spinlock for SQN 15 int "Sequans HW spinlock relax time" 18 Default HW spinlock relax time in microseconds.
|
D | sqn_hwspinlock.c | 53 * core has already locked the HW spinlock. in sqn_hwspinlock_trylock() 54 * If not, we try to lock the HW spinlock by writing cpuid, then check in sqn_hwspinlock_trylock() 80 * Writing cpuid is equivalent to trying to lock HW spinlock, after in sqn_hwspinlock_lock() 107 * If the HW spinlock register value is equal to the cpuid and we write in sqn_hwspinlock_unlock()
|
/Zephyr-Core-3.5.0/tests/kernel/spinlock/src/ |
D | spinlock_error_case.c | 9 #include <zephyr/spinlock.h> 89 * @brief Test spinlock cannot be recursive 91 * @details Validate using spinlock recursive will trigger assertion. 97 ZTEST(spinlock, test_spinlock_no_recursive) in ZTEST() argument 110 * @brief Test unlocking incorrect spinlock 112 * @details Validate unlocking incorrect spinlock will trigger assertion. 118 ZTEST(spinlock, test_spinlock_unlock_error) in ZTEST() argument 129 * @brief Test unlocking incorrect spinlock 131 * @details Validate unlocking incorrect spinlock will trigger assertion. 137 ZTEST(spinlock, test_spinlock_release_error) in ZTEST() argument [all …]
|
D | main.c | 9 #include <zephyr/spinlock.h> 25 * @brief Tests for spinlock 27 * @defgroup kernel_spinlock_tests Spinlock Tests 36 * @brief Test basic spinlock 42 ZTEST(spinlock, test_spinlock_basic) in ZTEST() argument 47 zassert_true(!z_spin_is_locked(&l), "Spinlock initialized to locked"); in ZTEST() 51 zassert_true(z_spin_is_locked(&l), "Spinlock failed to lock"); in ZTEST() 55 zassert_true(!z_spin_is_locked(&l), "Spinlock failed to unlock"); in ZTEST() 121 * @brief Test spinlock with bounce 127 ZTEST(spinlock, test_spinlock_bounce) in ZTEST() argument [all …]
|
/Zephyr-Core-3.5.0/tests/kernel/spinlock/ |
D | testcase.yaml | 2 kernel.multiprocessing.spinlock: 6 - spinlock 10 kernel.multiprocessing.spinlock.minimallibc: 14 - spinlock
|
D | CMakeLists.txt | 5 project(spinlock) project
|
/Zephyr-Core-3.5.0/include/zephyr/ |
D | spinlock.h | 28 * @brief Spinlock APIs 29 * @defgroup spinlock_apis Spinlock APIs 81 /* There's a spinlock validation framework available when asserts are 98 * @brief Spinlock key type 100 * This type defines a "key" value used by a spinlock implementation 114 __ASSERT(z_spin_lock_valid(l), "Invalid spinlock %p", l); in z_spinlock_validate_pre() 133 * @brief Lock a spinlock 135 * This routine locks the specified spinlock, returning a key handle 156 * @param l A pointer to the spinlock to lock 167 * actually a wrapper for a global spinlock! in k_spin_lock() [all …]
|
D | kernel_includes.h | 40 #include <zephyr/spinlock.h>
|
/Zephyr-Core-3.5.0/tests/posix/common/src/ |
D | spinlock.c | 34 "failed to initialize spinlock %zu (rep %zu)", i, j); in ZTEST() 45 "failed to destroy spinlock %zu (rep %zu)", i, j); in ZTEST()
|
/Zephyr-Core-3.5.0/drivers/timer/ |
D | ambiq_stimer.c | 20 #include <zephyr/spinlock.h> 42 /* Spinlock to sync between Compare ISR and update of Compare register */
|
D | litex_timer.c | 13 #include <zephyr/spinlock.h>
|
D | gecko_burtc_timer.c | 26 #include <zephyr/spinlock.h> 69 /* Spinlock to sync between Compare ISR and update of Compare register */
|
/Zephyr-Core-3.5.0/soc/xtensa/espressif_esp32/esp32s3/ |
D | esp32s3-mp.c | 9 #include <zephyr/spinlock.h>
|
/Zephyr-Core-3.5.0/lib/posix/ |
D | spinlock.c | 55 /* if the provided spinlock does not claim to be initialized, its invalid */ in get_posix_spinlock() 67 /* The spinlock claims to be initialized but is actually not */ in get_posix_spinlock()
|
D | Kconfig | 53 source "lib/posix/Kconfig.spinlock"
|
D | CMakeLists.txt | 59 zephyr_library_sources_ifdef(CONFIG_PTHREAD_SPINLOCK spinlock.c)
|
/Zephyr-Core-3.5.0/kernel/include/ |
D | kswap.h | 10 #include <zephyr/spinlock.h> 22 /* In SMP, the irq_lock() is a spinlock which is implicitly released 111 /* We always take the scheduler spinlock if we don't already in do_swap()
|
/Zephyr-Core-3.5.0/lib/os/ |
D | heap_listener.c | 7 #include <zephyr/spinlock.h>
|
/Zephyr-Core-3.5.0/subsys/random/ |
D | rand32_timer.c | 20 #include <zephyr/spinlock.h>
|
/Zephyr-Core-3.5.0/drivers/counter/ |
D | counter_ace_v1x_art.c | 11 #include <zephyr/spinlock.h>
|
/Zephyr-Core-3.5.0/kernel/ |
D | futex.c | 9 #include <zephyr/spinlock.h>
|
D | atomic_c.c | 23 #include <zephyr/spinlock.h> 27 /* Single global spinlock for atomic operations. This is fallback 36 * functions as system calls, since in user mode locking a spinlock is
|
/Zephyr-Core-3.5.0/arch/x86/core/ |
D | efi.c | 7 #include <zephyr/spinlock.h> 82 * implicitly break the spinlock we're using. The OS will be able to
|