Home
last modified time | relevance | path

Searched refs:order2index (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.8/kernel/src/mm/allocator/
Dbuddy.rs114 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() method
282 let mut page_list_addr = self.free_area[Self::order2index(spec_order)]; in pop_front()
295 self.free_area[Self::order2index(spec_order)] = next_page_list_addr; in pop_front()
303 let next_page_list_addr = self.free_area[Self::order2index(spec_order)]; in pop_front()
340 self.free_area[Self::order2index(spec_order)] = page_list.next_page; in pop_front()
[all …]