Lines Matching refs:sk_state
149 if (sk->sk_state != SMC_CLOSED) { in __smc_release()
150 if (sk->sk_state != SMC_LISTEN && in __smc_release()
151 sk->sk_state != SMC_INIT) in __smc_release()
153 if (sk->sk_state == SMC_LISTEN) { in __smc_release()
158 sk->sk_state = SMC_CLOSED; in __smc_release()
166 if (sk->sk_state == SMC_CLOSED) { in __smc_release()
191 old_state = sk->sk_state; in smc_release()
200 if (sk->sk_state == SMC_LISTEN) in smc_release()
208 if (old_state == SMC_INIT && sk->sk_state == SMC_ACTIVE && in smc_release()
227 if (sk->sk_state != SMC_CLOSED) in smc_destruct()
248 sk->sk_state = SMC_INIT; in smc_sock_alloc()
294 if (sk->sk_state != SMC_INIT || smc->connect_nonblock) in smc_bind()
554 if (smc->sk.sk_state == SMC_INIT) in smc_connect_fallback()
555 smc->sk.sk_state = SMC_ACTIVE; in smc_connect_fallback()
566 if (smc->sk.sk_state == SMC_INIT) in smc_connect_decline_fallback()
573 if (smc->sk.sk_state == SMC_INIT) in smc_connect_decline_fallback()
838 if (smc->sk.sk_state == SMC_INIT) in smc_connect_rdma()
839 smc->sk.sk_state = SMC_ACTIVE; in smc_connect_rdma()
917 if (smc->sk.sk_state == SMC_INIT) in smc_connect_ism()
918 smc->sk.sk_state = SMC_ACTIVE; in smc_connect_ism()
1046 } else if ((1 << smc->clcsock->sk->sk_state) & in smc_connect_work()
1050 ((1 << smc->clcsock->sk->sk_state) & in smc_connect_work()
1057 smc->sk.sk_state = SMC_CLOSED; in smc_connect_work()
1100 switch (sk->sk_state) { in smc_connect()
1167 if (rc < 0 || lsk->sk_state == SMC_CLOSED) { in smc_clcsock_accept()
1171 new_sk->sk_state = SMC_CLOSED; in smc_clcsock_accept()
1226 if (new_sk->sk_state == SMC_CLOSED) { in smc_accept_dequeue()
1310 if (lsmc->sk.sk_state == SMC_LISTEN) { in smc_listen_out()
1328 if (newsmcsk->sk_state == SMC_INIT) in smc_listen_out_connected()
1329 newsmcsk->sk_state = SMC_ACTIVE; in smc_listen_out_connected()
1339 if (newsmcsk->sk_state == SMC_INIT) in smc_listen_out_err()
1341 newsmcsk->sk_state = SMC_CLOSED; in smc_listen_out_err()
1705 if (new_smc->listen_smc->sk.sk_state != SMC_LISTEN) in smc_listen_work()
1815 while (lsk->sk_state == SMC_LISTEN) { in smc_tcp_listen_work()
1849 if (lsmc->sk.sk_state == SMC_LISTEN) { in smc_clcsock_data_ready()
1866 if ((sk->sk_state != SMC_INIT && sk->sk_state != SMC_LISTEN) || in smc_listen()
1871 if (sk->sk_state == SMC_LISTEN) { in smc_listen()
1896 sk->sk_state = SMC_LISTEN; in smc_listen()
1916 if (lsmc->sk.sk_state != SMC_LISTEN) { in smc_accept()
1978 if (peer && (sock->sk->sk_state != SMC_ACTIVE) && in smc_getname()
1979 (sock->sk->sk_state != SMC_APPCLOSEWAIT1)) in smc_getname()
1995 if ((sk->sk_state != SMC_ACTIVE) && in smc_sendmsg()
1996 (sk->sk_state != SMC_APPCLOSEWAIT1) && in smc_sendmsg()
1997 (sk->sk_state != SMC_INIT)) in smc_sendmsg()
2001 if (sk->sk_state == SMC_INIT && !smc->connect_nonblock) { in smc_sendmsg()
2028 if (sk->sk_state == SMC_CLOSED && (sk->sk_shutdown & RCV_SHUTDOWN)) { in smc_recvmsg()
2033 if ((sk->sk_state == SMC_INIT) || in smc_recvmsg()
2034 (sk->sk_state == SMC_LISTEN) || in smc_recvmsg()
2035 (sk->sk_state == SMC_CLOSED)) in smc_recvmsg()
2038 if (sk->sk_state == SMC_PEERFINCLOSEWAIT) { in smc_recvmsg()
2084 if (sk->sk_state != SMC_CLOSED) in smc_poll()
2089 (sk->sk_state == SMC_CLOSED)) in smc_poll()
2091 if (sk->sk_state == SMC_LISTEN) { in smc_poll()
2099 if ((sk->sk_state != SMC_INIT && in smc_poll()
2111 if (sk->sk_state == SMC_APPCLOSEWAIT1) in smc_poll()
2138 if ((sk->sk_state != SMC_ACTIVE) && in smc_shutdown()
2139 (sk->sk_state != SMC_PEERCLOSEWAIT1) && in smc_shutdown()
2140 (sk->sk_state != SMC_PEERCLOSEWAIT2) && in smc_shutdown()
2141 (sk->sk_state != SMC_APPCLOSEWAIT1) && in smc_shutdown()
2142 (sk->sk_state != SMC_APPCLOSEWAIT2) && in smc_shutdown()
2143 (sk->sk_state != SMC_APPFINCLOSEWAIT)) in smc_shutdown()
2149 sk->sk_state = SMC_CLOSED; in smc_shutdown()
2156 old_state = sk->sk_state; in smc_shutdown()
2159 sk->sk_state == SMC_PEERCLOSEWAIT1) in smc_shutdown()
2219 if (sk->sk_state == SMC_INIT && !smc->connect_nonblock) { in smc_setsockopt()
2227 if (sk->sk_state != SMC_INIT && in smc_setsockopt()
2228 sk->sk_state != SMC_LISTEN && in smc_setsockopt()
2229 sk->sk_state != SMC_CLOSED) { in smc_setsockopt()
2236 if (sk->sk_state != SMC_INIT && in smc_setsockopt()
2237 sk->sk_state != SMC_LISTEN && in smc_setsockopt()
2238 sk->sk_state != SMC_CLOSED) { in smc_setsockopt()
2291 if (smc->sk.sk_state == SMC_LISTEN) { in smc_ioctl()
2295 if (smc->sk.sk_state == SMC_INIT || in smc_ioctl()
2296 smc->sk.sk_state == SMC_CLOSED) in smc_ioctl()
2303 if (smc->sk.sk_state == SMC_LISTEN) { in smc_ioctl()
2307 if (smc->sk.sk_state == SMC_INIT || in smc_ioctl()
2308 smc->sk.sk_state == SMC_CLOSED) in smc_ioctl()
2316 if (smc->sk.sk_state == SMC_LISTEN) { in smc_ioctl()
2320 if (smc->sk.sk_state == SMC_INIT || in smc_ioctl()
2321 smc->sk.sk_state == SMC_CLOSED) in smc_ioctl()
2327 if (smc->sk.sk_state == SMC_LISTEN) { in smc_ioctl()
2331 if (smc->sk.sk_state == SMC_INIT || in smc_ioctl()
2332 smc->sk.sk_state == SMC_CLOSED) { in smc_ioctl()
2359 if (sk->sk_state != SMC_ACTIVE) { in smc_sendpage()
2390 if (sk->sk_state == SMC_CLOSED && (sk->sk_shutdown & RCV_SHUTDOWN)) { in smc_splice_read()
2395 if (sk->sk_state == SMC_INIT || in smc_splice_read()
2396 sk->sk_state == SMC_LISTEN || in smc_splice_read()
2397 sk->sk_state == SMC_CLOSED) in smc_splice_read()
2400 if (sk->sk_state == SMC_PEERFINCLOSEWAIT) { in smc_splice_read()