Lines Matching refs:u8
95 core::ptr::write_bytes(MMArch::phys_2_virt(*f)?.data() as *mut u8, 0, A::PAGE_SIZE); in new()
143 allocator.buddy_free(PhysAddr::new(paddr), i as u8); in new()
154 allocator.buddy_free(PhysAddr::new(paddr), i as u8); in new()
170 allocator.buddy_free(PhysAddr::new(paddr), i as u8); in new()
217 fn order2index(order: u8) -> usize { in order2index()
226 fn pop_front(&mut self, order: u8) -> Option<PhysAddr> { in pop_front()
227 let mut alloc_in_specific_order = |spec_order: u8| { in pop_front()
245 self.buddy_free(page_list_addr, MMArch::PAGE_SHIFT as u8); in pop_front()
288 unsafe { self.buddy_free(page_list_addr, MMArch::PAGE_SHIFT as u8) }; in pop_front()
316 x = alloc_in_specific_order(current_order as u8); in pop_front()
335 unsafe { self.buddy_free(buddy, current_order as u8) }; in pop_front()
359 let order = (order + MIN_ORDER) as u8; in buddy_alloc()
382 unsafe fn buddy_free(&mut self, mut base: PhysAddr, order: u8) { in buddy_free() argument
400 let first_page_list_paddr = self.free_area[Self::order2index(order as u8)]; in buddy_free()
435 let mut page_list_paddr = self.free_area[Self::order2index(order as u8)]; in buddy_free()
527 .as_ptr::<u8>(), in buddy_free()
532 first_page_list_paddr == self.free_area[Self::order2index(order as u8)] in buddy_free()
537 self.free_area[Self::order2index(order as u8)] = new_page_list_addr; in buddy_free()
541 let first_page_list_paddr = self.free_area[Self::order2index(order as u8)]; in buddy_free()
602 let order = (order + MIN_ORDER) as u8; in free()