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()
496 if (clear_user(buffer, tsz)) { in read_kcore()
506 vread(buf, (char *)start, tsz); in read_kcore()
508 if (copy_to_user(buffer, buf, tsz)) { in read_kcore()
515 if (copy_to_user(buffer, (char *)start, tsz)) { in read_kcore()
531 if (clear_user(buffer, tsz)) { in read_kcore()
546 tsz)) { in read_kcore()
547 if (clear_user(buffer, tsz)) { in read_kcore()
552 if (copy_to_user(buffer, buf, tsz)) { in read_kcore()
558 if (clear_user(buffer, tsz)) { in read_kcore()
566 if (clear_user(buffer, tsz)) { in read_kcore()
572 buflen -= tsz; in read_kcore()
573 *fpos += tsz; in read_kcore()
574 buffer += tsz; in read_kcore()
575 start += tsz; in read_kcore()
576 tsz = (buflen > PAGE_SIZE ? PAGE_SIZE : buflen); in read_kcore()