/system/bt/osi/src/ |
D | semaphore.cc | 46 if (ret->fd == INVALID_FD) { in semaphore_new() 57 if (semaphore->fd != INVALID_FD) close(semaphore->fd); in semaphore_free() 63 CHECK(semaphore->fd != INVALID_FD); in semaphore_wait() 72 CHECK(semaphore->fd != INVALID_FD); in semaphore_try_wait() 98 CHECK(semaphore->fd != INVALID_FD); in semaphore_post() 106 CHECK(semaphore->fd != INVALID_FD); in semaphore_get_fd()
|
D | wakelock.cc | 58 static int wake_lock_fd = INVALID_FD; 59 static int wake_unlock_fd = INVALID_FD; 125 if (wake_lock_fd == INVALID_FD) { in wakelock_acquire_native() 130 if (wake_unlock_fd == INVALID_FD) { in wakelock_acquire_native() 168 if (wake_unlock_fd == INVALID_FD) { in wakelock_release_native() 195 if (wake_lock_fd == INVALID_FD) { in wakelock_initialize_native() 198 CHECK(wake_lock_fd != INVALID_FD); in wakelock_initialize_native() 204 if (wake_unlock_fd == INVALID_FD) { in wakelock_initialize_native() 207 CHECK(wake_unlock_fd != INVALID_FD); in wakelock_initialize_native()
|
D | osi.cc | 39 if (rand_fd == INVALID_FD) { in osi_rand() 42 CHECK(rand_fd != INVALID_FD); in osi_rand()
|
D | reactor.cc | 72 ret->epoll_fd = INVALID_FD; in reactor_new() 73 ret->event_fd = INVALID_FD; in reactor_new() 76 if (ret->epoll_fd == INVALID_FD) { in reactor_new() 83 if (ret->event_fd == INVALID_FD) { in reactor_new() 141 CHECK(fd != INVALID_FD); in reactor_register()
|
D | socket.cc | 56 if (ret->fd == INVALID_FD) { in socket_new() 76 CHECK(fd != INVALID_FD); in socket_new_from_fd() 119 if (fd == INVALID_FD) { in socket_accept() 155 if (fd == INVALID_FD) return socket_write(socket, buf, count); in socket_write_and_transfer_fd()
|
/system/bt/gd/hal/ |
D | hci_hal_host.cc | 38 constexpr int INVALID_FD = -1; variable 177 return INVALID_FD; in ConnectToSocket() 184 return INVALID_FD; in ConnectToSocket() 195 return INVALID_FD; in ConnectToSocket() 210 return INVALID_FD; in ConnectToSocket() 217 return INVALID_FD; in ConnectToSocket() 229 return INVALID_FD; in ConnectToSocket() 239 return INVALID_FD; in ConnectToSocket() 274 ASSERT(sock_fd_ != INVALID_FD); in sendHciCommand() 283 ASSERT(sock_fd_ != INVALID_FD); in sendAclData() [all …]
|
/system/bt/btif/src/ |
D | btif_sock_sco.cc | 130 int pair[2] = {INVALID_FD, INVALID_FD}; in sco_socket_establish_locked() 172 if (pair[0] != INVALID_FD) close(pair[0]); in sco_socket_establish_locked() 173 if (pair[1] != INVALID_FD) close(pair[1]); in sco_socket_establish_locked() 218 int client_fd = INVALID_FD; in connection_request_cb() 268 if (client_fd != INVALID_FD) close(client_fd); in connection_request_cb()
|
D | btif_bqr.cc | 333 if (LmpLlMessageTraceLogFd != INVALID_FD && in ConfigureBqrCmpl() 337 LmpLlMessageTraceLogFd = INVALID_FD; in ConfigureBqrCmpl() 339 if (BtSchedulingTraceLogFd != INVALID_FD && in ConfigureBqrCmpl() 343 BtSchedulingTraceLogFd = INVALID_FD; in ConfigureBqrCmpl() 435 if (LmpLlMessageTraceLogFd == INVALID_FD || in DumpLmpLlMessage() 439 if (LmpLlMessageTraceLogFd != INVALID_FD) { in DumpLmpLlMessage() 458 if (logfile_fd == INVALID_FD) { in OpenLmpLlTraceLogFile() 470 if (BtSchedulingTraceLogFd == INVALID_FD || in DumpBtScheduling() 474 if (BtSchedulingTraceLogFd != INVALID_FD) { in DumpBtScheduling() 493 if (logfile_fd == INVALID_FD) { in OpenBtSchedulingTraceLogFile()
|
D | btif_sock_rfc.cc | 118 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) return &rfc_slots[i]; in find_free_slot() 197 int fds[2] = {INVALID_FD, INVALID_FD}; in alloc_rfc_slot() 273 *sock_fd = INVALID_FD; in btsock_rfc_listen() 314 slot->app_fd = INVALID_FD; // Drop our reference to the fd. in btsock_rfc_listen() 328 *sock_fd = INVALID_FD; in btsock_rfc_connect() 372 slot->app_fd = INVALID_FD; // Drop our reference to the fd. in btsock_rfc_connect() 402 if (slot->fd != INVALID_FD) { in cleanup_rfc_slot() 411 slot->fd = INVALID_FD; in cleanup_rfc_slot() [all …]
|
D | btif_pan.cc | 110 btpan_cb.tap_fd = INVALID_FD; in btif_pan_init() 132 if (btpan_cb.tap_fd != INVALID_FD) { in pan_disable() 134 btpan_cb.tap_fd = INVALID_FD; in pan_disable() 391 return INVALID_FD; in btpan_tap_open() 397 if (tap_fd != INVALID_FD) { in btpan_tap_send() 480 if (btpan_cb.tap_fd != INVALID_FD) { in btpan_close_conn() 482 btpan_cb.tap_fd = INVALID_FD; in btpan_close_conn() 653 if (fd == INVALID_FD || fd != btpan_cb.tap_fd) return; in btu_exec_tap_fd_read() 744 CHECK(btpan_cb.tap_fd == INVALID_FD || btpan_cb.tap_fd == fd); in btpan_tap_fd_signaled() 753 btpan_cb.tap_fd = INVALID_FD; in btpan_tap_fd_signaled()
|
D | btif_sock.cc | 137 *sock_fd = INVALID_FD; in btsock_listen() 197 *sock_fd = INVALID_FD; in btsock_connect()
|
/system/bt/hci/src/ |
D | btsnoop.cc | 95 static int logfile_fd = INVALID_FD; 240 if (logfile_fd != INVALID_FD) close(logfile_fd); in shut_down() 241 logfile_fd = INVALID_FD; in shut_down() 269 if (logfile_fd == INVALID_FD) return; in capture() 379 if (logfile_fd != INVALID_FD) { in open_next_snoop_file() 381 logfile_fd = INVALID_FD; in open_next_snoop_file() 395 if (logfile_fd == INVALID_FD) { in open_next_snoop_file() 495 if (logfile_fd != INVALID_FD) { in btsnoop_write_packet()
|
D | hci_layer.cc | 71 static int hci_firmware_log_fd = INVALID_FD; 292 if (hci_firmware_log_fd != INVALID_FD) { in hci_module_shut_down() 294 hci_firmware_log_fd = INVALID_FD; in hci_module_shut_down() 543 if (hci_firmware_log_fd != INVALID_FD) { in command_timed_out() 720 if (hci_firmware_log_fd == INVALID_FD) in filter_incoming_event() 723 if (hci_firmware_log_fd != INVALID_FD) in filter_incoming_event()
|
D | hci_layer_android.cc | 245 if (logfile_fd == INVALID_FD) { in hci_open_firmware_log_file() 254 if (fd != INVALID_FD) close(fd); in hci_close_firmware_log_file()
|
D | hci_layer_linux.cc | 395 int hci_open_firmware_log_file() { return INVALID_FD; } in hci_open_firmware_log_file()
|
/system/bt/tools/bdtool/ |
D | bdtool.c | 214 int rfcomm_fd = INVALID_FD; in main() 224 int sock_fd = INVALID_FD; in main() 248 int rfcomm_fd = INVALID_FD; in main() 261 int sock_fd = INVALID_FD; in main()
|
/system/bt/osi/include/ |
D | osi.h | 26 #define INVALID_FD (-1) macro
|
/system/bt/vendor_libs/linux/interface/ |
D | async_fd_watcher.cc | 31 static const int INVALID_FD = -1; variable 133 int max_read_fd = INVALID_FD; in ThreadRoutine()
|
/system/bt/btif/include/ |
D | btif_bqr.h | 124 static int LmpLlMessageTraceLogFd = INVALID_FD; 126 static int BtSchedulingTraceLogFd = INVALID_FD;
|
/system/bt/hci/test/ |
D | hci_layer_test.cc | 44 int hci_open_firmware_log_file() { return INVALID_FD; } in hci_open_firmware_log_file()
|
/system/bt/service/ |
D | gatt_server_old.cc | 520 pipefd{INVALID_FD, INVALID_FD} {} in ServerInternals() 523 if (pipefd[0] != INVALID_FD) close(pipefd[0]); in ~ServerInternals() 524 if (pipefd[1] != INVALID_FD) close(pipefd[1]); in ~ServerInternals()
|
/system/bt/tools/hci/ |
D | main.c | 180 if (sock == INVALID_FD) goto error; in write_hci_command()
|