Lines Matching refs:lock
36 static struct k_spinlock lock; variable
223 k_spin_unlock(&lock, key); in clear_event_registrations()
224 key = k_spin_lock(&lock); in clear_event_registrations()
245 key = k_spin_lock(&lock); in register_events()
259 k_spin_unlock(&lock, key); in register_events()
307 key = k_spin_lock(&lock); in z_impl_k_poll()
316 k_spin_unlock(&lock, key); in z_impl_k_poll()
326 k_spin_unlock(&lock, key); in z_impl_k_poll()
335 int swap_rc = z_pend_curr(&lock, key, &wait_q, timeout); in z_impl_k_poll()
346 key = k_spin_lock(&lock); in z_impl_k_poll()
348 k_spin_unlock(&lock, key); in z_impl_k_poll()
384 key = k_spin_lock(&lock); in z_vrfy_k_poll()
386 k_spin_unlock(&lock, key); in z_vrfy_k_poll()
390 k_spin_unlock(&lock, key); in z_vrfy_k_poll()
470 k_spinlock_key_t key = k_spin_lock(&lock); in z_handle_obj_poll_events()
477 k_spin_unlock(&lock, key); in z_handle_obj_poll_events()
529 k_spinlock_key_t key = k_spin_lock(&lock); in z_impl_k_poll_signal_raise()
537 k_spin_unlock(&lock, key); in z_impl_k_poll_signal_raise()
548 z_reschedule(&lock, key); in z_impl_k_poll_signal_raise()
582 key = k_spin_lock(&lock); in triggered_work_handler()
585 k_spin_unlock(&lock, key); in triggered_work_handler()
683 key = k_spin_lock(&lock); in k_work_poll_submit_to_queue()
690 k_spin_unlock(&lock, key); in k_work_poll_submit_to_queue()
698 k_spin_unlock(&lock, key); in k_work_poll_submit_to_queue()
711 k_spin_unlock(&lock, key); in k_work_poll_submit_to_queue()
724 key = k_spin_lock(&lock); in k_work_poll_submit_to_queue()
742 k_spin_unlock(&lock, key); in k_work_poll_submit_to_queue()
769 k_spin_unlock(&lock, key); in k_work_poll_submit_to_queue()
808 key = k_spin_lock(&lock); in k_work_poll_cancel()
810 k_spin_unlock(&lock, key); in k_work_poll_cancel()