Lines Matching refs:tsz

318 	size_t tsz;  in read_kcore()  local
358 tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos); in read_kcore()
359 if (copy_to_user(buffer, (char *)&ehdr + *fpos, tsz)) { in read_kcore()
364 buffer += tsz; in read_kcore()
365 buflen -= tsz; in read_kcore()
366 *fpos += tsz; in read_kcore()
400 tsz = min_t(size_t, buflen, phdrs_offset + phdrs_len - *fpos); in read_kcore()
402 tsz)) { in read_kcore()
409 buffer += tsz; in read_kcore()
410 buflen -= tsz; in read_kcore()
411 *fpos += tsz; in read_kcore()
450 tsz = min_t(size_t, buflen, notes_offset + notes_len - *fpos); in read_kcore()
451 if (copy_to_user(buffer, notes + *fpos - notes_offset, tsz)) { in read_kcore()
458 buffer += tsz; in read_kcore()
459 buflen -= tsz; in read_kcore()
460 *fpos += tsz; in read_kcore()
468 if ((tsz = (PAGE_SIZE - (start & ~PAGE_MASK))) > buflen) in read_kcore()
469 tsz = buflen; in read_kcore()
500 if (clear_user(buffer, tsz)) { in read_kcore()
509 vread(buf, (char *)start, tsz); in read_kcore()
511 if (copy_to_user(buffer, buf, tsz)) { in read_kcore()
518 if (copy_to_user(buffer, (char *)start, tsz)) { in read_kcore()
534 if (clear_user(buffer, tsz)) { in read_kcore()
547 if (copy_from_kernel_nofault(buf, (void *)start, tsz)) { in read_kcore()
548 if (clear_user(buffer, tsz)) { in read_kcore()
553 if (copy_to_user(buffer, buf, tsz)) { in read_kcore()
561 if (clear_user(buffer, tsz)) { in read_kcore()
567 buflen -= tsz; in read_kcore()
568 *fpos += tsz; in read_kcore()
569 buffer += tsz; in read_kcore()
570 start += tsz; in read_kcore()
571 tsz = (buflen > PAGE_SIZE ? PAGE_SIZE : buflen); in read_kcore()