Lines Matching refs:tap_fd
136 btpan_cb.tap_fd = INVALID_FD; in btif_pan_init()
152 if (btpan_cb.tap_fd != INVALID_FD) in pan_disable()
154 btpan_tap_close(btpan_cb.tap_fd); in pan_disable()
155 btpan_cb.tap_fd = INVALID_FD; in pan_disable()
286 void create_tap_read_thread(int tap_fd) in create_tap_read_thread() argument
291 btsock_thread_add_fd(pan_pth, tap_fd, 0, SOCK_THREAD_FD_RD, 0); in create_tap_read_thread()
386 if (btpan_cb.tap_fd == -1) in btpan_set_flow_control()
391 btsock_thread_add_fd(pan_pth, btpan_cb.tap_fd, 0, SOCK_THREAD_FD_RD, 0); in btpan_set_flow_control()
392 bta_dmexecutecallback(btu_exec_tap_fd_read, (void *)btpan_cb.tap_fd); in btpan_set_flow_control()
433 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
438 if (tap_fd != INVALID_FD) in btpan_tap_send()
454 int ret = write(tap_fd, packet, len + sizeof(tETH_HDR)); in btpan_tap_send()
664 if (fd == INVALID_FD || fd != btpan_cb.tap_fd) in btu_exec_tap_fd_read()
748 assert(btpan_cb.tap_fd == INVALID_FD || btpan_cb.tap_fd == fd); in btpan_tap_fd_signaled()
750 if (btpan_cb.tap_fd != fd) { in btpan_tap_fd_signaled()
752 __func__, btpan_cb.tap_fd, fd); in btpan_tap_fd_signaled()
757 btpan_cb.tap_fd = INVALID_FD; in btpan_tap_fd_signaled()