Lines Matching refs:sk_state
231 BUG_ON(sk->sk_state != TCP_ESTABLISHED); in pipe_grant_credits()
340 BUG_ON(sk->sk_state == TCP_CLOSE_WAIT); in pipe_do_rcv()
349 sk->sk_state = TCP_CLOSE_WAIT; in pipe_do_rcv()
430 if (sk->sk_state == TCP_ESTABLISHED) in pipe_do_rcv()
432 sk->sk_state = TCP_ESTABLISHED; in pipe_do_rcv()
437 sk->sk_state = TCP_SYN_RECV; in pipe_do_rcv()
583 if (sk->sk_state != TCP_SYN_SENT) in pipe_handler_do_rcv()
588 sk->sk_state = TCP_CLOSE_WAIT; in pipe_handler_do_rcv()
592 sk->sk_state = TCP_SYN_RECV; in pipe_handler_do_rcv()
594 sk->sk_state = TCP_ESTABLISHED; in pipe_handler_do_rcv()
600 if (sk->sk_state != TCP_SYN_SENT) in pipe_handler_do_rcv()
604 sk->sk_state = TCP_CLOSE_WAIT; in pipe_handler_do_rcv()
608 sk->sk_state = TCP_ESTABLISHED; in pipe_handler_do_rcv()
640 if (sknode->sk_state == TCP_CLOSE_WAIT) in pep_find_pipe()
679 if (sk->sk_state != TCP_LISTEN || sk_acceptq_is_full(sk)) { in pep_do_rcv()
705 if ((1 << sk->sk_state) in pep_do_rcv()
743 if ((1 << sk->sk_state) & (TCPF_SYN_RECV|TCPF_ESTABLISHED)) { in pep_sock_close()
751 sk->sk_state = TCP_CLOSE; in pep_sock_close()
780 if (sk->sk_state != TCP_LISTEN) { in pep_sock_accept()
846 newsk->sk_state = TCP_SYN_RECV; in pep_sock_accept()
900 sk->sk_state = TCP_SYN_SENT; in pep_sock_connect()
914 sk->sk_state = TCP_SYN_SENT; in pep_sock_enable()
927 if (sk->sk_state == TCP_LISTEN) { in pep_ioctl()
946 if (sk->sk_state == TCP_SYN_SENT) in pep_ioctl()
948 else if (sk->sk_state == TCP_ESTABLISHED) in pep_ioctl()
1022 if ((sk->sk_state == TCP_CLOSE) && in pep_setsockopt()
1142 if ((1 << sk->sk_state) & (TCPF_LISTEN|TCPF_CLOSE)) { in pep_sendmsg()
1146 if (sk->sk_state != TCP_ESTABLISHED) { in pep_sendmsg()
1153 if (sk->sk_state == TCP_CLOSE_WAIT) { in pep_sendmsg()
1158 BUG_ON(sk->sk_state != TCP_ESTABLISHED); in pep_sendmsg()
1178 if (sk->sk_state != TCP_ESTABLISHED) in pep_sendmsg()
1235 if (sk->sk_state == TCP_ESTABLISHED) in pep_read()
1250 if (unlikely(1 << sk->sk_state & (TCPF_LISTEN | TCPF_CLOSE))) in pep_recvmsg()
1273 if (err == -ENOTCONN && sk->sk_state == TCP_CLOSE_WAIT) in pep_recvmsg()
1279 if (sk->sk_state == TCP_ESTABLISHED) in pep_recvmsg()