Searched refs:read_obj (Results 1 – 16 of 16) sorted by relevance
/external/crosvm/devices/src/virtio/video/ |
D | command.rs | 130 let hdr = r.read_obj::<virtio_video_cmd_hdr>()?; in from_reader() 134 let virtio_video_query_capability { queue_type, .. } = r.read_obj()?; in from_reader() 145 } = r.read_obj()?; in from_reader() 159 let virtio_video_stream_destroy { .. } = r.read_obj()?; in from_reader() 165 let virtio_video_stream_drain { .. } = r.read_obj()?; in from_reader() 178 } = r.read_obj()?; in from_reader() 203 let virtio_video_object_entry { uuid } = r.read_obj()?; in from_reader() 221 } = r.read_obj()?; in from_reader() 240 let virtio_video_resource_destroy_all { queue_type, .. } = r.read_obj()?; in from_reader() 247 let virtio_video_queue_clear { queue_type, .. } = r.read_obj()?; in from_reader() [all …]
|
/external/crosvm/devices/src/virtio/gpu/ |
D | protocol.rs | 716 let hdr = cmd.clone().read_obj::<virtio_gpu_ctrl_hdr>()?; in decode() 718 VIRTIO_GPU_CMD_GET_DISPLAY_INFO => GetDisplayInfo(cmd.read_obj()?), in decode() 719 VIRTIO_GPU_CMD_RESOURCE_CREATE_2D => ResourceCreate2d(cmd.read_obj()?), in decode() 720 VIRTIO_GPU_CMD_RESOURCE_UNREF => ResourceUnref(cmd.read_obj()?), in decode() 721 VIRTIO_GPU_CMD_SET_SCANOUT => SetScanout(cmd.read_obj()?), in decode() 722 VIRTIO_GPU_CMD_SET_SCANOUT_BLOB => SetScanoutBlob(cmd.read_obj()?), in decode() 723 VIRTIO_GPU_CMD_RESOURCE_FLUSH => ResourceFlush(cmd.read_obj()?), in decode() 724 VIRTIO_GPU_CMD_TRANSFER_TO_HOST_2D => TransferToHost2d(cmd.read_obj()?), in decode() 725 VIRTIO_GPU_CMD_RESOURCE_ATTACH_BACKING => ResourceAttachBacking(cmd.read_obj()?), in decode() 726 VIRTIO_GPU_CMD_RESOURCE_DETACH_BACKING => ResourceDetachBacking(cmd.read_obj()?), in decode() [all …]
|
D | mod.rs | 308 match reader.read_obj::<virtio_gpu_mem_entry>() { in process_gpu_command() 451 match reader.read_obj::<virtio_gpu_mem_entry>() { in process_gpu_command()
|
/external/crosvm/devices/src/virtio/ |
D | wl.rs | 1140 reader.read_obj().map_err(WlError::ParseDesc)? in send() 1142 let vfd: CtrlVfdSendVfd = reader.read_obj().map_err(WlError::ParseDesc)?; in send() 1152 id: reader.read_obj().map_err(WlError::ParseDesc)?, in send() 1297 type_reader.read_obj::<Le32>().map_err(WlError::ParseDesc)? in execute() 1302 .read_obj::<CtrlVfdNew>() in execute() 1307 let ctrl = reader.read_obj::<CtrlVfd>().map_err(WlError::ParseDesc)?; in execute() 1312 .read_obj::<CtrlVfdSend>() in execute() 1325 .read_obj::<CtrlVfdSend>() in execute() 1336 let ctrl = reader.read_obj::<CtrlVfd>().map_err(WlError::ParseDesc)?; in execute() 1341 .read_obj::<CtrlVfdNew>() in execute() [all …]
|
D | net.rs | 267 reader.read_obj().map_err(NetError::ReadCtrlHeader)?; in process_ctrl() 281 let offloads: Le64 = reader.read_obj().map_err(NetError::ReadCtrlData)?; in process_ctrl() 291 let pairs: Le16 = reader.read_obj().map_err(NetError::ReadCtrlData)?; in process_ctrl()
|
D | descriptor_utils.rs | 230 Some(self.reader.read_obj()) in next() 275 pub fn read_obj<T: DataInit>(&mut self) -> io::Result<T> { in read_obj() method 902 assert!(reader.read_obj::<u8>().is_err()); in reader_test_incompatible_chain() 1077 match reader.read_obj::<Le32>() { in reader_writer_shattered_object()
|
D | pmem.rs | 133 .read_obj() in handle_request()
|
D | block.rs | 603 let req_header: virtio_blk_req_header = reader.read_obj().map_err(ExecuteError::Read)?; in execute_request() 676 reader.read_obj().map_err(ExecuteError::Read)?; in execute_request()
|
D | block_async.rs | 672 let req_header: virtio_blk_req_header = reader.read_obj().map_err(ExecuteError::Read)?; in execute_request() 758 reader.read_obj().map_err(ExecuteError::Read)?; in execute_request()
|
/external/crosvm/base/src/ |
D | mmap.rs | 33 pub fn read_obj<T: DataInit>(&self, offset: usize) -> Result<T> { in read_obj() method 34 self.mapping.read_obj(offset) in read_obj()
|
/external/crosvm/kvm/tests/ |
D | dirty_log.rs | 74 mmap.read_obj::<u64>(vcpu_regs.rsi as usize).unwrap(), in test_run()
|
D | read_only_memory.rs | 110 .read_obj::<u8>(0) in test_run()
|
/external/crosvm/vm_memory/src/ |
D | guest_memory.rs | 451 .read_obj(offset) in read_obj_from_addr() 901 assert!(mmap.read_obj::<u16>(0x0).unwrap() == 0x1337u16); in shm_offset() 905 assert!(mmap.read_obj::<u16>(0x0).unwrap() == 0x0420u16); in shm_offset()
|
/external/crosvm/sys_util/src/ |
D | mmap.rs | 561 pub fn read_obj<T: DataInit>(&self, offset: usize) -> Result<T> { in read_obj() method 1005 assert_eq!(m.read_obj::<u16>(2).unwrap(), 9); in slice_store()
|
/external/crosvm/devices/src/virtio/input/ |
D | mod.rs | 416 let evt: virtio_input_event = reader.read_obj().map_err(InputError::ReadQueue)?; in read_event_virtqueue()
|
/external/crosvm/io_uring/src/ |
D | uring.rs | 669 let ring_mask = mmap.read_obj(params.sq_off.ring_mask as usize).unwrap(); in new() 713 let ring_mask = mmap.read_obj(params.cq_off.ring_mask as usize).unwrap(); in new()
|