Lines Matching defs:saveable
1309 * saveable_highmem_page - Check if a highmem page is saveable.
1342 * count_highmem_pages - Compute the total number of saveable highmem pages.
1366 * saveable_page - Check if the given page is saveable.
1405 * count_data_pages - Compute the total number of saveable non-highmem pages.
1567 * Memory bitmap used for marking saveable pages (during hibernation) or
1573 * will contain copies of saveable pages. During restore it is initially used
1581 /* Memory bitmap which tracks which saveable pages were zero filled. */
1776 * @saveable: Number of saveable pages in the system.
1784 * [number of saveable pages] - [number of pages that can be freed in theory]
1789 static unsigned long minimum_image_size(unsigned long saveable)
1799 return saveable <= size ? 0 : saveable - size;
1820 * the preallocation of memory is continued until the total number of saveable
1827 unsigned long saveable, size, max_size, count, highmem, pages = 0;
1857 /* Count the number of saveable data pages. */
1859 saveable = count_data_pages();
1865 count = saveable;
1866 saveable += save_highmem;
1880 /* Compute the maximum number of saveable pages to leave in memory. */
1889 * current number of saveable pages in memory, allocate page frames for
1892 if (size >= saveable) {
1894 pages += preallocate_image_memory(saveable - pages, avail_normal);
1899 pages = minimum_image_size(saveable);
1918 shrink_all_memory(saveable - size);
1921 * The number of saveable pages in memory was too high, so apply some
1946 * size is the desired number of saveable pages to leave in
1953 * There are approximately max_size saveable pages at this point
1966 * We only need as many page frames for the image as there are saveable
2072 * saveable highmem pages in the system. If that fails, we allocate