Searched refs:nsock (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/block/ |
H A D | nbd.c | 70 struct nbd_sock *nsock; member 301 static void nbd_mark_nsock_dead(struct nbd_device *nbd, struct nbd_sock *nsock, in nbd_mark_nsock_dead() argument 304 if (!nsock->dead && notify && !nbd_disconnected(nbd->config)) { in nbd_mark_nsock_dead() 313 if (!nsock->dead) { in nbd_mark_nsock_dead() 314 kernel_sock_shutdown(nsock->sock, SHUT_RDWR); in nbd_mark_nsock_dead() 325 nsock->dead = true; in nbd_mark_nsock_dead() 326 nsock->pending = NULL; in nbd_mark_nsock_dead() 327 nsock->sent = 0; in nbd_mark_nsock_dead() 418 struct nbd_sock *nsock = config->socks[i]; in sock_shutdown() local 419 mutex_lock(&nsock->tx_lock); in sock_shutdown() [all …]
|
/linux/net/bluetooth/cmtp/ |
H A D | sock.c | 72 struct socket *nsock; in do_cmtp_sock_ioctl() local 85 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()
|
/linux/net/bluetooth/bnep/ |
H A D | sock.c | 59 struct socket *nsock; in do_bnep_sock_ioctl() local 73 nsock = sockfd_lookup(ca.sock, &err); in do_bnep_sock_ioctl() 74 if (!nsock) in do_bnep_sock_ioctl() 77 if (nsock->sk->sk_state != BT_CONNECTED) { in do_bnep_sock_ioctl() 78 sockfd_put(nsock); in do_bnep_sock_ioctl() 83 err = bnep_add_connection(&ca, nsock); in do_bnep_sock_ioctl() 88 sockfd_put(nsock); in do_bnep_sock_ioctl()
|
/linux/net/bluetooth/rfcomm/ |
H A D | core.c | 1961 struct socket *sock = s->sock, *nsock; in rfcomm_accept_connection() local 1971 err = kernel_accept(sock, &nsock, O_NONBLOCK); in rfcomm_accept_connection() 1976 nsock->sk->sk_data_ready = rfcomm_l2data_ready; in rfcomm_accept_connection() 1977 nsock->sk->sk_state_change = rfcomm_l2state_change; in rfcomm_accept_connection() 1979 s = rfcomm_session_add(nsock, BT_OPEN); in rfcomm_accept_connection() 1983 s->mtu = min(l2cap_pi(nsock->sk)->chan->omtu, in rfcomm_accept_connection() 1984 l2cap_pi(nsock->sk)->chan->imtu) - 5; in rfcomm_accept_connection() 1988 sock_release(nsock); in rfcomm_accept_connection()
|