Lines Matching refs:pglen

604 	unsigned int pglen = 0;  in xdr_buf_pages_copy_right()  local
618 pglen = buf->page_len - to; in xdr_buf_pages_copy_right()
619 talen = len - pglen; in xdr_buf_pages_copy_right()
623 pglen = len; in xdr_buf_pages_copy_right()
626 buf->page_base + base + pglen, talen); in xdr_buf_pages_copy_right()
628 buf->page_base + base, pglen); in xdr_buf_pages_copy_right()
638 unsigned int pglen = 0, pgto = 0; in xdr_buf_head_copy_right() local
650 pglen = len; in xdr_buf_head_copy_right()
651 if (pgto + pglen > buf->page_len) { in xdr_buf_head_copy_right()
652 talen = pgto + pglen - buf->page_len; in xdr_buf_head_copy_right()
653 pglen -= talen; in xdr_buf_head_copy_right()
656 pglen = len - to; in xdr_buf_head_copy_right()
657 if (pglen > buf->page_len) { in xdr_buf_head_copy_right()
658 talen = pglen - buf->page_len; in xdr_buf_head_copy_right()
659 pglen = buf->page_len; in xdr_buf_head_copy_right()
669 len -= pglen; in xdr_buf_head_copy_right()
670 base -= pglen; in xdr_buf_head_copy_right()
672 pglen); in xdr_buf_head_copy_right()
754 unsigned int pglen = len; in xdr_buf_tail_copy_left() local
756 if (pgto + pglen > buf->page_len) in xdr_buf_tail_copy_left()
757 pglen = buf->page_len - pgto; in xdr_buf_tail_copy_left()
759 tail->iov_base + base, pglen); in xdr_buf_tail_copy_left()
760 base += pglen; in xdr_buf_tail_copy_left()
761 len -= pglen; in xdr_buf_tail_copy_left()
1595 unsigned int base, end, pglen; in xdr_read_pages() local
1597 pglen = xdr_align_pages(xdr, nwords << 2); in xdr_read_pages()
1598 if (pglen == 0) in xdr_read_pages()
1601 base = (nwords << 2) - pglen; in xdr_read_pages()
1602 end = xdr_stream_remaining(xdr) - pglen; in xdr_read_pages()
1605 return len <= pglen ? len : pglen; in xdr_read_pages()