Lines Matching defs:pages
468 struct page **pages;
484 * Convert the linear kernel pointer into a sg_table of pages for use
489 pages = kmalloc_array(nr_pages, sizeof(struct page *), GFP_KERNEL);
490 if (!pages)
496 pages[index] = vmalloc_to_page(p);
498 pages[index] = kmap_to_page((void *)p);
499 if (!pages[index]) {
500 kfree(pages);
507 * The temporary pages list is used to code share the merging algorithm
510 rc = sg_alloc_table_from_pages(&sgt, pages, index, offset_in_page(buf),
512 kfree(pages);