Lines Matching defs:page

22 static void _copy_to_pages(struct page **, size_t, const char *, size_t);
189 struct page **pages = xdr->pages;
221 * @pages: vector of struct page pointers
222 * @base: offset in first page where receive should start, in bytes
228 struct page **pages, unsigned int base, unsigned int len)
254 * @pgto_base: page vector address of destination
255 * @pgfrom_base: page vector address of source
260 * if a memory area starts at byte 'base' in page 'pages[i]',
266 _shift_data_left_pages(struct page **pages, size_t pgto_base,
269 struct page **pgfrom, **pgto;
319 * @pgto_base: page vector address of destination
320 * @pgfrom_base: page vector address of source
325 * if a memory area starts at byte 'base' in page 'pages[i]',
331 _shift_data_right_pages(struct page **pages, size_t pgto_base,
334 struct page **pgfrom, **pgto;
353 /* Are any pointers crossing a page boundary? */
387 * @pgbase: page vector address of destination
395 _copy_to_pages(struct page **pages, size_t pgbase, const char *p, size_t len)
397 struct page **pgto;
442 _copy_from_pages(char *p, struct page **pages, size_t pgbase, size_t len)
444 struct page **pgfrom;
493 struct page **pages = buf->pages;
494 struct page **page;
511 page = pages + (pgbase >> PAGE_SHIFT);
519 vpage = kmap_atomic(*page);
523 flush_dcache_page(*page);
525 page++;
888 * @len: new page buffer length
1000 struct page **pages, struct rpc_rqst *rqst)
1017 * We handle encoding across page boundaries by giving the caller a
1029 void *page;
1031 page = page_address(*xdr->page_ptr);
1032 memcpy(xdr->scratch.iov_base, page, shift);
1033 memmove(page, page + shift, (void *)xdr->p - page);
1064 * If the last encode didn't end exactly on a page boundary, the
1066 * page, then copy it back later in xdr_commit_encode. We use
1129 * on the number of bytes remaining in the current page to avoid
1173 * head, tail, and page lengths are adjusted to correspond.
1176 * the end pointer should be set to the end of the current page,
1180 * This is *not* safe to use on a buffer that already has inlined page
1290 void xdr_write_pages(struct xdr_stream *xdr, struct page **pages, unsigned int base,
1453 struct page **pages, unsigned int len)
1573 /* Truncate page data and move it into the tail */
1581 * xdr_read_pages - align page-based XDR data to current pointer position
1583 * @len: number of bytes of page data
1586 * into the page list. Any data that lies beyond current position + @len
1612 * @len: new length of the XDR page data
1640 * xdr_enter_page - decode data from the XDR page
1642 * @len: number of bytes of page data
1645 * into the page list. Any data that lies beyond current position + "len"
1647 * repositioned at the beginning of the first XDR page.
1967 struct page **ppages = NULL;