Lines Matching refs:u8

97             core::ptr::write_bytes(MMArch::phys_2_virt(*f)?.data() as *mut u8, 0, A::PAGE_SIZE);  in new()
108 MMArch::phys_2_virt(curr_page)?.data() as *mut u8, in new()
114 PageList::new(0, free_area[Self::order2index((MAX_ORDER - 1) as u8)]); in new()
116 free_area[Self::order2index((MAX_ORDER - 1) as u8)] = curr_page; in new()
138 let page_list_paddr: PhysAddr = free_area[Self::order2index(i as u8)]; in new()
156 let mut page_list_paddr: PhysAddr = free_area[Self::order2index(i as u8)]; in new()
212 let page_list_paddr: PhysAddr = free_area[Self::order2index(i as u8)]; in new()
270 fn order2index(order: u8) -> usize { in order2index()
279 fn pop_front(&mut self, order: u8) -> Option<PhysAddr> { in pop_front()
280 let mut alloc_in_specific_order = |spec_order: u8| { in pop_front()
299 self.buddy_free(page_list_addr, MMArch::PAGE_SHIFT as u8); in pop_front()
342 unsafe { self.buddy_free(page_list_addr, MMArch::PAGE_SHIFT as u8) }; in pop_front()
361 let result: Option<PhysAddr> = alloc_in_specific_order(order as u8); in pop_front()
371 x = alloc_in_specific_order(current_order as u8); in pop_front()
390 unsafe { self.buddy_free(buddy, current_order as u8) }; in pop_front()
414 let order = (order + MIN_ORDER) as u8; in buddy_alloc()
437 unsafe fn buddy_free(&mut self, mut base: PhysAddr, order: u8) { in buddy_free() argument
455 let first_page_list_paddr = self.free_area[Self::order2index(order as u8)]; in buddy_free()
510 .as_ptr::<u8>(), in buddy_free()
515 first_page_list_paddr == self.free_area[Self::order2index(order as u8)] in buddy_free()
520 self.free_area[Self::order2index(order as u8)] = new_page_list_addr; in buddy_free()
524 let first_page_list_paddr = self.free_area[Self::order2index(order as u8)]; in buddy_free()
560 let mut page_list_paddr = self.free_area[Self::order2index(order as u8)]; in buddy_free()
659 let order = (order + MIN_ORDER) as u8; in free()