Lines Matching full:alignment
128 * @alignment: Alignment required - must be power of 2
131 static void *cvmx_bootmem_alloc_range(uint64_t size, uint64_t alignment, in cvmx_bootmem_alloc_range() argument
136 cvmx_bootmem_phy_alloc(size, min_addr, max_addr, alignment, 0); in cvmx_bootmem_alloc_range()
145 uint64_t alignment) in cvmx_bootmem_alloc_address() argument
147 return cvmx_bootmem_alloc_range(size, alignment, address, in cvmx_bootmem_alloc_address()
165 void *cvmx_bootmem_alloc_named(uint64_t size, uint64_t alignment, char *name) in cvmx_bootmem_alloc_named() argument
167 return cvmx_bootmem_alloc_named_range(size, 0, 0, alignment, name); in cvmx_bootmem_alloc_named()
218 uint64_t address_max, uint64_t alignment, in cvmx_bootmem_phy_alloc() argument
235 (unsigned long long)alignment); in cvmx_bootmem_phy_alloc()
259 /* Round req_size up to mult of minimum alignment bytes */ in cvmx_bootmem_phy_alloc()
276 * Enforce minimum alignment (this also keeps the minimum free block in cvmx_bootmem_phy_alloc()
277 * req_size the same as the alignment req_size. in cvmx_bootmem_phy_alloc()
279 if (alignment < CVMX_BOOTMEM_ALIGNMENT_SIZE) in cvmx_bootmem_phy_alloc()
280 alignment = CVMX_BOOTMEM_ALIGNMENT_SIZE; in cvmx_bootmem_phy_alloc()
283 * Adjust address minimum based on requested alignment (round in cvmx_bootmem_phy_alloc()
284 * up to meet alignment). Do this here so we can reject in cvmx_bootmem_phy_alloc()
287 if (alignment) in cvmx_bootmem_phy_alloc()
288 address_min = ALIGN(address_min, alignment); in cvmx_bootmem_phy_alloc()
326 ALIGN(max(address_min, ent_addr), alignment); in cvmx_bootmem_phy_alloc()
352 * alignment. in cvmx_bootmem_phy_alloc()
354 desired_min_addr &= ~(alignment - 1); in cvmx_bootmem_phy_alloc()
720 uint64_t alignment, in cvmx_bootmem_phy_named_block_alloc() argument
733 (unsigned long long)alignment, in cvmx_bootmem_phy_named_block_alloc()
770 * Round size up to mult of minimum alignment bytes We need in cvmx_bootmem_phy_named_block_alloc()
778 alignment, in cvmx_bootmem_phy_named_block_alloc()