Searched refs:nsock (Results 1 – 3 of 3) sorted by relevance
58 struct socket *nsock; in do_bnep_sock_ioctl() local72 nsock = sockfd_lookup(ca.sock, &err); in do_bnep_sock_ioctl()73 if (!nsock) in do_bnep_sock_ioctl()76 if (nsock->sk->sk_state != BT_CONNECTED) { in do_bnep_sock_ioctl()77 sockfd_put(nsock); in do_bnep_sock_ioctl()82 err = bnep_add_connection(&ca, nsock); in do_bnep_sock_ioctl()87 sockfd_put(nsock); in do_bnep_sock_ioctl()
72 struct socket *nsock; in do_cmtp_sock_ioctl() local85 nsock = sockfd_lookup(ca.sock, &err); in do_cmtp_sock_ioctl()86 if (!nsock) in do_cmtp_sock_ioctl()89 if (nsock->sk->sk_state != BT_CONNECTED) { in do_cmtp_sock_ioctl()90 sockfd_put(nsock); in do_cmtp_sock_ioctl()94 err = cmtp_add_connection(&ca, nsock); in do_cmtp_sock_ioctl()99 sockfd_put(nsock); in do_cmtp_sock_ioctl()
1960 struct socket *sock = s->sock, *nsock; in rfcomm_accept_connection() local1970 err = kernel_accept(sock, &nsock, O_NONBLOCK); in rfcomm_accept_connection()1975 nsock->sk->sk_data_ready = rfcomm_l2data_ready; in rfcomm_accept_connection()1976 nsock->sk->sk_state_change = rfcomm_l2state_change; in rfcomm_accept_connection()1978 s = rfcomm_session_add(nsock, BT_OPEN); in rfcomm_accept_connection()1982 s->mtu = min(l2cap_pi(nsock->sk)->chan->omtu, in rfcomm_accept_connection()1983 l2cap_pi(nsock->sk)->chan->imtu) - 5; in rfcomm_accept_connection()1987 sock_release(nsock); in rfcomm_accept_connection()