Home
last modified time | relevance | path

Searched refs:elapsed (Results 1 – 8 of 8) sorted by relevance

/net/ipv4/
Dtcp_timer.c29 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()
700 u32 elapsed; in tcp_keepalive_timer() local
733 elapsed = keepalive_time_when(tp); in tcp_keepalive_timer()
[all …]
Dipconfig.c275 int wait, elapsed; in ic_open_devs() local
286 elapsed = jiffies_to_msecs(jiffies - start); in ic_open_devs()
287 wait = (carrier_timeout * 1000 - elapsed + 500) / 1000; in ic_open_devs()
Dtcp.c3322 u32 elapsed = keepalive_time_elapsed(tp); in tcp_sock_set_keepidle_locked() local
3324 if (tp->keepalive_time > elapsed) in tcp_sock_set_keepidle_locked()
3325 elapsed = tp->keepalive_time - elapsed; in tcp_sock_set_keepidle_locked()
3327 elapsed = 0; in tcp_sock_set_keepidle_locked()
3328 inet_csk_reset_keepalive_timer(sk, elapsed); in tcp_sock_set_keepidle_locked()
Dtcp_input.c3605 s32 elapsed = (s32)(tcp_jiffies32 - val); in __tcp_oow_rate_limited() local
3607 if (0 <= elapsed && in __tcp_oow_rate_limited()
3608 elapsed < READ_ONCE(net->ipv4.sysctl_tcp_invalid_ratelimit)) { in __tcp_oow_rate_limited()
/net/sctp/
Dsm_sideeffect.c368 u32 elapsed, timeout; in sctp_generate_heartbeat_event() local
382 elapsed = jiffies - transport->last_time_sent; in sctp_generate_heartbeat_event()
384 if (elapsed < timeout) { in sctp_generate_heartbeat_event()
385 elapsed = timeout - elapsed; in sctp_generate_heartbeat_event()
386 if (!mod_timer(&transport->hb_timer, jiffies + elapsed)) in sctp_generate_heartbeat_event()
/net/mac80211/
Doffchannel.c636 u32 elapsed = jiffies_to_msecs(now - tmp->start_time); in ieee80211_start_roc_work() local
640 if (elapsed + roc->duration > max_roc) { in ieee80211_start_roc_work()
/net/bluetooth/
Dhci_request.c3125 int elapsed; in le_scan_restart_work() local
3128 elapsed = now - scan_start; in le_scan_restart_work()
3130 elapsed = ULONG_MAX - scan_start + now; in le_scan_restart_work()
3132 timeout = duration - elapsed; in le_scan_restart_work()
/net/core/
Dpktgen.c3277 ktime_t elapsed = ktime_sub(pkt_dev->stopped_at, in show_results() local
3282 (unsigned long long)ktime_to_us(elapsed), in show_results()
3283 (unsigned long long)ktime_to_us(ktime_sub(elapsed, idle)), in show_results()
3289 ktime_to_ns(elapsed)); in show_results()
3300 bps = div64_u64(bps * 8 * NSEC_PER_SEC, ktime_to_ns(elapsed)); in show_results()