Home
last modified time | relevance | path

Searched refs:nsock (Results 1 – 3 of 3) sorted by relevance

/linux-4.4.14/net/bluetooth/cmtp/
Dsock.c72 struct socket *nsock; in cmtp_sock_ioctl() local
86 nsock = sockfd_lookup(ca.sock, &err); in cmtp_sock_ioctl()
87 if (!nsock) in cmtp_sock_ioctl()
90 if (nsock->sk->sk_state != BT_CONNECTED) { in cmtp_sock_ioctl()
91 sockfd_put(nsock); in cmtp_sock_ioctl()
95 err = cmtp_add_connection(&ca, nsock); in cmtp_sock_ioctl()
100 sockfd_put(nsock); in cmtp_sock_ioctl()
/linux-4.4.14/net/bluetooth/bnep/
Dsock.c58 struct socket *nsock; in bnep_sock_ioctl() local
73 nsock = sockfd_lookup(ca.sock, &err); in bnep_sock_ioctl()
74 if (!nsock) in bnep_sock_ioctl()
77 if (nsock->sk->sk_state != BT_CONNECTED) { in bnep_sock_ioctl()
78 sockfd_put(nsock); in bnep_sock_ioctl()
83 err = bnep_add_connection(&ca, nsock); in bnep_sock_ioctl()
88 sockfd_put(nsock); in bnep_sock_ioctl()
/linux-4.4.14/net/bluetooth/rfcomm/
Dcore.c1932 struct socket *sock = s->sock, *nsock; in rfcomm_accept_connection() local
1942 err = kernel_accept(sock, &nsock, O_NONBLOCK); in rfcomm_accept_connection()
1947 nsock->sk->sk_data_ready = rfcomm_l2data_ready; in rfcomm_accept_connection()
1948 nsock->sk->sk_state_change = rfcomm_l2state_change; in rfcomm_accept_connection()
1950 s = rfcomm_session_add(nsock, BT_OPEN); in rfcomm_accept_connection()
1954 s->mtu = min(l2cap_pi(nsock->sk)->chan->omtu, in rfcomm_accept_connection()
1955 l2cap_pi(nsock->sk)->chan->imtu) - 5; in rfcomm_accept_connection()
1959 sock_release(nsock); in rfcomm_accept_connection()