• Home
  • Raw
  • Download

Lines Matching refs:GuestAddress

9 use vm_memory::{GuestAddress, GuestMemory, GuestMemoryError};
17 BadEnqueuePointer(GuestAddress),
19 BadSegTableAddress(GuestAddress),
50 segment_table_base_address: GuestAddress,
53 enqueue_pointer: GuestAddress,
54 dequeue_pointer: GuestAddress,
64 segment_table_base_address: GuestAddress(0), in new()
66 enqueue_pointer: GuestAddress(0), in new()
67 dequeue_pointer: GuestAddress(0), in new()
135 pub fn set_seg_table_base_addr(&mut self, addr: GuestAddress) -> Result<()> { in set_seg_table_base_addr()
142 pub fn set_dequeue_pointer(&mut self, addr: GuestAddress) { in set_dequeue_pointer() argument
178 || self.segment_table_base_address == GuestAddress(0) in check_inited()
179 || self.enqueue_pointer == GuestAddress(0) in check_inited()
189 self.enqueue_pointer = GuestAddress(entry.get_ring_segment_base_address()); in load_current_seg_table_entry()
204 fn get_seg_table_addr(&self, index: u16) -> Result<GuestAddress> { in get_seg_table_addr() argument
221 let gm = GuestMemory::new(&vec![(GuestAddress(0), 0x1000)]).unwrap(); in test_uninited()
235 let gm = GuestMemory::new(&vec![(GuestAddress(0), 0x1000)]).unwrap(); in test_event_ring()
244 gm.write_obj_at_addr(st_entries[0], GuestAddress(0x8)) in test_event_ring()
248 GuestAddress(0x8 + size_of::<EventRingSegmentTableEntry>() as u64), in test_event_ring()
253 GuestAddress(0x8 + 2 * size_of::<EventRingSegmentTableEntry>() as u64), in test_event_ring()
258 er.set_seg_table_base_addr(GuestAddress(0x8)).unwrap(); in test_event_ring()
259 er.set_dequeue_pointer(GuestAddress(0x100)); in test_event_ring()
270 let t: Trb = gm.read_obj_from_addr(GuestAddress(0x100)).unwrap(); in test_event_ring()
279 .read_obj_from_addr(GuestAddress(0x100 + trb_size)) in test_event_ring()
289 .read_obj_from_addr(GuestAddress(0x100 + 2 * trb_size)) in test_event_ring()
299 let t: Trb = gm.read_obj_from_addr(GuestAddress(0x200)).unwrap(); in test_event_ring()
308 .read_obj_from_addr(GuestAddress(0x200 + trb_size)) in test_event_ring()
318 .read_obj_from_addr(GuestAddress(0x200 + 2 * trb_size as u64)) in test_event_ring()
328 let t: Trb = gm.read_obj_from_addr(GuestAddress(0x300)).unwrap(); in test_event_ring()
338 .read_obj_from_addr(GuestAddress(0x300 + trb_size)) in test_event_ring()
350 er.set_dequeue_pointer(GuestAddress(0x100 + trb_size)); in test_event_ring()
361 .read_obj_from_addr(GuestAddress(0x300 + trb_size)) in test_event_ring()
373 er.set_dequeue_pointer(GuestAddress(0x100)); in test_event_ring()
382 let t: Trb = gm.read_obj_from_addr(GuestAddress(0x100)).unwrap(); in test_event_ring()
392 .read_obj_from_addr(GuestAddress(0x100 + trb_size)) in test_event_ring()
402 .read_obj_from_addr(GuestAddress(0x100 + 2 * trb_size)) in test_event_ring()