Searched refs:nsock (Results 1 – 3 of 3) sorted by relevance
69 struct socket *nsock; in bnep_sock_ioctl() local83 nsock = sockfd_lookup(ca.sock, &err); in bnep_sock_ioctl()84 if (!nsock) in bnep_sock_ioctl()87 if (nsock->sk->sk_state != BT_CONNECTED) { in bnep_sock_ioctl()88 sockfd_put(nsock); in bnep_sock_ioctl()93 err = bnep_add_connection(&ca, nsock); in bnep_sock_ioctl()98 sockfd_put(nsock); in bnep_sock_ioctl()
67 struct socket *nsock; in cmtp_sock_ioctl() local81 nsock = sockfd_lookup(ca.sock, &err); in cmtp_sock_ioctl()82 if (!nsock) in cmtp_sock_ioctl()85 if (nsock->sk->sk_state != BT_CONNECTED) { in cmtp_sock_ioctl()86 sockfd_put(nsock); in cmtp_sock_ioctl()90 err = cmtp_add_connection(&ca, nsock); in cmtp_sock_ioctl()95 sockfd_put(nsock); in cmtp_sock_ioctl()
1869 struct socket *sock = s->sock, *nsock; in rfcomm_accept_connection() local1879 err = kernel_accept(sock, &nsock, O_NONBLOCK); in rfcomm_accept_connection()1884 nsock->sk->sk_data_ready = rfcomm_l2data_ready; in rfcomm_accept_connection()1885 nsock->sk->sk_state_change = rfcomm_l2state_change; in rfcomm_accept_connection()1887 s = rfcomm_session_add(nsock, BT_OPEN); in rfcomm_accept_connection()1893 s->mtu = min(l2cap_pi(nsock->sk)->omtu, l2cap_pi(nsock->sk)->imtu) - 5; in rfcomm_accept_connection()1897 sock_release(nsock); in rfcomm_accept_connection()