Home
last modified time | relevance | path

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

/external/crosvm/data_model/src/
Dvolatile_memory.rs90 fn get_slice(&self, offset: usize, count: usize) -> Result<VolatileSlice>; in get_slice() method
94 let slice = self.get_slice(offset, size_of::<T>())?; in get_ref()
312 fn get_slice(&self, offset: usize, count: usize) -> Result<VolatileSlice> { in get_slice() method
414 fn get_slice(&self, offset: usize, count: usize) -> Result<VolatileSlice> { in get_slice() method
498 let s = a.get_slice(0, 27).unwrap(); in slice_size()
501 let s = a.get_slice(34, 27).unwrap(); in slice_size()
504 let s = s.get_slice(20, 5).unwrap(); in slice_size()
512 let res = a.get_slice(MAX, 1).unwrap_err(); in slice_overflow_error()
525 a.get_slice(50, 50).unwrap(); in slice_oob_error()
526 let res = a.get_slice(55, 50).unwrap_err(); in slice_oob_error()
Dflexible_array.rs77 fn get_slice(&self, len: usize) -> &[S]; in get_slice() method
124 self.entries[0].get_slice(valid_length) in entries_slice()
/external/crosvm/disk/src/
Dcomposite.rs397 .write_all_at_volatile(input_volatile_memory.get_slice(0, 5).unwrap(), 0) in single_file_passthrough()
402 .read_exact_at_volatile(output_volatile_memory.get_slice(0, 5).unwrap(), 0) in single_file_passthrough()
464 .write_all_at_volatile(input_volatile_memory.get_slice(0, 200).unwrap(), 50) in triple_file_passthrough()
469 .read_exact_at_volatile(output_volatile_memory.get_slice(0, 200).unwrap(), 50) in triple_file_passthrough()
499 .write_all_at_volatile(input_volatile_memory.get_slice(0, 300).unwrap(), 0) in triple_file_punch_hole()
505 .read_exact_at_volatile(output_volatile_memory.get_slice(0, 300).unwrap(), 0) in triple_file_punch_hole()
539 .write_all_at_volatile(input_volatile_memory.get_slice(0, 300).unwrap(), 0) in triple_file_write_zeroes()
550 .read_exact_at_volatile(output_volatile_memory.get_slice(0, 300).unwrap(), 0) in triple_file_write_zeroes()
/external/crosvm/sys_util/src/
Dshm.rs412 mmap1.get_slice(0, 1).unwrap().as_ptr(), in mmap_page()
413 mmap2.get_slice(0, 1).unwrap().as_ptr() in mmap_page()
417 .get_slice(0, 4096) in mmap_page()
441 .get_slice(0, 4096) in mmap_page_offset()
Dmmap.rs735 fn get_slice(&self, offset: usize, count: usize) -> VolatileMemoryResult<VolatileSlice> { in get_slice() method
989 let s = m.get_slice(2, 3).unwrap(); in slice_size()
996 let s = m.get_slice(2, 3).unwrap(); in slice_addr()
1011 let res = m.get_slice(std::usize::MAX, 3).unwrap_err(); in slice_overflow_error()
1023 let res = m.get_slice(3, 3).unwrap_err(); in slice_oob_error()
/external/tensorflow/tensorflow/python/keras/utils/
Dmulti_gpu_utils.py180 def get_slice(data, i, parts): function
222 get_slice,
/external/crosvm/base/src/
Dmmap.rs218 fn get_slice(&self, offset: usize, count: usize) -> VolatileMemoryResult<VolatileSlice> { in get_slice() method
219 self.mapping.get_slice(offset, count) in get_slice()
/external/crosvm/rutabaga_gfx/src/
Drutabaga_2d.rs98 let src_subslice = src.get_slice(offset_within_src as usize, copyable_size as usize)?; in transfer_2d()
107 let dst_subslice = dst.get_slice(dst_start_offset as usize, copyable_size as usize)?; in transfer_2d()
/external/flatbuffers/include/flatbuffers/
Dgrpc.h140 grpc_slice &get_slice(uint8_t *p, size_t size) { in get_slice() function
250 grpc_slice slice = slice_allocator_.get_slice(buf_data, buf_size); in GetMessage()
/external/crosvm/devices/src/virtio/snd/vios_backend/
Dshm_vios.rs599 .get_slice(mmap_offset, size) in push_buffer()
603 .get_slice(shm_offset, size) in push_buffer()
618 .get_slice(mmap_offset, size) in pop_buffer()
622 .get_slice(src_offset, size) in pop_buffer()
/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/
Dudmabuf.rs46 fn get_slice(&self, len: usize) -> &[udmabuf_create_item] { in get_slice() method
/external/crosvm/kvm_sys/src/
Dlib.rs168 fn get_slice(&self, len: usize) -> &[kvm_cpuid_entry2] { in get_slice() method
/external/crosvm/gpu_display/src/
Dgpu_display_wl.rs260 .get_slice(buffer_index * surface.buffer_size, surface.buffer_size) in framebuffer()
/external/crosvm/disk/src/qcow/
Dmod.rs1553 let sub_slice = slice.get_slice(already_read, count).unwrap(); in read()
1623 let sub_slice = slice.get_slice(read, count).unwrap(); in read_volatile()
1640 let sub_slice = slice.get_slice(offset, count).unwrap(); in write_volatile()
1651 let sub_slice = slice.get_slice(read, count).unwrap(); in read_at_volatile()
1664 let sub_slice = slice.get_slice(offset, count).unwrap(); in write_at_volatile()
/external/crosvm/vm_memory/src/
Dguest_memory.rs507 .get_slice(addr.offset_from(region.start()) as usize, len) in get_slice_at_addr()
/external/tensorflow/tensorflow/compiler/xla/service/spmd/
Ddot_handler.cc3222 auto get_slice = [&](HloInstruction* padded) { in MoveUsersIntoWindowedDotGeneralLoopOnNonContractingDimensions() local
3238 get_slice(body->AddInstruction(broadcast->CloneWithNewOperands( in MoveUsersIntoWindowedDotGeneralLoopOnNonContractingDimensions()
3245 get_slice(body->AddInstruction(iota->CloneWithNewOperands( in MoveUsersIntoWindowedDotGeneralLoopOnNonContractingDimensions()
3252 outside_to_inside[constant] = get_slice( in MoveUsersIntoWindowedDotGeneralLoopOnNonContractingDimensions()