Home
last modified time | relevance | path

Searched refs:INVALID_FD (Results 1 – 17 of 17) sorted by relevance

/system/bt/osi/src/
Dsemaphore.c46 if (ret->fd == INVALID_FD) { in semaphore_new()
58 if (semaphore->fd != INVALID_FD) in semaphore_free()
65 assert(semaphore->fd != INVALID_FD); in semaphore_wait()
74 assert(semaphore->fd != INVALID_FD); in semaphore_try_wait()
98 assert(semaphore->fd != INVALID_FD); in semaphore_post()
106 assert(semaphore->fd != INVALID_FD); in semaphore_get_fd()
Dwakelock.c53 static int wake_lock_fd = INVALID_FD;
54 static int wake_unlock_fd = INVALID_FD;
121 if (wake_lock_fd == INVALID_FD) { in wakelock_acquire_native()
126 if (wake_unlock_fd == INVALID_FD) { in wakelock_acquire_native()
165 if (wake_unlock_fd == INVALID_FD) { in wakelock_release_native()
196 if (wake_lock_fd == INVALID_FD) { in wakelock_initialize_native()
205 if (wake_unlock_fd == INVALID_FD) { in wakelock_initialize_native()
Dreactor.c68 ret->epoll_fd = INVALID_FD; in reactor_new()
69 ret->event_fd = INVALID_FD; in reactor_new()
72 if (ret->epoll_fd == INVALID_FD) { in reactor_new()
78 if (ret->event_fd == INVALID_FD) { in reactor_new()
137 assert(fd != INVALID_FD); in reactor_register()
Dsocket.c55 if (ret->fd == INVALID_FD) { in socket_new()
76 assert(fd != INVALID_FD); in socket_new_from_fd()
118 if (fd == INVALID_FD) { in socket_accept()
153 if (fd == INVALID_FD) in socket_write_and_transfer_fd()
Dosi.c38 if (rand_fd == INVALID_FD) { in osi_rand()
Deager_reader.c72 assert(fd_to_read != INVALID_FD); in eager_reader_new()
84 if (ret->bytes_available_fd == INVALID_FD) { in eager_reader_new()
128 if (reader->bytes_available_fd != INVALID_FD) in eager_reader_free()
/system/bt/hci/src/
Dbtsnoop.c55 static int logfile_fd = INVALID_FD;
108 if (logfile_fd == INVALID_FD) in capture()
175 if (logfile_fd == INVALID_FD) { in update_logging()
183 if (logfile_fd != INVALID_FD) in update_logging()
186 logfile_fd = INVALID_FD; in update_logging()
192 if (logfile_fd != INVALID_FD) in btsnoop_write()
Dhci_hal_mct.c76 if (uart_fds[CH_CMD] == INVALID_FD) { in hal_open()
81 if (uart_fds[CH_EVT] == INVALID_FD) { in hal_open()
86 if (uart_fds[CH_ACL_OUT] == INVALID_FD) { in hal_open()
91 if (uart_fds[CH_ACL_IN] == INVALID_FD) { in hal_open()
126 uart_fds[i] = INVALID_FD; in hal_close()
Dhci_hal_h4.c81 if (uart_fd == INVALID_FD) { in hal_open()
113 uart_fd = INVALID_FD; in hal_close()
/system/bt/btif/src/
Dbtif_sock_sco.c143 int pair[2] = { INVALID_FD, INVALID_FD }; in sco_socket_establish_locked()
177 if (pair[0] != INVALID_FD) in sco_socket_establish_locked()
179 if (pair[1] != INVALID_FD) in sco_socket_establish_locked()
225 int client_fd = INVALID_FD; in connection_request_cb()
268 if (client_fd != INVALID_FD) in connection_request_cb()
Dbtif_sock_rfc.c118 rfc_slots[i].fd = INVALID_FD; in btsock_rfc_init()
119 rfc_slots[i].app_fd = INVALID_FD; in btsock_rfc_init()
145 if (rfc_slots[i].fd == INVALID_FD) in find_free_slot()
197 int fds[2] = { INVALID_FD, INVALID_FD }; in alloc_rfc_slot()
269 *sock_fd = INVALID_FD; in btsock_rfc_listen()
308 slot->app_fd = INVALID_FD; // Drop our reference to the fd. in btsock_rfc_listen()
323 *sock_fd = INVALID_FD; in btsock_rfc_connect()
368 slot->app_fd = INVALID_FD; // Drop our reference to the fd. in btsock_rfc_connect()
401 if (slot->fd != INVALID_FD) { in cleanup_rfc_slot()
404 slot->fd = INVALID_FD; in cleanup_rfc_slot()
[all …]
Dbtif_pan.c139 btpan_cb.tap_fd = INVALID_FD; in btif_pan_init()
155 if (btpan_cb.tap_fd != INVALID_FD) in pan_disable()
158 btpan_cb.tap_fd = INVALID_FD; in pan_disable()
435 return INVALID_FD; in btpan_tap_open()
443 if (tap_fd != INVALID_FD) in btpan_tap_send()
543 if (btpan_cb.tap_fd != INVALID_FD) in btpan_close_conn()
546 btpan_cb.tap_fd = INVALID_FD; in btpan_close_conn()
727 if (fd == INVALID_FD || fd != btpan_cb.tap_fd) in btu_exec_tap_fd_read()
815 assert(btpan_cb.tap_fd == INVALID_FD || btpan_cb.tap_fd == fd); in btpan_tap_fd_signaled()
824 btpan_cb.tap_fd = INVALID_FD; in btpan_tap_fd_signaled()
Dbtif_sock.c126 *sock_fd = INVALID_FD; in btsock_listen()
154 *sock_fd = INVALID_FD; in btsock_connect()
/system/bt/tools/bdtool/
Dbdtool.c203 int rfcomm_fd = INVALID_FD; in main()
210 int sock_fd = INVALID_FD; in main()
231 int rfcomm_fd = INVALID_FD; in main()
242 int sock_fd = INVALID_FD; in main()
/system/bt/osi/include/
Dosi.h26 #define INVALID_FD (-1) macro
/system/bt/service/
Dgatt_server_old.cpp524 pipefd{INVALID_FD, INVALID_FD} {} in ServerInternals()
527 if (pipefd[0] != INVALID_FD) in ~ServerInternals()
529 if (pipefd[1] != INVALID_FD) in ~ServerInternals()
/system/bt/tools/hci/
Dmain.c172 if (sock == INVALID_FD) in write_hci_command()