Lines Matching refs:MAX_ORDER
18 const MAX_ORDER: usize = 31; constant
67 free_area: [PhysAddr; (MAX_ORDER - MIN_ORDER) as usize],
83 (((initial_free_pages.data() * A::PAGE_SIZE) >> (MAX_ORDER - 1)) + Self::BUDDY_ENTRIES in new()
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()
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()
127 for i in MIN_ORDER..MAX_ORDER { in new()
135 if likely(i != MAX_ORDER - 1) { in new()
207 assert!(remain_bytes < (1 << MAX_ORDER - 1)); in new()
209 for i in (MIN_ORDER..MAX_ORDER).rev() { in new()
370 while current_order < MAX_ORDER { in pop_front()
415 if order as usize >= MAX_ORDER { in buddy_alloc()
441 while order < MAX_ORDER { in buddy_free()
463 if likely(order != MAX_ORDER - 1) { in buddy_free()
631 assert!(order == MAX_ORDER - 1); in buddy_free()