Home
last modified time | relevance | path

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

/external/crosvm/devices/src/virtio/
Dqueue.rs333 let avail_index: u16 = mem.read_obj_from_addr(avail_index_addr).unwrap(); in get_avail_index() localVariable
338 Wrapping(avail_index) in get_avail_index()
347 fn set_avail_event(&mut self, mem: &GuestMemory, avail_index: Wrapping<u16>) { in set_avail_event()
351 mem.write_obj_at_addr(avail_index.0, avail_event_addr) in set_avail_event()
413 let avail_index = self.get_avail_index(mem); in peek() localVariable
414 let avail_len = avail_index - self.next_avail; in peek()
416 if avail_len.0 > queue_size || self.next_avail == avail_index { in peek()