Lines Matching refs:align
61 static void *mem_alloc_tmp(struct boot_mem_desc *desc, size_t len, size_t align) in mem_alloc_tmp() argument
66 align = MAX(align, ASAN_BLOCK_SIZE); in mem_alloc_tmp()
69 assert(IS_POWER_OF_TWO(align) && !(len % align)); in mem_alloc_tmp()
72 va = ROUNDDOWN2(va, align); in mem_alloc_tmp()
102 static void *mem_alloc(struct boot_mem_desc *desc, size_t len, size_t align) in mem_alloc() argument
108 align = MAX(align, ASAN_BLOCK_SIZE); in mem_alloc()
112 assert(IS_POWER_OF_TWO(align) && !(len % align)); in mem_alloc()
113 va = ROUNDUP2(desc->mem_start, align); in mem_alloc()
234 void *boot_mem_alloc(size_t len, size_t align) in boot_mem_alloc() argument
236 return mem_alloc(boot_mem_desc, len, align); in boot_mem_alloc()
239 void *boot_mem_alloc_tmp(size_t len, size_t align) in boot_mem_alloc_tmp() argument
241 return mem_alloc_tmp(boot_mem_desc, len, align); in boot_mem_alloc_tmp()