Lines Matching refs:buflen
431 read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos) in read_kcore() argument
442 if (buflen == 0 || *fpos >= size) { in read_kcore()
448 if (buflen > size - *fpos) in read_kcore()
449 buflen = size - *fpos; in read_kcore()
456 if (buflen < tsz) in read_kcore()
457 tsz = buflen; in read_kcore()
470 buflen -= tsz; in read_kcore()
476 if (buflen == 0) in read_kcore()
486 if ((tsz = (PAGE_SIZE - (start & ~PAGE_MASK))) > buflen) in read_kcore()
487 tsz = buflen; in read_kcore()
489 while (buflen) { in read_kcore()
536 buflen -= tsz; in read_kcore()
541 tsz = (buflen > PAGE_SIZE ? PAGE_SIZE : buflen); in read_kcore()