Lines Matching refs:lock
63 static struct k_spinlock lock; variable
168 k_spinlock_key_t key = k_spin_lock(&lock); in k_work_busy_get()
171 k_spin_unlock(&lock, key); in k_work_busy_get()
381 k_spinlock_key_t key = k_spin_lock(&lock); in z_work_submit_to_queue()
385 k_spin_unlock(&lock, key); in z_work_submit_to_queue()
469 k_spinlock_key_t key = k_spin_lock(&lock); in k_work_flush()
473 k_spin_unlock(&lock, key); in k_work_flush()
557 k_spinlock_key_t key = k_spin_lock(&lock); in k_work_cancel()
560 k_spin_unlock(&lock, key); in k_work_cancel()
581 k_spinlock_key_t key = k_spin_lock(&lock); in k_work_cancel_sync()
590 k_spin_unlock(&lock, key); in k_work_cancel_sync()
617 k_spinlock_key_t key = k_spin_lock(&lock); in work_queue_main()
660 k_spin_unlock(&lock, key); in work_queue_main()
676 (void)z_sched_wait(&lock, key, &queue->notifyq, in work_queue_main()
681 k_spin_unlock(&lock, key); in work_queue_main()
691 key = k_spin_lock(&lock); in work_queue_main()
703 k_spin_unlock(&lock, key); in work_queue_main()
778 k_spinlock_key_t key = k_spin_lock(&lock); in k_work_queue_drain()
790 ret = z_sched_wait(&lock, key, &queue->drainq, in k_work_queue_drain()
793 k_spin_unlock(&lock, key); in k_work_queue_drain()
808 k_spinlock_key_t key = k_spin_lock(&lock); in k_work_queue_unplug()
814 k_spin_unlock(&lock, key); in k_work_queue_unplug()
826 k_spinlock_key_t key = k_spin_lock(&lock); in k_work_queue_stop()
829 k_spin_unlock(&lock, key); in k_work_queue_stop()
835 k_spin_unlock(&lock, key); in k_work_queue_stop()
842 k_spin_unlock(&lock, key); in k_work_queue_stop()
845 key = k_spin_lock(&lock); in k_work_queue_stop()
847 k_spin_unlock(&lock, key); in k_work_queue_stop()
869 k_spinlock_key_t key = k_spin_lock(&lock); in work_timeout()
884 k_spin_unlock(&lock, key); in work_timeout()
913 k_spinlock_key_t key = k_spin_lock(&lock); in k_work_delayable_busy_get()
916 k_spin_unlock(&lock, key); in k_work_delayable_busy_get()
1020 k_spinlock_key_t key = k_spin_lock(&lock); in k_work_schedule_for_queue()
1027 k_spin_unlock(&lock, key); in k_work_schedule_for_queue()
1054 k_spinlock_key_t key = k_spin_lock(&lock); in k_work_reschedule_for_queue()
1062 k_spin_unlock(&lock, key); in k_work_reschedule_for_queue()
1086 k_spinlock_key_t key = k_spin_lock(&lock); in k_work_cancel_delayable()
1089 k_spin_unlock(&lock, key); in k_work_cancel_delayable()
1109 k_spinlock_key_t key = k_spin_lock(&lock); in k_work_cancel_delayable_sync()
1118 k_spin_unlock(&lock, key); in k_work_cancel_delayable_sync()
1142 k_spinlock_key_t key = k_spin_lock(&lock); in k_work_flush_delayable()
1146 k_spin_unlock(&lock, key); in k_work_flush_delayable()
1165 k_spin_unlock(&lock, key); in k_work_flush_delayable()