Lines Matching refs:sk_state
80 const int oldstate = sk->sk_state; in dccp_set_state()
120 switch (sk->sk_state) { in dccp_finish_passive_close()
190 sk->sk_state = DCCP_CLOSED; in dccp_init_sock()
263 const int old_state = sk->sk_state; in dccp_disconnect()
325 if (sk->sk_state == DCCP_LISTEN) in dccp_poll()
337 if (sk->sk_shutdown == SHUTDOWN_MASK || sk->sk_state == DCCP_CLOSED) in dccp_poll()
343 if ((1 << sk->sk_state) & ~(DCCPF_REQUESTING | DCCPF_RESPOND)) { in dccp_poll()
374 if (sk->sk_state == DCCP_LISTEN) in dccp_ioctl()
552 if (sk->sk_state != DCCP_CLOSED) in do_dccp_setsockopt()
757 if ((1 << sk->sk_state) & ~(DCCPF_OPEN | DCCPF_PARTOPEN)) in dccp_sendmsg()
773 if (sk->sk_state == DCCP_CLOSED) { in dccp_sendmsg()
813 if (sk->sk_state == DCCP_LISTEN) { in dccp_recvmsg()
864 if (sk->sk_state == DCCP_CLOSED) { in dccp_recvmsg()
925 old_state = sk->sk_state; in inet_dccp_listen()
955 switch (sk->sk_state) { in dccp_terminate_connection()
989 if (sk->sk_state == DCCP_LISTEN) { in dccp_close()
1011 if (sk->sk_state == DCCP_CLOSED) in dccp_close()
1022 } else if (sk->sk_state != DCCP_CLOSED) { in dccp_close()
1042 state = sk->sk_state; in dccp_close()
1061 if (state != DCCP_CLOSED && sk->sk_state == DCCP_CLOSED) in dccp_close()
1064 if (sk->sk_state == DCCP_CLOSED) in dccp_close()