Lines Matching refs:our_fd
75 int our_fd; //fd from our side member
254 shutdown(sock->our_fd, SHUT_RDWR); in btsock_l2cap_free_l()
255 close(sock->our_fd); in btsock_l2cap_free_l()
318 sock->our_fd = fds[0]; in btsock_l2cap_alloc_l()
389 return sock_send_all(sock->our_fd, (const uint8_t*)&sock->channel, sizeof(sock->channel)) in send_app_psm_or_chan_l()
486 btsock_thread_add_fd(pth, sock->our_fd, BTSOCK_L2CAP, SOCK_THREAD_FD_EXCEPTION, sock->id); in on_srv_l2cap_psm_connect_l()
487 btsock_thread_add_fd(pth, accept_rs->our_fd, BTSOCK_L2CAP, SOCK_THREAD_FD_RD, in on_srv_l2cap_psm_connect_l()
491 APPL_TRACE_DEBUG("server fd:%d, scn:%d", sock->our_fd, sock->channel); in on_srv_l2cap_psm_connect_l()
492 send_app_connect_signal(sock->our_fd, &accept_rs->addr, sock->channel, 0, in on_srv_l2cap_psm_connect_l()
529 btsock_thread_add_fd(pth, sock->our_fd, BTSOCK_L2CAP, SOCK_THREAD_FD_EXCEPTION, sock->id); in on_srv_l2cap_le_connect_l()
530 btsock_thread_add_fd(pth, accept_rs->our_fd, BTSOCK_L2CAP, SOCK_THREAD_FD_RD, in on_srv_l2cap_le_connect_l()
534 APPL_TRACE_DEBUG("server fd:%d, scn:%d", sock->our_fd, sock->channel); in on_srv_l2cap_le_connect_l()
535 send_app_connect_signal(sock->our_fd, &accept_rs->addr, sock->channel, 0, in on_srv_l2cap_le_connect_l()
550 if (send_app_connect_signal(sock->our_fd, &sock->addr, sock->channel, 0, -1, p_open->tx_mtu)) { in on_cl_l2cap_psm_connect_l()
554 btsock_thread_add_fd(pth, sock->our_fd, BTSOCK_L2CAP, SOCK_THREAD_FD_RD, sock->id); in on_cl_l2cap_psm_connect_l()
569 if (send_app_connect_signal(sock->our_fd, &sock->addr, sock->channel, 0, -1, p_open->tx_mtu)) { in on_cl_l2cap_le_connect_l()
573 btsock_thread_add_fd(pth, sock->our_fd, BTSOCK_L2CAP, SOCK_THREAD_FD_RD, sock->id); in on_cl_l2cap_le_connect_l()
615 sock->id, sock->our_fd, sock->fixed_chan ? "fixed_chan" : "PSM", in on_l2cap_close()
638 btsock_thread_add_fd(pth, sock->our_fd, BTSOCK_L2CAP, SOCK_THREAD_FD_RD, sock->id); in on_l2cap_outgoing_congest()
662 btsock_thread_add_fd(pth, sock->our_fd, BTSOCK_L2CAP, SOCK_THREAD_FD_RD, sock->id); in on_l2cap_write_done()
685 btsock_thread_add_fd(pth, sock->our_fd, BTSOCK_L2CAP, SOCK_THREAD_FD_RD, sock->id); in on_l2cap_write_fixed_done()
713 btsock_thread_add_fd(pth, sock->our_fd, BTSOCK_L2CAP, SOCK_THREAD_FD_WR, sock->id); in on_l2cap_data_ind()
730 btsock_thread_add_fd(pth, sock->our_fd, BTSOCK_L2CAP, SOCK_THREAD_FD_WR, in on_l2cap_data_ind()
972 btsock_thread_add_fd(pth, sock->our_fd, BTSOCK_L2CAP, SOCK_THREAD_FD_EXCEPTION, in btsock_l2cap_listen_or_connect()
1002 OSI_NO_INTR(sent = send(sock->our_fd, buf, len, MSG_DONTWAIT)); in flush_incoming_que_on_wr_signal_l()
1037 if (!(flags & SOCK_THREAD_FD_EXCEPTION) || (ioctl(sock->our_fd, FIONREAD, &size) in btsock_l2cap_signaled()
1098 btsock_thread_add_fd(pth, sock->our_fd, BTSOCK_L2CAP, SOCK_THREAD_FD_WR, sock->id); in btsock_l2cap_signaled()
1102 if (drop_it || ioctl(sock->our_fd, FIONREAD, &size) != 0 || size == 0) in btsock_l2cap_signaled()