Lines Matching refs:GuestAddress
24 use vm_memory::{GuestAddress, GuestMemory, GuestMemoryError};
91 fn memory_offset(mem: &GuestMemory, guest_addr: GuestAddress, len: u64) -> UdmabufResult<u64> { in memory_offset() argument
133 iovecs: &[(GuestAddress, usize)], in create_udmabuf() argument
177 use vm_memory::GuestAddress;
185 let start_addr1 = GuestAddress(0x100); in test_memory_offsets()
186 let start_addr2 = GuestAddress(0x1100); in test_memory_offsets()
187 let start_addr3 = GuestAddress(0x2100); in test_memory_offsets()
196 assert_eq!(memory_offset(&mem, GuestAddress(0x300), 1).unwrap(), 0x200); in test_memory_offsets()
198 memory_offset(&mem, GuestAddress(0x1200), 1).unwrap(), in test_memory_offsets()
202 memory_offset(&mem, GuestAddress(0x1100), 0x1000).unwrap(), in test_memory_offsets()
205 assert!(memory_offset(&mem, GuestAddress(0x1100), 0x1001).is_err()); in test_memory_offsets()
223 let start_addr1 = GuestAddress(0x100); in test_udmabuf_create()
224 let start_addr2 = GuestAddress(0x1100); in test_udmabuf_create()
225 let start_addr3 = GuestAddress(0x2100); in test_udmabuf_create()
239 (GuestAddress(0x4000), 0x1000 as usize), in test_udmabuf_create()