Lines Matching refs:tap_fd
139 btpan_cb.tap_fd = INVALID_FD; in btif_pan_init()
155 if (btpan_cb.tap_fd != INVALID_FD) in pan_disable()
157 btpan_tap_close(btpan_cb.tap_fd); in pan_disable()
158 btpan_cb.tap_fd = INVALID_FD; in pan_disable()
291 void create_tap_read_thread(int tap_fd) in create_tap_read_thread() argument
296 btsock_thread_add_fd(pan_pth, tap_fd, 0, SOCK_THREAD_FD_RD, 0); in create_tap_read_thread()
391 if (btpan_cb.tap_fd == -1) in btpan_set_flow_control()
396 btsock_thread_add_fd(pan_pth, btpan_cb.tap_fd, 0, SOCK_THREAD_FD_RD, 0); in btpan_set_flow_control()
397 bta_dmexecutecallback(btu_exec_tap_fd_read, INT_TO_PTR(btpan_cb.tap_fd)); in btpan_set_flow_control()
438 int btpan_tap_send(int tap_fd, const BD_ADDR src, const BD_ADDR dst, UINT16 proto, const char* buf, in btpan_tap_send() argument
443 if (tap_fd != INVALID_FD) in btpan_tap_send()
460 OSI_NO_INTR(ret = write(tap_fd, packet, len + sizeof(tETH_HDR))); in btpan_tap_send()
509 btpan_cb.tap_fd, btpan_cb.open_count, conn->handle, p_data->open.handle, in btpan_open_conn()
514 if (btpan_cb.tap_fd < 0) in btpan_open_conn()
516 btpan_cb.tap_fd = btpan_tap_open(); in btpan_open_conn()
517 if(btpan_cb.tap_fd >= 0) in btpan_open_conn()
518 create_tap_read_thread(btpan_cb.tap_fd); in btpan_open_conn()
521 if (btpan_cb.tap_fd >= 0) in btpan_open_conn()
543 if (btpan_cb.tap_fd != INVALID_FD) in btpan_close_conn()
545 btpan_tap_close(btpan_cb.tap_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()
817 if (btpan_cb.tap_fd != fd) { in btpan_tap_fd_signaled()
819 __func__, btpan_cb.tap_fd, fd); in btpan_tap_fd_signaled()
824 btpan_cb.tap_fd = INVALID_FD; in btpan_tap_fd_signaled()