Lines Matching refs:total_len
385 size_t total_len; in pipe_read() local
387 total_len = iov_length(iov, nr_segs); in pipe_read()
389 if (unlikely(total_len == 0)) in pipe_read()
406 if (chars > total_len) in pipe_read()
407 chars = total_len; in pipe_read()
442 total_len = chars; in pipe_read()
454 total_len -= chars; in pipe_read()
455 if (!total_len) in pipe_read()
512 size_t total_len; in pipe_write() local
515 total_len = iov_length(iov, nr_segs); in pipe_write()
517 if (unlikely(total_len == 0)) in pipe_write()
531 chars = total_len & (PAGE_SIZE-1); /* size of the last buffer */ in pipe_write()
564 total_len -= chars; in pipe_write()
566 if (!total_len) in pipe_write()
605 if (chars > total_len) in pipe_write()
606 chars = total_len; in pipe_write()
647 total_len -= chars; in pipe_write()
648 if (!total_len) in pipe_write()