Home
last modified time | relevance | path

Searched refs:k_spinlock (Results 1 – 25 of 204) sorted by relevance

123456789

/Zephyr-latest/lib/posix/options/
Dspinlock.c15 struct k_spinlock lock;
19 BUILD_ASSERT(sizeof(struct k_spinlock) == 0,
36 static inline size_t posix_spinlock_to_offset(struct k_spinlock *l) in posix_spinlock_to_offset()
46 static struct k_spinlock *get_posix_spinlock(pthread_spinlock_t *lock) in get_posix_spinlock()
71 return (struct k_spinlock *)&posix_spinlock_pool[bit]; in get_posix_spinlock()
99 struct k_spinlock *l; in pthread_spin_destroy()
117 struct k_spinlock *l; in pthread_spin_lock()
134 struct k_spinlock *l; in pthread_spin_trylock()
149 struct k_spinlock *l; in pthread_spin_unlock()
/Zephyr-latest/include/zephyr/
Dspinlock.h45 struct k_spinlock { struct
108 bool z_spin_lock_valid(struct k_spinlock *l); argument
109 bool z_spin_unlock_valid(struct k_spinlock *l);
110 void z_spin_lock_set_owner(struct k_spinlock *l);
114 bool z_spin_lock_mem_coherent(struct k_spinlock *l);
132 static ALWAYS_INLINE void z_spinlock_validate_pre(struct k_spinlock *l) in z_spinlock_validate_pre()
143 static ALWAYS_INLINE void z_spinlock_validate_post(struct k_spinlock *l) in z_spinlock_validate_post()
182 static ALWAYS_INLINE k_spinlock_key_t k_spin_lock(struct k_spinlock *l) in k_spin_lock()
230 static ALWAYS_INLINE int k_spin_trylock(struct k_spinlock *l, k_spinlock_key_t *k) in k_spin_trylock()
300 static ALWAYS_INLINE void k_spin_unlock(struct k_spinlock *l, in k_spin_unlock()
[all …]
/Zephyr-latest/subsys/tracing/
Dtracing_tracking.c14 struct k_spinlock _track_list_k_timer_lock;
17 struct k_spinlock _track_list_k_mem_slab_lock;
20 struct k_spinlock _track_list_k_sem_lock;
23 struct k_spinlock _track_list_k_mutex_lock;
26 struct k_spinlock _track_list_k_stack_lock;
29 struct k_spinlock _track_list_k_msgq_lock;
32 struct k_spinlock _track_list_k_mbox_lock;
36 struct k_spinlock _track_list_k_pipe_lock;
40 struct k_spinlock _track_list_k_queue_lock;
44 struct k_spinlock _track_list_k_event_lock;
/Zephyr-latest/tests/bluetooth/host/conn/mocks/
Dspinlock.c11 DEFINE_FAKE_VALUE_FUNC(bool, z_spin_lock_valid, struct k_spinlock *);
12 DEFINE_FAKE_VALUE_FUNC(bool, z_spin_unlock_valid, struct k_spinlock *);
13 DEFINE_FAKE_VOID_FUNC(z_spin_lock_set_owner, struct k_spinlock *);
Dspinlock.h16 DECLARE_FAKE_VALUE_FUNC(bool, z_spin_lock_valid, struct k_spinlock *);
17 DECLARE_FAKE_VALUE_FUNC(bool, z_spin_unlock_valid, struct k_spinlock *);
18 DECLARE_FAKE_VOID_FUNC(z_spin_lock_set_owner, struct k_spinlock *);
/Zephyr-latest/kernel/
Dspinlock_validate.c9 bool z_spin_lock_valid(struct k_spinlock *l) in z_spin_lock_valid()
21 bool z_spin_unlock_valid(struct k_spinlock *l) in z_spin_unlock_valid()
37 void z_spin_lock_set_owner(struct k_spinlock *l) in z_spin_lock_set_owner()
43 bool z_spin_lock_mem_coherent(struct k_spinlock *l) in z_spin_lock_mem_coherent()
/Zephyr-latest/tests/kernel/spinlock/src/
Dspinlock_error_case.c13 static struct k_spinlock lock;
14 static struct k_spinlock mylock;
31 static struct k_spinlock timeout_lock;
Dmain.c18 static struct k_spinlock bounce_lock;
45 static struct k_spinlock l; in ZTEST()
161 static struct k_spinlock lock_runtime; in ZTEST()
/Zephyr-latest/kernel/include/
Dkswap.h20 extern struct k_spinlock _sched_spinlock;
78 struct k_spinlock *lock, in do_swap()
185 static inline int z_swap(struct k_spinlock *lock, k_spinlock_key_t key) in z_swap()
216 static ALWAYS_INLINE int z_swap(struct k_spinlock *lock, k_spinlock_key_t key) in z_swap()
Dksched.h47 extern struct k_spinlock _sched_spinlock;
55 int z_pend_curr(struct k_spinlock *lock, k_spinlock_key_t key,
59 void z_reschedule(struct k_spinlock *lock, k_spinlock_key_t key);
287 int z_sched_wait(struct k_spinlock *lock, k_spinlock_key_t key,
/Zephyr-latest/drivers/pcie/endpoint/
Dpcie_ep_iproc.h113 struct k_spinlock ob_map_lock;
114 struct k_spinlock raise_irq_lock;
115 struct k_spinlock pba_lock;
/Zephyr-latest/drivers/wifi/nrf_wifi/off_raw_tx/inc/
Doff_raw_tx.h25 struct k_spinlock lock;
/Zephyr-latest/drivers/timer/
Dlitex_timer.c50 static struct k_spinlock lock; in sys_clock_cycle_get_32()
64 static struct k_spinlock lock; in sys_clock_cycle_get_64()
/Zephyr-latest/drivers/dai/intel/hda/
Dhda.h33 struct k_spinlock lock;
/Zephyr-latest/drivers/dai/intel/ssp/
Dssp.h113 struct k_spinlock lock; /**< lock mechanism */
166 struct k_spinlock lock; /**< locking mechanism */
/Zephyr-latest/include/zephyr/sys/
Donoff.h169 struct k_spinlock lock;
578 struct k_spinlock lock;
/Zephyr-latest/modules/thrift/src/thrift/concurrency/
DMutex.cpp22 struct k_spinlock lock;
/Zephyr-latest/subsys/random/
Drandom_timer.c23 static struct k_spinlock rand32_lock;
/Zephyr-latest/soc/nordic/common/
Dnrf_sys_event.c19 static struct k_spinlock global_constlat_lock;
Dsoc_lrcconf.c10 static struct k_spinlock lock;
/Zephyr-latest/include/zephyr/modem/backend/
Duart.h37 struct k_spinlock receive_rb_lock;
/Zephyr-latest/include/zephyr/drivers/spi/
Drtio.h22 struct k_spinlock lock;
/Zephyr-latest/include/zephyr/drivers/i2c/
Drtio.h23 struct k_spinlock slock;
/Zephyr-latest/subsys/pm/policy/
Dpolicy_events.c17 static struct k_spinlock events_lock;
/Zephyr-latest/drivers/console/
Dwinstream_console.c18 struct k_spinlock trace_lock;

123456789