Home
last modified time | relevance | path

Searched refs:sk_err (Results 1 – 25 of 99) sorted by relevance

1234

/linux/net/atm/
H A Dsvc.c148 if (!sk->sk_err) in svc_bind()
150 error = -sk->sk_err; in svc_bind()
185 if (sk->sk_err) { in svc_connect()
186 error = -sk->sk_err; in svc_connect()
246 if (!sk->sk_err) in svc_connect()
267 if (sk->sk_err) { in svc_connect()
268 error = -sk->sk_err; in svc_connect()
321 error = -sk->sk_err; in svc_listen()
355 error = -sk->sk_err; in svc_accept()
413 if (!sk_atm(new_vcc)->sk_err) in svc_accept()
[all …]
H A Dsignaling.c78 sk->sk_err = -msg->reply; in sigd_send()
99 sk->sk_err = -msg->reply; in sigd_send()
/linux/net/smc/
H A Dsmc_clc.c706 clc_sk->sk_err = EINTR; in smc_clc_wait_msg()
707 smc->sk.sk_err = EINTR; in smc_clc_wait_msg()
710 if (clc_sk->sk_err) { in smc_clc_wait_msg()
711 reason_code = -clc_sk->sk_err; in smc_clc_wait_msg()
712 if (clc_sk->sk_err == EAGAIN && in smc_clc_wait_msg()
714 clc_sk->sk_err = 0; /* reset for fallback usage */ in smc_clc_wait_msg()
716 smc->sk.sk_err = clc_sk->sk_err; in smc_clc_wait_msg()
720 smc->sk.sk_err = ECONNRESET; in smc_clc_wait_msg()
726 smc->sk.sk_err = -len; in smc_clc_wait_msg()
735 smc->sk.sk_err = EPROTO; in smc_clc_wait_msg()
[all …]
H A Dsmc_tx.c90 if (sk->sk_err || in smc_tx_wait()
116 READ_ONCE(sk->sk_err) || in smc_tx_wait()
196 if (sk->sk_err || (sk->sk_shutdown & SEND_SHUTDOWN)) { in smc_tx_sendmsg()
215 (smc->sk.sk_err == ECONNABORTED) || in smc_tx_sendmsg()
565 if (smc->sk.sk_err == ECONNABORTED) in smcr_tx_sndbuf_nonempty()
667 if (smc->sk.sk_err) in smc_tx_pending()
H A Daf_smc.c489 nsk->sk_err = osk->sk_err; in smc_copy_sock_settings()
1541 smc->sk.sk_err = ETIMEDOUT; in __smc_connect()
1587 if (smc->clcsock->sk->sk_err) { in smc_connect_work()
1588 smc->sk.sk_err = smc->clcsock->sk->sk_err; in smc_connect_work()
1599 if (rc != 0 || smc->sk.sk_err) { in smc_connect_work()
1602 smc->sk.sk_err = EPIPE; in smc_connect_work()
1604 smc->sk.sk_err = ECONNREFUSED; in smc_connect_work()
1606 smc->sk.sk_err = -sock_intr_errno(timeo); in smc_connect_work()
1613 smc->sk.sk_err = -rc; in smc_connect_work()
1617 if (smc->sk.sk_err) { in smc_connect_work()
[all …]
H A Dsmc_close.c70 READ_ONCE(sk->sk_err) == ECONNABORTED || in smc_close_stream_wait()
71 READ_ONCE(sk->sk_err) == ECONNRESET || in smc_close_stream_wait()
134 sk->sk_err = ECONNABORTED; in smc_close_active_abort()
H A Dsmc_rx.c270 READ_ONCE(sk->sk_err) || in smc_rx_wait()
400 if (sk->sk_err || in smc_rx_recvmsg()
406 if (sk->sk_err) { in smc_rx_recvmsg()
/linux/net/core/
H A Dstream.c76 !READ_ONCE(sk->sk_err) && in sk_stream_wait_connect()
133 if (sk->sk_err || (sk->sk_shutdown & SEND_SHUTDOWN)) in sk_stream_wait_memory()
145 ret = sk_wait_event(sk, &current_timeo, READ_ONCE(sk->sk_err) || in sk_stream_wait_memory()
/linux/net/vmw_vsock/
H A Daf_vsock.c1036 if (sk->sk_err || !skb_queue_empty_lockless(&sk->sk_error_queue)) in vsock_poll()
1392 sk->sk_err = ETIMEDOUT; in vsock_connect_timeout()
1499 while (sk->sk_state != TCP_ESTABLISHED && sk->sk_err == 0) { in vsock_connect()
1543 if (sk->sk_err) { in vsock_connect()
1544 err = -sk->sk_err; in vsock_connect()
1590 listener->sk_err == 0) { in vsock_accept()
1608 if (listener->sk_err) in vsock_accept()
1609 err = -listener->sk_err; in vsock_accept()
1941 sk->sk_err == 0 && in vsock_connectible_sendmsg()
1977 if (sk->sk_err) { in vsock_connectible_sendmsg()
[all …]
/linux/net/can/
H A Disotp.c202 sk->sk_err = ETIMEDOUT; in isotp_rx_timer_handler()
376 sk->sk_err = EBADMSG; in isotp_rcv_fc()
431 sk->sk_err = EMSGSIZE; in isotp_rcv_fc()
459 sk->sk_err = EBADMSG; in isotp_rcv_sf()
584 sk->sk_err = EILSEQ; in isotp_rcv_cf()
608 sk->sk_err = EBADMSG; in isotp_rcv_cf()
910 sk->sk_err = ECOMM; in isotp_tx_timer_handler()
1347 sk->sk_err = ENETDOWN; in isotp_bind()
1569 sk->sk_err = ENODEV; in isotp_notify()
1575 sk->sk_err = ENETDOWN; in isotp_notify()
H A Draw.c326 sk->sk_err = ENODEV; in raw_notify()
332 sk->sk_err = ENETDOWN; in raw_notify()
525 sk->sk_err = ENETDOWN; in raw_bind()
/linux/net/caif/
H A Dcaif_socket.c226 cf_sk->sk.sk_err = ECONNREFUSED; in caif_ctrl_cb()
240 cf_sk->sk.sk_err = ECONNRESET; in caif_ctrl_cb()
314 sk->sk_err || in caif_stream_data_wait()
480 *err = -sk->sk_err; in caif_wait_for_flow_on()
481 if (sk->sk_err) in caif_wait_for_flow_on()
941 if (sk->sk_err) in caif_poll()
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_io.c930 if (sk->sk_err || (sk->sk_shutdown & SEND_SHUTDOWN)) in csk_wait_memory()
945 ret = sk_wait_event(sk, &current_timeo, sk->sk_err || in csk_wait_memory()
1033 if (sk->sk_err || (sk->sk_shutdown & SEND_SHUTDOWN)) in chtls_sendmsg()
1391 if (sk->sk_err || sk->sk_state == TCP_CLOSE || in chtls_pt_recvmsg()
1401 if (sk->sk_err) { in chtls_pt_recvmsg()
1575 if (sk->sk_err) { in peekmsg()
1730 if (sk->sk_err || sk->sk_state == TCP_CLOSE || in chtls_recvmsg()
1737 if (sk->sk_err) { in chtls_recvmsg()
/linux/net/sctp/
H A Dsm_sideeffect.c260 sk->sk_err = -error; in sctp_generate_t3_rtx_event()
301 sk->sk_err = -error; in sctp_generate_timeout_event()
397 sk->sk_err = -error; in sctp_generate_heartbeat_event()
471 sk->sk_err = -error; in sctp_generate_reconf_event()
503 sk->sk_err = -error; in sctp_generate_probe_event()
1038 sk->sk_err = error; in sctp_cmd_set_sk_err()
/linux/net/tls/
H A Dtls_sw.c75 WRITE_ONCE(sk->sk_err, -err); in tls_err_abort()
491 if (err || sk->sk_err) { in tls_encrypt_done()
495 if (sk->sk_err) { in tls_encrypt_done()
496 ctx->async_wait.err = -sk->sk_err; in tls_encrypt_done()
860 if (err && err != -EINPROGRESS && sk->sk_err == EBADMSG) { in bpf_exec_tx_verdict()
863 err = -sk->sk_err; in bpf_exec_tx_verdict()
889 if (err && err != -EINPROGRESS && sk->sk_err == EBADMSG) { in bpf_exec_tx_verdict()
892 err = -sk->sk_err; in bpf_exec_tx_verdict()
1042 if (sk->sk_err) { in tls_sw_sendmsg_locked()
1043 ret = -sk->sk_err; in tls_sw_sendmsg_locked()
[all …]
/linux/net/ax25/
H A Dax25_std_timer.c110 ax25->sk->sk_err = 0; in ax25_std_idletimer_expiry()
H A Dax25_ds_timer.c170 ax25->sk->sk_err = 0; in ax25_ds_idletimer_expiry()
/linux/net/ipv4/
H A Dtcp_bpf.c286 if (sk->sk_err) { in tcp_bpf_recvmsg_parser()
518 if (sk->sk_err) { in tcp_bpf_sendmsg()
519 err = -sk->sk_err; in tcp_bpf_sendmsg()
/linux/net/dccp/
H A Dproto.c274 sk->sk_err = ECONNRESET; in dccp_disconnect()
276 sk->sk_err = ECONNRESET; in dccp_disconnect()
335 if (READ_ONCE(sk->sk_err)) in dccp_poll()
861 if (sk->sk_err) { in dccp_recvmsg()
H A Dinput.c149 sk->sk_err = err; in dccp_rcv_reset()
513 sk->sk_err = ECOMM; in dccp_rcv_request_sent_state_process()
H A Dtimer.c22 sk->sk_err = READ_ONCE(sk->sk_err_soft) ? : ETIMEDOUT; in dccp_write_err()
H A Doutput.c234 if (signal_pending(current) || sk->sk_err) in dccp_wait_for_ccid()
548 sk->sk_err = 0; in dccp_connect()
/linux/drivers/atm/
H A Datmtcp.c96 sk_atm(vcc)->sk_err = -msg->result; in atmtcp_recv_control()
140 return -sk_atm(vcc)->sk_err; in atmtcp_v_open()
/linux/net/rose/
H A Drose_timer.c203 sk->sk_err = 0; in rose_idletimer_expiry()
/linux/net/netrom/
H A Dnr_subr.c273 sk->sk_err = reason; in nr_disconnect()

1234