Searched refs:max_alloc_size (Results 1 - 2 of 2) sorted by relevance

/fuchsia/zircon/kernel/lib/pow2_range_allocator/include/lib/
H A Dpow2_range_allocator.h45 * @param max_alloc_size The maximum size of a single contiguous allocation.
50 zx_status_t p2ra_init(p2ra_state_t* state, uint max_alloc_size);
/fuchsia/zircon/kernel/lib/pow2_range_allocator/
H A Dpow2_range_allocator.cpp129 zx_status_t p2ra_init(p2ra_state_t* state, uint max_alloc_size) { argument
133 if (!max_alloc_size || !ispow2(max_alloc_size)) {
134 TRACEF("max_alloc_size (%u) is not an integer power of two!\n", max_alloc_size);
139 state->bucket_count = log2_uint_floor(max_alloc_size) + 1;

Completed in 8 milliseconds