Lines Matching refs:cmd_fdw
94 int cmd_fdr, cmd_fdw; member
231 ts[h].cmd_fdr = ts[h].cmd_fdw = -1; in btsock_thread_init()
271 asrt(ts[h].cmd_fdr == -1 && ts[h].cmd_fdw == -1); in init_cmd_fd()
277 APPL_TRACE_DEBUG("h:%d, cmd_fdr:%d, cmd_fdw:%d", h, ts[h].cmd_fdr, ts[h].cmd_fdw); in init_cmd_fd()
288 if(ts[h].cmd_fdw != -1) in close_cmd_fd()
290 close(ts[h].cmd_fdw); in close_cmd_fd()
291 ts[h].cmd_fdw = -1; in close_cmd_fd()
309 if(ts[h].cmd_fdw == -1) in btsock_thread_add_fd()
328 return TEMP_FAILURE_RETRY(send(ts[h].cmd_fdw, &cmd, sizeof(cmd), 0)) == sizeof(cmd); in btsock_thread_add_fd()
345 return TEMP_FAILURE_RETRY(send(ts[thread_handle].cmd_fdw, &cmd, sizeof(cmd), 0)) == sizeof(cmd); in btsock_thread_remove_fd_and_close()
355 if(ts[h].cmd_fdw == -1) in btsock_thread_post_cmd()
379 return TEMP_FAILURE_RETRY(send(ts[h].cmd_fdw, cmd_send, size_send, 0)) == size_send; in btsock_thread_post_cmd()
388 if(ts[h].cmd_fdw == -1) in btsock_thread_wakeup()
394 return TEMP_FAILURE_RETRY(send(ts[h].cmd_fdw, &cmd, sizeof(cmd), 0)) == sizeof(cmd); in btsock_thread_wakeup()
403 if(ts[h].cmd_fdw == -1) in btsock_thread_exit()
409 if(TEMP_FAILURE_RETRY(send(ts[h].cmd_fdw, &cmd, sizeof(cmd), 0)) == sizeof(cmd)) in btsock_thread_exit()