Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 70) sorted by relevance

123

/optee_os/core/kernel/
A Dree_fs_ta.c142 handle = calloc(1, sizeof(*handle)); in ree_fs_ta_open()
143 if (!handle) in ree_fs_ta_open()
439 uint8_t *src = (uint8_t *)handle->nw_ta + handle->offs; in ree_fs_ta_read()
495 if (handle->offs == handle->nw_ta_size) { in ree_fs_ta_read()
570 handle = calloc(1, sizeof(*handle)); in buf_ta_open()
576 res = ree_fs_ta_get_size(handle->h, &handle->ta_size); in buf_ta_open()
585 handle->tag = malloc(handle->tag_len); in buf_ta_open()
590 res = ree_fs_ta_get_tag(handle->h, handle->tag, &handle->tag_len); in buf_ta_open()
605 res = ree_fs_ta_read(handle->h, handle->buf, handle->ta_size); in buf_ta_open()
633 uint8_t *src = handle->buf + handle->offs; in buf_ta_read()
[all …]
A Dhandle.c82 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 Dwait_queue.c62 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 Dembedded_ts.c58 struct ts_store_handle *handle = NULL; in emb_ts_open() local
65 handle = calloc(1, sizeof(*handle)); in emb_ts_open()
66 if (!handle) in emb_ts_open()
70 if (!decompression_init(&handle->strm, ts)) { in emb_ts_open()
71 free(handle); in emb_ts_open()
75 handle->ts = ts; in emb_ts_open()
76 *h = handle; in emb_ts_open()
/optee_os/ta/pkcs11/src/
A Dhandle.c70 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 Dhandle.h38 void *handle_put(struct handle_db *db, uint32_t handle);
45 void *handle_lookup(struct handle_db *db, uint32_t handle);
A Dobject.c392 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 …]
/optee_os/core/include/kernel/
A Dpm.h57 .handle = (_handle), \
62 #define PM_CALLBACK_GET_HANDLE(pm_handle) ((pm_handle)->handle)
107 void *handle; member
131 static inline void register_pm_driver_cb(pm_callback callback, void *handle, in register_pm_driver_cb() argument
134 register_pm_cb(&PM_CALLBACK_HANDLE_INITIALIZER(callback, handle, in register_pm_driver_cb()
148 void *handle, const char *name) in register_pm_core_service_cb() argument
150 register_pm_cb(&PM_CALLBACK_HANDLE_INITIALIZER(callback, handle, in register_pm_core_service_cb()
A Dldelf_syscalls.h26 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 Dhandle.h43 void *handle_put(struct handle_db *db, int handle);
50 void *handle_lookup(struct handle_db *db, int handle);
/optee_os/ldelf/
A Dsys.c50 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 Dsys.h40 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/
A Dtee_socket_pta.c35 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 Dtee_socket_private.h19 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 Dtee_tcpudp_socket.c16 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/ldelf/include/
A Dldelf_syscalls.h20 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/
A Ddlfcn.c80 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/out/arm/ta/pkcs11/src/
A D.handle.o.cmd1handle.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch32/bin/a…
/optee_os/out/arm/core/kernel/
A D.handle.o.cmd1handle.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/a…
A D.handle.o.d1 out/arm/core/kernel/handle.o: core/kernel/handle.c \
10 lib/libutils/isoc/include/sys/cdefs.h core/include/kernel/handle.h
/optee_os/out/arm/export-ta_arm32/include/
A Ddlfcn.h19 int dlclose(void *handle);
20 void *dlsym(void *handle, const char *symbol);
/optee_os/lib/libdl/include/
A Ddlfcn.h19 int dlclose(void *handle);
20 void *dlsym(void *handle, const char *symbol);
/optee_os/out/arm/export-ta_arm64/include/
A Ddlfcn.h19 int dlclose(void *handle);
20 void *dlsym(void *handle, const char *symbol);
/optee_os/out/arm/export-ta_arm32/host_include/
A Ddlfcn.h19 int dlclose(void *handle);
20 void *dlsym(void *handle, const char *symbol);
/optee_os/out/arm/export-ta_arm64/host_include/
A Ddlfcn.h19 int dlclose(void *handle);
20 void *dlsym(void *handle, const char *symbol);

Completed in 26 milliseconds

123