Lines Matching refs:lock
16 static struct k_spinlock lock; variable
31 k_spinlock_key_t key = k_spin_lock(&lock); in z_timer_expiration_handler()
47 k_spin_unlock(&lock, key); in z_timer_expiration_handler()
86 k_spin_unlock(&lock, key); in z_timer_expiration_handler()
88 key = k_spin_lock(&lock); in z_timer_expiration_handler()
92 k_spin_unlock(&lock, key); in z_timer_expiration_handler()
99 k_spin_unlock(&lock, key); in z_timer_expiration_handler()
107 k_spin_unlock(&lock, key); in z_timer_expiration_handler()
149 k_spinlock_key_t key = k_spin_lock(&lock); in z_impl_k_timer_start()
152 k_spin_unlock(&lock, key); in z_impl_k_timer_start()
180 k_spin_unlock(&lock, key); in z_impl_k_timer_start()
229 k_spinlock_key_t key = k_spin_lock(&lock); in z_impl_k_timer_status_get()
233 k_spin_unlock(&lock, key); in z_impl_k_timer_status_get()
256 k_spinlock_key_t key = k_spin_lock(&lock); in z_impl_k_timer_status_sync()
261 k_spin_unlock(&lock, key); in z_impl_k_timer_status_sync()
267 k_spin_unlock(&lock, key); in z_impl_k_timer_status_sync()
275 k_spinlock_key_t key = k_spin_lock(&lock); in z_impl_k_timer_status_sync()
283 (void)z_pend_curr(&lock, key, &timer->wait_q, K_FOREVER); in z_impl_k_timer_status_sync()
286 key = k_spin_lock(&lock); in z_impl_k_timer_status_sync()
296 k_spin_unlock(&lock, key); in z_impl_k_timer_status_sync()