Lines Matching refs:tsz
333 size_t tsz; in read_kcore_iter() local
374 tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos); in read_kcore_iter()
375 if (copy_to_iter((char *)&ehdr + *fpos, tsz, iter) != tsz) { in read_kcore_iter()
380 buflen -= tsz; in read_kcore_iter()
381 *fpos += tsz; in read_kcore_iter()
415 tsz = min_t(size_t, buflen, phdrs_offset + phdrs_len - *fpos); in read_kcore_iter()
416 if (copy_to_iter((char *)phdrs + *fpos - phdrs_offset, tsz, in read_kcore_iter()
417 iter) != tsz) { in read_kcore_iter()
424 buflen -= tsz; in read_kcore_iter()
425 *fpos += tsz; in read_kcore_iter()
464 tsz = min_t(size_t, buflen, notes_offset + notes_len - *fpos); in read_kcore_iter()
465 if (copy_to_iter(notes + *fpos - notes_offset, tsz, iter) != tsz) { in read_kcore_iter()
472 buflen -= tsz; in read_kcore_iter()
473 *fpos += tsz; in read_kcore_iter()
481 if ((tsz = (PAGE_SIZE - (start & ~PAGE_MASK))) > buflen) in read_kcore_iter()
482 tsz = buflen; in read_kcore_iter()
515 if (iov_iter_zero(tsz, iter) != tsz) { in read_kcore_iter()
526 size_t read = 0, left = tsz; in read_kcore_iter()
535 if (read == tsz) in read_kcore_iter()
550 if (copy_to_iter((char *)start, tsz, iter) != tsz) { in read_kcore_iter()
567 if (iov_iter_zero(tsz, iter) != tsz) { in read_kcore_iter()
580 if (iov_iter_zero(tsz, iter) != tsz) in read_kcore_iter()
594 ret = copy_from_kernel_nofault(buf, __start, tsz); in read_kcore_iter()
598 if (iov_iter_zero(tsz, iter) != tsz) { in read_kcore_iter()
606 } else if (_copy_to_iter(buf, tsz, iter) != tsz) { in read_kcore_iter()
613 if (iov_iter_zero(tsz, iter) != tsz) { in read_kcore_iter()
619 buflen -= tsz; in read_kcore_iter()
620 *fpos += tsz; in read_kcore_iter()
621 start += tsz; in read_kcore_iter()
622 tsz = (buflen > PAGE_SIZE ? PAGE_SIZE : buflen); in read_kcore_iter()