/optee_os-3.20.0/core/kernel/ |
A D | ree_fs_ta.c | 253 handle = calloc(1, sizeof(*handle)); in ree_fs_ta_open() 254 if (!handle) in ree_fs_ta_open() 549 uint8_t *src = (uint8_t *)handle->nw_ta + handle->offs; in ree_fs_ta_read() 605 if (handle->offs == handle->nw_ta_size) { in ree_fs_ta_read() 683 handle = calloc(1, sizeof(*handle)); in buf_ta_open() 695 res = ree_fs_ta_get_size(handle->h, &handle->ta_size); in buf_ta_open() 704 handle->tag = malloc(handle->tag_len); in buf_ta_open() 709 res = ree_fs_ta_get_tag(handle->h, handle->tag, &handle->tag_len); in buf_ta_open() 726 res = ree_fs_ta_read(handle->h, handle->buf, handle->ta_size); in buf_ta_open() 760 uint8_t *src = handle->buf + handle->offs; in buf_ta_read() [all …]
|
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()
|
A D | wait_queue.c | 62 wqe->handle = thread_get_id(); in wq_wait_init_condvar() 81 do_notif(notif_wait, wqe->handle, in wq_wait_final() 99 int handle = -1; in wq_wake_next() local 127 handle = wqe->handle; in wq_wake_next() 135 do_notif(notif_send_sync, handle, in wq_wake_next() 166 wqe->handle, (void *)cv->m, fname, lineno); in wq_promote_condvar() 169 wqe->handle, (void *)cv->m); in wq_promote_condvar()
|
A D | embedded_ts.c | 59 struct ts_store_handle *handle = NULL; in emb_ts_open() local 66 handle = calloc(1, sizeof(*handle)); in emb_ts_open() 67 if (!handle) in emb_ts_open() 71 if (!decompression_init(&handle->strm, ts)) { in emb_ts_open() 72 free(handle); in emb_ts_open() 76 handle->ts = ts; in emb_ts_open() 77 *h = handle; in emb_ts_open()
|
A D | pm.c | 26 (pm_hdl->handle && !is_unpaged(pm_hdl->handle)))) { in verify_cb_args() 28 (void *)(vaddr_t)pm_hdl->callback, pm_hdl->handle); in verify_cb_args()
|
A D | secstor_ta.c | 12 struct ts_store_handle **handle) in secstor_ta_open() argument 33 *handle = (struct ts_store_handle *)ta; in secstor_ta_open()
|
A D | ldelf_syscalls.c | 100 uint32_t *handle) in ldelf_syscall_open_bin() argument 121 (uaddr_t)handle, sizeof(uint32_t)); in ldelf_syscall_open_bin() 183 *handle = h; in ldelf_syscall_open_bin() 194 TEE_Result ldelf_syscall_close_bin(unsigned long handle) in ldelf_syscall_close_bin() argument 204 binh = handle_put(&sys_ctx->db, handle); in ldelf_syscall_close_bin() 261 unsigned long handle, size_t offs_bytes, in ldelf_syscall_map_bin() argument 285 binh = handle_lookup(&sys_ctx->db, handle); in ldelf_syscall_map_bin() 424 unsigned long handle) in ldelf_syscall_copy_from_bin() argument 442 binh = handle_lookup(&sys_ctx->db, handle); in ldelf_syscall_copy_from_bin()
|
/optee_os-3.20.0/ta/pkcs11/src/ |
A D | handle.c | 70 void *handle_put(struct handle_db *db, uint32_t handle) in handle_put() argument 74 if (!db || !handle || handle >= db->max_ptrs) in handle_put() 77 p = db->ptrs[handle]; in handle_put() 78 db->ptrs[handle] = NULL; in handle_put() 82 void *handle_lookup(struct handle_db *db, uint32_t handle) in handle_lookup() argument 84 if (!db || !handle || handle >= db->max_ptrs) in handle_lookup() 87 return db->ptrs[handle]; in handle_lookup()
|
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);
|
A D | object.c | 392 session->handle, obj_handle); in entry_create_object() 456 session->handle, object_handle); in entry_destroy_object() 472 uint32_t handle) in find_ctx_add() argument 600 uint32_t handle = 0; in entry_find_objects_init() local 625 if (!handle) { in entry_find_objects_init() 626 handle = handle_get(object_db, obj); in entry_find_objects_init() 627 if (!handle) { in entry_find_objects_init() 633 rc = find_ctx_add(find_ctx, handle); in entry_find_objects_init() 902 session->handle, object_handle); in entry_get_attribute_value() 1063 session->handle, object_handle); in entry_set_attribute_value() [all …]
|
A D | pkcs11_token.c | 95 return handle_lookup(&client->session_handle_db, handle); in pkcs11_handle2session() 604 out->memref.size != sizeof(session->handle)) in entry_ck_open_session() 648 if (!session->handle) { in entry_ck_open_session() 666 TEE_MemMove(out->memref.buffer, &session->handle, in entry_ck_open_session() 667 sizeof(session->handle)); in entry_ck_open_session() 669 DMSG("Open PKCS11 session %"PRIu32, session->handle); in entry_ck_open_session() 691 DMSG("Close PKCS11 session %"PRIu32, session->handle); in close_ck_session() 1306 uint32_t handle = 0; in session_logout() local 1324 handle = pkcs11_object2handle(obj, session); in session_logout() 1326 if (handle && object_is_private(obj->attributes)) in session_logout() [all …]
|
A D | sub.mk | 3 srcs-y += handle.c
|
/optee_os-3.20.0/core/include/kernel/ |
A D | pm.h | 57 .handle = (_handle), \ 62 #define PM_CALLBACK_GET_HANDLE(pm_handle) ((pm_handle)->handle) 109 void *handle; member 134 static inline void register_pm_driver_cb(pm_callback callback, void *handle, in register_pm_driver_cb() argument 137 register_pm_cb(&PM_CALLBACK_HANDLE_INITIALIZER(callback, handle, in register_pm_driver_cb() 152 void *handle, const char *name) in register_pm_core_service_cb() argument 154 register_pm_cb(&PM_CALLBACK_HANDLE_INITIALIZER(callback, handle, in register_pm_core_service_cb()
|
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);
|
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-3.20.0/lib/libutee/ |
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,
|
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()
|
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-3.20.0/ldelf/ |
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()
|
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-3.20.0/ldelf/include/ |
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-3.20.0/lib/libdl/ |
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-3.20.0/lib/libdl/include/ |
A D | dlfcn.h | 19 int dlclose(void *handle); 20 void *dlsym(void *handle, const char *symbol);
|
/optee_os-3.20.0/core/lib/scmi-server/ |
A D | scmi_server.c | 33 TEE_Result scmi_server_get_channel(unsigned int channel_id, int *handle) in scmi_server_get_channel() argument 41 if (handle) in scmi_server_get_channel() 42 *handle = fwk_id; in scmi_server_get_channel()
|
/optee_os-3.20.0/core/arch/arm/include/scmi/ |
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()
|