Lines Matching refs:sk_state
167 return (sk->sk_state == state || sk->sk_state == state2); in iucv_sock_in_state()
182 if (sk->sk_state != IUCV_CONNECTED) in iucv_below_msglim()
327 parent->sk_state = IUCV_CLOSED; in iucv_sock_cleanup_listen()
410 switch (sk->sk_state) { in iucv_sock_close()
418 sk->sk_state = IUCV_DISCONN; in iucv_sock_close()
424 sk->sk_state = IUCV_CLOSING; in iucv_sock_close()
439 sk->sk_state = IUCV_CLOSED; in iucv_sock_close()
510 sk->sk_state = IUCV_OPEN; in iucv_sock_alloc()
552 if (sk->sk_state == IUCV_CLOSED) { in iucv_accept_dequeue()
558 if (sk->sk_state == IUCV_CONNECTED || in iucv_accept_dequeue()
559 sk->sk_state == IUCV_DISCONN || in iucv_accept_dequeue()
603 if (sk->sk_state != IUCV_OPEN) { in iucv_sock_bind()
638 sk->sk_state = IUCV_BOUND; in iucv_sock_bind()
652 sk->sk_state = IUCV_BOUND; in iucv_sock_bind()
749 if (sk->sk_state != IUCV_OPEN && sk->sk_state != IUCV_BOUND) in iucv_sock_connect()
752 if (sk->sk_state == IUCV_OPEN && in iucv_sock_connect()
759 if (sk->sk_state == IUCV_OPEN) { in iucv_sock_connect()
778 if (sk->sk_state != IUCV_CONNECTED) in iucv_sock_connect()
783 if (sk->sk_state == IUCV_DISCONN || sk->sk_state == IUCV_CLOSED) in iucv_sock_connect()
803 if (sk->sk_state != IUCV_BOUND) in iucv_sock_listen()
811 sk->sk_state = IUCV_LISTEN; in iucv_sock_listen()
830 if (sk->sk_state != IUCV_LISTEN) { in iucv_sock_accept()
850 if (sk->sk_state != IUCV_LISTEN) { in iucv_sock_accept()
957 if (sk->sk_state != IUCV_CONNECTED) { in iucv_sock_sendmsg()
1040 if (sk->sk_state != IUCV_CONNECTED) { in iucv_sock_sendmsg()
1250 if ((sk->sk_state == IUCV_DISCONN) && in iucv_sock_recvmsg()
1343 sk->sk_state = IUCV_DISCONN; in iucv_sock_recvmsg()
1367 if (sk->sk_state == IUCV_CONNECTED) in iucv_accept_poll()
1382 if (sk->sk_state == IUCV_LISTEN) in iucv_sock_poll()
1399 if (sk->sk_state == IUCV_CLOSED) in iucv_sock_poll()
1402 if (sk->sk_state == IUCV_DISCONN) in iucv_sock_poll()
1426 switch (sk->sk_state) { in iucv_sock_shutdown()
1438 sk->sk_state == IUCV_CONNECTED) { in iucv_sock_shutdown()
1525 switch (sk->sk_state) { in iucv_sock_setsockopt()
1577 if (sk->sk_state == IUCV_OPEN) in iucv_sock_getsockopt()
1614 if (sk->sk_state == IUCV_LISTEN && in iucv_callback_connreq()
1634 if (sk->sk_state != IUCV_LISTEN) { in iucv_callback_connreq()
1686 nsk->sk_state = IUCV_CONNECTED; in iucv_callback_connreq()
1698 sk->sk_state = IUCV_CONNECTED; in iucv_callback_connack()
1774 if (sk->sk_state == IUCV_CLOSING) { in iucv_callback_txdone()
1776 sk->sk_state = IUCV_CLOSED; in iucv_callback_txdone()
1788 if (sk->sk_state == IUCV_CLOSED) in iucv_callback_connrej()
1793 sk->sk_state = IUCV_DISCONN; in iucv_callback_connrej()
1807 if (sk->sk_state != IUCV_CLOSED) { in iucv_callback_shutdown()
1856 if ((sk->sk_state != IUCV_LISTEN) || in afiucv_hs_callback_syn()
1890 nsk->sk_state = IUCV_CONNECTED; in afiucv_hs_callback_syn()
1909 if (sk->sk_state != IUCV_BOUND) in afiucv_hs_callback_synack()
1913 sk->sk_state = IUCV_CONNECTED; in afiucv_hs_callback_synack()
1930 if (sk->sk_state != IUCV_BOUND) in afiucv_hs_callback_synfin()
1933 sk->sk_state = IUCV_DISCONN; in afiucv_hs_callback_synfin()
1952 if (sk->sk_state == IUCV_CONNECTED) { in afiucv_hs_callback_fin()
1953 sk->sk_state = IUCV_DISCONN; in afiucv_hs_callback_fin()
1972 if (sk->sk_state != IUCV_CONNECTED) in afiucv_hs_callback_win()
1992 if (sk->sk_state != IUCV_CONNECTED) { in afiucv_hs_callback_rx()
2183 if (sk->sk_state == IUCV_CONNECTED) { in afiucv_hs_callback_txnotify()
2184 sk->sk_state = IUCV_DISCONN; in afiucv_hs_callback_txnotify()
2194 if (sk->sk_state == IUCV_CLOSING) { in afiucv_hs_callback_txnotify()
2196 sk->sk_state = IUCV_CLOSED; in afiucv_hs_callback_txnotify()
2219 (sk->sk_state == IUCV_CONNECTED)) { in afiucv_netdev_event()
2222 sk->sk_state = IUCV_DISCONN; in afiucv_netdev_event()