Lines Matching refs:sk_state
152 s->sk_state == TCP_LISTEN) { in nr_find_listener()
408 if (sk->sk_state != TCP_LISTEN) { in nr_listen()
411 sk->sk_state = TCP_LISTEN; in nr_listen()
494 sk->sk_state = TCP_ESTABLISHED; in nr_make_new()
547 sk->sk_state = TCP_CLOSE; in nr_release()
647 if (sk->sk_state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) { in nr_connect()
652 if (sk->sk_state == TCP_CLOSE && sock->state == SS_CONNECTING) { in nr_connect()
658 if (sk->sk_state == TCP_ESTABLISHED) { in nr_connect()
663 sk->sk_state = TCP_CLOSE; in nr_connect()
716 sk->sk_state = TCP_SYN_SENT; in nr_connect()
725 if (sk->sk_state != TCP_ESTABLISHED && (flags & O_NONBLOCK)) { in nr_connect()
734 if (sk->sk_state == TCP_SYN_SENT) { in nr_connect()
740 if (sk->sk_state != TCP_SYN_SENT) in nr_connect()
756 if (sk->sk_state != TCP_ESTABLISHED) { in nr_connect()
788 if (sk->sk_state != TCP_LISTEN) { in nr_accept()
845 if (sk->sk_state != TCP_ESTABLISHED) { in nr_getname()
978 make->sk_state = TCP_ESTABLISHED; in nr_rx_frame()
1083 if (sk->sk_state != TCP_ESTABLISHED) { in nr_sendmsg()
1132 if (sk->sk_state != TCP_ESTABLISHED) { in nr_sendmsg()
1161 if (sk->sk_state != TCP_ESTABLISHED) { in nr_recvmsg()