Lines Matching defs:highmem

28 #include <linux/highmem.h>
1297 * count_free_highmem_pages - Compute the total number of free highmem pages.
1314 * saveable_highmem_page - Check if a highmem page is saveable.
1316 * Determine whether a highmem page should be included in a hibernation image.
1347 * count_highmem_pages - Compute the total number of saveable highmem pages.
1378 * Determine whether a non-highmem page should be included in a hibernation
1415 * count_data_pages - Compute the total number of saveable non-highmem pages.
1572 * Numbers of normal and highmem page frames allocated for hibernation image
1585 * duplicated in @orig_bm and it is released. On highmem systems it is next
1586 * used for marking "safe" highmem pages, but it has to be reinitialized for
1709 unsigned long highmem,
1712 unsigned long alloc = __fraction(nr_pages, highmem, total);
1723 unsigned long highmem,
1837 unsigned long saveable, size, max_size, count, highmem, pages = 0;
1877 highmem = save_highmem;
1882 highmem += zone_page_state(zone, NR_FREE_PAGES);
1887 count += highmem;
1935 * highmem and non-highmem zones separately.
1937 pages_highmem = preallocate_image_highmem(highmem / 2);
1945 /* We have exhausted non-highmem pages, try highmem. */
1967 size = preallocate_highmem_fraction(alloc, highmem, count);
1996 * count_pages_for_highmem - Count non-highmem pages needed for copying highmem.
1998 * Compute the number of non-highmem pages that will be necessary for creating
1999 * copies of highmem pages.
2037 * get_highmem_buffer - Allocate a buffer for highmem pages.
2039 * If there are some highmem pages in the hibernation image, we may need a
2049 * alloc_highmem_pages - Allocate some highmem pages for the image.
2051 * Try to allocate as many pages as needed, but if the number of free highmem
2081 * We first try to allocate as many highmem pages as there are
2082 * saveable highmem pages in the system. If that fails, we allocate
2083 * non-highmem pages for the copies of the remaining highmem ones.
2085 * In this approach it is likely that the copies of highmem pages will
2277 * highmem page (we may not be called again).
2402 * struct highmem_pbe is used for creating the list of highmem pages that
2413 * List of highmem PBEs needed for restoring the highmem pages that were
2421 * count_highmem_image_pages - Compute the number of highmem pages in the image.
2447 * prepare_highmem_image - Allocate memory for loading highmem data from image.
2449 * @nr_highmem_p: Pointer to the number of highmem image pages.
2451 * Try to allocate as many highmem pages as there are highmem image pages
2452 * (@nr_highmem_p points to the variable containing the number of highmem image
2457 * NOTE: This function should not be called if there are no highmem image pages.
2498 * get_highmem_page_buffer - Prepare a buffer to store a highmem image page.
2500 * For a given highmem image page get a buffer that suspend_write_next() should
2504 * the page is to be made in the highmem, @buffer is returned. Otherwise,
2561 * copy_last_highmem_page - Copy most the most recent highmem image page.
2563 * Copy the contents of a highmem image from @buffer, where the caller of
2625 * memory a list of "safe" highmem pages is created too.
2638 /* If there is no highmem, the buffer will not be necessary */
2861 * page in the image happens to be a highmem page and its contents should be
2862 * stored in highmem. Additionally, it recycles bitmap memory that's not
2902 * restore_highmem - Put highmem image pages into their original locations.
2904 * For each highmem page that was in use before hibernation and is included in
2909 * restore the highmem state as seen by the restore kernel.