/kernel/linux/linux-5.10/net/smc/ |
D | smc_close.c | 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() [all …]
|
D | af_smc.c | 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() [all …]
|
D | smc_rx.c | 41 (sk->sk_state == SMC_CLOSED)) in smc_rx_wake_up() 116 if (sk->sk_state == SMC_CLOSED || in smc_rx_pipe_buf_release() 117 sk->sk_state == SMC_PEERFINCLOSEWAIT || in smc_rx_pipe_buf_release() 118 sk->sk_state == SMC_APPFINCLOSEWAIT) in smc_rx_pipe_buf_release() 254 if (sk->sk_state == SMC_CLOSED || sk->sk_shutdown & RCV_SHUTDOWN) in smc_rx_recv_urg() 299 if (sk->sk_state == SMC_LISTEN) in smc_rx_recvmsg() 330 sk->sk_state == SMC_CLOSED || in smc_rx_recvmsg() 339 if (sk->sk_state == SMC_CLOSED) { in smc_rx_recvmsg()
|
/kernel/linux/linux-5.10/net/bluetooth/ |
D | sco.c | 94 BT_DBG("sock %p state %d", sk, sk->sk_state); in sco_sock_timeout() 109 BT_DBG("sock %p state %d timeout %ld", sk, sk->sk_state, timeout); in sco_sock_set_timer() 119 BT_DBG("sock %p state %d", sk, sk->sk_state); in sco_sock_clear_timer() 172 sk->sk_state = BT_CLOSED; in sco_chan_del() 274 sk->sk_state = BT_CONNECTED; in sco_connect() 276 sk->sk_state = BT_CONNECT; in sco_connect() 312 if (sk->sk_state != BT_CONNECTED) in sco_recv_frame() 328 if (sk->sk_state != BT_LISTEN) in __sco_get_sock_listen_by_addr() 348 if (sk->sk_state != BT_LISTEN) in sco_get_sock_listen() 385 parent->sk_state = BT_CLOSED; in sco_sock_cleanup_listen() [all …]
|
D | l2cap_sock.c | 113 if (sk->sk_state != BT_OPEN) { in l2cap_sock_bind() 172 sk->sk_state = BT_BOUND; in l2cap_sock_bind() 296 if (sk->sk_state != BT_BOUND) { in l2cap_sock_listen() 338 sk->sk_state = BT_LISTEN; in l2cap_sock_listen() 362 if (sk->sk_state != BT_LISTEN) { in l2cap_sock_accept() 410 if (peer && sk->sk_state != BT_CONNECTED && in l2cap_sock_getname() 411 sk->sk_state != BT_CONNECT && sk->sk_state != BT_CONNECT2 && in l2cap_sock_getname() 412 sk->sk_state != BT_CONFIG) in l2cap_sock_getname() 544 if (sk->sk_state != BT_CONNECTED && in l2cap_sock_getsockopt_old() 545 !(sk->sk_state == BT_CONNECT2 && in l2cap_sock_getsockopt_old() [all …]
|
D | af_bluetooth.c | 185 BT_DBG("sk %p state %d", sk, sk->sk_state); in bt_accept_unlink() 228 if (sk->sk_state == BT_CLOSED) { in bt_accept_dequeue() 234 if (sk->sk_state == BT_CONNECTED || !newsock || in bt_accept_dequeue() 449 if (sk->sk_state == BT_CONNECTED || in bt_accept_poll() 451 sk->sk_state == BT_CONNECT2)) in bt_accept_poll() 466 if (sk->sk_state == BT_LISTEN) in bt_sock_poll() 482 if (sk->sk_state == BT_CLOSED) in bt_sock_poll() 485 if (sk->sk_state == BT_CONNECT || in bt_sock_poll() 486 sk->sk_state == BT_CONNECT2 || in bt_sock_poll() 487 sk->sk_state == BT_CONFIG) in bt_sock_poll() [all …]
|
/kernel/linux/linux-5.10/net/nfc/ |
D | llcp_sock.c | 27 while (sk->sk_state != state) { in sock_wait_state() 84 if (sk->sk_state != LLCP_CLOSED) { in llcp_sock_bind() 134 sk->sk_state = LLCP_BOUND; in llcp_sock_bind() 166 if (sk->sk_state != LLCP_CLOSED) { in llcp_raw_sock_bind() 189 sk->sk_state = LLCP_BOUND; in llcp_raw_sock_bind() 209 sk->sk_state != LLCP_BOUND) { in llcp_sock_listen() 218 sk->sk_state = LLCP_LISTEN; in llcp_sock_listen() 243 if (sk->sk_state == LLCP_CONNECTED || in nfc_llcp_setsockopt() 244 sk->sk_state == LLCP_BOUND || in nfc_llcp_setsockopt() 245 sk->sk_state == LLCP_LISTEN) { in nfc_llcp_setsockopt() [all …]
|
/kernel/linux/linux-5.10/net/iucv/ |
D | af_iucv.c | 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() [all …]
|
/kernel/linux/linux-5.10/net/phonet/ |
D | pep.c | 231 BUG_ON(sk->sk_state != TCP_ESTABLISHED); in pipe_grant_credits() 340 BUG_ON(sk->sk_state == TCP_CLOSE_WAIT); in pipe_do_rcv() 349 sk->sk_state = TCP_CLOSE_WAIT; in pipe_do_rcv() 430 if (sk->sk_state == TCP_ESTABLISHED) in pipe_do_rcv() 432 sk->sk_state = TCP_ESTABLISHED; in pipe_do_rcv() 437 sk->sk_state = TCP_SYN_RECV; in pipe_do_rcv() 583 if (sk->sk_state != TCP_SYN_SENT) in pipe_handler_do_rcv() 588 sk->sk_state = TCP_CLOSE_WAIT; in pipe_handler_do_rcv() 592 sk->sk_state = TCP_SYN_RECV; in pipe_handler_do_rcv() 594 sk->sk_state = TCP_ESTABLISHED; in pipe_handler_do_rcv() [all …]
|
D | socket.c | 179 if (sk->sk_state != TCP_CLOSE || pn_port(pn->sobject)) { in pn_socket_bind() 238 if (sk->sk_state != TCP_CLOSE) { in pn_socket_connect() 262 while (sk->sk_state == TCP_SYN_SENT) { in pn_socket_connect() 282 if ((1 << sk->sk_state) & (TCPF_SYN_RECV|TCPF_ESTABLISHED)) in pn_socket_connect() 284 else if (sk->sk_state == TCP_CLOSE_WAIT) in pn_socket_connect() 301 if (unlikely(sk->sk_state != TCP_LISTEN)) in pn_socket_accept() 339 if (sk->sk_state == TCP_CLOSE) in pn_socket_poll() 345 if (!mask && sk->sk_state == TCP_CLOSE_WAIT) in pn_socket_poll() 348 if (sk->sk_state == TCP_ESTABLISHED && in pn_socket_poll() 408 if (sk->sk_state != TCP_LISTEN) { in pn_socket_listen() [all …]
|
/kernel/linux/linux-5.10/net/bluetooth/rfcomm/ |
D | sock.c | 78 sk->sk_state = d->state; in rfcomm_sk_state_change() 117 if (sk->sk_state == BT_BOUND || sk->sk_state == BT_LISTEN) in __rfcomm_get_listen_sock_by_addr() 134 if (state && sk->sk_state != state) in rfcomm_get_sock_by_channel() 185 parent->sk_state = BT_CLOSED; in rfcomm_sock_cleanup_listen() 197 BT_DBG("sk %p state %d refcnt %d", sk, sk->sk_state, refcount_read(&sk->sk_refcnt)); in rfcomm_sock_kill() 209 BT_DBG("sk %p state %d socket %p", sk, sk->sk_state, sk->sk_socket); in __rfcomm_sock_close() 211 switch (sk->sk_state) { in __rfcomm_sock_close() 304 sk->sk_state = BT_OPEN; in rfcomm_sock_alloc() 352 if (sk->sk_state != BT_OPEN) { in rfcomm_sock_bind() 371 sk->sk_state = BT_BOUND; in rfcomm_sock_bind() [all …]
|
/kernel/linux/linux-5.10/net/rxrpc/ |
D | af_rxrpc.c | 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() [all …]
|
/kernel/linux/linux-5.10/net/caif/ |
D | caif_socket.c | 173 if (unlikely(cf_sk->sk.sk_state != CAIF_CONNECTED)) { in caif_sktrecv_cb() 216 cf_sk->sk.sk_state = CAIF_CONNECTED; in caif_ctrl_cb() 224 cf_sk->sk.sk_state = CAIF_DISCONNECTED; in caif_ctrl_cb() 231 cf_sk->sk.sk_state = CAIF_DISCONNECTED; in caif_ctrl_cb() 319 sk->sk_state != CAIF_CONNECTED || in caif_stream_data_wait() 365 if (sk->sk_state == CAIF_CONNECTING) in caif_stream_recvmsg() 398 if (sk->sk_state != CAIF_CONNECTED) in caif_stream_recvmsg() 488 if (cf_sk->sk.sk_state != CAIF_CONNECTED) in caif_wait_for_flow_on() 554 if (cf_sk->sk.sk_state != CAIF_CONNECTED || in caif_seqpkt_sendmsg() 769 caif_assert(sk->sk_state == CAIF_DISCONNECTED); in caif_connect() [all …]
|
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
D | tcp_nip_timer.c | 56 if (((1 << sk->sk_state) & (TCPF_CLOSE | TCPF_LISTEN)) || in tcp_nip_delack_timer_handler() 125 if ((1 << sk->sk_state) & (TCPF_SYN_SENT | TCPF_SYN_RECV)) { in tcp_nip_write_timeout() 195 if (sk->sk_state == TCP_ESTABLISHED && in tcp_nip_retransmit_timer() 270 if (((1 << sk->sk_state) & (TCPF_CLOSE | TCPF_LISTEN)) || !icsk->icsk_pending) in tcp_nip_write_timer_handler() 355 if (sk->sk_state == TCP_LISTEN) { in tcp_nip_keepalive_timer() 364 if ((sk->sk_state == TCP_FIN_WAIT2 || sk->sk_state == TCP_CLOSING) && in tcp_nip_keepalive_timer() 366 nip_dbg("finish wait, close sock, sk_state=%u", sk->sk_state); in tcp_nip_keepalive_timer() 371 ((1 << sk->sk_state) & (TCPF_CLOSE | TCPF_SYN_SENT))) in tcp_nip_keepalive_timer()
|
D | tcp_nip.c | 456 if (sk->sk_state >= TCP_MAX_STATES) in tcp_nip_close_state() 459 next = (int)new_state[sk->sk_state]; in tcp_nip_close_state() 486 if ((1 << sk->sk_state) & in tcp_nip_shutdown() 505 nip_dbg("sk_state:%d", sk->sk_state); in tcp_nip_close() 507 if (sk->sk_state == TCP_LISTEN) { in tcp_nip_close() 527 if (sk->sk_state == TCP_CLOSE) in tcp_nip_close() 541 nip_dbg("ready to send fin, sk_state=%d", sk->sk_state); in tcp_nip_close() 546 state = sk->sk_state; in tcp_nip_close() 559 if (state != TCP_CLOSE && sk->sk_state == TCP_CLOSE) in tcp_nip_close() 562 if (sk->sk_state == TCP_CLOSE) in tcp_nip_close() [all …]
|
/kernel/linux/linux-5.10/net/dccp/ |
D | proto.c | 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() [all …]
|
D | input.c | 47 switch (sk->sk_state) { in dccp_rcv_close() 105 switch (sk->sk_state) { in dccp_rcv_closereq() 531 if (sk->sk_state == DCCP_RESPOND) in dccp_rcv_respond_partopen_state_process() 546 if (sk->sk_state == DCCP_PARTOPEN) in dccp_rcv_respond_partopen_state_process() 576 const int old_state = sk->sk_state; in dccp_rcv_state_process() 602 if (sk->sk_state == DCCP_LISTEN) { in dccp_rcv_state_process() 623 } else if (sk->sk_state == DCCP_CLOSED) { in dccp_rcv_state_process() 629 if (sk->sk_state != DCCP_REQUESTING && dccp_check_seqno(sk, skb)) in dccp_rcv_state_process() 644 (sk->sk_state == DCCP_RESPOND && dh->dccph_type == DCCP_PKT_DATA)) { in dccp_rcv_state_process() 674 switch (sk->sk_state) { in dccp_rcv_state_process()
|
D | timer.c | 36 if (sk->sk_state == DCCP_REQUESTING || sk->sk_state == DCCP_PARTOPEN) { in dccp_write_timeout() 139 if (sk->sk_state == DCCP_CLOSED || !icsk->icsk_pending) in dccp_write_timer() 185 if (sk->sk_state == DCCP_CLOSED || in dccp_delack_timer()
|
/kernel/linux/linux-5.10/drivers/net/ppp/ |
D | pppoe.c | 307 sk->sk_state & (PPPOX_CONNECTED | PPPOX_BOUND)) { in pppoe_flush_dev() 378 if (sk->sk_state & PPPOX_BOUND) { in pppoe_rcv_core() 380 } else if (sk->sk_state & PPPOX_RELAY) { in pppoe_rcv_core() 386 if ((sk_pppox(relay_po)->sk_state & PPPOX_CONNECTED) == 0) in pppoe_rcv_core() 550 sk->sk_state = PPPOX_NONE; in pppoe_create() 587 sk->sk_state = PPPOX_DEAD; in pppoe_release() 632 if ((sk->sk_state & PPPOX_CONNECTED) && in pppoe_connect() 638 if ((sk->sk_state & PPPOX_DEAD) && in pppoe_connect() 662 sk->sk_state = PPPOX_NONE; in pppoe_connect() 704 sk->sk_state = PPPOX_CONNECTED; in pppoe_connect() [all …]
|
D | pppox.c | 57 if (sk->sk_state & (PPPOX_BOUND | PPPOX_CONNECTED)) { in pppox_unbind_sock() 59 sk->sk_state = PPPOX_DEAD; in pppox_unbind_sock() 79 if (!(sk->sk_state & PPPOX_CONNECTED)) in pppox_ioctl() 88 sk->sk_state |= PPPOX_BOUND; in pppox_ioctl()
|
D | pptp.c | 151 if (sk_pppox(po)->sk_state & PPPOX_DEAD) in pptp_xmit() 263 if (!(sk->sk_state & PPPOX_CONNECTED)) { in pptp_rcv_core() 382 if (sk->sk_state & PPPOX_DEAD) { in pptp_bind() 387 if (sk->sk_state & PPPOX_BOUND) { in pptp_bind() 395 sk->sk_state |= PPPOX_BOUND; in pptp_bind() 424 if (sk->sk_state & PPPOX_CONNECTED) { in pptp_connect() 430 if (sk->sk_state & PPPOX_DEAD) { in pptp_connect() 468 sk->sk_state |= PPPOX_CONNECTED; in pptp_connect() 513 sk->sk_state = PPPOX_DEAD; in pptp_release() 526 if (!(sk->sk_state & PPPOX_DEAD)) { in pptp_sock_destruct() [all …]
|
/kernel/linux/linux-5.10/net/x25/ |
D | af_x25.c | 288 s->sk_state == TCP_LISTEN) { in x25_find_listener() 399 skb->sk->sk_state = TCP_LISTEN; in __x25_destroy_socket() 495 if (sk->sk_state != TCP_LISTEN) { in x25_listen() 498 sk->sk_state = TCP_LISTEN; in x25_listen() 609 sk->sk_state = TCP_ESTABLISHED; in x25_make_new() 656 sk->sk_state = TCP_CLOSE; in x25_release() 733 if (sk->sk_state != TCP_ESTABLISHED) { in x25_wait_for_connection_establishment() 755 if (sk->sk_state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) { in x25_connect() 761 if (sk->sk_state == TCP_CLOSE && sock->state == SS_CONNECTING) { in x25_connect() 767 if (sk->sk_state == TCP_ESTABLISHED) in x25_connect() [all …]
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | tcp_timer.c | 222 if ((1 << sk->sk_state) & (TCPF_SYN_SENT | TCPF_SYN_RECV)) in retransmits_timed_out() 239 if ((1 << sk->sk_state) & (TCPF_SYN_SENT | TCPF_SYN_RECV)) { in tcp_write_timeout() 295 if (((1 << sk->sk_state) & (TCPF_CLOSE | TCPF_LISTEN)) || in tcp_delack_timer_handler() 459 WARN_ON_ONCE(sk->sk_state != TCP_SYN_RECV && in tcp_retransmit_timer() 460 sk->sk_state != TCP_FIN_WAIT1); in tcp_retransmit_timer() 478 !((1 << sk->sk_state) & (TCPF_SYN_SENT | TCPF_SYN_RECV))) { in tcp_retransmit_timer() 576 if (sk->sk_state == TCP_ESTABLISHED && in tcp_retransmit_timer() 601 if (((1 << sk->sk_state) & (TCPF_CLOSE | TCPF_LISTEN)) || in tcp_write_timer_handler() 662 if ((1 << sk->sk_state) & (TCPF_CLOSE | TCPF_LISTEN)) in tcp_set_keepalive() 688 if (sk->sk_state == TCP_LISTEN) { in tcp_keepalive_timer() [all …]
|
/kernel/linux/linux-5.10/net/netrom/ |
D | af_netrom.c | 152 s->sk_state == TCP_LISTEN) { in nr_find_listener() 408 if (sk->sk_state != TCP_LISTEN) { in nr_listen() 411 sk->sk_state = TCP_LISTEN; in nr_listen() 494 sk->sk_state = TCP_ESTABLISHED; in nr_make_new() 547 sk->sk_state = TCP_CLOSE; in nr_release() 647 if (sk->sk_state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) { in nr_connect() 652 if (sk->sk_state == TCP_CLOSE && sock->state == SS_CONNECTING) { in nr_connect() 658 if (sk->sk_state == TCP_ESTABLISHED) { in nr_connect() 663 sk->sk_state = TCP_CLOSE; in nr_connect() 716 sk->sk_state = TCP_SYN_SENT; in nr_connect() [all …]
|
/kernel/linux/linux-5.10/net/rose/ |
D | af_rose.c | 253 !rose->source_ndigis && s->sk_state == TCP_LISTEN) in rose_find_listener() 262 s->sk_state == TCP_LISTEN) in rose_find_listener() 490 if (sk->sk_state != TCP_LISTEN) { in rose_listen() 498 sk->sk_state = TCP_LISTEN; in rose_listen() 581 sk->sk_state = TCP_ESTABLISHED; in rose_make_new() 639 sk->sk_state = TCP_CLOSE; in rose_release() 748 if (sk->sk_state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) { in rose_connect() 754 if (sk->sk_state == TCP_CLOSE && sock->state == SS_CONNECTING) { in rose_connect() 760 if (sk->sk_state == TCP_ESTABLISHED) { in rose_connect() 766 sk->sk_state = TCP_CLOSE; in rose_connect() [all …]
|