Lines Matching refs:lock
23 struct k_spinlock lock; member
177 struct k_mutex *lock = NULL; in zvfs_eventfd_close_op() local
187 err = (int)zvfs_get_obj_lock_and_cond(obj, &zvfs_eventfd_fd_vtable, &lock, &cond); in zvfs_eventfd_close_op()
189 __ASSERT_NO_MSG(lock != NULL); in zvfs_eventfd_close_op()
192 err = k_mutex_lock(lock, K_FOREVER); in zvfs_eventfd_close_op()
195 key = k_spin_lock(&efd->lock); in zvfs_eventfd_close_op()
212 k_spin_unlock(&efd->lock, key); in zvfs_eventfd_close_op()
216 err = k_mutex_unlock(lock); in zvfs_eventfd_close_op()
229 key = k_spin_lock(&efd->lock); in zvfs_eventfd_ioctl_op()
287 k_spin_unlock(&efd->lock, key); in zvfs_eventfd_ioctl_op()
307 struct k_mutex *lock = NULL; in zvfs_eventfd_rw_op() local
320 key = k_spin_lock(&efd->lock); in zvfs_eventfd_rw_op()
349 err = (int)zvfs_get_obj_lock_and_cond(obj, &zvfs_eventfd_fd_vtable, &lock, &cond); in zvfs_eventfd_rw_op()
351 __ASSERT_NO_MSG(lock != NULL); in zvfs_eventfd_rw_op()
355 k_spin_unlock(&efd->lock, key); in zvfs_eventfd_rw_op()
356 err = k_mutex_lock(lock, K_FOREVER); in zvfs_eventfd_rw_op()
361 key = k_spin_lock(&efd->lock); in zvfs_eventfd_rw_op()
381 k_spin_unlock(&efd->lock, key); in zvfs_eventfd_rw_op()
384 err = k_condvar_wait(cond, lock, K_FOREVER); in zvfs_eventfd_rw_op()
389 k_spin_unlock(&efd->lock, key); in zvfs_eventfd_rw_op()
393 err = k_mutex_unlock(lock); in zvfs_eventfd_rw_op()
398 k_spin_unlock(&efd->lock, key); in zvfs_eventfd_rw_op()