Lines Matching refs:handle

123 	int handle = -1;  in sock_handle_get()  local
137 handle = handle_get(&si->db, fd_to_handle_ptr(fd)); in sock_handle_get()
140 return handle; in sock_handle_get()
143 static int sock_handle_to_fd(uint32_t instance_id, uint32_t handle) in sock_handle_to_fd() argument
151 fd = handle_ptr_to_fd(handle_lookup(&si->db, handle)); in sock_handle_to_fd()
156 static void sock_handle_put(uint32_t instance_id, uint32_t handle) in sock_handle_put() argument
163 handle_put(&si->db, handle); in sock_handle_put()
264 int handle = 0; in tee_socket_open() local
292 handle = sock_handle_get(instance_id, fd); in tee_socket_open()
293 if (handle < 0) { in tee_socket_open()
298 params[3].a = handle; in tee_socket_open()
305 int handle = 0; in tee_socket_close() local
314 handle = params[0].c; in tee_socket_close()
315 fd = sock_handle_to_fd(instance_id, handle); in tee_socket_close()
318 sock_handle_put(instance_id, handle); in tee_socket_close()
326 static void sock_close_cb(int handle, void *ptr, void *arg) in sock_close_cb() argument
333 si->id, handle, fd, strerror(errno)); in sock_close_cb()
470 int handle = 0; in tee_socket_send() local
483 handle = params[0].c; in tee_socket_send()
484 fd = sock_handle_to_fd(instance_id, handle); in tee_socket_send()
609 int handle = 0; in tee_socket_recv() local
622 handle = params[0].c; in tee_socket_recv()
623 fd = sock_handle_to_fd(instance_id, handle); in tee_socket_recv()
782 int handle = 0; in tee_socket_ioctl() local
798 handle = params[0].c; in tee_socket_ioctl()
800 fd = sock_handle_to_fd(instance_id, handle); in tee_socket_ioctl()