Lines Matching refs:tsz
429 size_t size, tsz; in read_kcore() local
450 tsz = elf_buflen - *fpos; in read_kcore()
451 if (buflen < tsz) in read_kcore()
452 tsz = buflen; in read_kcore()
460 if (copy_to_user(buffer, elf_buf + *fpos, tsz)) { in read_kcore()
465 buflen -= tsz; in read_kcore()
466 *fpos += tsz; in read_kcore()
467 buffer += tsz; in read_kcore()
468 acc += tsz; in read_kcore()
481 if ((tsz = (PAGE_SIZE - (start & ~PAGE_MASK))) > buflen) in read_kcore()
482 tsz = buflen; in read_kcore()
495 if (clear_user(buffer, tsz)) in read_kcore()
500 elf_buf = kzalloc(tsz, GFP_KERNEL); in read_kcore()
503 vread(elf_buf, (char *)start, tsz); in read_kcore()
505 if (copy_to_user(buffer, elf_buf, tsz)) { in read_kcore()
514 n = copy_to_user(buffer, (char *)start, tsz); in read_kcore()
522 if (clear_user(buffer + tsz - n, in read_kcore()
527 if (clear_user(buffer, tsz)) in read_kcore()
531 buflen -= tsz; in read_kcore()
532 *fpos += tsz; in read_kcore()
533 buffer += tsz; in read_kcore()
534 acc += tsz; in read_kcore()
535 start += tsz; in read_kcore()
536 tsz = (buflen > PAGE_SIZE ? PAGE_SIZE : buflen); in read_kcore()