Home
last modified time | relevance | path

Searched refs:handles (Results 1 – 25 of 52) sorted by relevance

123

/trusty/user/base/experimental/lib/tidl/
Dipc.cpp39 handle_t* handles, in send() argument
49 .handles = handles, in send()
58 handle_t* handles, in recv() argument
79 .handles = handles, in recv()
93 handle_t* handles, in send() argument
109 .handles = handles, in send()
120 handle_t* handles, in recv() argument
147 .handles = handles, in recv()
163 handle_t* handles, in send() argument
183 .handles = handles, in send()
[all …]
Dipc_ql_tipc.cpp199 handle_t* handles, in send_iovs() argument
213 handle_t* handles, in send() argument
221 return send_iovs(fd, iovs, 1, handles, num_handles); in send()
227 handle_t* handles, in recv_iovs() argument
242 handle_t* handles, in recv() argument
251 return recv_iovs(fd, iovs, 1, handles, num_handles); in recv()
259 handle_t* handles, in send() argument
271 return send_iovs(fd, iovs, 2, handles, num_handles); in send()
280 handle_t* handles, in recv() argument
293 return recv_iovs(fd, iovs, 2, handles, num_handles); in recv()
[all …]
/trusty/kernel/lib/ktipc/include/lib/ktipc/
Dktipc.h237 .handles = (struct handle**)(arg_handles), \
258 #define ktipc_send_handles(chan, handles, num_handles, buffers...) \ argument
259 ktipc_internal_send(chan, handles, num_handles, buffers, NULL, 0, NULL, 0, \
297 struct handle** handles,
300 #define ktipc_internal_recv(chan, min_sz, handles, num_handles, buf0, sz0, \ argument
321 ktipc_recv_iov((chan), (min_sz), iov, count, (handles), \
344 #define ktipc_recv_handles(chan, min_sz, handles, num_handles, buffers...) \ argument
345 ktipc_internal_recv(chan, min_sz, handles, num_handles, buffers, NULL, 0, \
/trusty/user/base/lib/tipc/rust/src/
Dhandle.rs124 self.send_vectored(&serializer.buffers[..], &serializer.handles[..]) in send()
137 let mut handles: [Option<Handle>; MAX_MSG_HANDLES] = Default::default(); in recv() localVariable
138 let (byte_count, handle_count) = self.recv_vectored(&mut [buffer], &mut handles)?; in recv()
140 T::deserialize(&buffer[..byte_count], &mut handles[..handle_count]) in recv()
151 handles: &mut [Option<Handle>], in recv_vectored()
174 handles: raw_handles.as_mut_ptr() as *mut i32, in recv_vectored()
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()
224 num_handles: handles.len().try_into()?, in send_vectored()
225 handles: handles.as_ptr() as *mut i32, in send_vectored()
[all …]
Dserialization.rs96 fn deserialize(bytes: &[u8], handles: &mut [Option<Handle>]) -> Result<Self, Self::Error>; in deserialize()
/trusty/kernel/lib/trusty/
Dipc_msg.c71 struct handle* handles[MAX_MSG_HANDLES]; member
151 handle_decref(item->handles[j]); in ipc_msg_queue_destroy()
204 if (!msg->handles) in kern_msg_write_locked()
219 if (!msg->handles[i]) { in kern_msg_write_locked()
224 if (!handle_is_sendable(msg->handles[i])) { in kern_msg_write_locked()
230 handle_incref(msg->handles[i]); in kern_msg_write_locked()
231 item->handles[i] = msg->handles[i]; in kern_msg_write_locked()
239 handle_decref(item->handles[i]); in kern_msg_write_locked()
240 item->handles[i] = NULL; in kern_msg_write_locked()
271 rc = copy_from_user(&ids, msg->handles, in user_msg_write_locked()
[all …]
Dhandle.c201 list_add_tail(&hlist->handles, &handle->hlist_node); in handle_list_add()
228 if (list_is_empty(&hlist->handles)) { in _handle_list_del_locked()
249 while (!list_is_empty(&hlist->handles)) { in handle_list_delete_all()
253 list_peek_head_type(&hlist->handles, struct handle, hlist_node); in handle_list_delete_all()
267 list_for_every_entry(&hlist->handles, handle, struct handle, hlist_node) { in _hlist_finish_wait_locked()
287 if (list_is_empty(&hlist->handles)) in _hlist_do_poll_locked()
292 list_for_every_entry(&hlist->handles, next, struct handle, hlist_node) { in _hlist_do_poll_locked()
367 list_delete(&hlist->handles); in handle_list_wait()
368 list_add_head(&handle->hlist_node, &hlist->handles); in handle_list_wait()
/trusty/kernel/lib/trusty/include/lib/trusty/
Dipc_msg.h58 struct handle** handles; member
66 user_addr_t handles; /* points to array of handle ids */ member
Dhandle.h139 struct list_node handles; member
146 .handles = LIST_INITIAL_VALUE((hs).handles), \
/trusty/user/base/lib/secure_fb/
Dsecure_fb.c125 handle_t* handles) { in mmap_fbs() argument
132 handles[fb->handle_index], fb->offset); in mmap_fbs()
156 handle_t handles[SECURE_FB_MAX_FBS] = {[0 ... SECURE_FB_MAX_FBS - 1] = in handle_get_fbs_resp() local
176 .handles = handles, in handle_get_fbs_resp()
206 rc = mmap_fbs(fbs, args.num_fbs, handles); in handle_get_fbs_resp()
209 if (handles[i] != INVALID_IPC_HANDLE) { in handle_get_fbs_resp()
210 close(handles[i]); in handle_get_fbs_resp()
/trusty/kernel/lib/vmm_obj_service/
Dvmm_obj_service.c130 struct handle* handles[] = {srv->memref}; in vmm_obj_service_handle_connect() local
132 rc = ktipc_send_handles(chan, handles, countof(handles), &out_size, in vmm_obj_service_handle_connect()
/trusty/user/base/experimental/lib/tidl/include/lib/tidl/
Dtidl.h277 handle_t* handles,
283 handle_t* handles,
290 handle_t* handles,
298 handle_t* handles,
307 handle_t* handles,
317 handle_t* handles,
/trusty/user/base/lib/secure_fb/srv/include/lib/secure_fb/srv/
Ddev.h40 handle_t handles[SECURE_FB_MAX_FBS]; member
/trusty/user/base/lib/hwaes/
Dhwaes.c54 handle_t handles[HWAES_MAX_NUM_HANDLES]; member
105 if (shm_wrapper_ptr->handles[i] == shm_hd_ptr->handle) { in hwaes_set_shm_arg_helper()
112 shm_wrapper_ptr->handles[i] = shm_hd_ptr->handle; in hwaes_set_shm_arg_helper()
273 .handles = shm_ptr->handles, in hwaes_send_req()
326 .handles = NULL, in hwaes_recv_resp()
/trusty/user/base/lib/tipc/
Dtipc.c53 .handles = NULL, in tipc_send1()
81 .handles = NULL, in tipc_recv1()
112 .handles = NULL, in tipc_send2()
151 .handles = NULL, in tipc_recv2()
/trusty/user/app/sample/memref-test/rust/
Dmemref_test.rs162 fn deserialize(_bytes: &[u8], handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
163 assert_eq!(1, handles.len()); in deserialize()
164 let handle = handles[0].take().unwrap(); in deserialize()
/trusty/user/base/lib/sancov/
Dexemptlist25 # TODO: ipc-unittest makes assumptions about the set of open handles, which
26 # won't hold true, since instrumented code opens handles for TIPC and shared
/trusty/user/base/lib/coverage/common/
Dipc.c33 .handles = h, in coverage_send()
66 .handles = h, in coverage_recv()
/trusty/user/base/lib/tipc/test/srv/
Dsrv.c99 handle_t handles[IPC_MAX_MSG_HANDLES]; member
653 msg.handles = st->echo_msgs[msg_cnt].handles; in echo_handle_msg()
684 msg.handles = st->echo_msgs[i].handles; in echo_handle_msg()
692 close(st->echo_msgs[i].handles[j]); in echo_handle_msg()
807 msg.handles = NULL; in uuid_handle_port()
/trusty/user/base/lib/tipc/test/main/
Dmain.c1067 msg.handles = NULL; in TEST()
1172 msg.handles = NULL; in TEST()
1178 msg.handles = NULL; in TEST()
1303 tx_msg.handles = NULL; in TEST()
1373 tx_msg.handles = NULL; in TEST()
1380 rx_msg.handles = NULL; in TEST()
1851 msg.handles = NULL; in TEST()
1989 msg.handles = NULL; in TEST()
2080 msg.handles = &hchan2; in TEST()
2120 msg.handles = &hsend[0]; in TEST()
[all …]
/trusty/user/base/include/user/
Dtrusty_ipc.h78 handle_t* handles; member
/trusty/user/base/lib/hwbcc/rust/src/
Dlib.rs161 fn deserialize(bytes: &[u8], handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
162 if handles.len() != 0 { in deserialize()
163 for handle in handles { in deserialize()
/trusty/kernel/lib/ktipc/
Dktipc.c399 struct handle** handles, in ktipc_recv_iov() argument
421 .handles = handles, in ktipc_recv_iov()
/trusty/user/app/sample/memref-test/receiver/
Dreceiver.c67 .handles = &handle, in receiver_on_message()
/trusty/user/app/sample/app-mgmt-test/client/
Dmain.c230 .handles = &handle, in send_apploader_request()
243 handle_t* handles, in read_apploader_response() argument
257 .handles = handles, in read_apploader_response()
272 handle_t* handles, in recv_apploader_response() argument
288 rc = read_apploader_response(channel, cmd, handles, num_handles, &msg_inf); in recv_apploader_response()

123