Lines Matching refs:alloc
1628 unsigned long alloc; in preallocate_image_memory() local
1633 alloc = avail_normal - alloc_normal; in preallocate_image_memory()
1634 if (nr_pages < alloc) in preallocate_image_memory()
1635 alloc = nr_pages; in preallocate_image_memory()
1637 return preallocate_image_pages(alloc, GFP_IMAGE); in preallocate_image_memory()
1658 unsigned long alloc = __fraction(nr_pages, highmem, total); in preallocate_highmem_fraction() local
1660 return preallocate_image_pages(alloc, GFP_IMAGE | __GFP_HIGHMEM); in preallocate_highmem_fraction()
1784 unsigned long alloc, save_highmem, pages_highmem, avail_normal; in hibernate_preallocate_memory() local
1884 alloc = count - max_size; in hibernate_preallocate_memory()
1885 if (alloc > pages_highmem) in hibernate_preallocate_memory()
1886 alloc -= pages_highmem; in hibernate_preallocate_memory()
1888 alloc = 0; in hibernate_preallocate_memory()
1889 pages = preallocate_image_memory(alloc, avail_normal); in hibernate_preallocate_memory()
1890 if (pages < alloc) { in hibernate_preallocate_memory()
1892 alloc -= pages; in hibernate_preallocate_memory()
1894 pages_highmem = preallocate_image_highmem(alloc); in hibernate_preallocate_memory()
1895 if (pages_highmem < alloc) { in hibernate_preallocate_memory()
1897 alloc - pages_highmem); in hibernate_preallocate_memory()
1905 alloc = (count - pages) - size; in hibernate_preallocate_memory()
1906 pages += preallocate_image_highmem(alloc); in hibernate_preallocate_memory()
1912 alloc = max_size - size; in hibernate_preallocate_memory()
1913 size = preallocate_highmem_fraction(alloc, highmem, count); in hibernate_preallocate_memory()
1915 alloc -= size; in hibernate_preallocate_memory()
1916 size = preallocate_image_memory(alloc, avail_normal); in hibernate_preallocate_memory()
1917 pages_highmem += preallocate_image_highmem(alloc - size); in hibernate_preallocate_memory()