Home
last modified time | relevance | path

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

/external/crosvm/data_model/src/
Dvolatile_memory.rs87 fn get_slice(&self, offset: u64, count: u64) -> Result<VolatileSlice>; in get_slice() method
91 let slice = self.get_slice(offset, size_of::<T>() as u64)?; in get_ref()
100 fn get_slice(&self, offset: u64, count: u64) -> Result<VolatileSlice> { in get_slice() method
297 fn get_slice(&self, offset: u64, count: u64) -> Result<VolatileSlice> { in get_slice() method
407 fn get_slice(&self, offset: u64, count: u64) -> Result<VolatileSlice> { in get_slice() method
495 let s = a.get_slice(0, 27).unwrap(); in slice_size()
498 let s = a.get_slice(34, 27).unwrap(); in slice_size()
501 let s = s.get_slice(20, 5).unwrap(); in slice_size()
509 let res = a.get_slice(MAX, 1).unwrap_err(); in slice_overflow_error()
522 a.get_slice(50, 50).unwrap(); in slice_oob_error()
[all …]
/external/crosvm/sys_util/src/
Dshm.rs357 mmap1.get_slice(0, 1).unwrap().as_ptr(), in mmap_page()
358 mmap2.get_slice(0, 1).unwrap().as_ptr() in mmap_page()
362 .get_slice(0, 4096) in mmap_page()
386 .get_slice(0, 4096) in mmap_page_offset()
Dmmap.rs587 fn get_slice(&self, offset: u64, count: u64) -> VolatileMemoryResult<VolatileSlice> { in get_slice() method
883 let s = m.get_slice(2, 3).unwrap(); in slice_size()
890 let s = m.get_slice(2, 3).unwrap(); in slice_addr()
905 let res = m.get_slice(std::u64::MAX, 3).unwrap_err(); in slice_overflow_error()
917 let res = m.get_slice(3, 3).unwrap_err(); in slice_oob_error()
Dguest_memory.rs555 fn get_slice(&self, offset: u64, count: u64) -> VolatileMemoryResult<VolatileSlice> { in get_slice() method
560 .get_slice(offset - region.guest_base.0, count); in get_slice()
/external/crosvm/gpu_buffer/src/
Dlib.rs582 .get_slice(line_offset, line_copy_size) in read_to_volatile()
585 .get_slice(line_offset, line_copy_size) in read_to_volatile()
633 .get_slice(src_offset, copy_sg_size) in write_from_sg()
665 .get_slice(src_offset, copy_sg_size) in write_from_sg()
837 [dst.as_mut_slice().get_slice(0, dst_len).unwrap()] in buffer_transfer()
848 dst.as_mut_slice().get_slice(0, dst_len).unwrap(), in buffer_transfer()
/external/tensorflow/tensorflow/python/keras/utils/
Dmulti_gpu_utils.py185 def get_slice(data, i, parts): function
227 get_slice,
/external/flatbuffers/include/flatbuffers/
Dgrpc.h141 grpc_slice &get_slice(uint8_t *p, size_t size) { in get_slice() function
248 grpc_slice slice = slice_allocator_.get_slice(buf_data, buf_size); in GetMessage()
/external/tensorflow/tensorflow/tools/graph_transforms/
Dsparsify_gather.cc163 bool get_slice = false; in ReadTensorFromCheckpoint() local
168 get_slice = (parsed_full_shape != parsed_slice_shape); in ReadTensorFromCheckpoint()
170 if (get_slice) { in ReadTensorFromCheckpoint()
/external/crosvm/devices/src/virtio/gpu/
Dmod.rs273 match data.get_slice(0, cmd_size as u64) { in process_gpu_command()
366 if let Ok(desc_mem) = mem.get_slice(desc.addr.offset(), desc.len as u64) { in process_descriptor()
371 match mem.get_slice(data_desc.0.offset(), data_desc.1 as u64) { in process_descriptor()
389 if let Ok(ret_desc_mem) = mem.get_slice(ret_desc.0.offset(), ret_desc.1 as u64) { in process_descriptor()
Dprotocol.rs715 resp.get_slice(size_of_val(&hdr) as u64, data.len() as u64)?; in encode()
Dbackend.rs293 .map(|&(addr, len)| mem.get_slice(addr.offset(), len as u64).unwrap_or_default()), in write_from_guest_memory()
/external/crosvm/devices/src/virtio/
Dwl.rs371 let vfd_slice = desc_mem.get_slice( in encode_vfd_recv()
381 let data_slice = desc_mem.get_slice( in encode_vfd_recv()
1372 let vfd_mem = mem.get_slice(vfds_addr.0, (vfd_count * vfd_size) as u64)?; in execute()
1373 let data_mem = mem.get_slice(data_addr.0, data_len as u64)?; in execute()
1609 .get_slice(resp_desc.addr.0, resp_desc.len as u64) in run()
1647 let desc_mem = self.mem.get_slice(addr.0, desc_len as u64).unwrap(); in run()
Dblock.rs548 .get_slice(self.data_addr.0, self.data_len as u64) in execute()
576 .get_slice(self.data_addr.0, self.data_len as u64) in execute()
/external/crosvm/gpu_display/src/
Dlib.rs289 .get_slice( in framebuffer_memory()
/external/crosvm/gpu_renderer/src/
Dlib.rs786 .any(|&(addr, len)| mem.get_slice(addr.offset(), len as u64).is_err()) in attach_backing()
794 let slice = mem.get_slice(addr.offset(), len as u64).unwrap(); in attach_backing()
/external/crosvm/x86_64/src/
Dmptable.rs138 mem.get_slice(base_mp.0, mp_size as u64) in setup_mptable()
/external/crosvm/qcow/src/
Dqcow.rs1462 let sub_slice = slice.get_slice(offset as u64, count as u64).unwrap(); in read_volatile()
1475 let sub_slice = slice.get_slice(offset as u64, count as u64).unwrap(); in write_volatile()
/external/crosvm/devices/src/pci/
Dac97_bus_master.rs635 mem.get_slice(read_pos, samples_remaining as u64 * sample_size) in next_guest_buffer()