Lines Matching refs:tsz

247 	size_t tsz;  in vmcoredd_copy_dumps()  local
253 tsz = min(offset + (u64)dump->size - start, (u64)size); in vmcoredd_copy_dumps()
255 if (copy_to_iter(buf, tsz, iter) < tsz) { in vmcoredd_copy_dumps()
260 size -= tsz; in vmcoredd_copy_dumps()
261 start += tsz; in vmcoredd_copy_dumps()
282 size_t tsz; in vmcoredd_mmap_dumps() local
288 tsz = min(offset + (u64)dump->size - start, (u64)size); in vmcoredd_mmap_dumps()
291 tsz)) { in vmcoredd_mmap_dumps()
296 size -= tsz; in vmcoredd_mmap_dumps()
297 start += tsz; in vmcoredd_mmap_dumps()
298 dst += tsz; in vmcoredd_mmap_dumps()
320 size_t tsz; in __read_vmcore() local
331 tsz = min(elfcorebuf_sz - (size_t)*fpos, iov_iter_count(iter)); in __read_vmcore()
332 if (copy_to_iter(elfcorebuf + *fpos, tsz, iter) < tsz) in __read_vmcore()
334 *fpos += tsz; in __read_vmcore()
335 acc += tsz; in __read_vmcore()
358 tsz = min(elfcorebuf_sz + vmcoredd_orig_sz - in __read_vmcore()
361 if (vmcoredd_copy_dumps(iter, start, tsz)) in __read_vmcore()
364 *fpos += tsz; in __read_vmcore()
365 acc += tsz; in __read_vmcore()
374 tsz = min(elfcorebuf_sz + elfnotes_sz - (size_t)*fpos, in __read_vmcore()
377 if (copy_to_iter(kaddr, tsz, iter) < tsz) in __read_vmcore()
380 *fpos += tsz; in __read_vmcore()
381 acc += tsz; in __read_vmcore()
392 tsz = (size_t)min_t(unsigned long long, in __read_vmcore()
396 tmp = read_from_oldmem(iter, tsz, &start, in __read_vmcore()
400 *fpos += tsz; in __read_vmcore()
401 acc += tsz; in __read_vmcore()
576 u64 start, end, len, tsz; in mmap_vmcore() local
596 tsz = min(elfcorebuf_sz - (size_t)start, size); in mmap_vmcore()
598 if (remap_pfn_range(vma, vma->vm_start, pfn, tsz, in mmap_vmcore()
601 size -= tsz; in mmap_vmcore()
602 start += tsz; in mmap_vmcore()
603 len += tsz; in mmap_vmcore()
628 tsz = min(elfcorebuf_sz + vmcoredd_orig_sz - in mmap_vmcore()
632 start_off, tsz)) in mmap_vmcore()
635 size -= tsz; in mmap_vmcore()
636 start += tsz; in mmap_vmcore()
637 len += tsz; in mmap_vmcore()
646 tsz = min(elfcorebuf_sz + elfnotes_sz - (size_t)start, size); in mmap_vmcore()
649 kaddr, 0, tsz)) in mmap_vmcore()
652 size -= tsz; in mmap_vmcore()
653 start += tsz; in mmap_vmcore()
654 len += tsz; in mmap_vmcore()
664 tsz = (size_t)min_t(unsigned long long, in mmap_vmcore()
668 paddr >> PAGE_SHIFT, tsz, in mmap_vmcore()
671 size -= tsz; in mmap_vmcore()
672 start += tsz; in mmap_vmcore()
673 len += tsz; in mmap_vmcore()