/trusty/user/base/experimental/lib/tidl/ |
D | ipc.cpp | 61 ipc_msg_info_t msg_inf; in recv() local 63 rc = get_msg(chan, &msg_inf); in recv() 67 if (msg_inf.len < min_sz || msg_inf.len > buf_sz) { in recv() 81 rc = read_msg(chan, msg_inf.id, 0, &msg); in recv() 84 put_msg(chan, msg_inf.id); in recv() 123 ipc_msg_info_t msg_inf; in recv() local 125 rc = get_msg(chan, &msg_inf); in recv() 129 if (msg_inf.len < min_sz || (msg_inf.len > (buf1_sz + buf2_sz))) { in recv() 149 rc = read_msg(chan, msg_inf.id, 0, &msg); in recv() 152 put_msg(chan, msg_inf.id); in recv() [all …]
|
/trusty/hardware/nxp/app/hwcrypto/ |
D | main.c | 99 ipc_msg_info_t msg_inf; in tipc_recv_single_buf() local 101 rc = get_msg(chan, &msg_inf); in tipc_recv_single_buf() 105 if (msg_inf.len != len) { in tipc_recv_single_buf() 117 rc = read_msg(chan, msg_inf.id, 0, &msg); in tipc_recv_single_buf() 120 put_msg(chan, msg_inf.id); in tipc_recv_single_buf() 158 ipc_msg_info_t msg_inf; in tipc_recv_two_segments() local 160 rc = get_msg(chan, &msg_inf); in tipc_recv_two_segments() 164 if (msg_inf.len < hdr_len) { in tipc_recv_two_segments() 180 rc = read_msg(chan, msg_inf.id, 0, &msg); in tipc_recv_two_segments() 183 put_msg(chan, msg_inf.id); in tipc_recv_two_segments()
|
/trusty/user/base/lib/tipc/ |
D | tipc.c | 64 ipc_msg_info_t msg_inf; in tipc_recv1() local 66 rc = get_msg(chan, &msg_inf); in tipc_recv1() 70 if (msg_inf.len < min_sz || msg_inf.len > buf_sz) { in tipc_recv1() 84 rc = read_msg(chan, msg_inf.id, 0, &msg); in tipc_recv1() 87 put_msg(chan, msg_inf.id); in tipc_recv1() 128 ipc_msg_info_t msg_inf; in tipc_recv2() local 130 rc = get_msg(chan, &msg_inf); in tipc_recv2() 134 if (msg_inf.len < min_sz || (msg_inf.len > (buf1_sz + buf2_sz))) { in tipc_recv2() 154 rc = read_msg(chan, msg_inf.id, 0, &msg); in tipc_recv2() 157 put_msg(chan, msg_inf.id); in tipc_recv2()
|
/trusty/user/base/lib/vmm_obj/ |
D | vmm_obj.c | 35 ipc_msg_info_t msg_inf; in vmm_obj_map_ro() local 70 rc = get_msg(chan, &msg_inf); in vmm_obj_map_ro() 76 if (msg_inf.len != sizeof(size64)) { in vmm_obj_map_ro() 77 TLOGE("Received message of invalid size (%zd)\n", msg_inf.len); in vmm_obj_map_ro() 92 rc = read_msg(chan, msg_inf.id, 0, &msg); in vmm_obj_map_ro() 132 put_msg(chan, msg_inf.id); in vmm_obj_map_ro()
|
/trusty/user/app/sample/memref-test/receiver/ |
D | receiver.c | 71 struct ipc_msg_info msg_inf; in receiver_on_message() local 72 rc = get_msg(chan, &msg_inf); in receiver_on_message() 77 if (msg_inf.num_handles != 1) { in receiver_on_message() 82 rc = read_msg(chan, msg_inf.id, 0, &msg); in receiver_on_message() 83 put_msg(chan, msg_inf.id); in receiver_on_message()
|
/trusty/user/base/lib/scudo/test/srv/ |
D | scudo_app.cpp | 118 ipc_msg_info_t msg_inf; in recv_memref_msg() local 120 rc = get_msg(chan, &msg_inf); in recv_memref_msg() 124 if (msg_inf.len < min_sz || msg_inf.len > buf_sz || in recv_memref_msg() 125 msg_inf.num_handles > 1) { in recv_memref_msg() 136 .num_handles = msg_inf.num_handles, in recv_memref_msg() 137 .handles = msg_inf.num_handles ? memref : NULL, in recv_memref_msg() 139 rc = read_msg(chan, msg_inf.id, 0, &msg); in recv_memref_msg() 142 put_msg(chan, msg_inf.id); in recv_memref_msg()
|
/trusty/user/base/app/apploader/ |
D | apploader.c | 124 ipc_msg_info_t msg_inf; in apploader_read() local 125 rc = get_msg(chan, &msg_inf); in apploader_read() 131 if (msg_inf.len < min_sz || msg_inf.len > buf_sz) { in apploader_read() 132 TLOGE("Message is too short or too long (%zd)\n", msg_inf.len); in apploader_read() 138 if (msg_inf.num_handles > max_num_handles) { in apploader_read() 140 msg_inf.num_handles); in apploader_read() 153 .num_handles = msg_inf.num_handles, in apploader_read() 155 rc = read_msg(chan, msg_inf.id, 0, &ipc_msg); in apploader_read() 156 assert(rc < 0 || (size_t)rc == msg_inf.len); in apploader_read() 159 *num_handles = msg_inf.num_handles; in apploader_read() [all …]
|
/trusty/user/base/lib/coverage/common/ |
D | ipc.c | 51 struct ipc_msg_info msg_inf; in coverage_recv() local 53 rc = get_msg(chan, &msg_inf); in coverage_recv() 70 rc = read_msg(chan, msg_inf.id, 0, &ipc_msg); in coverage_recv() 81 put_msg(chan, msg_inf.id); in coverage_recv()
|
/trusty/user/app/gatekeeper/ipc/ |
D | gatekeeper_ipc.cpp | 163 ipc_msg_info_t msg_inf; in handle_msg() local 165 long rc = get_msg(chan, &msg_inf); in handle_msg() 179 UniquePtr<uint8_t[]> msg_buf(new uint8_t[msg_inf.len]); in handle_msg() 182 struct iovec iov = {msg_buf.get(), msg_inf.len}; in handle_msg() 185 rc = read_msg(chan, msg_inf.id, 0, &msg); in handle_msg() 188 put_msg(chan, msg_inf.id); in handle_msg() 209 msg_inf.len - sizeof(gatekeeper_message), &out_buf, &out_buf_size); in handle_msg()
|
/trusty/user/app/storage/ |
D | ipc.c | 140 ipc_msg_info_t msg_inf; in do_handle_msg() local 141 int rc = get_msg(chan, &msg_inf); in do_handle_msg() 151 if (msg_inf.len > MSG_BUF_MAX_SIZE) { in do_handle_msg() 152 TLOGE("%s: message too large %zu\n", __func__, msg_inf.len); in do_handle_msg() 153 put_msg(chan, msg_inf.id); in do_handle_msg() 160 .iov_len = msg_inf.len, in do_handle_msg() 167 rc = read_msg(chan, msg_inf.id, 0, &msg); in do_handle_msg() 168 put_msg(chan, msg_inf.id); in do_handle_msg() 174 if (((size_t)rc) < msg_inf.len) { in do_handle_msg() 179 rc = ctx->ops.on_handle_msg(ctx, msg_buf, msg_inf.len); in do_handle_msg()
|
/trusty/user/base/lib/hwaes/srv/ |
D | hwaes_server.c | 420 struct ipc_msg_info msg_inf; in hwaes_read_req() local 422 rc = get_msg(chan, &msg_inf); in hwaes_read_req() 428 if (msg_inf.len < sizeof(struct hwaes_req) || in hwaes_read_req() 429 msg_inf.len > HWAES_MAX_MSG_SIZE) { in hwaes_read_req() 435 if (msg_inf.num_handles > HWAES_MAX_NUM_HANDLES) { in hwaes_read_req() 449 .num_handles = msg_inf.num_handles, in hwaes_read_req() 452 rc = read_msg(chan, msg_inf.id, 0, &ipc_msg); in hwaes_read_req() 457 assert(rc == (int)msg_inf.len); in hwaes_read_req() 460 *num_handles_ptr = msg_inf.num_handles; in hwaes_read_req() 464 put_msg(chan, msg_inf.id); in hwaes_read_req()
|
/trusty/user/base/lib/secure_dpu/ |
D | secure_dpu.c | 89 struct ipc_msg_info msg_inf; in handle_allocate_buffer_resp() local 90 rc = get_msg(chan, &msg_inf); in handle_allocate_buffer_resp() 95 if (msg_inf.num_handles != 1) { in handle_allocate_buffer_resp() 100 rc = read_msg(chan, msg_inf.id, 0, &msg); in handle_allocate_buffer_resp() 101 put_msg(chan, msg_inf.id); in handle_allocate_buffer_resp()
|
/trusty/user/app/sample/stats-test/consumer/ |
D | consumer.cpp | 170 ipc_msg_info msg_inf; in test_ctl_on_message() local 171 int rc = get_msg(chan, &msg_inf); in test_ctl_on_message() 176 if (msg_inf.num_handles != 1) { in test_ctl_on_message() 178 put_msg(chan, msg_inf.id); in test_ctl_on_message() 182 rc = read_msg(chan, msg_inf.id, 0, &msg); in test_ctl_on_message() 183 put_msg(chan, msg_inf.id); in test_ctl_on_message()
|
/trusty/user/base/lib/hwaes/ |
D | hwaes.c | 308 ipc_msg_info_t msg_inf; in hwaes_recv_resp() local 310 rc = get_msg(session, &msg_inf); in hwaes_recv_resp() 316 if (msg_inf.len < sizeof(struct hwaes_resp)) { in hwaes_recv_resp() 318 msg_inf.len, sizeof(struct hwaes_resp)); in hwaes_recv_resp() 329 rc = read_msg(session, msg_inf.id, 0, &ipc_msg); in hwaes_recv_resp() 331 if (rc != (int)msg_inf.len) { in hwaes_recv_resp() 342 put_msg(session, msg_inf.id); in hwaes_recv_resp()
|
/trusty/kernel/lib/ktipc/ |
D | ktipc.c | 402 struct ipc_msg_info msg_inf; in ktipc_recv_iov() local 405 rc = ipc_get_msg(chan, &msg_inf); in ktipc_recv_iov() 414 if (msg_inf.len < min_sz || msg_inf.len > max_sz) { in ktipc_recv_iov() 424 rc = ipc_read_msg(chan, msg_inf.id, 0, &msg); in ktipc_recv_iov() 427 ipc_put_msg(chan, msg_inf.id); in ktipc_recv_iov()
|
/trusty/user/base/lib/spi/srv/tipc/ |
D | tipc.c | 80 struct ipc_msg_info msg_inf; in recv_msg() local 83 rc = get_msg(chan, &msg_inf); in recv_msg() 105 rc = read_msg(chan, msg_inf.id, 0, &msg); in recv_msg() 108 put_msg(chan, msg_inf.id); in recv_msg() 112 put_msg(chan, msg_inf.id); in recv_msg()
|
/trusty/user/app/sample/memref-test/ |
D | memref-test.c | 74 struct ipc_msg_info msg_inf; in lender_recv_handle() local 75 rc = get_msg(chan, &msg_inf); in lender_recv_handle() 80 rc = read_msg(chan, msg_inf.id, 0, &msg); in lender_recv_handle() 81 put_msg(chan, msg_inf.id); in lender_recv_handle()
|
/trusty/user/app/sample/app-mgmt-test/client/ |
D | main.c | 245 ipc_msg_info_t* msg_inf) { in read_apploader_response() argument 248 ASSERT_EQ(msg_inf->len, sizeof(resp)); in read_apploader_response() 260 rc = read_msg(channel, msg_inf->id, 0, &msg); in read_apploader_response() 276 ipc_msg_info_t msg_inf; in recv_apploader_response() local 285 rc = get_msg(channel, &msg_inf); in recv_apploader_response() 288 rc = read_apploader_response(channel, cmd, handles, num_handles, &msg_inf); in recv_apploader_response() 289 put_msg(channel, msg_inf.id); in recv_apploader_response()
|
/trusty/user/app/keymaster/ipc/ |
D | keymaster_ipc.cpp | 717 ipc_msg_info_t msg_inf; in handle_msg() local 718 int rc = get_msg(chan, &msg_inf); in handle_msg() 731 uint8_t[msg_inf.len + 1]); in handle_msg() 735 msg_buf[msg_inf.len] = 0; in handle_msg() 738 struct iovec iov = {msg_buf.get(), msg_inf.len}; in handle_msg() 741 rc = read_msg(chan, msg_inf.id, 0, &msg); in handle_msg() 744 put_msg(chan, msg_inf.id); in handle_msg() 763 rc = ctx->dispatch(ctx, in_msg, msg_inf.len - sizeof(*in_msg), &out_buf, in handle_msg()
|
/trusty/user/base/app/apploader/tests/ |
D | apploader_test.c | 41 ipc_msg_info_t msg_inf; in make_request() local 68 rc = get_msg(channel, &msg_inf); in make_request() 72 ASSERT_EQ(msg_inf.len, sizeof(resp)); in make_request() 84 rc = read_msg(channel, msg_inf.id, 0, &resp_msg); in make_request() 88 put_msg(channel, msg_inf.id); in make_request() 93 put_msg(channel, msg_inf.id); in make_request()
|
/trusty/user/base/app/hwaes-unittest/ |
D | hwaes-test.c | 306 ipc_msg_info_t msg_inf; in make_bad_request() local 330 rc = get_msg(channel, &msg_inf); in make_bad_request() 334 ASSERT_EQ(msg_inf.len, sizeof(struct hwaes_resp)); in make_bad_request() 347 rc = read_msg(channel, msg_inf.id, 0, &resp_msg); in make_bad_request() 348 ASSERT_EQ((size_t)rc, msg_inf.len); in make_bad_request() 353 put_msg(channel, msg_inf.id); in make_bad_request() 359 put_msg(channel, msg_inf.id); in make_bad_request()
|
/trusty/kernel/lib/trusty/ |
D | tipc_virtio_dev.c | 856 struct ipc_msg_info msg_inf; member 875 rc = ipc_read_msg(cb_ctx->chan, cb_ctx->msg_inf.id, 0, &dst_kern_msg); in tx_data_cb() 878 ipc_put_msg(cb_ctx->chan, cb_ctx->msg_inf.id); in tx_data_cb() 901 ret = ipc_get_msg(chan, &cb_ctx.msg_inf); in handle_tx_msg() 911 uint16_t ttl_size = cb_ctx.msg_inf.len; in handle_tx_msg()
|