Home
last modified time | relevance | path

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

/DragonOS/kernel/src/driver/net/
H A Ddma.rs20 ((pages * PAGE_SIZE + MMArch::PAGE_SIZE - 1) / MMArch::PAGE_SIZE).next_power_of_two(), in dma_alloc()
47 ((pages * PAGE_SIZE + MMArch::PAGE_SIZE - 1) / MMArch::PAGE_SIZE).next_power_of_two(), in dma_dealloc()
/DragonOS/kernel/src/driver/virtio/
H A Dvirtio_impl.rs26 ((pages * PAGE_SIZE + MMArch::PAGE_SIZE - 1) / MMArch::PAGE_SIZE).next_power_of_two(), in dma_alloc()
58 ((pages * PAGE_SIZE + MMArch::PAGE_SIZE - 1) / MMArch::PAGE_SIZE).next_power_of_two(), in dma_dealloc()
/DragonOS/kernel/src/mm/allocator/
H A Dkernel_allocator.rs34 let count = (page_align_up(layout.size()) / MMArch::PAGE_SIZE).next_power_of_two(); in alloc_in_buddy()
56 let count = (page_align_up(layout.size()) / MMArch::PAGE_SIZE).next_power_of_two(); in free_in_buddy()
H A Dpage_frame.rs202 pub fn next_power_of_two(&self) -> Self { in next_power_of_two() method
203 Self::new(self.0.next_power_of_two()) in next_power_of_two()
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dmod.rs582 let random_size = PageFrameCount::from_bytes(random_size.next_power_of_two()).unwrap(); in test_buddy()
652 count = count.next_power_of_two(); in allocate()