nsock 262 drivers/block/nbd.c static void nbd_mark_nsock_dead(struct nbd_device *nbd, struct nbd_sock *nsock, nsock 265 drivers/block/nbd.c if (!nsock->dead && notify && !nbd_disconnected(nbd->config)) { nsock 274 drivers/block/nbd.c if (!nsock->dead) { nsock 275 drivers/block/nbd.c kernel_sock_shutdown(nsock->sock, SHUT_RDWR); nsock 286 drivers/block/nbd.c nsock->dead = true; nsock 287 drivers/block/nbd.c nsock->pending = NULL; nsock 288 drivers/block/nbd.c nsock->sent = 0; nsock 357 drivers/block/nbd.c struct nbd_sock *nsock = config->socks[i]; nsock 358 drivers/block/nbd.c mutex_lock(&nsock->tx_lock); nsock 359 drivers/block/nbd.c nbd_mark_nsock_dead(nbd, nsock, 0); nsock 360 drivers/block/nbd.c mutex_unlock(&nsock->tx_lock); nsock 409 drivers/block/nbd.c struct nbd_sock *nsock = nsock 411 drivers/block/nbd.c mutex_lock(&nsock->tx_lock); nsock 418 drivers/block/nbd.c if (cmd->cookie == nsock->cookie) nsock 419 drivers/block/nbd.c nbd_mark_nsock_dead(nbd, nsock, 1); nsock 420 drivers/block/nbd.c mutex_unlock(&nsock->tx_lock); nsock 519 drivers/block/nbd.c struct nbd_sock *nsock = config->socks[index]; nsock 529 drivers/block/nbd.c int sent = nsock->sent, skip = 0; nsock 565 drivers/block/nbd.c cmd->cookie = nsock->cookie; nsock 591 drivers/block/nbd.c nsock->pending = req; nsock 592 drivers/block/nbd.c nsock->sent = sent; nsock 633 drivers/block/nbd.c nsock->pending = req; nsock 634 drivers/block/nbd.c nsock->sent = sent; nsock 656 drivers/block/nbd.c nsock->pending = NULL; nsock 657 drivers/block/nbd.c nsock->sent = 0; nsock 780 drivers/block/nbd.c struct nbd_sock *nsock = config->socks[args->index]; nsock 782 drivers/block/nbd.c mutex_lock(&nsock->tx_lock); nsock 783 drivers/block/nbd.c nbd_mark_nsock_dead(nbd, nsock, 1); nsock 784 drivers/block/nbd.c mutex_unlock(&nsock->tx_lock); nsock 820 drivers/block/nbd.c struct nbd_sock *nsock = config->socks[index]; nsock 821 drivers/block/nbd.c int fallback = nsock->fallback_index; nsock 836 drivers/block/nbd.c if (nsock->fallback_index < 0 || nsock 837 drivers/block/nbd.c nsock->fallback_index >= config->num_connections || nsock 838 drivers/block/nbd.c config->socks[nsock->fallback_index]->dead) { nsock 848 drivers/block/nbd.c nsock->fallback_index = new_index; nsock 855 drivers/block/nbd.c new_index = nsock->fallback_index; nsock 876 drivers/block/nbd.c struct nbd_sock *nsock; nsock 896 drivers/block/nbd.c nsock = config->socks[index]; nsock 897 drivers/block/nbd.c mutex_lock(&nsock->tx_lock); nsock 898 drivers/block/nbd.c if (nsock->dead) { nsock 901 drivers/block/nbd.c mutex_unlock(&nsock->tx_lock); nsock 927 drivers/block/nbd.c if (unlikely(nsock->pending && nsock->pending != req)) { nsock 940 drivers/block/nbd.c nbd_mark_nsock_dead(nbd, nsock, 1); nsock 945 drivers/block/nbd.c mutex_unlock(&nsock->tx_lock); nsock 1009 drivers/block/nbd.c struct nbd_sock *nsock; nsock 1038 drivers/block/nbd.c nsock = kzalloc(sizeof(struct nbd_sock), GFP_KERNEL); nsock 1039 drivers/block/nbd.c if (!nsock) { nsock 1044 drivers/block/nbd.c nsock->fallback_index = -1; nsock 1045 drivers/block/nbd.c nsock->dead = false; nsock 1046 drivers/block/nbd.c mutex_init(&nsock->tx_lock); nsock 1047 drivers/block/nbd.c nsock->sock = sock; nsock 1048 drivers/block/nbd.c nsock->pending = NULL; nsock 1049 drivers/block/nbd.c nsock->sent = 0; nsock 1050 drivers/block/nbd.c nsock->cookie = 0; nsock 1051 drivers/block/nbd.c socks[config->num_connections++] = nsock; nsock 1076 drivers/block/nbd.c struct nbd_sock *nsock = config->socks[i]; nsock 1078 drivers/block/nbd.c if (!nsock->dead) nsock 1081 drivers/block/nbd.c mutex_lock(&nsock->tx_lock); nsock 1082 drivers/block/nbd.c if (!nsock->dead) { nsock 1083 drivers/block/nbd.c mutex_unlock(&nsock->tx_lock); nsock 1091 drivers/block/nbd.c old = nsock->sock; nsock 1092 drivers/block/nbd.c nsock->fallback_index = -1; nsock 1093 drivers/block/nbd.c nsock->sock = sock; nsock 1094 drivers/block/nbd.c nsock->dead = false; nsock 1098 drivers/block/nbd.c nsock->cookie++; nsock 1099 drivers/block/nbd.c mutex_unlock(&nsock->tx_lock); nsock 1156 drivers/block/nbd.c struct nbd_sock *nsock = config->socks[i]; nsock 1159 drivers/block/nbd.c mutex_lock(&nsock->tx_lock); nsock 1164 drivers/block/nbd.c mutex_unlock(&nsock->tx_lock); nsock 58 net/bluetooth/bnep/sock.c struct socket *nsock; nsock 72 net/bluetooth/bnep/sock.c nsock = sockfd_lookup(ca.sock, &err); nsock 73 net/bluetooth/bnep/sock.c if (!nsock) nsock 76 net/bluetooth/bnep/sock.c if (nsock->sk->sk_state != BT_CONNECTED) { nsock 77 net/bluetooth/bnep/sock.c sockfd_put(nsock); nsock 82 net/bluetooth/bnep/sock.c err = bnep_add_connection(&ca, nsock); nsock 87 net/bluetooth/bnep/sock.c sockfd_put(nsock); nsock 72 net/bluetooth/cmtp/sock.c struct socket *nsock; nsock 85 net/bluetooth/cmtp/sock.c nsock = sockfd_lookup(ca.sock, &err); nsock 86 net/bluetooth/cmtp/sock.c if (!nsock) nsock 89 net/bluetooth/cmtp/sock.c if (nsock->sk->sk_state != BT_CONNECTED) { nsock 90 net/bluetooth/cmtp/sock.c sockfd_put(nsock); nsock 94 net/bluetooth/cmtp/sock.c err = cmtp_add_connection(&ca, nsock); nsock 99 net/bluetooth/cmtp/sock.c sockfd_put(nsock); nsock 1924 net/bluetooth/rfcomm/core.c struct socket *sock = s->sock, *nsock; nsock 1934 net/bluetooth/rfcomm/core.c err = kernel_accept(sock, &nsock, O_NONBLOCK); nsock 1939 net/bluetooth/rfcomm/core.c nsock->sk->sk_data_ready = rfcomm_l2data_ready; nsock 1940 net/bluetooth/rfcomm/core.c nsock->sk->sk_state_change = rfcomm_l2state_change; nsock 1942 net/bluetooth/rfcomm/core.c s = rfcomm_session_add(nsock, BT_OPEN); nsock 1946 net/bluetooth/rfcomm/core.c s->mtu = min(l2cap_pi(nsock->sk)->chan->omtu, nsock 1947 net/bluetooth/rfcomm/core.c l2cap_pi(nsock->sk)->chan->imtu) - 5; nsock 1951 net/bluetooth/rfcomm/core.c sock_release(nsock);