Searched refs:tap_fd (Results 1 – 5 of 5) sorted by relevance
/external/bluetooth/bluedroid/btif/co/ |
D | bta_pan_co.c | 87 btpan_cb.tap_fd, btpan_cb.open_count, conn->handle, handle, in bta_pan_co_open() 94 if(btpan_cb.tap_fd < 0) in bta_pan_co_open() 96 btpan_cb.tap_fd = btpan_tap_open(); in bta_pan_co_open() 97 if(btpan_cb.tap_fd >= 0) in bta_pan_co_open() 98 create_tap_read_thread(btpan_cb.tap_fd); in bta_pan_co_open() 100 if(btpan_cb.tap_fd >= 0) in bta_pan_co_open() 134 if(btpan_cb.open_count == 0 && btpan_cb.tap_fd != -1) in bta_pan_co_close() 136 btpan_tap_close(btpan_cb.tap_fd); in bta_pan_co_close() 137 btpan_cb.tap_fd = -1; in bta_pan_co_close() 203 btpan_tap_send(btpan_cb.tap_fd, src, dst, protocol, in bta_pan_co_tx_path()
|
/external/bluetooth/bluedroid/btif/include/ |
D | btif_pan_internal.h | 80 int tap_fd; member 101 void create_tap_read_thread(int tap_fd); 103 int btpan_tap_close(int tap_fd); 104 int btpan_tap_send(int tap_fd, const BD_ADDR src, const BD_ADDR dst, UINT16 protocol,
|
/external/bluetooth/bluedroid/btif/src/ |
D | btif_pan.c | 130 btpan_cb.tap_fd = -1; in btif_pan_init() 147 if(btpan_cb.tap_fd != -1) in pan_disable() 149 btpan_tap_close(btpan_cb.tap_fd); in pan_disable() 150 btpan_cb.tap_fd = -1; in pan_disable() 290 void create_tap_read_thread(int tap_fd) in create_tap_read_thread() argument 295 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, (void *)btpan_cb.tap_fd); in btpan_set_flow_control() 440 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 [all …]
|
/external/qemu/net/ |
D | net.c | 1169 int tap_fd, if_fd, ppa = -1; in tap_alloc() local 1198 TFR(tap_fd = open("/dev/tap", O_RDWR, 0)); in tap_alloc() 1199 if (tap_fd < 0) { in tap_alloc() 1209 if ((ppa = ioctl (tap_fd, I_STR, &strioc_ppa)) < 0) in tap_alloc() 1281 return tap_fd; in tap_alloc()
|
D | net-android.c | 1272 int tap_fd, if_fd, ppa = -1; in tap_alloc() local 1301 TFR(tap_fd = open("/dev/tap", O_RDWR, 0)); in tap_alloc() 1302 if (tap_fd < 0) { in tap_alloc() 1312 if ((ppa = ioctl (tap_fd, I_STR, &strioc_ppa)) < 0) in tap_alloc() 1384 return tap_fd; in tap_alloc()
|