Lines Matching refs:elapsed
29 u32 elapsed, start_ts; in tcp_clamp_rto_to_user_timeout() local
35 elapsed = tcp_time_stamp(tcp_sk(sk)) - start_ts; in tcp_clamp_rto_to_user_timeout()
36 remaining = icsk->icsk_user_timeout - elapsed; in tcp_clamp_rto_to_user_timeout()
47 s32 elapsed; in tcp_clamp_probe0_to_user_timeout() local
52 elapsed = tcp_jiffies32 - icsk->icsk_probes_tstamp; in tcp_clamp_probe0_to_user_timeout()
53 if (unlikely(elapsed < 0)) in tcp_clamp_probe0_to_user_timeout()
54 elapsed = 0; in tcp_clamp_probe0_to_user_timeout()
55 remaining = msecs_to_jiffies(icsk->icsk_user_timeout) - elapsed; in tcp_clamp_probe0_to_user_timeout()
678 u32 elapsed; in tcp_keepalive_timer() local
711 elapsed = keepalive_time_when(tp); in tcp_keepalive_timer()
717 elapsed = keepalive_time_elapsed(tp); in tcp_keepalive_timer()
719 if (elapsed >= keepalive_time_when(tp)) { in tcp_keepalive_timer()
724 elapsed >= msecs_to_jiffies(icsk->icsk_user_timeout) && in tcp_keepalive_timer()
734 elapsed = keepalive_intvl_when(tp); in tcp_keepalive_timer()
739 elapsed = TCP_RESOURCE_PROBE_INTERVAL; in tcp_keepalive_timer()
743 elapsed = keepalive_time_when(tp) - elapsed; in tcp_keepalive_timer()
749 inet_csk_reset_keepalive_timer (sk, elapsed); in tcp_keepalive_timer()