Lines Matching refs:tsz

319 	size_t tsz;  in read_kcore()  local
359 tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos); in read_kcore()
360 if (copy_to_user(buffer, (char *)&ehdr + *fpos, tsz)) { in read_kcore()
365 buffer += tsz; in read_kcore()
366 buflen -= tsz; in read_kcore()
367 *fpos += tsz; in read_kcore()
401 tsz = min_t(size_t, buflen, phdrs_offset + phdrs_len - *fpos); in read_kcore()
403 tsz)) { in read_kcore()
410 buffer += tsz; in read_kcore()
411 buflen -= tsz; in read_kcore()
412 *fpos += tsz; in read_kcore()
451 tsz = min_t(size_t, buflen, notes_offset + notes_len - *fpos); in read_kcore()
452 if (copy_to_user(buffer, notes + *fpos - notes_offset, tsz)) { in read_kcore()
459 buffer += tsz; in read_kcore()
460 buflen -= tsz; in read_kcore()
461 *fpos += tsz; in read_kcore()
469 if ((tsz = (PAGE_SIZE - (start & ~PAGE_MASK))) > buflen) in read_kcore()
470 tsz = buflen; in read_kcore()
501 if (clear_user(buffer, tsz)) { in read_kcore()
510 vread(buf, (char *)start, tsz); in read_kcore()
512 if (copy_to_user(buffer, buf, tsz)) { in read_kcore()
519 if (copy_to_user(buffer, (char *)start, tsz)) { in read_kcore()
535 if (clear_user(buffer, tsz)) { in read_kcore()
550 tsz)) { in read_kcore()
551 if (clear_user(buffer, tsz)) { in read_kcore()
556 if (copy_to_user(buffer, buf, tsz)) { in read_kcore()
562 if (clear_user(buffer, tsz)) { in read_kcore()
570 if (clear_user(buffer, tsz)) { in read_kcore()
576 buflen -= tsz; in read_kcore()
577 *fpos += tsz; in read_kcore()
578 buffer += tsz; in read_kcore()
579 start += tsz; in read_kcore()
580 tsz = (buflen > PAGE_SIZE ? PAGE_SIZE : buflen); in read_kcore()