Searched refs:new_sock (Results 1 - 5 of 5) sorted by relevance

/linux-4.4.14/net/rds/
H A Dtcp_listen.c75 struct socket *new_sock = NULL; rds_tcp_accept_one() local
83 &new_sock); rds_tcp_accept_one()
87 new_sock->type = sock->type; rds_tcp_accept_one()
88 new_sock->ops = sock->ops; rds_tcp_accept_one()
89 ret = sock->ops->accept(sock, new_sock, O_NONBLOCK); rds_tcp_accept_one()
93 ret = rds_tcp_keepalive(new_sock); rds_tcp_accept_one()
97 rds_tcp_tune(new_sock); rds_tcp_accept_one()
99 inet = inet_sk(new_sock->sk); rds_tcp_accept_one()
120 struct sock *nsk = new_sock->sk; rds_tcp_accept_one()
125 new_sock = NULL; rds_tcp_accept_one()
134 rds_tcp_set_callbacks(new_sock, conn); rds_tcp_accept_one()
136 new_sock = NULL; rds_tcp_accept_one()
140 if (new_sock) rds_tcp_accept_one()
141 sock_release(new_sock); rds_tcp_accept_one()
/linux-4.4.14/net/nfc/
H A Dllcp_core.c878 struct nfc_llcp_sock *sock, *new_sock; nfc_llcp_recv_connect() local
945 new_sock = nfc_llcp_sock(new_sk); nfc_llcp_recv_connect()
946 new_sock->dev = local->dev; nfc_llcp_recv_connect()
947 new_sock->local = nfc_llcp_local_get(local); nfc_llcp_recv_connect()
948 new_sock->rw = sock->rw; nfc_llcp_recv_connect()
949 new_sock->miux = sock->miux; nfc_llcp_recv_connect()
950 new_sock->nfc_protocol = sock->nfc_protocol; nfc_llcp_recv_connect()
951 new_sock->dsap = ssap; nfc_llcp_recv_connect()
952 new_sock->target_idx = local->target_idx; nfc_llcp_recv_connect()
953 new_sock->parent = parent; nfc_llcp_recv_connect()
954 new_sock->ssap = sock->ssap; nfc_llcp_recv_connect()
958 pr_debug("reserved_ssap %d for %p\n", sock->ssap, new_sock); nfc_llcp_recv_connect()
964 new_sock->reserved_ssap = sock->ssap; nfc_llcp_recv_connect()
967 nfc_llcp_parse_connection_tlv(new_sock, &skb->data[LLCP_HEADER_SIZE], nfc_llcp_recv_connect()
970 pr_debug("new sock %p sk %p\n", new_sock, &new_sock->sk); nfc_llcp_recv_connect()
984 nfc_llcp_send_cc(new_sock); nfc_llcp_recv_connect()
/linux-4.4.14/fs/ocfs2/cluster/
H A Dtcp.c1844 struct socket *new_sock = NULL; o2net_accept_one() local
1862 sock->sk->sk_protocol, &new_sock); o2net_accept_one()
1866 new_sock->type = sock->type; o2net_accept_one()
1867 new_sock->ops = sock->ops; o2net_accept_one()
1868 ret = sock->ops->accept(sock, new_sock, O_NONBLOCK); o2net_accept_one()
1873 new_sock->sk->sk_allocation = GFP_ATOMIC; o2net_accept_one()
1875 ret = o2net_set_nodelay(new_sock); o2net_accept_one()
1881 ret = o2net_set_usertimeout(new_sock); o2net_accept_one()
1888 ret = new_sock->ops->getname(new_sock, (struct sockaddr *) &sin, o2net_accept_one()
1951 sc->sc_sock = new_sock; o2net_accept_one()
1952 new_sock = NULL; o2net_accept_one()
1966 if (new_sock) o2net_accept_one()
1967 sock_release(new_sock); o2net_accept_one()
/linux-4.4.14/drivers/target/iscsi/
H A Discsi_target_login.c1000 struct socket *new_sock, *sock = np->np_socket; iscsit_accept_np() local
1005 rc = kernel_accept(sock, &new_sock, 0); iscsit_accept_np()
1009 conn->sock = new_sock; iscsit_accept_np()
/linux-4.4.14/net/tipc/
H A Dsocket.c110 static int tipc_accept(struct socket *sock, struct socket *new_sock, int flags);
1998 static int tipc_accept(struct socket *sock, struct socket *new_sock, int flags) tipc_accept() argument
2020 res = tipc_sk_create(sock_net(sock->sk), new_sock, 0, 1); tipc_accept()
2023 security_sk_clone(sock->sk, new_sock->sk); tipc_accept()
2025 new_sk = new_sock->sk; tipc_accept()
2040 new_sock->state = SS_CONNECTED; tipc_accept()
2056 __tipc_send_stream(new_sock, &m, 0); tipc_accept()

Completed in 190 milliseconds