Lines Matching refs:pages
433 struct page **pages, unsigned int n_pages, unsigned int offset, in sg_alloc_append_table_from_pages() argument
462 if (page_to_pfn(pages[0]) == next_pfn) { in sg_alloc_append_table_from_pages()
464 while (n_pages && pages_are_mergeable(pages[0], last_pg)) { in sg_alloc_append_table_from_pages()
468 last_pg = pages[0]; in sg_alloc_append_table_from_pages()
469 pages++; in sg_alloc_append_table_from_pages()
483 !pages_are_mergeable(pages[i], pages[i - 1])) { in sg_alloc_append_table_from_pages()
499 !pages_are_mergeable(pages[j], pages[j - 1])) in sg_alloc_append_table_from_pages()
516 sg_set_page(s, pages[cur_page], in sg_alloc_append_table_from_pages()
556 int sg_alloc_table_from_pages_segment(struct sg_table *sgt, struct page **pages, in sg_alloc_table_from_pages_segment() argument
564 err = sg_alloc_append_table_from_pages(&append, pages, n_pages, offset, in sg_alloc_table_from_pages_segment()
1096 struct page **pages; in extract_user_to_sg() local
1102 pages = (void *)sgtable->sgl + in extract_user_to_sg()
1104 pages -= sg_max; in extract_user_to_sg()
1107 res = iov_iter_extract_pages(iter, &pages, maxsize, sg_max, in extract_user_to_sg()
1119 struct page *page = *pages; in extract_user_to_sg()
1122 *pages++ = NULL; in extract_user_to_sg()