Lines Matching full:elapsed
31 u32 elapsed, user_timeout; in tcp_clamp_rto_to_user_timeout() local
38 elapsed = tcp_time_stamp_ts(tp) - tp->retrans_stamp; in tcp_clamp_rto_to_user_timeout()
40 elapsed /= USEC_PER_MSEC; in tcp_clamp_rto_to_user_timeout()
42 remaining = user_timeout - elapsed; in tcp_clamp_rto_to_user_timeout()
53 s32 elapsed; in tcp_clamp_probe0_to_user_timeout() local
59 elapsed = tcp_jiffies32 - icsk->icsk_probes_tstamp; in tcp_clamp_probe0_to_user_timeout()
60 if (unlikely(elapsed < 0)) in tcp_clamp_probe0_to_user_timeout()
61 elapsed = 0; in tcp_clamp_probe0_to_user_timeout()
62 remaining = msecs_to_jiffies(user_timeout) - elapsed; in tcp_clamp_probe0_to_user_timeout()
758 u32 elapsed; in tcp_keepalive_timer() local
791 elapsed = keepalive_time_when(tp); in tcp_keepalive_timer()
797 elapsed = keepalive_time_elapsed(tp); in tcp_keepalive_timer()
799 if (elapsed >= keepalive_time_when(tp)) { in tcp_keepalive_timer()
806 elapsed >= msecs_to_jiffies(user_timeout) && in tcp_keepalive_timer()
817 elapsed = keepalive_intvl_when(tp); in tcp_keepalive_timer()
822 elapsed = TCP_RESOURCE_PROBE_INTERVAL; in tcp_keepalive_timer()
826 elapsed = keepalive_time_when(tp) - elapsed; in tcp_keepalive_timer()
830 inet_csk_reset_keepalive_timer (sk, elapsed); in tcp_keepalive_timer()