Home
last modified time | relevance | path

Searched refs:delta_us (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.4/lib/dim/
Ddim.c61 u32 delta_us = ktime_us_delta(end->time, start->time); in dim_calc_stats() local
68 if (!delta_us) in dim_calc_stats()
71 curr_stats->ppms = DIV_ROUND_UP(npkts * USEC_PER_MSEC, delta_us); in dim_calc_stats()
72 curr_stats->bpms = DIV_ROUND_UP(nbytes * USEC_PER_MSEC, delta_us); in dim_calc_stats()
74 delta_us); in dim_calc_stats()
75 curr_stats->cpms = DIV_ROUND_UP(ncomps * USEC_PER_MSEC, delta_us); in dim_calc_stats()
/Linux-v5.4/tools/testing/selftests/networking/timestamping/
Dtimestamping.c461 long delta_us; in main() local
466 delta_us = (long)(next.tv_sec - now.tv_sec) * 1000000 + in main()
468 if (delta_us > 0) { in main()
470 delta.tv_sec = delta_us / 1000000; in main()
471 delta.tv_usec = delta_us % 1000000; in main()
479 delta_us); in main()
/Linux-v5.4/drivers/net/can/usb/peak_usb/
Dpcan_usb_core.c132 u64 delta_us; in peak_usb_get_ts_time() local
134 delta_us = ts - time_ref->ts_dev_2; in peak_usb_get_ts_time()
136 delta_us &= (1 << time_ref->adapter->ts_used_bits) - 1; in peak_usb_get_ts_time()
138 delta_us += time_ref->ts_total; in peak_usb_get_ts_time()
140 delta_us *= time_ref->adapter->us_per_ts_scale; in peak_usb_get_ts_time()
141 delta_us >>= time_ref->adapter->us_per_ts_shift; in peak_usb_get_ts_time()
143 *time = ktime_add_us(time_ref->tv_host_0, delta_us); in peak_usb_get_ts_time()
/Linux-v5.4/samples/bpf/
Dhbm.c312 long long delta_us = (qstats.lastPacketTime - in run_bpf_prog() local
316 delta_us); in run_bpf_prog()
/Linux-v5.4/net/ipv4/
Dtcp_input.c560 u32 delta_us; in tcp_rcv_rtt_measure() local
566 delta_us = tcp_stamp_us_delta(tp->tcp_mstamp, tp->rcv_rtt_est.time); in tcp_rcv_rtt_measure()
567 if (!delta_us) in tcp_rcv_rtt_measure()
568 delta_us = 1; in tcp_rcv_rtt_measure()
569 tcp_rcv_rtt_update(tp, delta_us, 1); in tcp_rcv_rtt_measure()
588 u32 delta_us; in tcp_rcv_rtt_measure_ts() local
593 delta_us = delta * (USEC_PER_SEC / TCP_TS_HZ); in tcp_rcv_rtt_measure_ts()
594 tcp_rcv_rtt_update(tp, delta_us, 0); in tcp_rcv_rtt_measure_ts()
3005 s64 delta_us = tcp_rto_delta_us(sk); in tcp_rearm_rto() local
3009 rto = usecs_to_jiffies(max_t(int, delta_us, 1)); in tcp_rearm_rto()
Dtcp_ipv4.c438 u32 delta_us; in tcp_v4_err() local
548 delta_us = (u32)(tp->tcp_mstamp - tcp_skb_timestamp_us(skb)); in tcp_v4_err()
550 usecs_to_jiffies(delta_us); in tcp_v4_err()
/Linux-v5.4/block/
Dbfq-iosched.c5589 u32 delta_us; in bfq_completed_request() local
5616 delta_us = div_u64(now_ns - bfqd->last_completion, NSEC_PER_USEC); in bfq_completed_request()
5634 if (delta_us > BFQ_MIN_TT/NSEC_PER_USEC && in bfq_completed_request()
5635 (bfqd->last_rq_max_size<<BFQ_RATE_SHIFT)/delta_us < in bfq_completed_request()