Lines Matching refs:tsz
434 size_t size, tsz; in read_kcore() local
455 tsz = elf_buflen - *fpos; in read_kcore()
456 if (buflen < tsz) in read_kcore()
457 tsz = buflen; in read_kcore()
465 if (copy_to_user(buffer, elf_buf + *fpos, tsz)) { in read_kcore()
470 buflen -= tsz; in read_kcore()
471 *fpos += tsz; in read_kcore()
472 buffer += tsz; in read_kcore()
473 acc += tsz; in read_kcore()
486 if ((tsz = (PAGE_SIZE - (start & ~PAGE_MASK))) > buflen) in read_kcore()
487 tsz = buflen; in read_kcore()
500 if (clear_user(buffer, tsz)) in read_kcore()
505 elf_buf = kzalloc(tsz, GFP_KERNEL); in read_kcore()
508 vread(elf_buf, (char *)start, tsz); in read_kcore()
510 if (copy_to_user(buffer, elf_buf, tsz)) { in read_kcore()
519 n = copy_to_user(buffer, (char *)start, tsz); in read_kcore()
527 if (clear_user(buffer + tsz - n, in read_kcore()
532 if (clear_user(buffer, tsz)) in read_kcore()
536 buflen -= tsz; in read_kcore()
537 *fpos += tsz; in read_kcore()
538 buffer += tsz; in read_kcore()
539 acc += tsz; in read_kcore()
540 start += tsz; in read_kcore()
541 tsz = (buflen > PAGE_SIZE ? PAGE_SIZE : buflen); in read_kcore()