Home
last modified time | relevance | path

Searched refs:Handle (Results 1 – 25 of 26) sorted by relevance

12

/trusty/user/app/sample/memref-test/rust/
Dmemref_test.rs5 use tipc::{Deserialize, Handle, MMapFlags, Serialize, Serializer, TipcError, UnsafeSharedBuf};
22 let lender = Handle::connect(port).unwrap(); in recv_ref()
44 let lender = Handle::connect(port).unwrap(); in drop_shared_buf_handle()
61 fn request_remote_buf(lender: &Handle) -> Handle { in request_remote_buf() argument
76 fn test_read_write(lender: &Handle, remote_buf: UnsafeSharedBuf) { in test_read_write() argument
155 handle: Handle,
162 fn deserialize(_bytes: &[u8], handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
178 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
209 fn deserialize(_bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
/trusty/user/base/lib/tipc/rust/src/
Dhandle.rs53 pub struct Handle(handle_t); struct
62 impl Handle { impl
92 rc.try_into().map(Handle).or(Err(TipcError::InvalidHandle)) in connect()
137 let mut handles: [Option<Handle>; MAX_MSG_HANDLES] = Default::default(); in recv()
151 handles: &mut [Option<Handle>], in recv_vectored() argument
195 handles[index] = Some(Handle(*raw_handle)); in recv_vectored()
209 pub fn send_vectored(&self, buffers: &[&[u8]], handles: &[Handle]) -> crate::Result<()> { in send_vectored()
366 impl Drop for Handle { implementation
379 handles: arrayvec::ArrayVec<Handle, MAX_MSG_HANDLES>,
390 fn serialize_handle(&mut self, handle: &'a Handle) -> Result<Self::Ok, Self::Error> { in serialize_handle()
[all …]
Dserialization.rs1 use crate::{Handle, TipcError};
41 fn serialize_handle(&mut self, handle: &'s Handle) -> Result<Self::Ok, Self::Error>; in serialize_handle()
96 fn deserialize(bytes: &[u8], handles: &mut [Option<Handle>]) -> Result<Self, Self::Error>; in deserialize()
104 fn deserialize(_bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
Dservice.rs29 use crate::{ConnectResult, Deserialize, Handle, MessageResult, Result, TipcError};
132 handle: Handle,
171 pub fn handle(&self) -> &Handle { in handle() argument
220 handle: Handle::from_raw(rc as i32)?, in try_new_port()
226 fn try_new_connection(handle: Handle, data: D::Connection) -> Result<Rc<Self>> { in try_new_connection() argument
386 handle: &Handle, in on_connect() argument
400 handle: &Handle, in on_message() argument
420 handle: &Handle, in on_connect() argument
437 handle: &Handle, in on_message() argument
456 handle: &Handle, in on_connect() argument
[all …]
Dlib.rs42 pub use handle::{Handle, MMapFlags, UnsafeSharedBuf, MAX_MSG_HANDLES};
/trusty/user/base/lib/hwwsk/rust/src/
Dtest.rs23 use tipc::{Handle, TipcError};
27 fn open_hwwsk_session() -> Result<Handle, TipcError> { in open_hwwsk_session()
29 Handle::connect(port) in open_hwwsk_session()
Dlib.rs38 use tipc::{Deserialize, Handle, Serialize, Serializer};
85 fn deserialize(bytes: &[u8], handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
145 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
184 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
220 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
290 session: &Handle, in import_key() argument
321 session: &Handle, in generate_key() argument
330 session: &Handle, in create_key() argument
381 session: &Handle, in export_key() argument
/trusty/user/app/sample/hwwsk/
Dmain.rs20 use tipc::{ConnectResult, Handle, Manager, MessageResult, PortCfg, Service, Uuid};
32 _handle: &Handle, in on_connect() argument
44 handle: &Handle, in on_message() argument
/trusty/user/base/interface/boot_done/generated/include/
DIBootDone.h15 void send_handles(::tidl::Handle*& ptr) {} in send_handles()
16 void recv_handles(::tidl::Handle*& ptr) {} in recv_handles()
DBnBootDone.h15 ::tidl::Handle chan,
20 ::tidl::Handle chan,
/trusty/user/app/secretkeeper/
Dlib.rs28 service_dispatcher, ConnectResult, Deserialize, Handle, Manager, MessageResult, PortCfg,
72 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> tipc::Result<Self> { in deserialize()
87 fn fragmented_send(handle: &Handle, full_rsp: Vec<u8>) -> tipc::Result<()> { in fragmented_send() argument
96 handle: &Handle, in fragmented_process() argument
127 _handle: &Handle, in on_connect() argument
137 handle: &Handle, in on_message() argument
161 _handle: &Handle, in on_connect() argument
171 handle: &Handle, in on_message() argument
194 _handle: &Handle, in on_connect() argument
204 handle: &Handle, in on_message() argument
Dtests.rs23 use tipc::Handle;
30 let result = Handle::connect(port.as_c_str()); in port_connect()
60 let session = Handle::connect(port.as_c_str()).unwrap(); in bootloader_retrieve_key()
/trusty/user/app/keymint/unauthorized_test_app/
Dlib.rs19 use tipc::{Handle, TipcError};
34 let err1 = Handle::connect(port2.as_c_str()).expect_err( in test_access_policy_unauthorized()
/trusty/user/app/sample/rust-hello-world/
Dlib.rs20 ConnectResult, Deserialize, Handle, Manager, MessageResult, PortCfg, Serialize, Serializer,
65 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, TipcError> { in deserialize()
119 _handle: &Handle, in on_connect() argument
130 handle: &Handle, in on_message() argument
210 let _session = Handle::connect(port.as_c_str()).unwrap(); in connection_test()
218 let session = Handle::connect(port.as_c_str()).unwrap(); in hello_world_test()
/trusty/user/base/interface/boot_done/generated/
DIBootDone.cpp12 ::tidl::Handle req_handles[req_num_handles]; in set_boot_done()
13 ::tidl::Handle* hptr = req_handles; in set_boot_done()
99 ::tidl::Handle chan, in on_connect()
119 ::tidl::Handle chan, in on_message()
153 ::tidl::Handle req_handles[req_num_handles]; in on_message()
171 ::tidl::Handle* hptr = req_handles; in on_message()
/trusty/user/base/lib/hwbcc/rust/src/
Dlib.rs47 use tipc::{Deserialize, Handle, Serialize};
161 fn deserialize(bytes: &[u8], handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
219 fn recv_resp(session: &Handle, cmd: BccCmd, buf: &mut [u8]) -> Result<HwBccResponse, HwBccError> { in recv_resp() argument
278 let session = Handle::connect(port)?; in get_dice_artifacts()
309 let session = Handle::connect(port)?; in ns_deprivilege()
341 let session = Handle::connect(port)?; in get_bcc()
388 let session = Handle::connect(port)?; in sign_data()
/trusty/user/base/lib/system_state/rust/src/
Dlib.rs32 use tipc::{Deserialize, Handle, Serialize, Serializer, TipcError};
109 pub struct SystemState(Handle);
116 Handle::connect(port).map(Self) in try_connect()
182 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
/trusty/user/base/lib/unittest-rust/src/
Dlib.rs37 ConnectResult, Handle, Manager, MessageResult, PortCfg, Serialize, Serializer, Service, Uuid,
117 client_connection: RefCell<Option<Handle>>,
134 fn connect(&self, handle: &Handle) -> tipc::Result<()> { in connect()
193 handle: &Handle, in on_connect() argument
247 _handle: &Handle, in on_message() argument
/trusty/user/app/keymint/
Dipc_manager.rs40 service_dispatcher, ConnectResult, Deserialize, Handle, Manager, MessageResult, PortCfg,
76 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> tipc::Result<Self> { in deserialize()
131 _handle: &Handle, in on_connect() argument
141 handle: &Handle, in on_message() argument
398 _handle: &Handle, in on_connect() argument
408 handle: &Handle, in on_message() argument
496 _handle: &Handle, in on_connect() argument
510 handle: &Handle, in on_message() argument
651 let _session1 = Handle::connect(port1.as_c_str()).unwrap(); in connection_test()
653 let _session2 = Handle::connect(port2.as_c_str()).unwrap(); in connection_test()
[all …]
Dkeybox.rs20 use tipc::{Handle, TipcError};
23 type KeyboxSession = Handle;
Dkey_wrapper.rs29 use tipc::Handle;
35 fn hwwsk_session() -> Result<Handle, Error> { in hwwsk_session()
37 Handle::connect(port) in hwwsk_session()
Dffi_bindings.rs31 use tipc::{Deserialize, Handle, Serialize, Serializer, TipcError};
113 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
/trusty/user/base/experimental/lib/tidl/include/lib/tidl/
Dtidl.h58 using Handle = handle_t; variable
64 handle(Handle fd) : mFd(fd) {} in handle()
68 int reset(Handle fd);
69 Handle get();
72 Handle mFd;
/trusty/user/base/lib/tipc/rust/src/service/
Dhandle_set.rs25 use crate::{Handle, Result, TipcError};
41 handle: Handle,
64 handle: Handle::from_raw(rc as i32)?,
/trusty/user/base/lib/hwkey/rust/src/
Dlib.rs38 use tipc::{Deserialize, Handle, Serialize, Serializer, TipcError};
42 type HwkeySession = Handle;
586 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
623 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()

12