Lines Matching refs:pages
65 struct page *pages; in ramfs_nommu_expand_for_mapping() local
84 pages = alloc_pages(gfp, order); in ramfs_nommu_expand_for_mapping()
85 if (!pages) in ramfs_nommu_expand_for_mapping()
92 split_page(pages, order); in ramfs_nommu_expand_for_mapping()
96 __free_page(pages + loop); in ramfs_nommu_expand_for_mapping()
100 data = page_address(pages); in ramfs_nommu_expand_for_mapping()
105 struct page *page = pages + loop; in ramfs_nommu_expand_for_mapping()
124 __free_page(pages + loop++); in ramfs_nommu_expand_for_mapping()
208 struct page **pages = NULL, **ptr, *page; in ramfs_nommu_get_unmapped_area() local
224 pages = kcalloc(lpages, sizeof(struct page *), GFP_KERNEL); in ramfs_nommu_get_unmapped_area()
225 if (!pages) in ramfs_nommu_get_unmapped_area()
228 nr = find_get_pages_contig(inode->i_mapping, pgoff, lpages, pages); in ramfs_nommu_get_unmapped_area()
233 ptr = pages; in ramfs_nommu_get_unmapped_area()
241 ret = (unsigned long) page_address(pages[0]); in ramfs_nommu_get_unmapped_area()
244 ptr = pages; in ramfs_nommu_get_unmapped_area()
248 kfree(pages); in ramfs_nommu_get_unmapped_area()