Lines Matching refs:chars
248 size_t chars = buf->len;
251 if (chars > total_len)
252 chars = total_len;
261 atomic = !iov_fault_in_pages_write(iov, chars);
264 error = pipe_iov_copy_to_user(iov, addr + buf->offset, chars, atomic);
278 ret += chars;
279 buf->offset += chars;
280 buf->len -= chars;
289 total_len -= chars;
344 ssize_t chars;
363 chars = total_len & (PAGE_SIZE-1); /* size of the last buffer */
364 if (pipe->nrbufs && chars != 0) {
371 if (ops->can_merge && offset + chars <= PAGE_SIZE) {
379 iov_fault_in_pages_read(iov, chars);
383 chars, atomic);
394 buf->len += chars;
395 total_len -= chars;
396 ret = chars;
428 chars = PAGE_SIZE;
429 if (chars > total_len)
430 chars = total_len;
432 iov_fault_in_pages_read(iov, chars);
439 error = pipe_iov_copy_from_user(src, iov, chars,
455 ret += chars;
461 buf->len = chars;
465 total_len -= chars;