Lines Matching refs:image_size
492 static void store_slot_info(struct mem_vector *region, unsigned long image_size) in store_slot_info() argument
500 slot_area.num = 1 + (region->size - image_size) / CONFIG_PHYSICAL_ALIGN; in store_slot_info()
511 process_gb_huge_pages(struct mem_vector *region, unsigned long image_size) in process_gb_huge_pages() argument
518 store_slot_info(region, image_size); in process_gb_huge_pages()
528 store_slot_info(region, image_size); in process_gb_huge_pages()
533 if (pud_start >= region->start + image_size) { in process_gb_huge_pages()
536 store_slot_info(&tmp, image_size); in process_gb_huge_pages()
549 if (region->start + region->size >= pud_end + image_size) { in process_gb_huge_pages()
552 store_slot_info(&tmp, image_size); in process_gb_huge_pages()
582 unsigned long image_size) in __process_mem_region() argument
604 if (region.size < image_size) in __process_mem_region()
609 process_gb_huge_pages(®ion, image_size); in __process_mem_region()
614 if (overlap.start >= region.start + image_size) { in __process_mem_region()
616 process_gb_huge_pages(®ion, image_size); in __process_mem_region()
626 unsigned long image_size) in process_mem_region() argument
634 __process_mem_region(region, minimum, image_size); in process_mem_region()
663 __process_mem_region(&entry, minimum, image_size); in process_mem_region()
680 process_efi_entries(unsigned long minimum, unsigned long image_size) in process_efi_entries() argument
743 if (process_mem_region(®ion, minimum, image_size)) in process_efi_entries()
750 process_efi_entries(unsigned long minimum, unsigned long image_size) in process_efi_entries() argument
757 unsigned long image_size) in process_e820_entries() argument
771 if (process_mem_region(®ion, minimum, image_size)) in process_e820_entries()
777 unsigned long image_size) in find_random_phys_addr() argument
782 if (minimum + image_size > mem_limit) in find_random_phys_addr()
791 if (!process_efi_entries(minimum, image_size)) in find_random_phys_addr()
792 process_e820_entries(minimum, image_size); in find_random_phys_addr()
797 if (phys_addr < minimum || phys_addr + image_size > mem_limit) { in find_random_phys_addr()
806 unsigned long image_size) in find_random_virt_addr() argument
815 slots = 1 + (KERNEL_IMAGE_SIZE - minimum - image_size) / CONFIG_PHYSICAL_ALIGN; in find_random_virt_addr()