Home
last modified time | relevance | path

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

/external/crosvm/devices/src/virtio/
Dpmem.rs127 fn handle_request(&self, avail_desc: DescriptorChain) -> Result<usize> { in handle_request()
129 Reader::new(self.memory.clone(), avail_desc.clone()).map_err(Error::Descriptor)?; in handle_request()
130 let mut writer = Writer::new(self.memory.clone(), avail_desc).map_err(Error::Descriptor)?; in handle_request()
148 while let Some(avail_desc) = self.queue.pop(&self.memory) { in process_queue()
149 let avail_desc_index = avail_desc.index; in process_queue()
151 let bytes_written = match self.handle_request(avail_desc) { in process_queue()
Dtpm.rs84 let avail_desc = match self.queue.pop(&self.mem) { in process_queue() localVariable
85 Some(avail_desc) => avail_desc, in process_queue()
89 let index = avail_desc.index; in process_queue()
91 let len = match self.device.perform_work(&self.mem, avail_desc) { in process_queue()
Dblock.rs265 avail_desc: DescriptorChain, in process_one_request()
276 Reader::new(mem.clone(), avail_desc.clone()).map_err(ExecuteError::Descriptor)?; in process_one_request()
277 let mut writer = Writer::new(mem.clone(), avail_desc).map_err(ExecuteError::Descriptor)?; in process_one_request()
322 while let Some(avail_desc) = queue.pop(&self.mem) { in process_queue()
324 let desc_index = avail_desc.index; in process_queue()
327 avail_desc, in process_queue()
962 let avail_desc = create_descriptor_chain( in read_last_sector() localVariable
982 avail_desc, in read_last_sector()
1016 let avail_desc = create_descriptor_chain( in read_beyond_last_sector() localVariable
1036 avail_desc, in read_beyond_last_sector()
[all …]
Dp9.rs89 while let Some(avail_desc) = self.queue.pop(&self.mem) { in process_queue()
90 let mut reader = Reader::new(self.mem.clone(), avail_desc.clone()) in process_queue()
92 let mut writer = Writer::new(self.mem.clone(), avail_desc.clone()) in process_queue()
100 .add_used(&self.mem, avail_desc.index, writer.bytes_written() as u32); in process_queue()
Drng.rs47 while let Some(avail_desc) = queue.pop(&self.mem) { in process_queue()
48 let index = avail_desc.index; in process_queue()
50 let written = match Writer::new(self.mem.clone(), avail_desc) in process_queue()
Dblock_async.rs245 avail_desc: DescriptorChain, in process_one_request()
252 Reader::new(mem.clone(), avail_desc.clone()).map_err(ExecuteError::Descriptor)?; in process_one_request()
253 let mut writer = Writer::new(mem.clone(), avail_desc).map_err(ExecuteError::Descriptor)?; in process_one_request()
288 avail_desc: DescriptorChain, in process_one_request_task()
295 let descriptor_index = avail_desc.index; in process_one_request_task()
297 match process_one_request(avail_desc, disk_state, flush_timer, flush_timer_armed, &mem) in process_one_request_task()
1095 let avail_desc = create_descriptor_chain( in read_last_sector() localVariable
1125 let fut = process_one_request(avail_desc, disk_state, flush_timer, flush_timer_armed, &mem); in read_last_sector()
1162 let avail_desc = create_descriptor_chain( in read_beyond_last_sector() localVariable
1194 let fut = process_one_request(avail_desc, disk_state, flush_timer, flush_timer_armed, &mem); in read_beyond_last_sector()
[all …]
Dballoon.rs114 avail_desc: DescriptorChain, in handle_address_chain()
127 let mut reader = Reader::new(mem.clone(), avail_desc)?; in handle_address_chain()
169 let avail_desc = match queue.next_async(mem, &mut queue_event).await { in handle_queue() localVariable
176 let index = avail_desc.index; in handle_queue()
177 if let Err(e) = handle_address_chain(avail_desc, mem, &mut desc_handler) { in handle_queue()
Dconsole.rs67 while let Some(avail_desc) = transmit_queue.pop(&self.mem) { in process_transmit_queue()
68 let desc_index = avail_desc.index; in process_transmit_queue()
70 let reader = match Reader::new(self.mem.clone(), avail_desc) { in process_transmit_queue()
/external/crosvm/devices/src/virtio/input/
Dmod.rs354 avail_desc: DescriptorChain, in fill_event_virtqueue()
357 let mut writer = Writer::new(mem.clone(), avail_desc).map_err(InputError::Descriptor)?; in fill_event_virtqueue()
380 Some(avail_desc) => { in send_events()
381 let avail_desc_index = avail_desc.index; in send_events()
385 avail_desc, in send_events()
410 avail_desc: DescriptorChain, in read_event_virtqueue()
414 let mut reader = Reader::new(mem.clone(), avail_desc).map_err(InputError::Descriptor)?; in read_event_virtqueue()
425 while let Some(avail_desc) = self.status_queue.pop(&self.guest_memory) { in process_status_queue()
426 let avail_desc_index = avail_desc.index; in process_status_queue()
429 avail_desc, in process_status_queue()
/external/crosvm/fuzz/
Dvirtqueue_fuzzer.rs99 while let Some(avail_desc) = q.pop(mem) {
100 let idx = avail_desc.index;
101 let total = avail_desc
/external/crosvm/devices/src/virtio/fs/
Dworker.rs159 while let Some(avail_desc) = self.queue.pop(&self.mem) { in process_queue()
160 let reader = Reader::new(self.mem.clone(), avail_desc.clone()) in process_queue()
162 let writer = Writer::new(self.mem.clone(), avail_desc.clone()) in process_queue()
168 .add_used(&self.mem, avail_desc.index, total as u32); in process_queue()