Lines Matching refs:chunk
554 size_t chunk = min_t(size_t, n, PAGE_SIZE - off); in copy_pipe_to_iter() local
555 memcpy_to_page(pipe->bufs[idx].page, off, addr, chunk); in copy_pipe_to_iter()
557 i->iov_offset = off + chunk; in copy_pipe_to_iter()
558 n -= chunk; in copy_pipe_to_iter()
559 addr += chunk; in copy_pipe_to_iter()
588 size_t chunk = min_t(size_t, n, PAGE_SIZE - r); in csum_and_copy_to_pipe_iter() local
590 sum = csum_and_memcpy(p + r, addr, chunk, sum, off); in csum_and_copy_to_pipe_iter()
593 i->iov_offset = r + chunk; in csum_and_copy_to_pipe_iter()
594 n -= chunk; in csum_and_copy_to_pipe_iter()
595 off += chunk; in csum_and_copy_to_pipe_iter()
596 addr += chunk; in csum_and_copy_to_pipe_iter()
658 size_t chunk = min_t(size_t, n, PAGE_SIZE - off); in copy_pipe_to_iter_mcsafe() local
662 chunk); in copy_pipe_to_iter_mcsafe()
664 i->iov_offset = off + chunk - rem; in copy_pipe_to_iter_mcsafe()
665 xfer += chunk - rem; in copy_pipe_to_iter_mcsafe()
668 n -= chunk; in copy_pipe_to_iter_mcsafe()
669 addr += chunk; in copy_pipe_to_iter_mcsafe()
939 size_t chunk = min_t(size_t, n, PAGE_SIZE - off); in pipe_zero() local
940 memzero_page(pipe->bufs[idx].page, off, chunk); in pipe_zero()
942 i->iov_offset = off + chunk; in pipe_zero()
943 n -= chunk; in pipe_zero()