Lines Matching refs:sk_state
146 switch (rx->sk.sk_state) { in rxrpc_bind()
163 rx->sk.sk_state = RXRPC_SERVER_BOUND; in rxrpc_bind()
166 rx->sk.sk_state = RXRPC_CLIENT_BOUND; in rxrpc_bind()
182 rx->sk.sk_state = RXRPC_SERVER_BOUND2; in rxrpc_bind()
220 switch (rx->sk.sk_state) { in rxrpc_listen()
237 rx->sk.sk_state = RXRPC_SERVER_LISTENING; in rxrpc_listen()
243 rx->sk.sk_state = RXRPC_SERVER_LISTEN_DISABLED; in rxrpc_listen()
471 switch (rx->sk.sk_state) { in rxrpc_connect()
473 rx->sk.sk_state = RXRPC_CLIENT_UNBOUND; in rxrpc_connect()
506 _enter(",{%d},,%zu", rx->sk.sk_state, len); in rxrpc_sendmsg()
521 switch (rx->sk.sk_state) { in rxrpc_sendmsg()
548 rx->sk.sk_state = RXRPC_CLIENT_BOUND; in rxrpc_sendmsg()
577 if (sk->sk_state != RXRPC_UNBOUND) in rxrpc_sock_set_min_security_level()
611 if (rx->sk.sk_state != RXRPC_UNBOUND) in rxrpc_setsockopt()
621 if (rx->sk.sk_state != RXRPC_UNBOUND) in rxrpc_setsockopt()
631 if (rx->sk.sk_state != RXRPC_UNBOUND) in rxrpc_setsockopt()
641 if (rx->sk.sk_state != RXRPC_UNBOUND) in rxrpc_setsockopt()
659 if (rx->sk.sk_state != RXRPC_SERVER_BOUND2) in rxrpc_setsockopt()
771 sk->sk_state = RXRPC_UNBOUND; in rxrpc_create()
808 if (sk->sk_state == RXRPC_CLOSE) in rxrpc_shutdown()
814 if (sk->sk_state < RXRPC_CLOSE) { in rxrpc_shutdown()
815 sk->sk_state = RXRPC_CLOSE; in rxrpc_shutdown()
854 _enter("%p{%d,%d}", sk, sk->sk_state, refcount_read(&sk->sk_refcnt)); in rxrpc_release_sock()
864 switch (sk->sk_state) { in rxrpc_release_sock()
874 sk->sk_state = RXRPC_CLOSE; in rxrpc_release_sock()