• Home
  • Raw
  • Download

Lines Matching refs:alloc

1580 	unsigned long alloc;  in preallocate_image_memory()  local
1585 alloc = avail_normal - alloc_normal; in preallocate_image_memory()
1586 if (nr_pages < alloc) in preallocate_image_memory()
1587 alloc = nr_pages; in preallocate_image_memory()
1589 return preallocate_image_pages(alloc, GFP_IMAGE); in preallocate_image_memory()
1610 unsigned long alloc = __fraction(nr_pages, highmem, total); in preallocate_highmem_fraction() local
1612 return preallocate_image_pages(alloc, GFP_IMAGE | __GFP_HIGHMEM); in preallocate_highmem_fraction()
1736 unsigned long alloc, save_highmem, pages_highmem, avail_normal; in hibernate_preallocate_memory() local
1829 alloc = count - max_size; in hibernate_preallocate_memory()
1830 if (alloc > pages_highmem) in hibernate_preallocate_memory()
1831 alloc -= pages_highmem; in hibernate_preallocate_memory()
1833 alloc = 0; in hibernate_preallocate_memory()
1834 pages = preallocate_image_memory(alloc, avail_normal); in hibernate_preallocate_memory()
1835 if (pages < alloc) { in hibernate_preallocate_memory()
1837 alloc -= pages; in hibernate_preallocate_memory()
1839 pages_highmem = preallocate_image_highmem(alloc); in hibernate_preallocate_memory()
1840 if (pages_highmem < alloc) { in hibernate_preallocate_memory()
1842 alloc - pages_highmem); in hibernate_preallocate_memory()
1850 alloc = (count - pages) - size; in hibernate_preallocate_memory()
1851 pages += preallocate_image_highmem(alloc); in hibernate_preallocate_memory()
1857 alloc = max_size - size; in hibernate_preallocate_memory()
1858 size = preallocate_highmem_fraction(alloc, highmem, count); in hibernate_preallocate_memory()
1860 alloc -= size; in hibernate_preallocate_memory()
1861 size = preallocate_image_memory(alloc, avail_normal); in hibernate_preallocate_memory()
1862 pages_highmem += preallocate_image_highmem(alloc - size); in hibernate_preallocate_memory()