Searched refs:db (Results 1 – 3 of 3) sorted by relevance
/optee_client/tee-supplicant/src/ |
A D | handle.c | 41 if (db->mu) in mutex_lock() 47 if (db->mu) in mutex_unlock() 54 db->mu = mu; in handle_db_set_mutex() 59 if (db) { in handle_db_destroy() 60 mutex_lock(db); in handle_db_destroy() 61 free(db->ptrs); in handle_db_destroy() 78 mutex_lock(db); in handle_get() 99 db->ptrs = p; in handle_get() 100 memset(db->ptrs + db->max_ptrs, 0, in handle_get() 120 mutex_lock(db); in handle_put() [all …]
|
A D | handle.h | 47 void handle_db_set_mutex(struct handle_db *db, pthread_mutex_t *mu); 54 void handle_db_destroy(struct handle_db *db); 63 int handle_get(struct handle_db *db, void *ptr); 69 void *handle_put(struct handle_db *db, int handle); 76 void *handle_lookup(struct handle_db *db, int handle); 78 void handle_foreach_put(struct handle_db *db,
|
A D | tee_socket.c | 77 struct handle_db db; member 137 handle = handle_get(&si->db, fd_to_handle_ptr(fd)); in sock_handle_get() 151 fd = handle_ptr_to_fd(handle_lookup(&si->db, handle)); in sock_handle_to_fd() 163 handle_put(&si->db, handle); in sock_handle_put() 350 handle_foreach_put(&si->db, sock_close_cb, si); in tee_socket_close_all()
|
Completed in 16 milliseconds