Lines Matching refs:pages
544 unsigned long pages; in create_zone_bm_rtree() local
546 pages = end - start; in create_zone_bm_rtree()
555 nr_blocks = DIV_ROUND_UP(pages, BM_BITS_PER_BLOCK); in create_zone_bm_rtree()
929 unsigned long bits, pfn, pages; in memory_bm_next_pfn() local
933 pages = bm->cur.zone->end_pfn - bm->cur.zone->start_pfn; in memory_bm_next_pfn()
934 bits = min(pages - bm->cur.node_pfn, BM_BITS_PER_BLOCK); in memory_bm_next_pfn()
1783 unsigned long saveable, size, max_size, count, highmem, pages = 0; in hibernate_preallocate_memory() local
1849 pages = preallocate_image_highmem(save_highmem); in hibernate_preallocate_memory()
1850 pages += preallocate_image_memory(saveable - pages, avail_normal); in hibernate_preallocate_memory()
1855 pages = minimum_image_size(saveable); in hibernate_preallocate_memory()
1861 if (avail_normal > pages) in hibernate_preallocate_memory()
1862 avail_normal -= pages; in hibernate_preallocate_memory()
1865 if (size < pages) in hibernate_preallocate_memory()
1866 size = min_t(unsigned long, pages, max_size); in hibernate_preallocate_memory()
1889 pages = preallocate_image_memory(alloc, avail_normal); in hibernate_preallocate_memory()
1890 if (pages < alloc) { in hibernate_preallocate_memory()
1892 alloc -= pages; in hibernate_preallocate_memory()
1893 pages += pages_highmem; in hibernate_preallocate_memory()
1900 pages += pages_highmem; in hibernate_preallocate_memory()
1905 alloc = (count - pages) - size; in hibernate_preallocate_memory()
1906 pages += preallocate_image_highmem(alloc); in hibernate_preallocate_memory()
1918 pages += pages_highmem + size; in hibernate_preallocate_memory()
1926 pages -= free_unnecessary_pages(); in hibernate_preallocate_memory()
1930 pr_info("Allocated %lu pages for snapshot\n", pages); in hibernate_preallocate_memory()
1931 swsusp_show_speed(start, stop, pages, "Allocated"); in hibernate_preallocate_memory()
2143 info->pages = snapshot_get_image_size(); in init_header()
2144 info->size = info->pages; in init_header()
2302 nr_meta_pages = info->pages - info->image_pages - 1; in load_header()