Lines Matching refs:dest
202 static size_t pipe_xfer(unsigned char *dest, size_t dest_size, in pipe_xfer() argument
207 if (dest == NULL) { in pipe_xfer()
212 (void) memcpy(dest, src, num_bytes); in pipe_xfer()
330 struct _pipe_desc *dest; in pipe_write() local
335 dest = (struct _pipe_desc *)sys_dlist_get(dest_list); in pipe_write()
337 while ((src != NULL) && (dest != NULL)) { in pipe_write()
338 bytes_copied = pipe_xfer(dest->buffer, dest->bytes_to_xfer, in pipe_write()
343 dest->buffer += bytes_copied; in pipe_write()
344 dest->bytes_to_xfer -= bytes_copied; in pipe_write()
349 if (dest->thread == NULL) { in pipe_write()
358 } else if (dest->bytes_to_xfer == 0U) { in pipe_write()
362 z_unpend_thread(dest->thread); in pipe_write()
363 z_ready_thread(dest->thread); in pipe_write()
372 if (dest->bytes_to_xfer == 0U) { in pipe_write()
373 dest = (struct _pipe_desc *)sys_dlist_get(dest_list); in pipe_write()