Home
last modified time | relevance | path

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

/external/crosvm/resources/src/
Dsystem_allocator.rs7 use crate::address_allocator::{AddressAllocator, AddressAllocatorSet};
50 io_address_space: Option<AddressAllocator>,
53 mmio_address_spaces: [AddressAllocator; 2],
55 pci_allocator: AddressAllocator,
56 irq_allocator: AddressAllocator,
84 Some(AddressAllocator::new(b, s, Some(0x400))?) in new()
90 AddressAllocator::new(low_base, low_size, Some(page_size))?, in new()
92 AddressAllocator::new(high_base, high_size, Some(page_size))?, in new()
96 pci_allocator: AddressAllocator::new(8, (256 * 32 * 8) - 8, Some(8))?, in new()
97 irq_allocator: AddressAllocator::new( in new()
[all …]
Daddress_allocator.rs28 pub struct AddressAllocator { struct
34 impl AddressAllocator { implementation
58 Ok(AddressAllocator { in new()
246 allocators: &'a mut [AddressAllocator],
250 pub fn new(allocators: &'a mut [AddressAllocator]) -> Self { in new()
332 assert!(AddressAllocator::new(u64::max_value(), 0x100, None).is_err()); in new_fails_overflow()
337 assert!(AddressAllocator::new(0x1000, 0, None).is_err()); in new_fails_size_zero()
342 assert!(AddressAllocator::new(0x1000, 0x10000, Some(0)).is_err()); in new_fails_alignment_zero()
347 assert!(AddressAllocator::new(0x1000, 0x10000, Some(200)).is_err()); in new_fails_alignment_non_power_of_two()
352 let mut pool = AddressAllocator::new(0x1000, 0x1000, Some(0x100)).unwrap(); in allocate_fails_exising_alloc()
[all …]
Dlib.rs11 pub use crate::address_allocator::AddressAllocator;