Searched refs:UMP_BLOCK_SIZE (Results 1 – 1 of 1) sorted by relevance
29 #define UMP_BLOCK_SIZE (256UL * 1024UL) /* 256kB, remember to keep the ()s */ macro67 usable_size = (size + UMP_BLOCK_SIZE - 1) & ~(UMP_BLOCK_SIZE - 1); in ump_block_allocator_create()68 num_blocks = usable_size / UMP_BLOCK_SIZE; in ump_block_allocator_create()154 mem->nr_blocks = ((left + UMP_BLOCK_SIZE - 1) & ~(UMP_BLOCK_SIZE - 1)) / UMP_BLOCK_SIZE; in block_allocator_allocate()178 mem->block_array[i].size = UMP_BLOCK_SIZE; in block_allocator_allocate()179 mem->size_bytes += UMP_BLOCK_SIZE; in block_allocator_allocate()183 if (left < UMP_BLOCK_SIZE) left = 0; in block_allocator_allocate()184 else left -= UMP_BLOCK_SIZE; in block_allocator_allocate()260 return allocator->base + ((block - allocator->all_blocks) * UMP_BLOCK_SIZE); in get_phys()270 return (allocator->num_blocks - allocator->num_free) * UMP_BLOCK_SIZE; in block_allocator_stat()