Lines Matching refs:lock

46 	pipe->lock = (struct k_spinlock){};  in k_pipe_init()
114 k_spinlock_key_t key = k_spin_lock(&pipe->lock); in z_impl_k_pipe_flush()
138 k_spinlock_key_t key = k_spin_lock(&pipe->lock); in z_impl_k_pipe_buffer_flush()
144 k_spin_unlock(&pipe->lock, key); in z_impl_k_pipe_buffer_flush()
163 k_spinlock_key_t key = k_spin_lock(&pipe->lock); in k_pipe_cleanup()
167 k_spin_unlock(&pipe->lock, key); in k_pipe_cleanup()
190 k_spin_unlock(&pipe->lock, key); in k_pipe_cleanup()
407 k_spinlock_key_t key = k_spin_lock(&pipe->lock); in z_impl_k_pipe_put()
432 k_spin_unlock(&pipe->lock, key); in z_impl_k_pipe_put()
477 z_reschedule(&pipe->lock, key); in z_impl_k_pipe_put()
479 k_spin_unlock(&pipe->lock, key); in z_impl_k_pipe_put()
493 z_sched_wait(&pipe->lock, key, &pipe->wait_q.writers, timeout, NULL); in z_impl_k_pipe_put()
502 key = k_spin_lock(&pipe->lock); in z_impl_k_pipe_put()
503 k_spin_unlock(&pipe->lock, key); in z_impl_k_pipe_put()
573 k_spin_unlock(&pipe->lock, key); in pipe_get_internal()
665 z_reschedule(&pipe->lock, key); in pipe_get_internal()
667 k_spin_unlock(&pipe->lock, key); in pipe_get_internal()
679 z_sched_wait(&pipe->lock, key, &pipe->wait_q.readers, timeout, NULL); in pipe_get_internal()
688 key = k_spin_lock(&pipe->lock); in pipe_get_internal()
689 k_spin_unlock(&pipe->lock, key); in pipe_get_internal()
714 k_spinlock_key_t key = k_spin_lock(&pipe->lock); in z_impl_k_pipe_get()
750 key = k_spin_lock(&pipe->lock); in z_impl_k_pipe_read_avail()
760 k_spin_unlock(&pipe->lock, key); in z_impl_k_pipe_read_avail()
787 key = k_spin_lock(&pipe->lock); in z_impl_k_pipe_write_avail()
797 k_spin_unlock(&pipe->lock, key); in z_impl_k_pipe_write_avail()