Lines Matching refs:MIN_ORDER
20 const MIN_ORDER: usize = 12; constant
67 free_area: [PhysAddr; (MAX_ORDER - MIN_ORDER) as usize],
88 let mut free_area: [PhysAddr; (MAX_ORDER - MIN_ORDER) as usize] = in new()
89 [PhysAddr::new(0); (MAX_ORDER - MIN_ORDER) as usize]; in new()
127 for i in MIN_ORDER..MAX_ORDER { in new()
129 if remain_pages.data() < (1 << (i - MIN_ORDER)) { in new()
149 remain_pages -= 1 << (i - MIN_ORDER); in new()
172 remain_pages -= 1 << (i - MIN_ORDER); in new()
189 remain_pages -= 1 << (i - MIN_ORDER); in new()
209 for i in (MIN_ORDER..MAX_ORDER).rev() { in new()
271 (order as usize - MIN_ORDER) as usize in order2index()
414 let order = (order + MIN_ORDER) as u8; in buddy_alloc()
428 .map(|addr| (addr, PageFrameCount::new(1 << (order as usize - MIN_ORDER)))); in buddy_alloc()
493 let new_page_list_addr = if order == MIN_ORDER { in buddy_free()
659 let order = (order + MIN_ORDER) as u8; in free()