Lines Matching refs:num_bits
204 size_t offset, num_bits; in virt_region_init() local
213 num_bits = Z_VM_RESERVED / CONFIG_MMU_PAGE_SIZE; in virt_region_init()
215 num_bits, 0); in virt_region_init()
219 num_bits = POINTER_TO_UINT(Z_FREE_VM_START) in virt_region_init()
221 offset = virt_to_bitmap_offset(Z_VIRT_RAM_START, num_bits); in virt_region_init()
222 num_bits /= CONFIG_MMU_PAGE_SIZE; in virt_region_init()
224 num_bits, offset); in virt_region_init()
233 size_t num_bits; in virt_region_alloc() local
240 num_bits = size / CONFIG_MMU_PAGE_SIZE; in virt_region_alloc()
241 ret = sys_bitarray_alloc(&virt_region_bitmap, num_bits, &offset); in virt_region_alloc()
265 size_t offset, num_bits; in virt_region_free() local
281 num_bits = size / CONFIG_MMU_PAGE_SIZE; in virt_region_free()
282 (void)sys_bitarray_free(&virt_region_bitmap, num_bits, offset); in virt_region_free()