Lines Matching refs:pages
186 struct page *pages[BLKS_PER_BUF]; in cramfs_blkdev_read() local
224 pages[i] = page; in cramfs_blkdev_read()
228 struct page *page = pages[i]; in cramfs_blkdev_read()
235 pages[i] = NULL; in cramfs_blkdev_read()
247 struct page *page = pages[i]; in cramfs_blkdev_read()
297 static u32 cramfs_get_block_range(struct inode *inode, u32 pgoff, u32 *pages) in cramfs_get_block_range() argument
318 pgoff+i, pgoff + *pages - 1, in cramfs_get_block_range()
324 } while (++i < *pages); in cramfs_get_block_range()
326 *pages = i; in cramfs_get_block_range()
359 unsigned int pages, max_pages, offset; in cramfs_physmem_mmap() local
382 pages = min(vma_pages(vma), max_pages - pgoff); in cramfs_physmem_mmap()
384 offset = cramfs_get_block_range(inode, pgoff, &pages); in cramfs_physmem_mmap()
394 if (pgoff + pages == max_pages && cramfs_last_page_is_shared(inode)) { in cramfs_physmem_mmap()
396 pages--; in cramfs_physmem_mmap()
399 if (!pages) { in cramfs_physmem_mmap()
404 if (pages == vma_pages(vma)) { in cramfs_physmem_mmap()
412 pages * PAGE_SIZE, vma->vm_page_prot); in cramfs_physmem_mmap()
421 for (i = 0; i < pages && !ret; i++) { in cramfs_physmem_mmap()
434 pgoff, address, pages, vma_pages(vma), vma->vm_start, in cramfs_physmem_mmap()
459 unsigned int pages, block_pages, max_pages, offset; in cramfs_physmem_get_unmapped_area() local
461 pages = (len + PAGE_SIZE - 1) >> PAGE_SHIFT; in cramfs_physmem_get_unmapped_area()
463 if (pgoff >= max_pages || pages > max_pages - pgoff) in cramfs_physmem_get_unmapped_area()
465 block_pages = pages; in cramfs_physmem_get_unmapped_area()
467 if (!offset || block_pages != pages) in cramfs_physmem_get_unmapped_area()