Home
last modified time | relevance | path

Searched full:spinlock (Results 1 – 25 of 122) sorted by relevance

12345

/Zephyr-Core-3.5.0/include/zephyr/drivers/
Dhwspinlock.h11 * @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/
DKconfig1 # 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.
DKconfig.sqn1 # 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.
Dsqn_hwspinlock.c53 * 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/
Dspinlock_error_case.c9 #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 …]
Dmain.c9 #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/
Dtestcase.yaml2 kernel.multiprocessing.spinlock:
6 - spinlock
10 kernel.multiprocessing.spinlock.minimallibc:
14 - spinlock
DCMakeLists.txt5 project(spinlock) project
/Zephyr-Core-3.5.0/include/zephyr/
Dspinlock.h28 * @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 …]
Dkernel_includes.h40 #include <zephyr/spinlock.h>
/Zephyr-Core-3.5.0/tests/posix/common/src/
Dspinlock.c34 "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/
Dambiq_stimer.c20 #include <zephyr/spinlock.h>
42 /* Spinlock to sync between Compare ISR and update of Compare register */
Dlitex_timer.c13 #include <zephyr/spinlock.h>
Dgecko_burtc_timer.c26 #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/
Desp32s3-mp.c9 #include <zephyr/spinlock.h>
/Zephyr-Core-3.5.0/lib/posix/
Dspinlock.c55 /* 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()
DKconfig53 source "lib/posix/Kconfig.spinlock"
DCMakeLists.txt59 zephyr_library_sources_ifdef(CONFIG_PTHREAD_SPINLOCK spinlock.c)
/Zephyr-Core-3.5.0/kernel/include/
Dkswap.h10 #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/
Dheap_listener.c7 #include <zephyr/spinlock.h>
/Zephyr-Core-3.5.0/subsys/random/
Drand32_timer.c20 #include <zephyr/spinlock.h>
/Zephyr-Core-3.5.0/drivers/counter/
Dcounter_ace_v1x_art.c11 #include <zephyr/spinlock.h>
/Zephyr-Core-3.5.0/kernel/
Dfutex.c9 #include <zephyr/spinlock.h>
Datomic_c.c23 #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/
Defi.c7 #include <zephyr/spinlock.h>
82 * implicitly break the spinlock we're using. The OS will be able to

12345