Lines Matching refs:pglen

554 	unsigned int pglen = 0;  in xdr_buf_pages_copy_right()  local
568 pglen = buf->page_len - to; in xdr_buf_pages_copy_right()
569 talen = len - pglen; in xdr_buf_pages_copy_right()
573 pglen = len; in xdr_buf_pages_copy_right()
576 buf->page_base + base + pglen, talen); in xdr_buf_pages_copy_right()
578 buf->page_base + base, pglen); in xdr_buf_pages_copy_right()
588 unsigned int pglen = 0, pgto = 0; in xdr_buf_head_copy_right() local
600 pglen = len; in xdr_buf_head_copy_right()
601 if (pgto + pglen > buf->page_len) { in xdr_buf_head_copy_right()
602 talen = pgto + pglen - buf->page_len; in xdr_buf_head_copy_right()
603 pglen -= talen; in xdr_buf_head_copy_right()
606 pglen = len - to; in xdr_buf_head_copy_right()
607 if (pglen > buf->page_len) { in xdr_buf_head_copy_right()
608 talen = pglen - buf->page_len; in xdr_buf_head_copy_right()
609 pglen = buf->page_len; in xdr_buf_head_copy_right()
619 len -= pglen; in xdr_buf_head_copy_right()
620 base -= pglen; in xdr_buf_head_copy_right()
622 pglen); in xdr_buf_head_copy_right()
704 unsigned int pglen = len; in xdr_buf_tail_copy_left() local
706 if (pgto + pglen > buf->page_len) in xdr_buf_tail_copy_left()
707 pglen = buf->page_len - pgto; in xdr_buf_tail_copy_left()
709 tail->iov_base + base, pglen); in xdr_buf_tail_copy_left()
710 base += pglen; in xdr_buf_tail_copy_left()
711 len -= pglen; in xdr_buf_tail_copy_left()
1522 unsigned int base, end, pglen; in xdr_read_pages() local
1524 pglen = xdr_align_pages(xdr, nwords << 2); in xdr_read_pages()
1525 if (pglen == 0) in xdr_read_pages()
1528 base = (nwords << 2) - pglen; in xdr_read_pages()
1529 end = xdr_stream_remaining(xdr) - pglen; in xdr_read_pages()
1532 return len <= pglen ? len : pglen; in xdr_read_pages()