Lines Matching defs:pages
19 struct page **pages;
43 /* Allocate memory for file pages */
45 pages = kmalloc_array(npages, sizeof(*pages), GFP_KERNEL);
46 if (!pages)
56 pages[i] = vmalloc_to_page(p);
58 pages[i] = kmap_to_page((void *)p);
59 if (!pages[i])
65 /* Create scatterlist of file pages to use for DMA mapping later */
66 if (sg_alloc_table_from_pages(&lm_file->sg_table, pages, npages, 0,
71 lm_file->pages = pages;
81 kfree(pages);
98 /* Free scatter list of file pages */
103 kfree(lm_file->pages);
104 lm_file->pages = NULL;