Home
last modified time | relevance | path

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

/optee_test-3.20.0/ta/crypt/
A Dhandle.c61 void *handle_put(struct handle_db *db, int handle) in handle_put() argument
65 if (!db || handle < 0 || (size_t)handle >= db->max_ptrs) in handle_put()
68 p = db->ptrs[handle]; in handle_put()
69 db->ptrs[handle] = NULL; in handle_put()
73 void *handle_lookup(struct handle_db *db, int handle) in handle_lookup() argument
75 if (!db || handle < 0 || (size_t)handle >= db->max_ptrs) in handle_lookup()
78 return db->ptrs[handle]; in handle_lookup()
A Dhandle.h37 void *handle_put(struct handle_db *db, int handle);
44 void *handle_lookup(struct handle_db *db, int handle);
A Darith_taf.c31 static void *lookup_handle(uint32_t type, uint32_t handle) in lookup_handle() argument
35 if ((handle & HT_MASK) == type) in lookup_handle()
36 ptr = handle_lookup(&hdb, handle & ~HT_MASK); in lookup_handle()
39 EMSG("Invalid handle 0x%" PRIx32, handle); in lookup_handle()
44 static bool get_handle(uint32_t type, void *ptr, uint32_t *handle) in get_handle() argument
63 *handle = (uint32_t)h | type; in get_handle()
67 static void *put_handle(uint32_t handle) in put_handle() argument
69 void *ptr = handle_put(&hdb, handle & ~HT_MASK); in put_handle()
72 EMSG("Invalid handle 0x%" PRIx32, handle); in put_handle()
A Dsub.mk12 srcs-y += handle.c
/optee_test-3.20.0/host/xtest/gp/patches/
A D0010-TEE_DataStorage_API.xml.patch31handle MUST have been opened with the read access right. The bytes are read starting at the positi…
39handle MUST have been opened with the read access right. The bytes are read starting at the positi…
47handle MUST have been opened with the read access right. The bytes are read starting at the positi…
55handle MUST have been opened with the read access right. The bytes are read starting at the positi…
63handle MUST have been opened with the read access right. The bytes are read starting at the positi…
71handle MUST have been opened with the read access right. The bytes are read starting at the positi…
79handle MUST have been opened with the read access right. The bytes are read starting at the positi…
87handle MUST have been opened with the read access right. The bytes are read starting at the positi…
A D0011-TEE_Crypto_API.xml.patch28 …<description><![CDATA[Panic Reasons • operation is not a valid operation handle of class TEE_OPER…
36 …<description><![CDATA[Panic Reasons • operation is not a valid operation handle of class TEE_OPER…
/optee_test-3.20.0/host/xtest/
A Dffa_spmc_1000.c189 static int share_mem(uint16_t endpoint, uint64_t *handle) in share_mem() argument
198 *handle = shm_desc.handle; in share_mem()
205 uint64_t *handle, ADBG_Case_t *c) in set_up_mem() argument
211 *handle = 0; in set_up_mem()
213 rc = share_mem(endpoint, handle); in set_up_mem()
216 if (!ADBG_EXPECT_TRUE(c, handle != NULL)) in set_up_mem()
236 uint64_t handle = 0; in xtest_ffa_spmc_test_1002() local
262 if (set_up_mem(&test_endpoint1, &args, &handle, c)) { in xtest_ffa_spmc_test_1002()
272 args.args[MEM_SHARE_HANDLE_LOW_INDEX] = MEM_SHARE_HANDLE_LOW(handle); in xtest_ffa_spmc_test_1002()
300 shm_desc.handle = handle; in xtest_ffa_spmc_test_1002()
[all …]
A Dregression_2000.c34 struct socket_handle *handle, in socket_tcp_open() argument
40 memset(handle, 0, sizeof(*handle)); in socket_tcp_open()
46 op.params[2].tmpref.buffer = handle->buf; in socket_tcp_open()
57 handle->blen = op.params[2].tmpref.size; in socket_tcp_open()
64 struct socket_handle *handle, in socket_udp_open() argument
70 memset(handle, 0, sizeof(*handle)); in socket_udp_open()
87 handle->blen = op.params[2].tmpref.size; in socket_udp_open()
93 struct socket_handle *handle, in socket_send() argument
101 op.params[0].tmpref.size = handle->blen; in socket_send()
117 struct socket_handle *handle, in socket_recv() argument
[all …]
A Dregression_4100.c33 *handle = op.params[1].value.a; in cmd_new_var()
52 *handle = op.params[1].value.a; in cmd_new_fmm_var()
59 uint32_t *handle) in cmd_new_fmm_ctx() argument
73 *handle = op.params[1].value.a; in cmd_new_fmm_ctx()
79 uint32_t handle) in cmd_free_handle() argument
88 op.params[0].value.a = handle; in cmd_free_handle()
121 uint32_t handle, int32_t v) in cmd_from_s32() argument
127 op.params[0].value.a = handle; in cmd_from_s32()
145 op.params[0].value.a = handle; in cmd_get_bit()
158 uint32_t handle, uint32_t *v) in cmd_get_bit_count() argument
[all …]
A Dsdp_basic.c79 fd_data.handle = alloc_data.handle; in allocate_ion_buffer_old_api()
85 hdl_data.handle = alloc_data.handle; in allocate_ion_buffer_old_api()
A Dregression_4000.c3610 TEE_ObjectHandle *handle) in create_key() argument
3616 max_key_size, handle))) in create_key()
3620 ta_crypt_cmd_populate_transient_object(c, s, *handle, attrs, in create_key()
3632 ta_crypt_cmd_get_object_buffer_attribute(c, s, *handle, in create_key()
/optee_test-3.20.0/ta/os_test/
A Dcxx_tests.cpp44 void *handle = NULL; in ta_entry_cxx_ctor_shlib_dl() local
46 handle = dlopen("b3091a65-9751-4784-abf7-0298a7cc35ba", in ta_entry_cxx_ctor_shlib_dl()
48 if (!handle) in ta_entry_cxx_ctor_shlib_dl()
51 ctor_test_fn = (TEE_Result (*)(void))dlsym(handle, in ta_entry_cxx_ctor_shlib_dl()
56 dlclose(handle); in ta_entry_cxx_ctor_shlib_dl()
A Dos_test.c1237 void *handle = NULL; in ta_entry_call_lib_dl() local
1248 if (!handle) in ta_entry_call_lib_dl()
1251 add_func = dlsym(handle, "os_test_shlib_dl_add"); in ta_entry_call_lib_dl()
1270 dlclose(handle); in ta_entry_call_lib_dl()
1278 void *handle = NULL; in ta_entry_call_lib_dl_panic() local
1289 if (!handle) in ta_entry_call_lib_dl_panic()
1292 panic_func = dlsym(handle, "os_test_shlib_dl_panic"); in ta_entry_call_lib_dl_panic()
1298 dlclose(handle); in ta_entry_call_lib_dl_panic()
1453 void *handle = NULL; in ta_entry_dl_phdr_dl() local
1457 if (!handle) in ta_entry_dl_phdr_dl()
[all …]
/optee_test-3.20.0/host/xtest/include/uapi/linux/
A Dion_old.h44 ion0_user_handle_t handle; member
58 ion0_user_handle_t handle; member
67 ion0_user_handle_t handle; member
A Darm_ffa_user.h51 __u64 handle; member
69 __u64 handle; member

Completed in 28 milliseconds