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()
207 struct page **pages = NULL, **ptr, *page; in ramfs_nommu_get_unmapped_area() local
223 pages = kcalloc(lpages, sizeof(struct page *), GFP_KERNEL); in ramfs_nommu_get_unmapped_area()
224 if (!pages) in ramfs_nommu_get_unmapped_area()
227 nr = find_get_pages_contig(inode->i_mapping, pgoff, lpages, pages); in ramfs_nommu_get_unmapped_area()
232 ptr = pages; in ramfs_nommu_get_unmapped_area()
240 ret = (unsigned long) page_address(pages[0]); in ramfs_nommu_get_unmapped_area()
243 ptr = pages; in ramfs_nommu_get_unmapped_area()
247 kfree(pages); in ramfs_nommu_get_unmapped_area()