Lines Matching refs:cmd_fdw
87 int cmd_fdr, cmd_fdw; member
158 ts[h].cmd_fdr = ts[h].cmd_fdw = -1; in btsock_thread_init()
190 asrt(ts[h].cmd_fdr == -1 && ts[h].cmd_fdw == -1); in init_cmd_fd()
203 if (ts[h].cmd_fdw != -1) { in close_cmd_fd()
204 close(ts[h].cmd_fdw); in close_cmd_fd()
205 ts[h].cmd_fdw = -1; in close_cmd_fd()
220 if (ts[h].cmd_fdw == -1) { in btsock_thread_add_fd()
239 OSI_NO_INTR(ret = send(ts[h].cmd_fdw, &cmd, sizeof(cmd), 0)); in btsock_thread_add_fd()
257 OSI_NO_INTR(ret = send(ts[thread_handle].cmd_fdw, &cmd, sizeof(cmd), 0)); in btsock_thread_remove_fd_and_close()
268 if (ts[h].cmd_fdw == -1) { in btsock_thread_post_cmd()
290 OSI_NO_INTR(ret = send(ts[h].cmd_fdw, cmd_send, size_send, 0)); in btsock_thread_post_cmd()
299 if (ts[h].cmd_fdw == -1) { in btsock_thread_wakeup()
306 OSI_NO_INTR(ret = send(ts[h].cmd_fdw, &cmd, sizeof(cmd), 0)); in btsock_thread_wakeup()
315 if (ts[h].cmd_fdw == -1) { in btsock_thread_exit()
322 OSI_NO_INTR(ret = send(ts[h].cmd_fdw, &cmd, sizeof(cmd), 0)); in btsock_thread_exit()