Lines Matching refs:sk_state
129 if (sk->sk_state != SMC_INIT && smc->clcsock && smc->clcsock->sk) { in smc_close_active_abort()
134 switch (sk->sk_state) { in smc_close_active_abort()
138 sk->sk_state = SMC_PEERABORTWAIT; in smc_close_active_abort()
140 if (sk->sk_state != SMC_PEERABORTWAIT) in smc_close_active_abort()
142 sk->sk_state = SMC_CLOSED; in smc_close_active_abort()
148 sk->sk_state = SMC_PEERABORTWAIT; in smc_close_active_abort()
150 if (sk->sk_state != SMC_PEERABORTWAIT) in smc_close_active_abort()
152 sk->sk_state = SMC_CLOSED; in smc_close_active_abort()
159 sk->sk_state = SMC_PEERABORTWAIT; in smc_close_active_abort()
161 if (sk->sk_state != SMC_PEERABORTWAIT) in smc_close_active_abort()
163 sk->sk_state = SMC_CLOSED; in smc_close_active_abort()
204 old_state = sk->sk_state; in smc_close_active()
206 switch (sk->sk_state) { in smc_close_active()
208 sk->sk_state = SMC_CLOSED; in smc_close_active()
211 sk->sk_state = SMC_CLOSED; in smc_close_active()
228 if (sk->sk_state == SMC_ACTIVE) { in smc_close_active()
231 sk->sk_state = SMC_PEERCLOSEWAIT1; in smc_close_active()
253 sk->sk_state = SMC_CLOSED; in smc_close_active()
262 if (sk->sk_state != SMC_APPCLOSEWAIT1 && in smc_close_active()
263 sk->sk_state != SMC_APPCLOSEWAIT2) in smc_close_active()
269 sk->sk_state = SMC_CLOSED; in smc_close_active()
273 sk->sk_state = SMC_PEERFINCLOSEWAIT; in smc_close_active()
290 sk->sk_state = SMC_CLOSED; in smc_close_active()
293 sk->sk_state = SMC_CLOSED; in smc_close_active()
300 if (old_state != sk->sk_state) in smc_close_active()
311 switch (sk->sk_state) { in smc_close_passive_abort_received()
315 sk->sk_state = SMC_PROCESSABORT; in smc_close_passive_abort_received()
319 sk->sk_state = SMC_PROCESSABORT; in smc_close_passive_abort_received()
326 sk->sk_state = SMC_PROCESSABORT; in smc_close_passive_abort_received()
328 sk->sk_state = SMC_CLOSED; in smc_close_passive_abort_received()
333 sk->sk_state = SMC_CLOSED; in smc_close_passive_abort_received()
337 sk->sk_state = SMC_CLOSED; in smc_close_passive_abort_received()
361 old_state = sk->sk_state; in smc_close_passive_work()
373 switch (sk->sk_state) { in smc_close_passive_work()
375 sk->sk_state = SMC_APPCLOSEWAIT1; in smc_close_passive_work()
378 sk->sk_state = SMC_APPCLOSEWAIT1; in smc_close_passive_work()
385 sk->sk_state = SMC_PEERCLOSEWAIT2; in smc_close_passive_work()
394 sk->sk_state = SMC_CLOSED; in smc_close_passive_work()
397 sk->sk_state = SMC_APPFINCLOSEWAIT; in smc_close_passive_work()
403 sk->sk_state = SMC_CLOSED; in smc_close_passive_work()
425 if (old_state != sk->sk_state) { in smc_close_passive_work()
427 if ((sk->sk_state == SMC_CLOSED) && in smc_close_passive_work()
452 old_state = sk->sk_state; in smc_close_shutdown_write()
454 switch (sk->sk_state) { in smc_close_shutdown_write()
460 if (sk->sk_state != SMC_ACTIVE) in smc_close_shutdown_write()
464 sk->sk_state = SMC_PEERCLOSEWAIT1; in smc_close_shutdown_write()
473 if (sk->sk_state != SMC_APPCLOSEWAIT1) in smc_close_shutdown_write()
477 sk->sk_state = SMC_APPCLOSEWAIT2; in smc_close_shutdown_write()
490 if (old_state != sk->sk_state) in smc_close_shutdown_write()