Home
last modified time | relevance | path

Searched refs:as_ptr (Results 1 – 14 of 14) sorted by relevance

/trusty/user/app/sample/skel_rust/
Dmain.rs32 libc::write(2, message.as_ptr().cast(), message.len()); in main()
36 let iov = iovec { iov_base: message2.as_ptr() as *mut _, iov_len: message2.len() }; in main()
/trusty/user/base/lib/hwbcc/rust/src/
Dtest.rs82 artifacts.as_ptr(), in test_get_dice_artifacts()
122 bcc.as_ptr(), in test_get_bcc_test_mode()
144 bcc.as_ptr(), in test_get_bcc_test_mode()
183 bcc.as_ptr(), in test_get_bcc()
/trusty/user/base/lib/storage/rust/src/
Dlib.rs192 TamperDetect => sys::STORAGE_CLIENT_TD_PORT.as_ptr().cast(), in new()
193 TamperDetectPersist => sys::STORAGE_CLIENT_TDP_PORT.as_ptr().cast(), in new()
194 TamperDetectEarlyAccess => sys::STORAGE_CLIENT_TDEA_PORT.as_ptr().cast(), in new()
195 TamperProof => sys::STORAGE_CLIENT_TP_PORT.as_ptr().cast(), in new()
198 TestPortNonExistent => b"com.android.trusty.storage.client.fake\0".as_ptr().cast(), in new()
278 sys::storage_open_file(self.raw, file.as_mut_ptr(), name.as_ptr(), flags, ops_flags) in open_file_impl()
464 buf.as_ptr() as *const c_void, in write_at_impl()
563 from.as_ptr(), in rename_impl()
564 to.as_ptr(), in rename_impl()
601 sys::storage_delete_file(self.raw, name.as_ptr(), ops_flags) in remove_impl()
/trusty/user/app/sample/rust_no_std/
Dmain.rs35 libc::write(libc::STDOUT_FILENO, message.as_ptr().cast(), message.len()); in start()
/trusty/kernel/platform/generic-x86_64/rust/src/
Dlib.rs62 c"rust-acpi".as_ptr() as _, in map_physical_region()
83 let ptr = region.virtual_start().as_ptr() as _; in unmap_physical_region()
/trusty/user/base/lib/trusty-std/src/
Dalloc.rs245 let raw_ptr = GlobalAlloc::realloc(self, ptr.as_ptr(), old_layout, new_size); in grow_impl()
260 ptr::copy_nonoverlapping(ptr.as_ptr(), new_ptr.as_mut_ptr(), old_size); in grow_impl()
286 unsafe { GlobalAlloc::dealloc(self, ptr.as_ptr(), layout) } in deallocate()
336 let raw_ptr = GlobalAlloc::realloc(self, ptr.as_ptr(), old_layout, new_size); in shrink()
348 ptr::copy_nonoverlapping(ptr.as_ptr(), new_ptr.as_mut_ptr(), new_size); in shrink()
Dclone_ext.rs121 s.as_ptr().copy_to_nonoverlapping(v.as_mut_ptr(), s.len()); in try_to_vec()
/trusty/user/app/sample/hwcryptohal/server/
Dplatform_functions.rs46 let rc = unsafe { ffi_bindings::sys::trusty_rng_add_entropy(data.as_ptr(), data.len()) }; in trusty_rng_add_entropy()
/trusty/user/base/lib/system_state/rust/src/
Dlib.rs190 let header = unsafe { &*(bytes.as_ptr() as *const system_state_resp) }; in deserialize()
202 unsafe { &*(header.payload.as_ptr() as *const system_state_get_flag_resp) }; in deserialize()
/trusty/user/base/lib/tipc/rust/src/
Dhandle.rs88 let rc = unsafe { trusty_sys::connect(port.as_ptr(), IPC_CONNECT_WAIT_FOR_PORT as u32) }; in connect()
214 iov_base: buf.as_ptr() as *mut _, in send_vectored()
225 handles: handles.as_ptr() as *mut i32, in send_vectored()
Dservice.rs210 cfg.path.as_ptr(), in try_new_port()
265 pub unsafe fn as_ptr(&self) -> *const trusty_sys::uuid { in as_ptr() method
/trusty/user/app/keymint/
Dffi_bindings.rs37 sys::trusty_rng_add_entropy(data.as_ptr(), data.len()) in trusty_rng_add_entropy()
/trusty/user/base/lib/hwwsk/rust/src/
Dlib.rs95 let hdr = unsafe { &*(bytes.as_ptr() as *const hwwsk_req_hdr) }; in deserialize()
156 unsafe { &*(bytes.as_ptr() as *const hwwsk_generate_key_req) }; in deserialize()
/trusty/user/base/lib/hwkey/rust/src/
Dlib.rs596 let msg = unsafe { &*(bytes.as_ptr() as *const hwkey_msg) }; in deserialize()
632 let msg = unsafe { &*(bytes.as_ptr() as *const hwkey_derive_versioned_msg) }; in deserialize()