Lines Matching refs:tap_fd
110 btpan_cb.tap_fd = INVALID_FD; in btif_pan_init()
132 if (btpan_cb.tap_fd != INVALID_FD) { in pan_disable()
133 btpan_tap_close(btpan_cb.tap_fd); in pan_disable()
134 btpan_cb.tap_fd = INVALID_FD; in pan_disable()
251 void create_tap_read_thread(int tap_fd) { in create_tap_read_thread() argument
254 btsock_thread_add_fd(pan_pth, tap_fd, 0, SOCK_THREAD_FD_RD, 0); in create_tap_read_thread()
349 if (btpan_cb.tap_fd == -1) return; in btpan_set_flow_control()
353 btsock_thread_add_fd(pan_pth, btpan_cb.tap_fd, 0, SOCK_THREAD_FD_RD, 0); in btpan_set_flow_control()
355 base::Bind(btu_exec_tap_fd_read, btpan_cb.tap_fd)); in btpan_set_flow_control()
394 int btpan_tap_send(int tap_fd, const RawAddress& src, const RawAddress& dst, in btpan_tap_send() argument
397 if (tap_fd != INVALID_FD) { in btpan_tap_send()
412 OSI_NO_INTR(ret = write(tap_fd, packet, len + sizeof(tETH_HDR))); in btpan_tap_send()
452 btpan_cb.tap_fd, btpan_cb.open_count, conn->handle, p_data->open.handle, in btpan_open_conn()
457 if (btpan_cb.tap_fd < 0) { in btpan_open_conn()
458 btpan_cb.tap_fd = btpan_tap_open(); in btpan_open_conn()
459 if (btpan_cb.tap_fd >= 0) create_tap_read_thread(btpan_cb.tap_fd); in btpan_open_conn()
462 if (btpan_cb.tap_fd >= 0) { in btpan_open_conn()
480 if (btpan_cb.tap_fd != INVALID_FD) { in btpan_close_conn()
481 btpan_tap_close(btpan_cb.tap_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()
746 if (btpan_cb.tap_fd != fd) { in btpan_tap_fd_signaled()
748 __func__, btpan_cb.tap_fd, fd); in btpan_tap_fd_signaled()
753 btpan_cb.tap_fd = INVALID_FD; in btpan_tap_fd_signaled()