Home
last modified time | relevance | path

Searched refs:reply (Results 1 – 25 of 29) sorted by relevance

12

/trusted-firmware-m-3.7.0/platform/ext/target/arm/corstone1000/rse_comms/
Drse_comms_protocol.c44 struct serialized_psa_reply_t *reply, size_t *reply_size) in rse_protocol_serialize_reply() argument
48 memset(reply, 0, sizeof(struct serialized_psa_reply_t)); in rse_protocol_serialize_reply()
50 reply->header.protocol_ver = req->protocol_ver; in rse_protocol_serialize_reply()
51 reply->header.seq_num = req->seq_num; in rse_protocol_serialize_reply()
52 reply->header.client_id = req->client_id; in rse_protocol_serialize_reply()
54 switch (reply->header.protocol_ver) { in rse_protocol_serialize_reply()
57 err = rse_protocol_embed_serialize_reply(req, &reply->reply.embed, in rse_protocol_serialize_reply()
67 &reply->reply.pointer_access, reply_size); in rse_protocol_serialize_reply()
85 struct serialized_psa_reply_t *reply, size_t *reply_size) in rse_protocol_serialize_error() argument
89 memset(reply, 0, sizeof(struct serialized_psa_reply_t)); in rse_protocol_serialize_error()
[all …]
Drse_comms_protocol_embed.c68 struct client_request_t *req, struct rse_embed_reply_t *reply, in rse_protocol_embed_serialize_reply() argument
75 reply->return_val = req->return_val; in rse_protocol_embed_serialize_reply()
81 if (payload_size + len > sizeof(reply->payload)) { in rse_protocol_embed_serialize_reply()
85 memcpy(reply->payload + payload_size, req->out_vec[i].base, len); in rse_protocol_embed_serialize_reply()
86 reply->out_size[i] = len; in rse_protocol_embed_serialize_reply()
90 *reply_size = sizeof(*reply) - sizeof(reply->payload) + payload_size; in rse_protocol_embed_serialize_reply()
97 struct rse_embed_reply_t *reply, size_t *reply_size) in rse_protocol_embed_serialize_error() argument
99 reply->return_val = err; in rse_protocol_embed_serialize_error()
102 *reply_size = sizeof(*reply) - sizeof(reply->payload); in rse_protocol_embed_serialize_error()
Drse_comms_hal.c25 static __ALIGNED(4) struct serialized_psa_reply_t reply; variable
84 memset(&reply, 0, sizeof(reply)); in tfm_multi_core_hal_receive()
136 &reply, &reply_size) in tfm_multi_core_hal_receive()
138 mhu_send_data(mhu_sender_dev, (uint8_t *)&reply, reply_size); in tfm_multi_core_hal_receive()
165 err = rse_protocol_serialize_reply(req, &reply, &reply_size); in tfm_multi_core_hal_reply()
171 mhu_err = mhu_send_data(req->mhu_sender_dev, (uint8_t *)&reply, reply_size); in tfm_multi_core_hal_reply()
Drse_comms_protocol.h67 } reply;
97 struct serialized_psa_reply_t *reply, size_t *reply_size);
122 struct serialized_psa_reply_t *reply, size_t *reply_size);
Drse_comms_protocol_embed.h38 struct client_request_t *req, struct rse_embed_reply_t *reply,
43 struct rse_embed_reply_t *reply, size_t *reply_size);
Drse_comms.c146 .reply = rse_comms_reply,
/trusted-firmware-m-3.7.0/platform/ext/target/arm/rse/common/rse_comms/
Drse_comms_protocol.c44 struct serialized_psa_reply_t *reply, size_t *reply_size) in rse_protocol_serialize_reply() argument
48 memset(reply, 0, sizeof(struct serialized_psa_reply_t)); in rse_protocol_serialize_reply()
50 reply->header.protocol_ver = req->protocol_ver; in rse_protocol_serialize_reply()
51 reply->header.seq_num = req->seq_num; in rse_protocol_serialize_reply()
52 reply->header.client_id = req->client_id; in rse_protocol_serialize_reply()
54 switch (reply->header.protocol_ver) { in rse_protocol_serialize_reply()
57 err = rse_protocol_embed_serialize_reply(req, &reply->reply.embed, in rse_protocol_serialize_reply()
67 &reply->reply.pointer_access, reply_size); in rse_protocol_serialize_reply()
85 struct serialized_psa_reply_t *reply, size_t *reply_size) in rse_protocol_serialize_error() argument
89 memset(reply, 0, sizeof(struct serialized_psa_reply_t)); in rse_protocol_serialize_error()
[all …]
Drse_comms_protocol_embed.c68 struct client_request_t *req, struct rse_embed_reply_t *reply, in rse_protocol_embed_serialize_reply() argument
75 reply->return_val = req->return_val; in rse_protocol_embed_serialize_reply()
81 if (payload_size + len > sizeof(reply->payload)) { in rse_protocol_embed_serialize_reply()
85 memcpy(reply->payload + payload_size, req->out_vec[i].base, len); in rse_protocol_embed_serialize_reply()
86 reply->out_size[i] = len; in rse_protocol_embed_serialize_reply()
90 *reply_size = sizeof(*reply) - sizeof(reply->payload) + payload_size; in rse_protocol_embed_serialize_reply()
97 struct rse_embed_reply_t *reply, size_t *reply_size) in rse_protocol_embed_serialize_error() argument
99 reply->return_val = err; in rse_protocol_embed_serialize_error()
102 *reply_size = sizeof(*reply) - sizeof(reply->payload); in rse_protocol_embed_serialize_error()
Drse_comms_hal.c25 static __ALIGNED(4) struct serialized_psa_reply_t reply; variable
76 memset(&reply, 0, sizeof(reply)); in tfm_multi_core_hal_receive()
128 &reply, &reply_size) in tfm_multi_core_hal_receive()
130 mhu_send_data(mhu_sender_dev, (uint8_t *)&reply, reply_size); in tfm_multi_core_hal_receive()
157 err = rse_protocol_serialize_reply(req, &reply, &reply_size); in tfm_multi_core_hal_reply()
163 mhu_err = mhu_send_data(req->mhu_sender_dev, (uint8_t *)&reply, reply_size); in tfm_multi_core_hal_reply()
Drse_comms_protocol_pointer_access.c106 struct rse_pointer_access_reply_t *reply, size_t *reply_size) in rse_protocol_pointer_access_serialize_reply() argument
110 reply->return_val = req->return_val; in rse_protocol_pointer_access_serialize_reply()
114 reply->out_size[idx] = req->out_vec[idx].len; in rse_protocol_pointer_access_serialize_reply()
117 *reply_size = sizeof(*reply); in rse_protocol_pointer_access_serialize_reply()
125 struct rse_pointer_access_reply_t *reply, in rse_protocol_pointer_access_serialize_error() argument
128 reply->return_val = err; in rse_protocol_pointer_access_serialize_error()
132 *reply_size = sizeof(*reply); in rse_protocol_pointer_access_serialize_error()
Drse_comms_protocol.h67 } reply;
97 struct serialized_psa_reply_t *reply, size_t *reply_size);
122 struct serialized_psa_reply_t *reply, size_t *reply_size);
Drse_comms_protocol_pointer_access.h38 struct rse_pointer_access_reply_t *reply,
43 struct rse_pointer_access_reply_t *reply,
Drse_comms_protocol_embed.h38 struct client_request_t *req, struct rse_embed_reply_t *reply,
43 struct rse_embed_reply_t *reply, size_t *reply_size);
/trusted-firmware-m-3.7.0/interface/src/multi_core/
Dtfm_ns_mailbox_thread.c35 int32_t *reply; /* Address of reply value member
127 reply_ptr = &mailbox_queue_ptr->queue[idx].reply; in mailbox_tx_client_call_msg()
129 reply_ptr->reply = req->reply; in mailbox_tx_client_call_msg()
152 int32_t *reply_ptr = mailbox_queue_ptr->queue[idx].reply.reply; in ns_mailbox_set_reply_isr()
155 *reply_ptr = mailbox_queue_ptr->queue[idx].reply.return_val; in ns_mailbox_set_reply_isr()
180 int32_t *reply) in tfm_ns_mailbox_client_call() argument
190 if (!params || !reply) { in tfm_ns_mailbox_client_call()
196 req.reply = reply; in tfm_ns_mailbox_client_call()
231 if (!req.params_ptr || !req.reply || !req.woken_flag) { in tfm_ns_mailbox_thread_runner()
279 task_handle = mailbox_queue_ptr->queue[idx].reply.owner; in tfm_ns_mailbox_wake_reply_owner_isr()
Dtfm_ns_mailbox.c147 static int32_t mailbox_rx_client_reply(uint8_t idx, int32_t *reply) in mailbox_rx_client_reply() argument
149 *reply = mailbox_queue_ptr->slots[idx].reply.return_val; in mailbox_rx_client_reply()
169 int32_t *reply) in tfm_ns_mailbox_client_call() argument
179 if (!params || !reply) { in tfm_ns_mailbox_client_call()
198 *reply = reply_buf; in tfm_ns_mailbox_client_call()
Dtfm_multi_core_psa_ns_api.c122 int32_t reply; in psa_close() local
127 NON_SECURE_CLIENT_ID, &reply); in psa_close()
/trusted-firmware-m-3.7.0/secure_fw/spm/core/
Dtfm_rpc.c33 .reply = default_mailbox_reply,
82 if (!ops_ptr->handle_req || !ops_ptr->reply) { in tfm_rpc_register_ops()
88 (rpc_ops.reply != default_mailbox_reply)) { in tfm_rpc_register_ops()
93 rpc_ops.reply = ops_ptr->reply; in tfm_rpc_register_ops()
101 rpc_ops.reply = default_mailbox_reply; in tfm_rpc_unregister_ops()
116 rpc_ops.reply(handle->client_data, status); in tfm_rpc_client_call_reply()
Dtfm_rpc.h43 void (*reply)(const void *owner, int32_t ret); member
/trusted-firmware-m-3.7.0/interface/include/multi_core/
Dtfm_ns_mailbox.h35 int32_t *reply; /* Address of reply value belonging member
105 int32_t *reply);
Dtfm_mailbox.h111 struct mailbox_reply_t reply; member
/trusted-firmware-m-3.7.0/secure_fw/partitions/ns_agent_mailbox/
Dtfm_spe_mailbox.h32 int32_t tfm_mailbox_reply_msg(mailbox_msg_handle_t handle, int32_t reply);
Dtfm_spe_mailbox.c138 return &spe_mailbox_queue.ns_slots[ns_slot_idx].reply; in get_nspe_reply_addr()
379 int32_t tfm_mailbox_reply_msg(mailbox_msg_handle_t handle, int32_t reply) in tfm_mailbox_reply_msg() argument
406 mailbox_direct_reply(idx, (uint32_t)reply); in tfm_mailbox_reply_msg()
442 .reply = mailbox_reply,
/trusted-firmware-m-3.7.0/docs/platform/arm/rse/
Drse_comms.rst14 sender link to RSE and wait for a reply message on the MHU receiver (either by
35 } reply;
50 The sequence number, ``seq_num``, is returned in the reply message to allow the
119 The reply message has the form::
130 sending the MHU reply message, so no further payload is sent in the reply
/trusted-firmware-m-3.7.0/docs/design_docs/dual-cpu/
Dmailbox_design_on_dual_core_system.rst94 This section describes the transfer of PSA Client request and reply between NSPE
118 structure and a mailbox reply structure. Each slot might contain additional
125 The mailbox reply structure is used to receive the PSA Client result from SPE.
126 `Mailbox replies`_ describes the details of mailbox reply.
146 A mailbox reply structure in non-secure memory receives the PSA Client result
148 `Mailbox reply structure`_.
195 #. After the notification is completed, non-secure task waits for the reply from
217 to reply PSA Client result to NSPE.
219 #. SPE mailbox writes the PSA Client result to the dedicated mailbox reply
229 reply structure. Related mailbox objects should be invalidated or cleaned by
[all …]
Dcommunication_prototype_between_nspe_and_spe_in_dual_core_systems.rst214 The RPC layer provides a set of APIs to TF-M SPM to handle and reply PSA client
313 ``psa_reply()`` to reply the return value to TF-M SPM. In the SVC handler of
316 ``tfm_rpc_client_call_reply()`` invokes reply callbacks to execute specific
317 mailbox reply operations. The mailbox reply functions must not trigger a context
408 TF-M ``psa_reply()`` handler calls this function to reply PSA client call return
426 ``tfm_rpc_client_call_reply()`` invokes callback function ``reply()`` to execute
427 specific mailbox reply.
429 underlying mailbox reply process.
443 void (*reply)(const void *owner, int32_t ret);

12