Home
last modified time | relevance | path

Searched refs:req (Results 1 – 11 of 11) sorted by relevance

/trusted-firmware-m-3.5.0/platform/ext/target/arm/rss/common/rss_comms/
Drss_comms_protocol_pointer_access.c14 struct client_request_t *req, in rss_protocol_pointer_access_deserialize_msg() argument
26 req->in_len = PARAM_UNPACK_IN_LEN(msg->ctrl_param); in rss_protocol_pointer_access_deserialize_msg()
27 req->out_len = PARAM_UNPACK_OUT_LEN(msg->ctrl_param); in rss_protocol_pointer_access_deserialize_msg()
28 req->type = PARAM_UNPACK_TYPE(msg->ctrl_param); in rss_protocol_pointer_access_deserialize_msg()
29 req->handle = msg->handle; in rss_protocol_pointer_access_deserialize_msg()
32 if (req->in_len + req->out_len > PSA_MAX_IOVEC) { in rss_protocol_pointer_access_deserialize_msg()
37 for (idx = 0; idx < req->in_len; idx++) { in rss_protocol_pointer_access_deserialize_msg()
51 err = comms_atu_add_region_to_set(&req->atu_regions, atu_region); in rss_protocol_pointer_access_deserialize_msg()
63 req->in_vec[idx].base = mapped_host_ptr; in rss_protocol_pointer_access_deserialize_msg()
64 req->in_vec[idx].len = msg->io_sizes[idx]; in rss_protocol_pointer_access_deserialize_msg()
[all …]
Drss_comms_protocol_embed.c15 struct client_request_t *req, struct rss_embed_msg_t *msg, in rss_protocol_embed_deserialize_msg() argument
25 req->in_len = PARAM_UNPACK_IN_LEN(msg->ctrl_param); in rss_protocol_embed_deserialize_msg()
26 req->out_len = PARAM_UNPACK_OUT_LEN(msg->ctrl_param); in rss_protocol_embed_deserialize_msg()
27 req->type = PARAM_UNPACK_TYPE(msg->ctrl_param); in rss_protocol_embed_deserialize_msg()
28 req->handle = msg->handle; in rss_protocol_embed_deserialize_msg()
31 if (req->in_len + req->out_len > 4) { in rss_protocol_embed_deserialize_msg()
36 for (i = 0; i < req->in_len; ++i) { in rss_protocol_embed_deserialize_msg()
37 req->in_vec[i].base = req->param_copy_buf + payload_size; in rss_protocol_embed_deserialize_msg()
38 req->in_vec[i].len = msg->io_size[i]; in rss_protocol_embed_deserialize_msg()
43 if (payload_size > sizeof(req->param_copy_buf) in rss_protocol_embed_deserialize_msg()
[all …]
Drss_comms.c23 static psa_status_t message_dispatch(struct client_request_t *req) in message_dispatch() argument
29 .handle = req->handle, in message_dispatch()
30 .type = req->type, in message_dispatch()
31 .in_vec = req->in_vec, in message_dispatch()
32 .in_len = req->in_len, in message_dispatch()
33 .out_vec = req->out_vec, in message_dispatch()
34 .out_len = req->out_len, in message_dispatch()
81 struct client_request_t *req = (struct client_request_t *)owner; in rss_comms_reply() local
83 req->return_val = ret; in rss_comms_reply()
86 SPMLOG_DBGMSGVAL("protocol_ver=", req->protocol_ver); in rss_comms_reply()
[all …]
Drss_comms_protocol.c14 struct client_request_t *req, struct serialized_psa_msg_t *msg, in rss_protocol_deserialize_msg() argument
17 memset(req, 0, sizeof(struct client_request_t)); in rss_protocol_deserialize_msg()
23 req->protocol_ver = msg->header.protocol_ver; in rss_protocol_deserialize_msg()
24 req->seq_num = msg->header.seq_num; in rss_protocol_deserialize_msg()
25 req->client_id = msg->header.client_id; in rss_protocol_deserialize_msg()
31 return rss_protocol_embed_deserialize_msg(req, &msg->msg.embed, in rss_protocol_deserialize_msg()
37 return rss_protocol_pointer_access_deserialize_msg(req, &msg->msg.pointer_access, in rss_protocol_deserialize_msg()
45 enum tfm_plat_err_t rss_protocol_serialize_reply(struct client_request_t *req, in rss_protocol_serialize_reply() argument
52 reply->header.protocol_ver = req->protocol_ver; in rss_protocol_serialize_reply()
53 reply->header.seq_num = req->seq_num; in rss_protocol_serialize_reply()
[all …]
Drss_comms_hal.c71 struct client_request_t *req = tfm_pool_alloc(req_pool); in tfm_multi_core_hal_receive() local
72 if (!req) { in tfm_multi_core_hal_receive()
78 err = rss_protocol_deserialize_msg(req, &msg, msg_len); in tfm_multi_core_hal_receive()
86 req->mhu_sender_dev = mhu_sender_dev; in tfm_multi_core_hal_receive()
88 if (queue_enqueue(req) != 0) { in tfm_multi_core_hal_receive()
98 tfm_pool_free(req_pool, req); in tfm_multi_core_hal_receive()
102 if (rss_protocol_serialize_error(req, &msg.header, in tfm_multi_core_hal_receive()
112 enum tfm_plat_err_t tfm_multi_core_hal_reply(struct client_request_t *req) in tfm_multi_core_hal_reply() argument
118 if (!is_valid_chunk_data_in_pool(req_pool, (uint8_t *)req)) { in tfm_multi_core_hal_reply()
124 err = rss_protocol_serialize_reply(req, &reply, &reply_size); in tfm_multi_core_hal_reply()
[all …]
Drss_comms_protocol_pointer_access.h33 struct client_request_t *req, struct rss_pointer_access_msg_t *msg,
37 struct client_request_t *req,
42 struct client_request_t *req, psa_status_t err,
Drss_comms_protocol_embed.h34 struct client_request_t *req, struct rss_embed_msg_t *msg,
38 struct client_request_t *req, struct rss_embed_reply_t *reply,
42 struct client_request_t *req, psa_status_t err,
Drss_comms_protocol.h80 enum tfm_plat_err_t rss_protocol_deserialize_msg(struct client_request_t *req,
93 enum tfm_plat_err_t rss_protocol_serialize_reply(struct client_request_t *req,
117 struct client_request_t *req,
Drss_comms_hal.h48 enum tfm_plat_err_t tfm_multi_core_hal_reply(struct client_request_t *req);
/trusted-firmware-m-3.5.0/interface/src/multi_core/
Dtfm_ns_mailbox_thread.c102 static int32_t mailbox_tx_client_call_msg(const struct ns_mailbox_req_t *req, in mailbox_tx_client_call_msg() argument
120 msg_ptr->call_type = req->call_type; in mailbox_tx_client_call_msg()
121 memcpy(&msg_ptr->params, req->params_ptr, sizeof(msg_ptr->params)); in mailbox_tx_client_call_msg()
122 msg_ptr->client_id = req->client_id; in mailbox_tx_client_call_msg()
126 reply_ptr->owner = req->owner; in mailbox_tx_client_call_msg()
127 reply_ptr->reply = req->reply; in mailbox_tx_client_call_msg()
128 reply_ptr->woken_flag = req->woken_flag; in mailbox_tx_client_call_msg()
157 static int32_t mailbox_wait_reply(const struct ns_mailbox_req_t *req) in mailbox_wait_reply() argument
164 if (*req->woken_flag == WOKEN_UP) { in mailbox_wait_reply()
180 struct ns_mailbox_req_t req; in tfm_ns_mailbox_client_call() local
[all …]
/trusted-firmware-m-3.5.0/interface/src/
Dtfm_platform_api.c32 tfm_platform_ioctl_req_t req = request; in tfm_platform_ioctl() local
37 in_vec[0].base = &req; in tfm_platform_ioctl()
38 in_vec[0].len = sizeof(req); in tfm_platform_ioctl()