Searched refs:db (Results 1 – 8 of 8) sorted by relevance
/optee_os-3.20.0/core/kernel/ |
A D | handle.c | 20 if (db) { in handle_db_destroy() 28 free(db->ptrs); in handle_db_destroy() 29 db->ptrs = NULL; in handle_db_destroy() 30 db->max_ptrs = 0; in handle_db_destroy() 38 if (db) { in handle_db_is_empty() 53 if (!db || !ptr) in handle_get() 65 if (db->max_ptrs) in handle_get() 72 db->ptrs = p; in handle_get() 73 memset(db->ptrs + db->max_ptrs, 0, in handle_get() 86 if (!db || handle < 0 || (size_t)handle >= db->max_ptrs) in handle_put() [all …]
|
A D | ldelf_syscalls.c | 180 h = handle_get(&sys_ctx->db, binh); in ldelf_syscall_open_bin() 204 binh = handle_put(&sys_ctx->db, handle); in ldelf_syscall_close_bin() 213 if (handle_db_is_empty(&sys_ctx->db)) { in ldelf_syscall_close_bin() 214 handle_db_destroy(&sys_ctx->db, bin_close); in ldelf_syscall_close_bin() 285 binh = handle_lookup(&sys_ctx->db, handle); in ldelf_syscall_map_bin() 442 binh = handle_lookup(&sys_ctx->db, handle); in ldelf_syscall_copy_from_bin() 545 handle_db_destroy(&sys_ctx->db, bin_close); in ldelf_sess_cleanup()
|
/optee_os-3.20.0/ta/pkcs11/src/ |
A D | handle.c | 22 TEE_MemFill(db, 0, sizeof(*db)); in handle_db_init() 27 if (db) { in handle_db_destroy() 29 db->ptrs = NULL; in handle_db_destroy() 30 db->max_ptrs = 0; in handle_db_destroy() 40 if (!db || !ptr) in handle_get() 52 if (db->max_ptrs) in handle_get() 60 db->ptrs = p; in handle_get() 61 TEE_MemFill(db->ptrs + db->max_ptrs, 0, in handle_get() 66 db->ptrs[n] = ptr; in handle_get() 74 if (!db || !handle || handle >= db->max_ptrs) in handle_put() [all …]
|
A D | handle.h | 19 void handle_db_init(struct handle_db *db); 26 void handle_db_destroy(struct handle_db *db); 32 uint32_t handle_get(struct handle_db *db, void *ptr); 38 void *handle_put(struct handle_db *db, uint32_t handle); 45 void *handle_lookup(struct handle_db *db, uint32_t handle); 48 uint32_t handle_lookup_handle(struct handle_db *db, void *ptr);
|
/optee_os-3.20.0/core/tee/ |
A D | tadb.c | 153 db->files = p; in maybe_grow_files() 155 bit_nclear(db->files, db->nbits, idx); in maybe_grow_files() 210 return db->ops->write(db->fh, idx * l, entry, l); in write_ent() 216 struct tee_tadb_dir *db = calloc(1, sizeof(*db)); in tadb_open() local 222 if (!db) in tadb_open() 227 res = db->ops->open(&po, NULL, &db->fh); in tadb_open() 233 free(db); in tadb_open() 265 db->ops->close(&db->fh); in tadb_put() 267 free(db); in tadb_put() 275 tadb_put(db); in tee_tadb_close() [all …]
|
/optee_os-3.20.0/core/include/kernel/ |
A D | handle.h | 25 void handle_db_destroy(struct handle_db *db, void (*ptr_destructor)(void *ptr)); 28 bool handle_db_is_empty(struct handle_db *db); 37 int handle_get(struct handle_db *db, void *ptr); 43 void *handle_put(struct handle_db *db, int handle); 50 void *handle_lookup(struct handle_db *db, int handle);
|
A D | ldelf_syscalls.h | 18 struct handle_db db; member
|
/optee_os-3.20.0/scripts/ |
A D | sign_encrypt.py | 35 def value_to_key(db, val): argument 36 for k, v in db.items():
|
Completed in 10 milliseconds