Searched refs:p_connection (Results 1 – 10 of 10) sorted by relevance
/trusted-firmware-m-3.6.0/secure_fw/spm/core/ |
D | spm_connection_pool.c | 60 psa_handle_t connection_to_handle(struct connection_t *p_connection) in connection_to_handle() argument 65 handle = (psa_handle_t)((((uintptr_t)p_connection - in connection_to_handle() 90 struct connection_t *p_connection; in handle_to_connection() local 96 p_connection = (struct connection_t *)((((uintptr_t)handle - in handle_to_connection() 100 return p_connection; in handle_to_connection() 120 psa_status_t spm_validate_connection(const struct connection_t *p_connection) in spm_validate_connection() argument 124 (uint8_t *)p_connection) != true) { in spm_validate_connection() 131 void spm_free_connection(struct connection_t *p_connection) in spm_free_connection() argument 135 SPM_ASSERT(p_connection != NULL); in spm_free_connection() 139 tfm_pool_free(connection_pool, p_connection); in spm_free_connection()
|
D | psa_connection_api.c | 23 struct connection_t *p_connection; in tfm_spm_client_psa_connect() local 65 p_connection = spm_allocate_connection(); in tfm_spm_client_psa_connect() 67 if (!p_connection) { in tfm_spm_client_psa_connect() 71 spm_init_connection(p_connection, service, client_id); in tfm_spm_client_psa_connect() 72 p_connection->msg.type = PSA_IPC_CONNECT; in tfm_spm_client_psa_connect() 74 return backend_messaging(p_connection); in tfm_spm_client_psa_connect() 79 struct connection_t *p_connection; in tfm_spm_client_psa_close() local 100 status = spm_get_connection(&p_connection, handle, client_id); in tfm_spm_client_psa_close() 109 if (p_connection->status == TFM_HANDLE_STATUS_ACTIVE) { in tfm_spm_client_psa_close() 113 p_connection->msg.type = PSA_IPC_DISCONNECT; in tfm_spm_client_psa_close() [all …]
|
D | spm_local_connection.c | 51 psa_handle_t connection_to_handle(struct connection_t *p_connection) in connection_to_handle() argument 53 (void)p_connection; in connection_to_handle() 60 struct connection_t *p_connection; in handle_to_connection() local 66 p_connection = (struct connection_t *) in handle_to_connection() 69 return p_connection; in handle_to_connection() 87 psa_status_t spm_validate_connection(const struct connection_t *p_connection) in spm_validate_connection() argument 93 void spm_free_connection(struct connection_t *p_connection) in spm_free_connection() argument 95 (void)p_connection; in spm_free_connection()
|
D | psa_call_api.c | 21 psa_status_t spm_associate_call_params(struct connection_t *p_connection, in spm_associate_call_params() argument 41 p_connection->msg.type = type; in spm_associate_call_params() 121 p_connection->msg.in_size[i] = ivecs_local[i].len; in spm_associate_call_params() 122 p_connection->invec_base[i] = ivecs_local[i].base; in spm_associate_call_params() 123 p_connection->invec_accessed[i] = 0; in spm_associate_call_params() 144 p_connection->msg.out_size[i] = ovecs_local[i].len; in spm_associate_call_params() 145 p_connection->outvec_base[i] = ovecs_local[i].base; in spm_associate_call_params() 146 p_connection->outvec_written[i] = 0; in spm_associate_call_params() 149 p_connection->caller_outvec = outptr; in spm_associate_call_params() 159 struct connection_t *p_connection; in tfm_spm_client_psa_call() local [all …]
|
D | backend_sfn.c | 39 psa_status_t backend_messaging(struct connection_t *p_connection) in backend_messaging() argument 44 if (!p_connection || !p_connection->service || in backend_messaging() 45 !p_connection->service->p_ldinf || in backend_messaging() 46 !p_connection->service->partition) { in backend_messaging() 50 p_target = p_connection->service->partition; in backend_messaging() 51 p_target->p_handles = p_connection; in backend_messaging() 66 status = ((service_fn_t)p_connection->service->p_ldinf->sfn)(&p_connection->msg); in backend_messaging() 68 p_connection->status = TFM_HANDLE_STATUS_ACTIVE; in backend_messaging()
|
D | spm_ipc.c | 181 psa_status_t spm_get_connection(struct connection_t **p_connection, in spm_get_connection() argument 191 SPM_ASSERT(p_connection); in spm_get_connection() 264 *p_connection = connection; in spm_get_connection() 296 void spm_init_connection(struct connection_t *p_connection, in spm_init_connection() argument 300 SPM_ASSERT(p_connection); in spm_init_connection() 304 spm_memset(&p_connection->msg, 0, sizeof(psa_msg_t)); in spm_init_connection() 306 p_connection->service = service; in spm_init_connection() 307 p_connection->p_client = GET_CURRENT_COMPONENT(); in spm_init_connection() 308 p_connection->msg.client_id = client_id; in spm_init_connection() 310 p_connection->msg.handle = connection_to_handle(p_connection); in spm_init_connection() [all …]
|
D | agent_api.c | 26 struct connection_t *p_connection; in tfm_spm_agent_psa_call() local 41 status = spm_get_connection(&p_connection, handle, params->ns_client_id_stateless); in tfm_spm_agent_psa_call() 46 status = spm_associate_call_params(p_connection, control, params->p_invecs, params->p_outvecs); in tfm_spm_agent_psa_call() 51 return backend_messaging(p_connection); in tfm_spm_agent_psa_call()
|
D | spm.h | 142 psa_status_t spm_validate_connection(const struct connection_t *p_connection); 145 void spm_free_connection(struct connection_t *p_connection); 207 psa_status_t spm_get_connection(struct connection_t **p_connection, 232 void spm_init_connection(struct connection_t *p_connection, 240 psa_status_t spm_associate_call_params(struct connection_t *p_connection, 320 psa_handle_t connection_to_handle(struct connection_t *p_connection);
|
D | backend_ipc.c | 172 psa_status_t backend_messaging(struct connection_t *p_connection) in backend_messaging() argument 178 if (!p_connection || !p_connection->service || in backend_messaging() 179 !p_connection->service->p_ldinf || in backend_messaging() 180 !p_connection->service->partition) { in backend_messaging() 184 p_owner = p_connection->service->partition; in backend_messaging() 185 signal = p_connection->service->p_ldinf->signal; in backend_messaging() 187 UNI_LIST_INSERT_AFTER(p_owner, p_connection, p_handles); in backend_messaging() 196 if (is_tfm_rpc_msg(p_connection)) { in backend_messaging() 199 signal = backend_wait_signals(p_connection->p_client, ASYNC_MSG_REPLY); in backend_messaging() 205 p_connection->status = TFM_HANDLE_STATUS_ACTIVE; in backend_messaging()
|
/trusted-firmware-m-3.6.0/secure_fw/spm/include/ffm/ |
D | backend.h | 40 psa_status_t backend_messaging(struct connection_t *p_connection);
|