Lines Matching refs:lock
22 struct k_spinlock lock; member
176 struct k_mutex *lock = NULL; in eventfd_close_op() local
186 err = (int)z_get_obj_lock_and_cond(obj, &eventfd_fd_vtable, &lock, &cond); in eventfd_close_op()
188 __ASSERT_NO_MSG(lock != NULL); in eventfd_close_op()
191 err = k_mutex_lock(lock, K_FOREVER); in eventfd_close_op()
194 key = k_spin_lock(&efd->lock); in eventfd_close_op()
211 k_spin_unlock(&efd->lock, key); in eventfd_close_op()
215 err = k_mutex_unlock(lock); in eventfd_close_op()
228 key = k_spin_lock(&efd->lock); in eventfd_ioctl_op()
284 k_spin_unlock(&efd->lock, key); in eventfd_ioctl_op()
304 struct k_mutex *lock = NULL; in eventfd_rw_op() local
317 key = k_spin_lock(&efd->lock); in eventfd_rw_op()
346 err = (int)z_get_obj_lock_and_cond(obj, &eventfd_fd_vtable, &lock, &cond); in eventfd_rw_op()
348 __ASSERT_NO_MSG(lock != NULL); in eventfd_rw_op()
352 k_spin_unlock(&efd->lock, key); in eventfd_rw_op()
353 err = k_mutex_lock(lock, K_FOREVER); in eventfd_rw_op()
358 key = k_spin_lock(&efd->lock); in eventfd_rw_op()
378 k_spin_unlock(&efd->lock, key); in eventfd_rw_op()
381 err = k_condvar_wait(cond, lock, K_FOREVER); in eventfd_rw_op()
386 k_spin_unlock(&efd->lock, key); in eventfd_rw_op()
390 err = k_mutex_unlock(lock); in eventfd_rw_op()
395 k_spin_unlock(&efd->lock, key); in eventfd_rw_op()