Lines Matching refs:cmd_fdw
89 int cmd_fdr, cmd_fdw; member
169 ts[h].cmd_fdr = ts[h].cmd_fdw = -1; in btsock_thread_init()
209 asrt(ts[h].cmd_fdr == -1 && ts[h].cmd_fdw == -1); in init_cmd_fd()
215 APPL_TRACE_DEBUG("h:%d, cmd_fdr:%d, cmd_fdw:%d", h, ts[h].cmd_fdr, ts[h].cmd_fdw); in init_cmd_fd()
226 if(ts[h].cmd_fdw != -1) in close_cmd_fd()
228 close(ts[h].cmd_fdw); in close_cmd_fd()
229 ts[h].cmd_fdw = -1; in close_cmd_fd()
247 if(ts[h].cmd_fdw == -1) in btsock_thread_add_fd()
268 OSI_NO_INTR(ret = send(ts[h].cmd_fdw, &cmd, sizeof(cmd), 0)); in btsock_thread_add_fd()
289 OSI_NO_INTR(ret = send(ts[thread_handle].cmd_fdw, &cmd, sizeof(cmd), 0)); in btsock_thread_remove_fd_and_close()
301 if(ts[h].cmd_fdw == -1) in btsock_thread_post_cmd()
327 OSI_NO_INTR(ret = send(ts[h].cmd_fdw, cmd_send, size_send, 0)); in btsock_thread_post_cmd()
338 if(ts[h].cmd_fdw == -1) in btsock_thread_wakeup()
346 OSI_NO_INTR(ret = send(ts[h].cmd_fdw, &cmd, sizeof(cmd), 0)); in btsock_thread_wakeup()
357 if(ts[h].cmd_fdw == -1) in btsock_thread_exit()
365 OSI_NO_INTR(ret = send(ts[h].cmd_fdw, &cmd, sizeof(cmd), 0)); in btsock_thread_exit()