Home
last modified time | relevance | path

Searched refs:as_mut_ptr (Results 1 – 25 of 29) sorted by relevance

12

/external/crosvm/arch/src/
Dfdt.rs73 let fdt_ret = unsafe { fdt_begin_node(fdt.as_mut_ptr() as *mut c_void, cstr_name.as_ptr()) }; in begin_node()
82 let fdt_ret = unsafe { fdt_end_node(fdt.as_mut_ptr() as *mut c_void) }; in end_node()
96 fdt.as_mut_ptr() as *mut c_void, in property()
152 fdt.as_mut_ptr() as *mut c_void, in property_null()
171 fdt.as_mut_ptr() as *mut c_void, in property_cstring()
190 let mut fdt_ret = unsafe { fdt_create(fdt.as_mut_ptr() as *mut c_void, fdt_max_size as c_int) }; in start_fdt()
196 fdt_ret = unsafe { fdt_finish_reservemap(fdt.as_mut_ptr() as *mut c_void) }; in start_fdt()
205 let mut fdt_ret = unsafe { fdt_finish(fdt.as_mut_ptr() as *mut c_void) }; in finish_fdt()
213 fdt.as_mut_ptr() as *mut c_void, in finish_fdt()
214 fdt_final.as_mut_ptr() as *mut c_void, in finish_fdt()
[all …]
/external/crosvm/sys_util/src/
Dsock_ctrl_msg.rs98 fn as_mut_ptr(&mut self) -> *mut cmsghdr { in as_mut_ptr() method
100 CmsgBuffer::Inline(a) => a.as_mut_ptr() as *mut cmsghdr, in as_mut_ptr()
101 CmsgBuffer::Heap(a) => a.as_mut_ptr(), in as_mut_ptr()
133 write_unaligned(cmsg_buffer.as_mut_ptr() as *mut cmsghdr, cmsg); in raw_sendmsg()
138 CMSG_DATA(cmsg_buffer.as_mut_ptr()), in raw_sendmsg()
143 msg.msg_control = cmsg_buffer.as_mut_ptr() as *mut c_void; in raw_sendmsg()
163 iov_base: in_data.as_mut_ptr() as *mut c_void, in raw_recvmsg()
178 msg.msg_control = cmsg_buffer.as_mut_ptr() as *mut c_void; in raw_recvmsg()
206 in_fds[in_fds_count..(in_fds_count + fd_count)].as_mut_ptr(), in raw_recvmsg()
Dpasswd.rs34 buf.as_mut_ptr(), in get_user_id()
66 buf.as_mut_ptr(), in get_group_id()
Dtempdir.rs48 libc::mkdtemp(dir_bytes.as_mut_ptr() as *mut libc::c_char) in new()
Dterminal.rs100 let ret = unsafe { read(self.tty_fd(), out.as_mut_ptr() as *mut _, out.len()) }; in read_raw()
Dnet.rs187 let ret = libc::read(self.fd, buf.as_mut_ptr() as *mut _, buf.len()); in recv()
Dmmap.rs378 buf.as_mut_ptr(), in read_slice()
/external/crosvm/gpu_renderer/src/
Dcommand_buffer.rs37 self.cbuf.as_mut_ptr() as *mut u8, in as_mut()
65 pub fn as_mut_ptr(&mut self) -> *mut c_void { in as_mut_ptr() method
66 self.cbuf.as_mut_ptr() as *mut c_void in as_mut_ptr()
Dlib.rs435 virgl_renderer_fill_caps(id, version, buf.as_mut_ptr() as *mut c_void); in get_cap_set()
560 attrs.as_mut_ptr(), in image_from_dmabuf()
612 virgl_renderer_submit_cmd(buf.as_mut_ptr() as *mut c_void, self.id as i32, dword_count) in submit()
804 self.backing_iovecs.as_mut_ptr() as *mut iovec, in attach_backing()
895 base: buf.as_mut_ptr() as *mut c_void, in transfer_read_buf()
/external/rust/crates/byteorder/src/
Dlib.rs1105 slice::from_raw_parts_mut(dst.as_mut_ptr() as *mut u16, dst.len()) in read_i16_into()
1134 slice::from_raw_parts_mut(dst.as_mut_ptr() as *mut u32, dst.len()) in read_i32_into()
1163 slice::from_raw_parts_mut(dst.as_mut_ptr() as *mut u64, dst.len()) in read_i64_into()
1193 slice::from_raw_parts_mut(dst.as_mut_ptr() as *mut u128, dst.len()) in read_i128_into()
1223 slice::from_raw_parts_mut(dst.as_mut_ptr() as *mut u32, dst.len()) in read_f32_into()
1284 slice::from_raw_parts_mut(dst.as_mut_ptr() as *mut u64, dst.len()) in read_f64_into()
1911 copy_nonoverlapping((&bytes).as_ptr(), $dst.as_mut_ptr(), $size);
1923 $dst.as_mut_ptr() as *mut u8,
1940 $dst.as_mut_ptr(),
1983 let ptr_out = out.as_mut_ptr(); in read_uint()
[all …]
Dio.rs1604 slice::from_raw_parts_mut(slice.as_mut_ptr() as *mut u8, len) in slice_to_u8_mut()
/external/flatbuffers/rust/flatbuffers/src/
Dvtable_writer.rs79 let p = self.buf.as_mut_ptr() as *mut u8; in clear()
Dendian_scalar.rs154 let mut_ptr = (&mut s[..sz]).as_mut_ptr() as *mut T; in emplace_scalar()
Dbuilder.rs105 let ptr = (&mut self.owned_buf[self.head..]).as_mut_ptr(); in reset()
511 let ptr = (&mut self.owned_buf[..middle]).as_mut_ptr(); in grow_owned_buf()
/external/crosvm/src/
Dpanic_hook.rs27 let mut ret = pipe2(fds.as_mut_ptr(), O_NONBLOCK); in redirect_stderr()
/external/crosvm/gpu_buffer/src/
Drendernode.rs66 name: name_bytes.as_mut_ptr() as *mut c_char, in get_drm_device_name()
/external/crosvm/x86_64/src/
Dbootparam.rs27 pub unsafe fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr() method
36 ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len) in as_mut_slice()
/external/crosvm/virtio_sys/src/
Dvirtio_ring.rs20 pub unsafe fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr() method
29 ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len) in as_mut_slice()
Dvirtio_net.rs20 pub unsafe fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr() method
29 ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len) in as_mut_slice()
Dvhost.rs20 pub unsafe fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr() method
29 ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len) in as_mut_slice()
/external/crosvm/usb_util/src/
Dusb_transfer.rs124 self.buffer.as_mut_ptr() in as_ptr()
/external/crosvm/kvm/src/
Dlib.rs173 ioctl_with_mut_ptr(self, kind, cpuid.as_mut_ptr()) in get_cpuid()
1239 data.as_mut_ptr(), in run()
1632 kvm_sigmask[0].sigset.as_mut_ptr(), in set_signal_mask()
1740 pub fn as_mut_ptr(&mut self) -> *mut kvm_cpuid2 { in as_mut_ptr() method
/external/crosvm/net_sys/src/
Dif_tun.rs20 pub unsafe fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr() method
29 ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len) in as_mut_slice()
Diff.rs20 pub unsafe fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr() method
29 ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len) in as_mut_slice()
/external/crosvm/src/plugin/
Dmod.rs188 let ret = socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds.as_mut_ptr()); in new_seqpacket_pair()

12