/trusty/user/app/avb/ipc/ |
D | avb_ipc.cpp | 138 static int ProcessOneMessage(handle_t channel, const ipc_msg_info_t& msg_info) { in ProcessOneMessage() argument 139 if (msg_info.len > kAvbServiceBufSize) { in ProcessOneMessage() 140 TLOGE("Message too large on channel %x: %zu", channel, msg_info.len); in ProcessOneMessage() 143 UniquePtr<uint8_t[]> msg_buf(new uint8_t[msg_info.len]); in ProcessOneMessage() 145 struct iovec request_iov = {msg_buf.get(), msg_info.len}; in ProcessOneMessage() 153 int rc = read_msg(channel, msg_info.id, 0, &request_msg); in ProcessOneMessage() 173 msg_info.len - sizeof(avb_message), &out_buf, &out_size, in ProcessOneMessage() 209 ipc_msg_info_t msg_info; in ProcessMessages() local 210 int rc = get_msg(channel, &msg_info); in ProcessMessages() 220 rc = ProcessOneMessage(channel, msg_info); in ProcessMessages() [all …]
|
/trusty/user/app/confirmationui/src/ |
D | main.cpp | 85 ipc_msg_info msg_info; in confirmationui_recv() local 98 rc = get_msg(chan, &msg_info); in confirmationui_recv() 104 if (msg_info.len > sizeof(*req)) { in confirmationui_recv() 105 TLOGE("Message is too long (%zd)\n", msg_info.len); in confirmationui_recv() 110 if (msg_info.num_handles > max_num_handles) { in confirmationui_recv() 111 TLOGE("Message has too many handles (%u)\n", msg_info.num_handles); in confirmationui_recv() 116 rc = read_msg(chan, msg_info.id, 0, &ipc_msg); in confirmationui_recv() 119 put_msg(chan, msg_info.id); in confirmationui_recv()
|
/trusty/user/base/lib/tipc/rust/src/ |
D | handle.rs | 157 let (buf_len, handles_len) = self.get_msg(|msg_info| { in recv_vectored() 158 if msg_info.len > buffers.iter().map(|b| b.len()).sum() { in recv_vectored() 184 let rc = unsafe { trusty_sys::read_msg(self.as_raw_fd(), msg_info.id, 0, &mut msg) }; in recv_vectored() 189 Ok((rc.try_into()?, msg_info.num_handles.try_into()?)) in recv_vectored() 307 let mut msg_info: MaybeUninit<trusty_sys::ipc_msg_info> = MaybeUninit::uninit(); in get_msg() localVariable 311 let msg_info = unsafe { in get_msg() localVariable 312 let rc = trusty_sys::get_msg(self.as_raw_fd(), msg_info.as_mut_ptr()); in get_msg() 316 msg_info.assume_init() in get_msg() 319 let ret = func(&msg_info); in get_msg() 322 let put_msg_rc = unsafe { trusty_sys::put_msg(self.as_raw_fd(), msg_info.id) }; in get_msg()
|
/trusty/user/base/app/acvp/ |
D | acvp.cpp | 254 struct ipc_msg_info msg_info; in ParseAcvpMessage() local 256 rc = get_msg(chan, &msg_info); in ParseAcvpMessage() 269 .num_handles = msg_info.num_handles, in ParseAcvpMessage() 273 if (msg_info.len < sizeof(struct acvp_req)) { in ParseAcvpMessage() 274 TLOGE("Message is too short: %zd\n", msg_info.len); in ParseAcvpMessage() 279 if (msg_info.num_handles != 1) { in ParseAcvpMessage() 280 TLOGE("Expected 1 handle, found %d\n", msg_info.num_handles); in ParseAcvpMessage() 285 rc = read_msg(chan, msg_info.id, 0, &msg); in ParseAcvpMessage() 299 put_msg(chan, msg_info.id); in ParseAcvpMessage()
|
/trusty/user/base/lib/libc-trusty/ |
D | ipc.c | 60 int get_msg(handle_t handle, struct ipc_msg_info* msg_info) { in get_msg() argument 61 return _trusty_get_msg(handle, msg_info); in get_msg()
|
/trusty/kernel/lib/metrics/ |
D | metrics.c | 94 struct ipc_msg_info msg_info; in recv_resp() local 97 rc = ipc_get_msg(chan, &msg_info); in recv_resp() 113 rc = ipc_read_msg(chan, msg_info.id, 0, &ipc_msg); in recv_resp() 114 ipc_put_msg(chan, msg_info.id); in recv_resp()
|
/trusty/kernel/lib/trusty/include/lib/trusty/ |
D | ipc_msg.h | 81 int ipc_get_msg(struct handle* chandle, struct ipc_msg_info* msg_info);
|
/trusty/user/base/lib/secure_fb/ |
D | secure_fb.c | 111 ipc_msg_info_t msg_info; in await_resp() local 112 rc = get_msg(chan, &msg_info); in await_resp() 118 rc = read_msg(chan, msg_info.id, 0, msg); in await_resp() 119 put_msg(chan, msg_info.id); in await_resp()
|
/trusty/user/base/lib/tipc/test/srv/ |
D | srv.c | 628 ipc_msg_info_t msg_info; in echo_handle_msg() local 636 rc = get_msg(ev->handle, &msg_info); in echo_handle_msg() 646 st->echo_msgs[msg_cnt].handle_cnt = msg_info.num_handles; in echo_handle_msg() 654 msg.num_handles = msg_info.num_handles; in echo_handle_msg() 657 rc = read_msg(ev->handle, msg_info.id, 0, &msg); in echo_handle_msg() 667 rc = put_msg(ev->handle, msg_info.id); in echo_handle_msg()
|
/trusty/user/base/include/user/ |
D | trusty_ipc.h | 134 int get_msg(handle_t handle, ipc_msg_info_t* msg_info);
|
/trusty/kernel/lib/trusty/include/ |
D | syscall_table.h | 61 DEF_SYSCALL(0x20, get_msg, long, 2, int32_t handle, struct ipc_msg_info *msg_info)
|
/trusty/kernel/lib/trusty/ |
D | ipc_msg.c | 615 int ipc_get_msg(struct handle* chandle, struct ipc_msg_info* msg_info) { in ipc_get_msg() argument 624 ret = msg_peek_next_filled_locked(chan->msg_queue, msg_info); in ipc_get_msg()
|