Lines Matching refs:pages
455 struct page **pages, unsigned int n_pages, unsigned int offset, in sg_alloc_append_table_from_pages() argument
484 if (page_to_pfn(pages[0]) == next_pfn) { in sg_alloc_append_table_from_pages()
486 while (n_pages && pages_are_mergeable(pages[0], last_pg)) { in sg_alloc_append_table_from_pages()
490 last_pg = pages[0]; in sg_alloc_append_table_from_pages()
491 pages++; in sg_alloc_append_table_from_pages()
505 !pages_are_mergeable(pages[i], pages[i - 1])) { in sg_alloc_append_table_from_pages()
521 !pages_are_mergeable(pages[j], pages[j - 1])) in sg_alloc_append_table_from_pages()
538 sg_set_page(s, pages[cur_page], in sg_alloc_append_table_from_pages()
578 int sg_alloc_table_from_pages_segment(struct sg_table *sgt, struct page **pages, in sg_alloc_table_from_pages_segment() argument
586 err = sg_alloc_append_table_from_pages(&append, pages, n_pages, offset, in sg_alloc_table_from_pages_segment()
1114 struct page **pages; in extract_user_to_sg() local
1120 pages = (void *)sgtable->sgl + in extract_user_to_sg()
1122 pages -= sg_max; in extract_user_to_sg()
1125 res = iov_iter_extract_pages(iter, &pages, maxsize, sg_max, in extract_user_to_sg()
1137 struct page *page = *pages; in extract_user_to_sg()
1140 *pages++ = NULL; in extract_user_to_sg()