Lines Matching refs:alignment
370 const uint64_t alignment, const enum e820_memory_type type) in e820_alloc_highest() argument
378 base = roundup2(element->base, alignment); in e820_alloc_highest()
390 address = rounddown2(end - length, alignment); in e820_alloc_highest()
404 const uint64_t alignment, const enum e820_memory_type type) in e820_alloc_lowest() argument
412 base = MAX(min_address, roundup2(element->base, alignment)); in e820_alloc_lowest()
436 const uint64_t alignment, const enum e820_memory_type type, in e820_alloc() argument
439 assert(powerof2(alignment)); in e820_alloc()
440 assert((address & (alignment - 1)) == 0); in e820_alloc()
448 return (e820_alloc_lowest(0, length, alignment, type)); in e820_alloc()
450 return (e820_alloc_lowest(address, length, alignment, type)); in e820_alloc()
452 return (e820_alloc_highest(address, length, alignment, type)); in e820_alloc()