Home
last modified time | relevance | path

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

/Linux-v4.19/include/linux/
Dnet_dim.h373 u32 delta_us = ktime_us_delta(end->time, start->time); in net_dim_calc_stats() local
378 if (!delta_us) in net_dim_calc_stats()
381 curr_stats->ppms = DIV_ROUND_UP(npkts * USEC_PER_MSEC, delta_us); in net_dim_calc_stats()
382 curr_stats->bpms = DIV_ROUND_UP(nbytes * USEC_PER_MSEC, delta_us); in net_dim_calc_stats()
384 delta_us); in net_dim_calc_stats()
/Linux-v4.19/tools/testing/selftests/networking/timestamping/
Dtimestamping.c480 long delta_us; in main() local
485 delta_us = (long)(next.tv_sec - now.tv_sec) * 1000000 + in main()
487 if (delta_us > 0) { in main()
489 delta.tv_sec = delta_us / 1000000; in main()
490 delta.tv_usec = delta_us % 1000000; in main()
498 delta_us); in main()
/Linux-v4.19/drivers/net/can/usb/peak_usb/
Dpcan_usb_core.c140 u64 delta_us; in peak_usb_get_ts_time() local
142 delta_us = ts - time_ref->ts_dev_2; in peak_usb_get_ts_time()
144 delta_us &= (1 << time_ref->adapter->ts_used_bits) - 1; in peak_usb_get_ts_time()
146 delta_us += time_ref->ts_total; in peak_usb_get_ts_time()
148 delta_us *= time_ref->adapter->us_per_ts_scale; in peak_usb_get_ts_time()
149 delta_us >>= time_ref->adapter->us_per_ts_shift; in peak_usb_get_ts_time()
151 *time = ktime_add_us(time_ref->tv_host_0, delta_us); in peak_usb_get_ts_time()
/Linux-v4.19/net/ipv4/
Dtcp_input.c573 u32 delta_us; in tcp_rcv_rtt_measure() local
579 delta_us = tcp_stamp_us_delta(tp->tcp_mstamp, tp->rcv_rtt_est.time); in tcp_rcv_rtt_measure()
580 if (!delta_us) in tcp_rcv_rtt_measure()
581 delta_us = 1; in tcp_rcv_rtt_measure()
582 tcp_rcv_rtt_update(tp, delta_us, 1); in tcp_rcv_rtt_measure()
601 u32 delta_us; in tcp_rcv_rtt_measure_ts() local
605 delta_us = delta * (USEC_PER_SEC / TCP_TS_HZ); in tcp_rcv_rtt_measure_ts()
606 tcp_rcv_rtt_update(tp, delta_us, 0); in tcp_rcv_rtt_measure_ts()
2934 u32 delta_us = delta * (USEC_PER_SEC / TCP_TS_HZ); in tcp_ack_update_rtt() local
2936 seq_rtt_us = ca_rtt_us = delta_us; in tcp_ack_update_rtt()
[all …]
Dtcp_ipv4.c440 u32 delta_us; in tcp_v4_err() local
547 delta_us = (u32)(tp->tcp_mstamp - skb->skb_mstamp); in tcp_v4_err()
549 usecs_to_jiffies(delta_us); in tcp_v4_err()
/Linux-v4.19/block/
Dbfq-iosched.c4661 u32 delta_us; in bfq_completed_request() local
4688 delta_us = div_u64(now_ns - bfqd->last_completion, NSEC_PER_USEC); in bfq_completed_request()
4706 if (delta_us > BFQ_MIN_TT/NSEC_PER_USEC && in bfq_completed_request()
4707 (bfqd->last_rq_max_size<<BFQ_RATE_SHIFT)/delta_us < in bfq_completed_request()