Lines Matching defs:pages
251 struct page **pages;
267 * Convert the linear kernel pointer into a sg_table of pages for use
272 pages = kmalloc_array(nr_pages, sizeof(struct page *), GFP_KERNEL);
273 if (!pages)
279 pages[index] = vmalloc_to_page(p);
281 pages[index] = kmap_to_page((void *)p);
282 if (!pages[index]) {
283 kfree(pages);
290 * The temporary pages list is used to code share the merging algorithm
293 rc = sg_alloc_table_from_pages(&sgt, pages, index, offset_in_page(buf),
295 kfree(pages);