Home
last modified time | relevance | path

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

/DragonOS/kernel/src/mm/allocator/
H A Dbuddy.rs22 const MIN_ORDER: usize = 12; constant
69 free_area: [PhysAddr; MAX_ORDER - MIN_ORDER],
86 let mut free_area: [PhysAddr; MAX_ORDER - MIN_ORDER] = in new()
87 [PhysAddr::new(0); MAX_ORDER - MIN_ORDER]; in new()
132 for i in MIN_ORDER..MAX_ORDER { in new()
134 if remain_pages.data() < (1 << (i - MIN_ORDER)) { in new()
146 remain_pages -= 1 << (i - MIN_ORDER); in new()
156 remain_pages -= 1 << (i - MIN_ORDER); in new()
167 for i in (MIN_ORDER..MAX_ORDER).rev() { in new()
218 order as usize - MIN_ORDER in order2index()
[all …]