Lines Matching refs:lock
32 static struct k_spinlock lock; variable
95 key = k_spin_lock(&lock); in z_impl_atomic_cas()
102 k_spin_unlock(&lock, key); in z_impl_atomic_cas()
124 key = k_spin_lock(&lock); in z_impl_atomic_ptr_cas()
131 k_spin_unlock(&lock, key); in z_impl_atomic_ptr_cas()
166 key = k_spin_lock(&lock); in z_impl_atomic_add()
171 k_spin_unlock(&lock, key); in z_impl_atomic_add()
196 key = k_spin_lock(&lock); in z_impl_atomic_sub()
201 k_spin_unlock(&lock, key); in z_impl_atomic_sub()
247 key = k_spin_lock(&lock); in z_impl_atomic_set()
252 k_spin_unlock(&lock, key); in z_impl_atomic_set()
265 key = k_spin_lock(&lock); in z_impl_atomic_ptr_set()
270 k_spin_unlock(&lock, key); in z_impl_atomic_ptr_set()
304 key = k_spin_lock(&lock); in z_impl_atomic_or()
309 k_spin_unlock(&lock, key); in z_impl_atomic_or()
334 key = k_spin_lock(&lock); in z_impl_atomic_xor()
339 k_spin_unlock(&lock, key); in z_impl_atomic_xor()
364 key = k_spin_lock(&lock); in z_impl_atomic_and()
369 k_spin_unlock(&lock, key); in z_impl_atomic_and()
394 key = k_spin_lock(&lock); in z_impl_atomic_nand()
399 k_spin_unlock(&lock, key); in z_impl_atomic_nand()