Lines Matching refs:nr_highmem

1996 static unsigned int count_pages_for_highmem(unsigned int nr_highmem)  in count_pages_for_highmem()  argument
2000 if (free_highmem >= nr_highmem) in count_pages_for_highmem()
2001 nr_highmem = 0; in count_pages_for_highmem()
2003 nr_highmem -= free_highmem; in count_pages_for_highmem()
2005 return nr_highmem; in count_pages_for_highmem()
2008 static unsigned int count_pages_for_highmem(unsigned int nr_highmem) { return 0; } in count_pages_for_highmem() argument
2014 static int enough_free_mem(unsigned int nr_pages, unsigned int nr_highmem) in enough_free_mem() argument
2023 nr_pages += count_pages_for_highmem(nr_highmem); in enough_free_mem()
2050 unsigned int nr_highmem) in alloc_highmem_pages() argument
2054 if (to_alloc > nr_highmem) in alloc_highmem_pages()
2055 to_alloc = nr_highmem; in alloc_highmem_pages()
2057 nr_highmem -= to_alloc; in alloc_highmem_pages()
2064 return nr_highmem; in alloc_highmem_pages()
2085 unsigned int nr_pages, unsigned int nr_highmem) in swsusp_alloc() argument
2087 if (nr_highmem > 0) { in swsusp_alloc()
2090 if (nr_highmem > alloc_highmem) { in swsusp_alloc()
2091 nr_highmem -= alloc_highmem; in swsusp_alloc()
2092 nr_pages += alloc_highmem_pages(copy_bm, nr_highmem); in swsusp_alloc()
2116 unsigned int nr_pages, nr_highmem; in swsusp_save() local
2122 nr_highmem = count_highmem_pages(); in swsusp_save()
2123 pr_info("Need to copy %u pages\n", nr_pages + nr_highmem); in swsusp_save()
2125 if (!enough_free_mem(nr_pages, nr_highmem)) { in swsusp_save()
2130 if (swsusp_alloc(&copy_bm, nr_pages, nr_highmem)) { in swsusp_save()
2147 nr_pages += nr_highmem; in swsusp_save()
2628 unsigned int nr_pages, nr_highmem; in prepare_image() local
2637 nr_highmem = count_highmem_image_pages(bm); in prepare_image()
2664 if (nr_highmem > 0) { in prepare_image()
2665 error = prepare_highmem_image(bm, &nr_highmem); in prepare_image()
2678 nr_pages = (nr_zero_pages + nr_copy_pages) - nr_highmem - allocated_unsafe_pages; in prepare_image()
2691 nr_pages = (nr_zero_pages + nr_copy_pages) - nr_highmem - allocated_unsafe_pages; in prepare_image()