Home
last modified time | relevance | path

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

/external/rust/crates/bytes/tests/
Dtest_chain.rs58 let mut iovecs = [ in vectored_read() localVariable
65 assert_eq!(2, buf.chunks_vectored(&mut iovecs)); in vectored_read()
66 assert_eq!(iovecs[0][..], b"hello"[..]); in vectored_read()
67 assert_eq!(iovecs[1][..], b"world"[..]); in vectored_read()
68 assert_eq!(iovecs[2][..], b""[..]); in vectored_read()
69 assert_eq!(iovecs[3][..], b""[..]); in vectored_read()
79 let mut iovecs = [ in vectored_read() localVariable
86 assert_eq!(2, buf.chunks_vectored(&mut iovecs)); in vectored_read()
87 assert_eq!(iovecs[0][..], b"llo"[..]); in vectored_read()
88 assert_eq!(iovecs[1][..], b"world"[..]); in vectored_read()
[all …]
/external/crosvm/sys_util/src/
Dfile_traits.rs300 let iovecs = $crate::file_traits::lib::VolatileSlice::as_iobufs(bufs); localVariable
302 if iovecs.is_empty() {
311 iovecs.as_ptr(),
312 iovecs.len() as std::os::raw::c_int,
346 let iovecs = $crate::file_traits::lib::VolatileSlice::as_iobufs(bufs); localVariable
348 if iovecs.is_empty() {
357 iovecs.as_ptr(),
358 iovecs.len() as std::os::raw::c_int,
403 let iovecs = $crate::file_traits::lib::VolatileSlice::as_iobufs(bufs); localVariable
405 if iovecs.is_empty() {
[all …]
Dsock_ctrl_msg.rs167 iovecs: &mut [iovec], in raw_recvmsg_iovecs()
176 msg_iov: iovecs.as_mut_ptr() as *mut iovec, in raw_recvmsg_iovecs()
177 msg_iovlen: iovecs.len(), in raw_recvmsg_iovecs()
335 iovecs: &mut [iovec], in recv_iovecs_with_fds()
338 raw_recvmsg_iovecs(self.socket_fd(), iovecs, fds) in recv_iovecs_with_fds()
/external/rust/crates/nix/test/sys/
Dtest_uio.rs22 let mut iovecs = Vec::new(); in test_writev() localVariable
28 iovecs.push(IoVec::from_slice(b)); in test_writev()
37 let write_res = writev(writer, &iovecs); in test_writev()
71 let mut iovecs = Vec::with_capacity(storage.len()); in test_readv() localVariable
73 iovecs.push(IoVec::from_mut_slice(&mut v[..])); in test_readv()
82 let read_res = readv(reader, &mut iovecs[..]); in test_readv()
89 for iovec in &iovecs { in test_readv()
143 let iovecs = [ in test_pwritev() localVariable
156 let written = pwritev(file.as_raw_fd(), &iovecs, 100).ok().unwrap(); in test_pwritev()
189 let iovecs: Vec<_> = buffers.iter_mut().map( in test_preadv() localVariable
[all …]
/external/crosvm/cros_async/src/
Dpoll_source.rs119 let mut iovecs = mem_offsets in read_to_mem() localVariable
130 iovecs.as_mut_ptr() as *mut _, in read_to_mem()
131 iovecs.len() as i32, in read_to_mem()
224 let iovecs = mem_offsets in write_from_mem() localVariable
236 iovecs.as_ptr() as *mut _, in write_from_mem()
237 iovecs.len() as i32, in write_from_mem()
During_executor.rs587 let iovecs = addrs in submit_read_to_vectored() localVariable
596 .add_readv_iter(iovecs, src.as_raw_fd(), offset, usize_to_u64(next_op_token)) in submit_read_to_vectored()
637 let iovecs = addrs in submit_write_from_vectored() localVariable
646 .add_writev_iter(iovecs, src.as_raw_fd(), offset, usize_to_u64(next_op_token)) in submit_write_from_vectored()
/external/crosvm/rutabaga_gfx/src/
Drutabaga_2d.rs196 let iovecs = resource in transfer_write() localVariable
203 let mut src_slices = Vec::with_capacity(iovecs.len()); in transfer_write()
204 for iovec in &iovecs { in transfer_write()
232 resource.backing_iovecs = Some(iovecs); in transfer_write()
Dvirgl_renderer.rs451 let (iovecs, num_iovecs) = match buf { in transfer_read()
470 iovecs, in transfer_read()
489 if let Some(ref mut iovecs) = iovec_opt { in create_blob()
490 iovec_ptr = iovecs.as_mut_ptr(); in create_blob()
491 num_iovecs = iovecs.len(); in create_blob()
501 iovecs: iovec_ptr as *const iovec, in create_blob()
Dgfxstream.rs383 let (iovecs, num_iovecs) = match buf { in transfer_read()
402 iovecs, in transfer_read()
Drutabaga_core.rs453 iovecs: Option<Vec<RutabagaIovec>>, in resource_create_blob()
481 let resource = component.create_blob(ctx_id, resource_id, resource_create_blob, iovecs)?; in resource_create_blob()
/external/crosvm/rutabaga_gfx/src/cross_domain/
Dcross_domain.rs119 let iovecs = resource in get_image_requirements() localVariable
126 unsafe { VolatileSlice::from_raw_parts(iovecs[0].base as *mut u8, iovecs[0].len) }; in get_image_requirements()
130 resource.backing_iovecs = Some(iovecs); in get_image_requirements()
/external/crosvm/devices/src/virtio/gpu/
Dudmabuf.rs133 iovecs: &[(GuestAddress, usize)], in create_udmabuf()
137 let mut list = UdmabufCreateList::new(iovecs.len() as usize); in create_udmabuf()
139 for (i, &(addr, len)) in iovecs.iter().enumerate() { in create_udmabuf()
/external/virglrenderer/src/
Dvrend_winsys_gbm.c204 const struct iovec *iovecs, uint32_t num_iovecs, in virgl_gbm_transfer_internal() argument
212 uint32_t iovec_size = iovecs[current_iovec].iov_len; in virgl_gbm_transfer_internal()
234 uint8_t *guest_start = (uint8_t*)iovecs[current_iovec].iov_base + offset_in_iovec; in virgl_gbm_transfer_internal()
323 int virgl_gbm_transfer(struct gbm_bo *bo, uint32_t direction, const struct iovec *iovecs, in virgl_gbm_transfer() argument
401 host_plane_stride, host_address, iovecs, num_iovecs, direction); in virgl_gbm_transfer()
Dvrend_winsys_gbm.h75 int virgl_gbm_transfer(struct gbm_bo *bo, uint32_t direction, const struct iovec *iovecs,
Dvirglrenderer.c799 const size_t iov_size = vrend_get_iovec_size(args->iovecs, args->num_iovs); in virgl_renderer_resource_create_blob()
809 args->iovecs, in virgl_renderer_resource_create_blob()
830 args->iovecs, in virgl_renderer_resource_create_blob()
839 args->iovecs, in virgl_renderer_resource_create_blob()
Dvirglrenderer.h290 const struct iovec *iovecs; member
/external/crosvm/io_uring/src/
During.rs317 iovecs: I, in add_writev_iter()
330 iovecs in add_writev_iter()
351 iovecs: Pin<Box<[IoBufMut<'static>]>>, in add_writev()
358 sqe.addr = iovecs.as_ptr() as *const _ as *const libc::c_void as u64; in add_writev()
359 sqe.len = iovecs.len() as u32; in add_writev()
367 self.complete_ring.add_op_data(user_data, iovecs); in add_writev()
375 iovecs: I, in add_readv_iter()
388 iovecs in add_readv_iter()
409 iovecs: Pin<Box<[IoBufMut<'static>]>>, in add_readv()
416 sqe.addr = iovecs.as_ptr() as *const _ as *const libc::c_void as u64; in add_readv()
[all …]
/external/rust/crates/nix/test/
Dtest_fcntl.rs192 let mut iovecs = Vec::with_capacity(2); in test_vmsplice() localVariable
193 iovecs.push(IoVec::from_slice(&buf1[0..3])); in test_vmsplice()
194 iovecs.push(IoVec::from_slice(&buf2[0..3])); in test_vmsplice()
196 let res = vmsplice(wr, &iovecs[..], SpliceFFlags::empty()).unwrap(); in test_vmsplice()
/external/libevent/test/
Dregress_buffer.c501 struct evbuffer_iovec iovecs[2]; in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty() local
503 tt_int_op(evbuffer_reserve_space(buf1, 971, iovecs, 2), ==, 2); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
504 tt_int_op(iovecs[0].iov_len, >=, 1); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
505 tt_int_op(iovecs[1].iov_len, >=, 1); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
506 tt_assert(*(char *)(iovecs[0].iov_base) = 'b'); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
507 tt_assert(iovecs[0].iov_len = 1); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
508 tt_int_op(evbuffer_commit_space(buf1, iovecs, 1), ==, 0); in test_evbuffer_remove_buffer_adjust_last_with_datap_with_empty()
/external/crosvm/rutabaga_gfx/src/generated/
Dvirgl_renderer_bindings.rs344 pub iovecs: *const iovec, field
/external/perfetto/src/tracing/core/
Dtracing_service_impl.cc2176 std::unique_ptr<struct iovec[]> iovecs(new struct iovec[max_iovecs]); in ReadBuffers() local
2180 std::tie(iovecs[num_iovecs].iov_base, iovecs[num_iovecs].iov_len) = in ReadBuffers()
2182 bytes_about_to_be_written += iovecs[num_iovecs].iov_len; in ReadBuffers()
2190 iovecs[num_iovecs++] = {start, slice.size}; in ReadBuffers()
2212 ssize_t wr_size = PERFETTO_EINTR(writev(fd, &iovecs[i], iov_batch_size)); in ReadBuffers()
/external/libevent/
DChangeLog-2.0735 o Allow evbuffer_read() to split across more than 2 iovecs (e470ad3)
/external/strace/
DChangeLog24625 Since iovecs themselves are printed even if syscall has failed now,
40227 iovecs passed via the SG I/O v3 interface. Decode the "data in" and
42471 Add functions for dumping iovecs in mmsghdr used in sendmmsg and recvmmsg