Lines Matching refs:k_pipe

30 static int pipe_get_internal(k_spinlock_key_t key, struct k_pipe *pipe,
39 void k_pipe_init(struct k_pipe *pipe, unsigned char *buffer, size_t size) in k_pipe_init()
49 SYS_PORT_TRACING_OBJ_INIT(k_pipe, pipe); in k_pipe_init()
63 int z_impl_k_pipe_alloc_init(struct k_pipe *pipe, size_t size) in z_impl_k_pipe_alloc_init()
68 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_pipe, alloc_init, pipe); in z_impl_k_pipe_alloc_init()
84 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_pipe, alloc_init, pipe, ret); in z_impl_k_pipe_alloc_init()
90 static inline int z_vrfy_k_pipe_alloc_init(struct k_pipe *pipe, size_t size) in z_vrfy_k_pipe_alloc_init()
99 static inline void handle_poll_events(struct k_pipe *pipe) in handle_poll_events()
108 void z_impl_k_pipe_flush(struct k_pipe *pipe) in z_impl_k_pipe_flush()
112 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_pipe, flush, pipe); in z_impl_k_pipe_flush()
119 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_pipe, flush, pipe); in z_impl_k_pipe_flush()
123 void z_vrfy_k_pipe_flush(struct k_pipe *pipe) in z_vrfy_k_pipe_flush()
132 void z_impl_k_pipe_buffer_flush(struct k_pipe *pipe) in z_impl_k_pipe_buffer_flush()
136 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_pipe, buffer_flush, pipe); in z_impl_k_pipe_buffer_flush()
147 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_pipe, buffer_flush, pipe); in z_impl_k_pipe_buffer_flush()
151 void z_vrfy_k_pipe_buffer_flush(struct k_pipe *pipe) in z_vrfy_k_pipe_buffer_flush()
159 int k_pipe_cleanup(struct k_pipe *pipe) in k_pipe_cleanup()
161 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_pipe, cleanup, pipe); in k_pipe_cleanup()
169 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_pipe, cleanup, pipe, -EAGAIN); in k_pipe_cleanup()
192 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_pipe, cleanup, pipe, 0U); in k_pipe_cleanup()
326 static size_t pipe_write(struct k_pipe *pipe, sys_dlist_t *src_list, in pipe_write()
380 int z_impl_k_pipe_put(struct k_pipe *pipe, const void *data, in z_impl_k_pipe_put()
395 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_pipe, put, pipe, timeout); in z_impl_k_pipe_put()
398 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_pipe, put, pipe, timeout, in z_impl_k_pipe_put()
435 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_pipe, put, pipe, in z_impl_k_pipe_put()
482 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_pipe, put, pipe, timeout, 0); in z_impl_k_pipe_put()
489 SYS_PORT_TRACING_OBJ_FUNC_BLOCKING(k_pipe, put, pipe, timeout); in z_impl_k_pipe_put()
510 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_pipe, put, pipe, timeout, ret); in z_impl_k_pipe_put()
516 int z_vrfy_k_pipe_put(struct k_pipe *pipe, const void *data, in z_vrfy_k_pipe_put()
531 static int pipe_get_internal(k_spinlock_key_t key, struct k_pipe *pipe, in pipe_get_internal()
675 SYS_PORT_TRACING_OBJ_FUNC_BLOCKING(k_pipe, get, pipe, timeout); in pipe_get_internal()
699 int z_impl_k_pipe_get(struct k_pipe *pipe, void *data, size_t bytes_to_read, in z_impl_k_pipe_get()
705 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_pipe, get, pipe, timeout); in z_impl_k_pipe_get()
708 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_pipe, get, pipe, in z_impl_k_pipe_get()
719 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_pipe, get, pipe, timeout, ret); in z_impl_k_pipe_get()
725 int z_vrfy_k_pipe_get(struct k_pipe *pipe, void *data, size_t bytes_to_read, in z_vrfy_k_pipe_get()
739 size_t z_impl_k_pipe_read_avail(struct k_pipe *pipe) in z_impl_k_pipe_read_avail()
767 size_t z_vrfy_k_pipe_read_avail(struct k_pipe *pipe) in z_vrfy_k_pipe_read_avail()
776 size_t z_impl_k_pipe_write_avail(struct k_pipe *pipe) in z_impl_k_pipe_write_avail()
804 size_t z_vrfy_k_pipe_write_avail(struct k_pipe *pipe) in z_vrfy_k_pipe_write_avail()
819 offsetof(struct k_pipe, obj_core)); in init_pipe_obj_core_list()
823 STRUCT_SECTION_FOREACH(k_pipe, pipe) { in init_pipe_obj_core_list()