Lines Matching refs:alloc

1403 	unsigned long alloc;  in preallocate_image_memory()  local
1408 alloc = avail_normal - alloc_normal; in preallocate_image_memory()
1409 if (nr_pages < alloc) in preallocate_image_memory()
1410 alloc = nr_pages; in preallocate_image_memory()
1412 return preallocate_image_pages(alloc, GFP_IMAGE); in preallocate_image_memory()
1435 unsigned long alloc = __fraction(nr_pages, highmem, total); in preallocate_highmem_fraction() local
1437 return preallocate_image_pages(alloc, GFP_IMAGE | __GFP_HIGHMEM); in preallocate_highmem_fraction()
1563 unsigned long alloc, save_highmem, pages_highmem, avail_normal; in hibernate_preallocate_memory() local
1655 alloc = count - max_size; in hibernate_preallocate_memory()
1656 if (alloc > pages_highmem) in hibernate_preallocate_memory()
1657 alloc -= pages_highmem; in hibernate_preallocate_memory()
1659 alloc = 0; in hibernate_preallocate_memory()
1660 pages = preallocate_image_memory(alloc, avail_normal); in hibernate_preallocate_memory()
1661 if (pages < alloc) { in hibernate_preallocate_memory()
1663 alloc -= pages; in hibernate_preallocate_memory()
1665 pages_highmem = preallocate_image_highmem(alloc); in hibernate_preallocate_memory()
1666 if (pages_highmem < alloc) in hibernate_preallocate_memory()
1673 alloc = (count - pages) - size; in hibernate_preallocate_memory()
1674 pages += preallocate_image_highmem(alloc); in hibernate_preallocate_memory()
1680 alloc = max_size - size; in hibernate_preallocate_memory()
1681 size = preallocate_highmem_fraction(alloc, highmem, count); in hibernate_preallocate_memory()
1683 alloc -= size; in hibernate_preallocate_memory()
1684 size = preallocate_image_memory(alloc, avail_normal); in hibernate_preallocate_memory()
1685 pages_highmem += preallocate_image_highmem(alloc - size); in hibernate_preallocate_memory()