Lines Matching refs:nr_highmem

1850 static unsigned int count_pages_for_highmem(unsigned int nr_highmem)  in count_pages_for_highmem()  argument
1854 if (free_highmem >= nr_highmem) in count_pages_for_highmem()
1855 nr_highmem = 0; in count_pages_for_highmem()
1857 nr_highmem -= free_highmem; in count_pages_for_highmem()
1859 return nr_highmem; in count_pages_for_highmem()
1862 static unsigned int count_pages_for_highmem(unsigned int nr_highmem) { return 0; } in count_pages_for_highmem() argument
1868 static int enough_free_mem(unsigned int nr_pages, unsigned int nr_highmem) in enough_free_mem() argument
1877 nr_pages += count_pages_for_highmem(nr_highmem); in enough_free_mem()
1904 unsigned int nr_highmem) in alloc_highmem_pages() argument
1908 if (to_alloc > nr_highmem) in alloc_highmem_pages()
1909 to_alloc = nr_highmem; in alloc_highmem_pages()
1911 nr_highmem -= to_alloc; in alloc_highmem_pages()
1918 return nr_highmem; in alloc_highmem_pages()
1939 unsigned int nr_pages, unsigned int nr_highmem) in swsusp_alloc() argument
1941 if (nr_highmem > 0) { in swsusp_alloc()
1944 if (nr_highmem > alloc_highmem) { in swsusp_alloc()
1945 nr_highmem -= alloc_highmem; in swsusp_alloc()
1946 nr_pages += alloc_highmem_pages(copy_bm, nr_highmem); in swsusp_alloc()
1970 unsigned int nr_pages, nr_highmem; in swsusp_save() local
1976 nr_highmem = count_highmem_pages(); in swsusp_save()
1977 pr_info("Need to copy %u pages\n", nr_pages + nr_highmem); in swsusp_save()
1979 if (!enough_free_mem(nr_pages, nr_highmem)) { in swsusp_save()
1984 if (swsusp_alloc(&copy_bm, nr_pages, nr_highmem)) { in swsusp_save()
2002 nr_pages += nr_highmem; in swsusp_save()
2457 unsigned int nr_pages, nr_highmem; in prepare_image() local
2465 nr_highmem = count_highmem_image_pages(bm); in prepare_image()
2474 if (nr_highmem > 0) { in prepare_image()
2475 error = prepare_highmem_image(bm, &nr_highmem); in prepare_image()
2488 nr_pages = nr_copy_pages - nr_highmem - allocated_unsafe_pages; in prepare_image()
2501 nr_pages = nr_copy_pages - nr_highmem - allocated_unsafe_pages; in prepare_image()