| /optee_os/core/kernel/ |
| H A D | ree_fs_ta.c | 245 struct ree_fs_ta_handle *handle; in ree_fs_ta_open() local 261 handle = calloc(1, sizeof(*handle)); in ree_fs_ta_open() 262 if (!handle) in ree_fs_ta_open() 418 handle->bs_hdr = bs_hdr; in ree_fs_ta_open() 466 res = tee_ta_decrypt_init(&handle->enc_ctx, ehdr, in ree_fs_ta_open() 472 handle->ehdr = ehdr; in ree_fs_ta_open() 480 handle->nw_ta = ta; in ree_fs_ta_open() 481 handle->nw_ta_size = ta_size; in ree_fs_ta_open() 482 handle->offs = offs; in ree_fs_ta_open() 483 handle->hash_ctx = hash_ctx; in ree_fs_ta_open() [all …]
|
| H A D | handle.c | 82 void *handle_put(struct handle_db *db, int handle) in handle_put() argument 86 if (!db || handle < 0 || (size_t)handle >= db->max_ptrs) in handle_put() 89 p = db->ptrs[handle]; in handle_put() 90 db->ptrs[handle] = NULL; in handle_put() 94 void *handle_lookup(struct handle_db *db, int handle) in handle_lookup() argument 96 if (!db || handle < 0 || (size_t)handle >= db->max_ptrs) in handle_lookup() 99 return db->ptrs[handle]; in handle_lookup()
|
| H A D | wait_queue.c | 66 wqe->handle = thread_get_id(); in wq_wait_init_condvar() 86 do_notif(true, wqe->handle, timeout_ms, "sleep", sync_obj, fname, in wq_wait_final_helper() 112 int handle = -1; in wq_wake_next() local 140 handle = wqe->handle; in wq_wake_next() 148 do_notif(false, handle, 0, in wq_wake_next() 179 wqe->handle, (void *)cv->m, fname, lineno); in wq_promote_condvar() 182 wqe->handle, (void *)cv->m); in wq_promote_condvar()
|
| H A D | embedded_ts.c | 60 struct ts_store_handle *handle = NULL; in emb_ts_open() local 67 handle = calloc(1, sizeof(*handle)); in emb_ts_open() 68 if (!handle) in emb_ts_open() 72 if (!decompression_init(&handle->strm, ts)) { in emb_ts_open() 73 free(handle); in emb_ts_open() 77 handle->ts = ts; in emb_ts_open() 78 *h = handle; in emb_ts_open()
|
| H A D | pm.c | 28 (pm_hdl->handle && !is_unpaged(pm_hdl->handle)))) { in verify_cb_args() 30 (void *)(vaddr_t)pm_hdl->callback, pm_hdl->handle); in verify_cb_args() 78 pm_cb_ref[n].handle == pm_hdl->handle && in unregister_pm_cb()
|
| /optee_os/ta/pkcs11/src/ |
| H A D | handle.c | 72 static bool handle_is_valid(struct handle_db *db, uint32_t handle) in handle_is_valid() argument 74 return db && handle && handle < db->max_ptrs; in handle_is_valid() 77 void *handle_put(struct handle_db *db, uint32_t handle) in handle_put() argument 81 if (!handle_is_valid(db, handle)) in handle_put() 84 p = db->ptrs[handle]; in handle_put() 85 db->ptrs[handle] = NULL; in handle_put() 89 void *handle_lookup(struct handle_db *db, uint32_t handle) in handle_lookup() argument 91 if (!handle_is_valid(db, handle) || in handle_lookup() 92 db->ptrs[handle] == INVALID_HANDLE_PTR) in handle_lookup() 95 return db->ptrs[handle]; in handle_lookup() [all …]
|
| H A D | handle.h | 38 void *handle_put(struct handle_db *db, uint32_t handle); 45 void *handle_lookup(struct handle_db *db, uint32_t handle); 51 void handle_invalidate(struct handle_db *db, uint32_t handle);
|
| H A D | pkcs11_token.c | 92 struct pkcs11_session *pkcs11_handle2session(uint32_t handle, in pkcs11_handle2session() argument 95 return handle_lookup(&client->session_handle_db, handle); in pkcs11_handle2session() 101 uint32_t handle = 0; in token_invalidate_object_handles() local 104 handle = handle_lookup_handle(&client->object_handle_db, obj); in token_invalidate_object_handles() 105 if (handle) in token_invalidate_object_handles() 106 handle_invalidate(&client->object_handle_db, handle); in token_invalidate_object_handles() 616 out->memref.size != sizeof(session->handle)) in entry_ck_open_session() 659 session->handle = handle_get(&client->session_handle_db, session); in entry_ck_open_session() 660 if (!session->handle) { in entry_ck_open_session() 678 TEE_MemMove(out->memref.buffer, &session->handle, in entry_ck_open_session() [all …]
|
| H A D | object.c | 33 struct pkcs11_object *pkcs11_handle2object(uint32_t handle, in pkcs11_handle2object() argument 38 object = handle_lookup(get_object_handle_db(session), handle); in pkcs11_handle2object() 399 session->handle, obj_handle); in entry_create_object() 463 session->handle, object_handle); in entry_destroy_object() 479 uint32_t handle) in find_ctx_add() argument 489 *(find_ctx->handles + find_ctx->count) = handle; in find_ctx_add() 607 uint32_t handle = 0; in entry_find_objects_init() local 631 handle = pkcs11_object2handle(obj, session); in entry_find_objects_init() 632 if (!handle) { in entry_find_objects_init() 633 handle = handle_get(object_db, obj); in entry_find_objects_init() [all …]
|
| /optee_os/core/include/kernel/ |
| H A D | pm.h | 74 .handle = (_handle), \ 79 #define PM_CALLBACK_GET_HANDLE(pm_handle) ((pm_handle)->handle) 126 void *handle; member 164 static inline void register_pm_driver_cb(pm_callback callback, void *handle, in register_pm_driver_cb() argument 167 register_pm_cb(&PM_CALLBACK_HANDLE_INITIALIZER(callback, handle, in register_pm_driver_cb() 178 static inline void unregister_pm_driver_cb(pm_callback callback, void *handle) in unregister_pm_driver_cb() argument 180 unregister_pm_cb(&PM_CALLBACK_HANDLE_INITIALIZER(callback, handle, in unregister_pm_driver_cb() 195 void *handle, const char *name) in register_pm_core_service_cb() argument 197 register_pm_cb(&PM_CALLBACK_HANDLE_INITIALIZER(callback, handle, in register_pm_core_service_cb() 209 void *handle) in unregister_pm_core_service_cb() argument [all …]
|
| H A D | ldelf_syscalls.h | 26 uint32_t *handle); 27 TEE_Result ldelf_syscall_close_bin(unsigned long handle); 29 unsigned long handle, size_t offs_bytes, 33 unsigned long handle);
|
| H A D | handle.h | 43 void *handle_put(struct handle_db *db, int handle); 50 void *handle_lookup(struct handle_db *db, int handle);
|
| /optee_os/ldelf/ |
| H A D | sys.c | 50 TEE_Result sys_open_ta_bin(const TEE_UUID *uuid, uint32_t *handle) in sys_open_ta_bin() argument 52 return _ldelf_open_bin(uuid, sizeof(TEE_UUID), handle); in sys_open_ta_bin() 55 TEE_Result sys_close_ta_bin(uint32_t handle) in sys_close_ta_bin() argument 57 return _ldelf_close_bin(handle); in sys_close_ta_bin() 61 uint32_t handle, size_t offs, size_t pad_begin, in sys_map_ta_bin() argument 64 return _ldelf_map_bin(va, num_bytes, handle, offs, in sys_map_ta_bin() 69 TEE_Result sys_copy_from_ta_bin(void *dst, size_t num_bytes, uint32_t handle, in sys_copy_from_ta_bin() argument 72 return _ldelf_cp_from_bin(dst, offs, num_bytes, handle); in sys_copy_from_ta_bin()
|
| H A D | sys.h | 40 TEE_Result sys_open_ta_bin(const TEE_UUID *uuid, uint32_t *handle); 41 TEE_Result sys_close_ta_bin(uint32_t handle); 43 uint32_t handle, size_t offs, size_t pad_begin, 45 TEE_Result sys_copy_from_ta_bin(void *dst, size_t num_bytes, uint32_t handle,
|
| /optee_os/lib/libutee/ |
| H A D | tee_socket_private.h | 19 uint32_t protocol, uint32_t *handle); 21 TEE_Result __tee_socket_pta_close(uint32_t handle); 23 TEE_Result __tee_socket_pta_send(uint32_t handle, const void *buf, 26 TEE_Result __tee_socket_pta_recv(uint32_t handle, void *buf, uint32_t *len, 29 TEE_Result __tee_socket_pta_ioctl(uint32_t handle, uint32_t command, void *buf,
|
| H A D | tee_socket_pta.c | 35 uint32_t protocol, uint32_t *handle) in __tee_socket_pta_open() argument 75 *handle = params[3].value.a; in __tee_socket_pta_open() 79 TEE_Result __tee_socket_pta_close(uint32_t handle) in __tee_socket_pta_close() argument 89 params[0].value.a = handle; in __tee_socket_pta_close() 93 TEE_Result __tee_socket_pta_send(uint32_t handle, const void *buf, in __tee_socket_pta_send() argument 106 params[0].value.a = handle; in __tee_socket_pta_send() 117 TEE_Result __tee_socket_pta_recv(uint32_t handle, void *buf, uint32_t *len, in __tee_socket_pta_recv() argument 130 params[0].value.a = handle; in __tee_socket_pta_recv() 141 TEE_Result __tee_socket_pta_ioctl(uint32_t handle, uint32_t command, void *buf, in __tee_socket_pta_ioctl() argument 153 params[0].value.a = handle; in __tee_socket_pta_ioctl()
|
| H A D | tee_tcpudp_socket.c | 16 uint32_t handle; member 40 &sock_ctx->handle); in tcp_open() 79 &sock_ctx->handle); in udp_open() 106 res = __tee_socket_pta_close(sock_ctx->handle); in sock_close() 121 res = __tee_socket_pta_send(sock_ctx->handle, buf, length, timeout); in sock_send() 136 res = __tee_socket_pta_recv(sock_ctx->handle, buf, length, timeout); in sock_recv() 167 res = __tee_socket_pta_ioctl(sock_ctx->handle, commandCode, in tcp_ioctl() 194 res = __tee_socket_pta_ioctl(sock_ctx->handle, commandCode, in udp_ioctl()
|
| /optee_os/lib/libmbedtls/mbedtls/include/psa/ |
| H A D | crypto_compat.h | 41 static inline int psa_key_handle_is_null(psa_key_handle_t handle) in psa_key_handle_is_null() argument 43 return mbedtls_svc_key_id_is_null(handle); in psa_key_handle_is_null() 107 psa_key_handle_t *handle); 147 psa_status_t psa_close_key(psa_key_handle_t handle);
|
| H A D | crypto_struct.h | 72 mbedtls_psa_client_handle_t handle; member 97 mbedtls_psa_client_handle_t handle; member 133 mbedtls_psa_client_handle_t handle; member 161 mbedtls_psa_client_handle_t handle; member 204 mbedtls_psa_client_handle_t handle; member 452 mbedtls_psa_client_handle_t handle; member 490 mbedtls_psa_client_handle_t handle; member
|
| /optee_os/ldelf/include/ |
| H A D | ldelf_syscalls.h | 20 uint32_t *handle); 21 TEE_Result _ldelf_close_bin(unsigned long handle); 22 TEE_Result _ldelf_map_bin(vaddr_t *va, size_t num_bytes, unsigned long handle, 26 unsigned long handle);
|
| /optee_os/lib/libdl/ |
| H A D | dlfcn.c | 80 int dlclose(void *handle) in dlclose() argument 82 free(handle); in dlclose() 91 void *dlsym(void *handle, const char *symbol) in dlsym() argument 95 struct dl_handle *h = handle; in dlsym() 99 if (!handle || !symbol) in dlsym()
|
| /optee_os/lib/libdl/include/ |
| H A D | dlfcn.h | 19 int dlclose(void *handle); 20 void *dlsym(void *handle, const char *symbol);
|
| /optee_os/core/lib/scmi-server/ |
| H A D | scmi_server.c | 35 TEE_Result scmi_server_get_channel(unsigned int channel_id, int *handle) in scmi_server_get_channel() argument 43 if (handle) in scmi_server_get_channel() 44 *handle = fwk_id; in scmi_server_get_channel()
|
| /optee_os/core/arch/arm/include/scmi/ |
| H A D | scmi_server.h | 40 TEE_Result scmi_server_get_channel(unsigned int channel_id, int *handle); 63 int *handle __unused) in scmi_server_get_channel()
|
| /optee_os/scripts/ |
| H A D | notify_maintainers.py | 44 handle = line[handle_start + 2:handle_end].strip() 56 the_rest_handles.add(handle) 58 handles.add(handle)
|