Searched refs:bump_allocator (Results 1 – 3 of 3) sorted by relevance
75 let mut bump_allocator = BumpAllocator::<RiscV64MMArch>::new(0); in riscv_mm_init() localVariable86 &mut bump_allocator, in riscv_mm_init()130 bump_allocator.usage().used().bytes() / 1024 in riscv_mm_init()134 let buddy_allocator = unsafe { BuddyAllocator::<MMArch>::new(bump_allocator).unwrap() }; in riscv_mm_init()
80 pub unsafe fn new(mut bump_allocator: BumpAllocator<A>) -> Option<Self> { in new()81 let initial_free_pages = bump_allocator.usage().free(); in new()82 let total_memory = bump_allocator.usage().total(); in new()91 let curr_page = bump_allocator.allocate_one(); in new()109 let mut offset_in_remain_area = bump_allocator in new()
463 let mut bump_allocator = BumpAllocator::<X86_64MMArch>::new(phy_offset.data()); in allocator_init() localVariable466 bump_allocator.offset() in allocator_init()481 &mut bump_allocator, in allocator_init()522 bump_allocator.offset() / 1024 in allocator_init()526 let buddy_allocator = unsafe { BuddyAllocator::<X86_64MMArch>::new(bump_allocator).unwrap() }; in allocator_init()