• Home
  • Raw
  • Download

Lines Matching refs:nr_highmem

1892 static unsigned int count_pages_for_highmem(unsigned int nr_highmem)  in count_pages_for_highmem()  argument
1896 if (free_highmem >= nr_highmem) in count_pages_for_highmem()
1897 nr_highmem = 0; in count_pages_for_highmem()
1899 nr_highmem -= free_highmem; in count_pages_for_highmem()
1901 return nr_highmem; in count_pages_for_highmem()
1904 static unsigned int count_pages_for_highmem(unsigned int nr_highmem) { return 0; } in count_pages_for_highmem() argument
1910 static int enough_free_mem(unsigned int nr_pages, unsigned int nr_highmem) in enough_free_mem() argument
1919 nr_pages += count_pages_for_highmem(nr_highmem); in enough_free_mem()
1946 unsigned int nr_highmem) in alloc_highmem_pages() argument
1950 if (to_alloc > nr_highmem) in alloc_highmem_pages()
1951 to_alloc = nr_highmem; in alloc_highmem_pages()
1953 nr_highmem -= to_alloc; in alloc_highmem_pages()
1960 return nr_highmem; in alloc_highmem_pages()
1981 unsigned int nr_pages, unsigned int nr_highmem) in swsusp_alloc() argument
1983 if (nr_highmem > 0) { in swsusp_alloc()
1986 if (nr_highmem > alloc_highmem) { in swsusp_alloc()
1987 nr_highmem -= alloc_highmem; in swsusp_alloc()
1988 nr_pages += alloc_highmem_pages(copy_bm, nr_highmem); in swsusp_alloc()
2012 unsigned int nr_pages, nr_highmem; in swsusp_save() local
2018 nr_highmem = count_highmem_pages(); in swsusp_save()
2019 pr_info("Need to copy %u pages\n", nr_pages + nr_highmem); in swsusp_save()
2021 if (!enough_free_mem(nr_pages, nr_highmem)) { in swsusp_save()
2026 if (swsusp_alloc(&copy_bm, nr_pages, nr_highmem)) { in swsusp_save()
2044 nr_pages += nr_highmem; in swsusp_save()
2496 unsigned int nr_pages, nr_highmem; in prepare_image() local
2504 nr_highmem = count_highmem_image_pages(bm); in prepare_image()
2513 if (nr_highmem > 0) { in prepare_image()
2514 error = prepare_highmem_image(bm, &nr_highmem); in prepare_image()
2527 nr_pages = nr_copy_pages - nr_highmem - allocated_unsafe_pages; in prepare_image()
2540 nr_pages = nr_copy_pages - nr_highmem - allocated_unsafe_pages; in prepare_image()