Lines Matching refs:tsz

261 	size_t tsz;  in vmcoredd_copy_dumps()  local
267 tsz = min(offset + (u64)dump->size - start, (u64)size); in vmcoredd_copy_dumps()
269 if (copy_to(dst, buf, tsz, userbuf)) { in vmcoredd_copy_dumps()
274 size -= tsz; in vmcoredd_copy_dumps()
275 start += tsz; in vmcoredd_copy_dumps()
276 dst += tsz; in vmcoredd_copy_dumps()
297 size_t tsz; in vmcoredd_mmap_dumps() local
303 tsz = min(offset + (u64)dump->size - start, (u64)size); in vmcoredd_mmap_dumps()
306 tsz)) { in vmcoredd_mmap_dumps()
311 size -= tsz; in vmcoredd_mmap_dumps()
312 start += tsz; in vmcoredd_mmap_dumps()
313 dst += tsz; in vmcoredd_mmap_dumps()
336 size_t tsz; in __read_vmcore() local
349 tsz = min(elfcorebuf_sz - (size_t)*fpos, buflen); in __read_vmcore()
350 if (copy_to(buffer, elfcorebuf + *fpos, tsz, userbuf)) in __read_vmcore()
352 buflen -= tsz; in __read_vmcore()
353 *fpos += tsz; in __read_vmcore()
354 buffer += tsz; in __read_vmcore()
355 acc += tsz; in __read_vmcore()
378 tsz = min(elfcorebuf_sz + vmcoredd_orig_sz - in __read_vmcore()
381 if (vmcoredd_copy_dumps(buffer, start, tsz, userbuf)) in __read_vmcore()
384 buflen -= tsz; in __read_vmcore()
385 *fpos += tsz; in __read_vmcore()
386 buffer += tsz; in __read_vmcore()
387 acc += tsz; in __read_vmcore()
396 tsz = min(elfcorebuf_sz + elfnotes_sz - (size_t)*fpos, buflen); in __read_vmcore()
398 if (copy_to(buffer, kaddr, tsz, userbuf)) in __read_vmcore()
401 buflen -= tsz; in __read_vmcore()
402 *fpos += tsz; in __read_vmcore()
403 buffer += tsz; in __read_vmcore()
404 acc += tsz; in __read_vmcore()
413 tsz = (size_t)min_t(unsigned long long, in __read_vmcore()
417 tmp = read_from_oldmem(buffer, tsz, &start, in __read_vmcore()
421 buflen -= tsz; in __read_vmcore()
422 *fpos += tsz; in __read_vmcore()
423 buffer += tsz; in __read_vmcore()
424 acc += tsz; in __read_vmcore()
595 u64 start, end, len, tsz; in mmap_vmcore() local
616 tsz = min(elfcorebuf_sz - (size_t)start, size); in mmap_vmcore()
618 if (remap_pfn_range(vma, vma->vm_start, pfn, tsz, in mmap_vmcore()
621 size -= tsz; in mmap_vmcore()
622 start += tsz; in mmap_vmcore()
623 len += tsz; in mmap_vmcore()
648 tsz = min(elfcorebuf_sz + vmcoredd_orig_sz - in mmap_vmcore()
652 start_off, tsz)) in mmap_vmcore()
655 size -= tsz; in mmap_vmcore()
656 start += tsz; in mmap_vmcore()
657 len += tsz; in mmap_vmcore()
666 tsz = min(elfcorebuf_sz + elfnotes_sz - (size_t)start, size); in mmap_vmcore()
669 kaddr, 0, tsz)) in mmap_vmcore()
672 size -= tsz; in mmap_vmcore()
673 start += tsz; in mmap_vmcore()
674 len += tsz; in mmap_vmcore()
684 tsz = (size_t)min_t(unsigned long long, in mmap_vmcore()
688 paddr >> PAGE_SHIFT, tsz, in mmap_vmcore()
691 size -= tsz; in mmap_vmcore()
692 start += tsz; in mmap_vmcore()
693 len += tsz; in mmap_vmcore()