Lines Matching refs:icsk
382 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_init_sock() local
390 icsk->icsk_rto = TCP_TIMEOUT_INIT; in tcp_init_sock()
420 icsk->icsk_sync_mss = tcp_sync_mss; in tcp_init_sock()
1406 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_cleanup_rbuf() local
1409 if (icsk->icsk_ack.blocked || in tcp_cleanup_rbuf()
1411 tp->rcv_nxt - tp->rcv_wup > icsk->icsk_ack.rcv_mss || in tcp_cleanup_rbuf()
1419 ((icsk->icsk_ack.pending & ICSK_ACK_PUSHED2) || in tcp_cleanup_rbuf()
1420 ((icsk->icsk_ack.pending & ICSK_ACK_PUSHED) && in tcp_cleanup_rbuf()
1421 !icsk->icsk_ack.pingpong)) && in tcp_cleanup_rbuf()
2216 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_disconnect() local
2257 icsk->icsk_probes_out = 0; in tcp_disconnect()
2262 if (icsk->icsk_ca_ops->release) in tcp_disconnect()
2263 icsk->icsk_ca_ops->release(sk); in tcp_disconnect()
2264 memset(icsk->icsk_ca_priv, 0, sizeof(icsk->icsk_ca_priv)); in tcp_disconnect()
2272 icsk->icsk_ack.rcv_mss = TCP_MIN_MSS; in tcp_disconnect()
2284 WARN_ON(inet->inet_num && !icsk->icsk_bind_hash); in tcp_disconnect()
2359 struct inet_connection_sock *icsk = inet_csk(sk); in do_tcp_setsockopt() local
2543 icsk->icsk_syn_retries = val; in do_tcp_setsockopt()
2564 icsk->icsk_accept_queue.rskq_defer_accept = in do_tcp_setsockopt()
2583 icsk->icsk_ack.pingpong = 1; in do_tcp_setsockopt()
2585 icsk->icsk_ack.pingpong = 0; in do_tcp_setsockopt()
2589 icsk->icsk_ack.pending |= ICSK_ACK_PUSHED; in do_tcp_setsockopt()
2592 icsk->icsk_ack.pingpong = 1; in do_tcp_setsockopt()
2609 icsk->icsk_user_timeout = msecs_to_jiffies(val); in do_tcp_setsockopt()
2644 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_setsockopt() local
2647 return icsk->icsk_af_ops->setsockopt(sk, level, optname, in tcp_setsockopt()
2669 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_get_info() local
2681 info->tcpi_ca_state = icsk->icsk_ca_state; in tcp_get_info()
2682 info->tcpi_retransmits = icsk->icsk_retransmits; in tcp_get_info()
2683 info->tcpi_probes = icsk->icsk_probes_out; in tcp_get_info()
2684 info->tcpi_backoff = icsk->icsk_backoff; in tcp_get_info()
2703 info->tcpi_rto = jiffies_to_usecs(icsk->icsk_rto); in tcp_get_info()
2704 info->tcpi_ato = jiffies_to_usecs(icsk->icsk_ack.ato); in tcp_get_info()
2706 info->tcpi_rcv_mss = icsk->icsk_ack.rcv_mss; in tcp_get_info()
2720 info->tcpi_last_data_recv = jiffies_to_msecs(now - icsk->icsk_ack.lrcvtime); in tcp_get_info()
2723 info->tcpi_pmtu = icsk->icsk_pmtu_cookie; in tcp_get_info()
2758 struct inet_connection_sock *icsk = inet_csk(sk); in do_tcp_getsockopt() local
2794 val = icsk->icsk_syn_retries ? : sysctl_tcp_syn_retries; in do_tcp_getsockopt()
2802 val = retrans_to_secs(icsk->icsk_accept_queue.rskq_defer_accept, in do_tcp_getsockopt()
2832 ca_ops = icsk->icsk_ca_ops; in do_tcp_getsockopt()
2844 val = !icsk->icsk_ack.pingpong; in do_tcp_getsockopt()
2853 if (copy_to_user(optval, icsk->icsk_ca_ops->name, len)) in do_tcp_getsockopt()
2885 val = jiffies_to_msecs(icsk->icsk_user_timeout); in do_tcp_getsockopt()
2889 val = icsk->icsk_accept_queue.fastopenq.max_qlen; in do_tcp_getsockopt()
2948 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_getsockopt() local
2951 return icsk->icsk_af_ops->getsockopt(sk, level, optname, in tcp_getsockopt()