Lines Matching refs:sock

40 void rds_tcp_state_change(struct sock *sk)  in rds_tcp_state_change()
42 void (*state_change)(struct sock *sk); in rds_tcp_state_change()
92 struct socket *sock = NULL; in rds_tcp_conn_path_connect() local
116 SOCK_STREAM, IPPROTO_TCP, &sock); in rds_tcp_conn_path_connect()
120 SOCK_STREAM, IPPROTO_TCP, &sock); in rds_tcp_conn_path_connect()
127 rds_tcp_tune(sock); in rds_tcp_conn_path_connect()
145 ret = sock->ops->bind(sock, addr, addrlen); in rds_tcp_conn_path_connect()
172 rds_tcp_set_callbacks(sock, cp); in rds_tcp_conn_path_connect()
173 ret = sock->ops->connect(sock, addr, addrlen, O_NONBLOCK); in rds_tcp_conn_path_connect()
179 rds_tcp_keepalive(sock); in rds_tcp_conn_path_connect()
180 sock = NULL; in rds_tcp_conn_path_connect()
182 rds_tcp_restore_callbacks(sock, cp->cp_transport_data); in rds_tcp_conn_path_connect()
187 if (sock) in rds_tcp_conn_path_connect()
188 sock_release(sock); in rds_tcp_conn_path_connect()
204 struct socket *sock = tc->t_sock; in rds_tcp_conn_path_shutdown() local
207 cp->cp_conn, tc, sock); in rds_tcp_conn_path_shutdown()
209 if (sock) { in rds_tcp_conn_path_shutdown()
211 sock_no_linger(sock->sk); in rds_tcp_conn_path_shutdown()
212 sock->ops->shutdown(sock, RCV_SHUTDOWN | SEND_SHUTDOWN); in rds_tcp_conn_path_shutdown()
213 lock_sock(sock->sk); in rds_tcp_conn_path_shutdown()
214 rds_tcp_restore_callbacks(sock, tc); /* tc->tc_sock = NULL */ in rds_tcp_conn_path_shutdown()
216 release_sock(sock->sk); in rds_tcp_conn_path_shutdown()
217 sock_release(sock); in rds_tcp_conn_path_shutdown()