Lines Matching refs:processed
552 uint32_t processed = 0; in ring_buffer_write_fully_with_abort() local
556 while (processed < bytes) { in ring_buffer_write_fully_with_abort()
557 if (bytes - processed < candidate_step) { in ring_buffer_write_fully_with_abort()
558 candidate_step = bytes - processed; in ring_buffer_write_fully_with_abort()
565 processed_here = ring_buffer_view_write(r, v, dst + processed, candidate_step, 1); in ring_buffer_write_fully_with_abort()
567 processed_here = ring_buffer_write(r, dst + processed, candidate_step, 1); in ring_buffer_write_fully_with_abort()
570 processed += processed_here ? candidate_step : 0; in ring_buffer_write_fully_with_abort()
573 return processed; in ring_buffer_write_fully_with_abort()
577 return processed; in ring_buffer_write_fully_with_abort()
589 uint32_t processed = 0; in ring_buffer_read_fully_with_abort() local
593 while (processed < bytes) { in ring_buffer_read_fully_with_abort()
597 if (bytes - processed < candidate_step) { in ring_buffer_read_fully_with_abort()
598 candidate_step = bytes - processed; in ring_buffer_read_fully_with_abort()
605 processed_here = ring_buffer_view_read(r, v, dst + processed, candidate_step, 1); in ring_buffer_read_fully_with_abort()
607 processed_here = ring_buffer_read(r, dst + processed, candidate_step, 1); in ring_buffer_read_fully_with_abort()
610 processed += processed_here ? candidate_step : 0; in ring_buffer_read_fully_with_abort()
613 return processed; in ring_buffer_read_fully_with_abort()
617 return processed; in ring_buffer_read_fully_with_abort()