/trusty/user/base/lib/secure_dpu/ |
D | secure_dpu.c | 61 struct secure_dpu_resp hdr; in handle_allocate_buffer_resp() local 67 .iov_base = &hdr, in handle_allocate_buffer_resp() 68 .iov_len = sizeof(hdr), in handle_allocate_buffer_resp() 102 if (rc != (int)(sizeof(hdr) + sizeof(resp))) { in handle_allocate_buffer_resp() 108 if (hdr.cmd != (SECURE_DPU_CMD_ALLOCATE_BUFFER | SECURE_DPU_CMD_RESP_BIT)) { in handle_allocate_buffer_resp() 113 if (hdr.status != SECURE_DPU_ERROR_OK) { in handle_allocate_buffer_resp() 114 TLOGE("Failed SECURE_DPU_CMD_ALLOCATE_BUFFER (%d)\n", hdr.status); in handle_allocate_buffer_resp() 138 struct secure_dpu_req hdr; in secure_dpu_allocate_buffer() local 149 hdr.cmd = SECURE_DPU_CMD_ALLOCATE_BUFFER; in secure_dpu_allocate_buffer() 152 rc = tipc_send2(chan, &hdr, sizeof(hdr), &args, sizeof(args)); in secure_dpu_allocate_buffer() [all …]
|
/trusty/user/base/lib/system_state/srv/ |
D | system_state_server.c | 29 struct system_state_req hdr; in system_state_on_message() member 36 struct system_state_resp hdr; in system_state_on_message() member 43 ret = tipc_recv1(chan, sizeof(req.hdr), &req, sizeof(req)); in system_state_on_message() 48 if ((size_t)ret < sizeof(req.hdr)) { in system_state_on_message() 52 req_payload_size = ret - sizeof(req.hdr); in system_state_on_message() 53 if (req.hdr.reserved) { in system_state_on_message() 54 TLOGE("bad request, reserved not 0, (%d)\n", req.hdr.reserved); in system_state_on_message() 58 switch (req.hdr.cmd) { in system_state_on_message() 75 resp.hdr.cmd = req.hdr.cmd | SYSTEM_STATE_CMD_RESP_BIT; in system_state_on_message() 76 resp.hdr.result = ret; in system_state_on_message() [all …]
|
/trusty/user/base/lib/hwbcc/srv/ |
D | srv.c | 30 struct hwbcc_req_hdr hdr; member 40 struct hwbcc_resp_hdr hdr; member 154 resp.hdr.cmd = HWBCC_CMD_SIGN_DATA | HWBCC_CMD_RESP_BIT; in handle_sign_data() 155 resp.hdr.status = rc; in handle_sign_data() 156 resp.hdr.payload_size = payload_size; in handle_sign_data() 157 rc = tipc_send1(chan, &resp, sizeof(resp.hdr) + payload_size); in handle_sign_data() 162 if ((size_t)rc != sizeof(resp.hdr) + payload_size) { in handle_sign_data() 184 resp.hdr.cmd = HWBCC_CMD_GET_BCC | HWBCC_CMD_RESP_BIT; in handle_get_bcc() 185 resp.hdr.status = rc; in handle_get_bcc() 186 resp.hdr.payload_size = payload_size; in handle_get_bcc() [all …]
|
/trusty/user/base/lib/secure_fb/srv/ |
D | secure_fb_server.c | 105 struct secure_fb_resp hdr; in handle_get_fbs_req() local 120 hdr.cmd = SECURE_FB_CMD_GET_FBS | SECURE_FB_CMD_RESP_BIT; in handle_get_fbs_req() 121 hdr.status = rc; in handle_get_fbs_req() 130 .iov_base = &hdr, in handle_get_fbs_req() 131 .iov_len = sizeof(hdr), in handle_get_fbs_req() 149 if (rc != (int)(sizeof(hdr) + sizeof(args) + fbs_len)) { in handle_get_fbs_req() 163 struct secure_fb_resp hdr; in handle_display_fb() local 173 hdr.cmd = SECURE_FB_CMD_DISPLAY_FB | SECURE_FB_CMD_RESP_BIT; in handle_display_fb() 174 hdr.status = rc; in handle_display_fb() 176 rc = tipc_send1(chan, &hdr, sizeof(hdr)); in handle_display_fb() [all …]
|
/trusty/user/base/lib/hwbcc/client/ |
D | hwbcc.c | 29 struct hwbcc_req_hdr* hdr, in recv_resp() argument 51 if (resp.cmd != (hdr->cmd | HWBCC_CMD_RESP_BIT)) { in recv_resp() 106 struct hwbcc_req_hdr hdr; in sign_data() member 132 req.hdr.cmd = HWBCC_CMD_SIGN_DATA; in sign_data() 133 req.hdr.test_mode = test_mode; in sign_data() 175 return recv_resp(chan, &req.hdr, cose_sign1, cose_sign1_buf_size, in sign_data() 199 struct hwbcc_req_hdr hdr = { in get_bcc() local 204 rc = tipc_send1(chan, &hdr, sizeof(hdr)); in get_bcc() 210 if ((size_t)rc != sizeof(hdr)) { in get_bcc() 215 return recv_resp(chan, &hdr, bcc, bcc_buf_size, bcc_size); in get_bcc() [all …]
|
/trusty/user/base/lib/secure_fb/ |
D | secure_fb.c | 152 struct secure_fb_resp hdr; in handle_get_fbs_resp() local 160 .iov_base = &hdr, in handle_get_fbs_resp() 161 .iov_len = sizeof(hdr), in handle_get_fbs_resp() 184 if (rc < (int)(sizeof(hdr) + sizeof(args))) { in handle_get_fbs_resp() 190 if (rc != (int)(sizeof(hdr) + sizeof(args) + fbs_len)) { in handle_get_fbs_resp() 197 if (hdr.cmd != (SECURE_FB_CMD_GET_FBS | SECURE_FB_CMD_RESP_BIT)) { in handle_get_fbs_resp() 201 if (hdr.status != SECURE_FB_ERROR_OK) { in handle_get_fbs_resp() 202 TLOGE("Failed SECURE_FB_CMD_DISPLAY_FB request (%d)\n", hdr.status); in handle_get_fbs_resp() 215 TLOGE("Failed to mmap() framebuffers (%d)\n", hdr.status); in handle_get_fbs_resp() 249 struct secure_fb_resp hdr; in handle_display_fb_resp() local [all …]
|
/trusty/user/base/lib/hwwsk/ |
D | client.c | 96 struct hwwsk_req_hdr hdr; in hwwsk_generate_key() member 102 msg.hdr.cmd = HWWSK_CMD_GENERATE_KEY; in hwwsk_generate_key() 103 msg.hdr.flags = 0; in hwwsk_generate_key() 125 struct hwwsk_req_hdr hdr; in hwwsk_export_key() member 129 msg.hdr.cmd = HWWSK_CMD_EXPORT_KEY; in hwwsk_export_key() 130 msg.hdr.flags = 0; in hwwsk_export_key()
|
/trusty/user/base/app/apploader/ |
D | apploader.c | 44 struct apploader_header hdr; member 98 .hdr = in apploader_send_response() 173 struct apploader_secure_header hdr = { in apploader_send_secure_get_memory_command() local 179 int rc = tipc_send2(secure_chan, &hdr, sizeof(hdr), &get_memory_req, in apploader_send_secure_get_memory_command() 181 if ((size_t)rc != sizeof(hdr) + sizeof(get_memory_req)) { in apploader_send_secure_get_memory_command() 202 if (resp.hdr.cmd != in apploader_send_secure_get_memory_command() 204 TLOGE("Invalid command in response (%u)\n", resp.hdr.cmd); in apploader_send_secure_get_memory_command() 226 struct apploader_secure_header hdr = { in apploader_send_secure_load_command() local 235 int rc = tipc_send2(secure_chan, &hdr, sizeof(hdr), &req, sizeof(req)); in apploader_send_secure_load_command() 236 if (rc != sizeof(hdr) + sizeof(req)) { in apploader_send_secure_load_command() [all …]
|
/trusty/user/app/confirmationui/src/ |
D | main.cpp | 74 struct confirmationui_hdr hdr; member 128 struct confirmationui_hdr hdr; in handle_init() local 158 hdr.cmd = CONFIRMATIONUI_CMD_INIT | CONFIRMATIONUI_RESP_BIT; in handle_init() 159 rc = tipc_send1(chan, &hdr, sizeof(hdr)); in handle_init() 160 if (rc != (int)sizeof(hdr)) { in handle_init() 181 struct confirmationui_hdr hdr; in handle_msg() local 199 hdr.cmd = CONFIRMATIONUI_CMD_MSG | CONFIRMATIONUI_RESP_BIT; in handle_msg() 201 rc = tipc_send2(chan, &hdr, sizeof(hdr), &args, sizeof(args)); in handle_msg() 202 if (rc != (int)(sizeof(hdr) + sizeof(args))) { in handle_msg() 282 switch (req.hdr.cmd) { in on_message() [all …]
|
/trusty/user/base/app/coverage/ |
D | aggregator.c | 38 resp.hdr.cmd = req->hdr.cmd | COVERAGE_AGGREGATOR_CMD_RESP_BIT; in handle_register() 62 resp.hdr.cmd = req->hdr.cmd | COVERAGE_AGGREGATOR_CMD_RESP_BIT; in handle_get_record() 117 switch (req.hdr.cmd) { in on_message() 125 TLOGE("cmd 0x%x: unknown command\n", req.hdr.cmd); in on_message()
|
D | client.c | 56 resp.hdr.cmd = req->hdr.cmd | COVERAGE_CLIENT_CMD_RESP_BIT; in handle_open() 81 resp.hdr.cmd = req->hdr.cmd | COVERAGE_CLIENT_CMD_RESP_BIT; in handle_share_record() 123 switch (req.hdr.cmd) { in on_message() 132 TLOGE("cmd 0x%x: unknown command\n", req.hdr.cmd); in on_message()
|
/trusty/user/base/lib/coverage/common/ |
D | ipc.c | 127 if (resp->hdr.cmd != (req->hdr.cmd | COVERAGE_AGGREGATOR_CMD_RESP_BIT)) { in coverage_aggregator_rpc() 128 TLOGE("cmd 0x%x: unknown command\n", resp->hdr.cmd); in coverage_aggregator_rpc() 146 if (resp->hdr.cmd != (req->hdr.cmd | COVERAGE_CLIENT_CMD_RESP_BIT)) { in coverage_client_rpc() 147 TLOGE("cmd 0x%x: unknown command\n", resp->hdr.cmd); in coverage_client_rpc()
|
/trusty/user/base/app/line-coverage/ |
D | aggregator.c | 39 resp.hdr.cmd = req->hdr.cmd | LINE_COVERAGE_AGGREGATOR_CMD_RESP_BIT; in handle_register() 64 resp.hdr.cmd = req->hdr.cmd | LINE_COVERAGE_AGGREGATOR_CMD_RESP_BIT; in handle_get_record() 119 switch (req.hdr.cmd) { in on_message() 127 TLOGE("cmd 0x%x: unknown command\n", req.hdr.cmd); in on_message()
|
D | client.c | 56 resp.hdr.cmd = LINE_COVERAGE_CLIENT_CMD_SEND_LIST | LINE_COVERAGE_CLIENT_CMD_RESP_BIT; in handle_send_list() 76 resp.hdr.cmd = LINE_COVERAGE_CLIENT_CMD_SEND_LIST | LINE_COVERAGE_CLIENT_CMD_RESP_BIT; in handle_send_list() 104 resp.hdr.cmd = req->hdr.cmd | LINE_COVERAGE_CLIENT_CMD_RESP_BIT; in handle_open() 129 resp.hdr.cmd = req->hdr.cmd | LINE_COVERAGE_CLIENT_CMD_RESP_BIT; in handle_share_record() 173 switch (req.hdr.cmd) { in on_message() 185 TLOGE("command 0x%x: unknown command\n", req.hdr.cmd); in on_message()
|
/trusty/user/base/interface/coverage/include/interface/coverage/ |
D | client.h | 100 struct coverage_client_hdr hdr; member 113 struct coverage_client_hdr hdr; member
|
D | aggregator.h | 97 struct coverage_aggregator_hdr hdr; member 111 struct coverage_aggregator_hdr hdr; member
|
/trusty/user/app/sample/hwcrypto/ |
D | hwkey_srv.c | 320 struct hwkey_msg* hdr, in hwkey_handle_get_keyslot_cmd() argument 325 hdr->header.status = _handle_slots(ctx, slot_id, key_slots, key_slot_cnt, in hwkey_handle_get_keyslot_cmd() 328 rc = hwkey_send_rsp(ctx, hdr, key_data, klen); in hwkey_handle_get_keyslot_cmd() 366 struct hwkey_msg* hdr, in hwkey_handle_derive_key_cmd() argument 371 if (key_len > HWKEY_MAX_MSG_SIZE - sizeof(*hdr)) { in hwkey_handle_derive_key_cmd() 374 hdr->header.status = HWKEY_ERR_BAD_LEN; in hwkey_handle_derive_key_cmd() 378 hdr->header.status = hwkey_handle_derive_key_impl( in hwkey_handle_derive_key_cmd() 379 &hdr->arg1, &ctx->uuid, ikm_data, ikm_len, key_data, key_len); in hwkey_handle_derive_key_cmd() 382 rc = hwkey_send_rsp(ctx, hdr, key_data, key_len); in hwkey_handle_derive_key_cmd() 513 struct hwkey_msg_header* hdr; in hwkey_chan_handle_msg() local [all …]
|
/trusty/user/base/interface/line-coverage/include/interface/line-coverage/ |
D | aggregator.h | 103 struct line_coverage_aggregator_hdr hdr; member 117 struct line_coverage_aggregator_hdr hdr; member
|
D | client.h | 126 struct line_coverage_client_hdr hdr; member 141 struct line_coverage_client_hdr hdr; member
|
/trusty/user/base/lib/tipc/include/lib/tipc/ |
D | tipc.h | 90 const void* hdr, 132 void* hdr, in tipc_recv_hdr_payload() argument 136 return tipc_recv2(chan, hdr_sz, hdr, hdr_sz, payload, payload_sz); in tipc_recv_hdr_payload()
|
/trusty/kernel/services/apploader/ |
D | apploader_service.c | 73 struct apploader_secure_header hdr; member 107 .hdr = in apploader_service_send_response() 303 rc = ktipc_recv(chan, sizeof(req.hdr), &req, sizeof(req)); in apploader_service_handle_msg() 310 switch (req.hdr.cmd) { in apploader_service_handle_msg() 313 cmd_len = sizeof(req.hdr) + sizeof(req.get_memory_req); in apploader_service_handle_msg() 318 chan, req.hdr.cmd, APPLOADER_ERR_INVALID_CMD, NULL, 0); in apploader_service_handle_msg() 328 cmd_len = sizeof(req.hdr) + sizeof(req.load_app_req); in apploader_service_handle_msg() 333 chan, req.hdr.cmd, APPLOADER_ERR_INVALID_CMD, NULL, 0); in apploader_service_handle_msg() 343 __func__, req.hdr.cmd); in apploader_service_handle_msg() 345 chan, req.hdr.cmd, APPLOADER_ERR_UNKNOWN_CMD, NULL, 0); in apploader_service_handle_msg()
|
/trusty/user/base/lib/hwwsk/rust/src/ |
D | lib.rs | 55 hdr: hwwsk_req_hdr, field 62 HwWskResponse { status, cmd: self.hdr.cmd | hwwsk_cmd_HWWSK_CMD_RESP as u32, payload } in response_from() 71 self.hdr.cmd.serialize(serializer)?; in serialize() 72 self.hdr.flags.serialize(serializer)?; in serialize() 95 let hdr = unsafe { &*(bytes.as_ptr() as *const hwwsk_req_hdr) }; in deserialize() localVariable 99 match hdr.cmd as hwwsk_cmd { in deserialize() 112 Ok(Self { hdr: hwwsk_req_hdr { cmd: hdr.cmd, flags: hdr.flags }, req }) in deserialize() 338 hdr: hwwsk_req_hdr { cmd, flags: 0 }, in create_key() 387 hdr: hwwsk_req_hdr { cmd, flags: 0 }, in export_key()
|
/trusty/hardware/nxp/app/hwcrypto/ |
D | common.h | 42 const void* hdr, 48 void* hdr,
|
/trusty/kernel/lib/trusty/ |
D | tipc_virtio_dev.c | 330 struct tipc_ctrl_msg_hdr hdr; in _go_online() member 334 msg.hdr.type = TIPC_CTRL_MSGTYPE_GO_ONLINE; in _go_online() 335 msg.hdr.body_len = 0; in _go_online() 367 struct tipc_ctrl_msg_hdr hdr; in send_conn_rsp() member 371 msg.hdr.type = TIPC_CTRL_MSGTYPE_CONN_RSP; in send_conn_rsp() 372 msg.hdr.body_len = sizeof(msg.body); in send_conn_rsp() 388 struct tipc_ctrl_msg_hdr hdr; in send_disc_req() member 392 msg.hdr.type = TIPC_CTRL_MSGTYPE_DISC_REQ; in send_disc_req() 393 msg.hdr.body_len = sizeof(msg.body); in send_disc_req() 495 struct tipc_ctrl_msg_hdr hdr; in handle_reuse_msgbuf_req() member [all …]
|
/trusty/kernel/lib/trusty/include/lib/trusty/ |
D | tipc_virtio_dev.h | 62 struct fw_rsc_hdr hdr; member 70 .hdr.type = RSC_VDEV, \
|