Lines Matching refs:as
975 u64 as = 0, ae; in find_memmap_space() local
1017 as = max(contig_low, md->phys_addr); in find_memmap_space()
1021 as = max(as, min_addr); in find_memmap_space()
1023 if (ae <= as) in find_memmap_space()
1027 if (total_mem + (ae - as) > mem_limit) in find_memmap_space()
1028 ae -= total_mem + (ae - as) - mem_limit; in find_memmap_space()
1030 if (ae <= as) in find_memmap_space()
1033 if (ae - as > space_needed) in find_memmap_space()
1039 return __va(as); in find_memmap_space()
1052 u64 as, ae, lim; in efi_memmap_init() local
1116 as = contig_low; in efi_memmap_init()
1118 as = md->phys_addr; in efi_memmap_init()
1140 as = max(as, min_addr); in efi_memmap_init()
1142 if (ae <= as) in efi_memmap_init()
1146 if (total_mem + (ae - as) > mem_limit) in efi_memmap_init()
1147 ae -= total_mem + (ae - as) - mem_limit; in efi_memmap_init()
1149 if (ae <= as) in efi_memmap_init()
1152 prev->num_pages += (ae - as) >> EFI_PAGE_SHIFT; in efi_memmap_init()
1153 total_mem += ae - as; in efi_memmap_init()
1157 k->start = as; in efi_memmap_init()
1158 k->num_pages = (ae - as) >> EFI_PAGE_SHIFT; in efi_memmap_init()
1159 total_mem += ae - as; in efi_memmap_init()