Home
last modified time | relevance | path

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

/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_clock.c44 u32 delta_us, tries; in measure_clock() local
57 delta_us = timespec_to_us(&ts2) - timespec_to_us(&ts1); in measure_clock()
58 } while (delta_us > MEASURE_CLOCK_DELTA_THRESHOLD_US && --tries); in measure_clock()
76 delta_us = timespec_to_us(&ts4) - timespec_to_us(&ts3); in measure_clock()
77 } while (delta_us > MEASURE_CLOCK_DELTA_THRESHOLD_US && --tries); in measure_clock()
84 delta_us = timespec_to_us(&ts3) - timespec_to_us(&ts1); in measure_clock()
85 if (!delta_us) in measure_clock()
89 temp = DIV_ROUND_CLOSEST_ULL(temp, delta_us); in measure_clock()
/openbmc/linux/lib/dim/
H A 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()
/openbmc/linux/tools/bpf/runqslower/
H A Drunqslower.bpf.c72 u64 *tsp, delta_us; in handle__sched_switch() local
91 delta_us = (bpf_ktime_get_ns() - *tsp) / 1000; in handle__sched_switch()
92 if (min_us && delta_us <= min_us) in handle__sched_switch()
96 event.delta_us = delta_us; in handle__sched_switch()
H A Drunqslower.h9 __u64 delta_us; member
H A Drunqslower.c100 printf("%-8s %-16s %-6d %14llu\n", ts, e->task, e->pid, e->delta_us); in handle_event()
/openbmc/u-boot/test/
H A Dtime_ut.c81 ulong start_us, end_us, delta_us; in test_time_comparison() local
90 delta_us = end_us - start_us; in test_time_comparison()
91 error = delta_us - 1000000; in test_time_comparison()
93 __func__, delta_us, error); in test_time_comparison()
/openbmc/linux/tools/testing/selftests/net/
H A Dtimestamping.c503 long delta_us; in main() local
508 delta_us = (long)(next.tv_sec - now.tv_sec) * 1000000 + in main()
510 if (delta_us > 0) { in main()
512 delta.tv_sec = delta_us / 1000000; in main()
513 delta.tv_usec = delta_us % 1000000; in main()
521 delta_us); in main()
/openbmc/linux/drivers/media/test-drivers/vivid/
H A Dvivid-cec.c102 s64 delta_us, retry_us; in vivid_cec_bus_thread() local
206 delta_us = div_s64(end - start, 1000); in vivid_cec_bus_thread()
207 delta_us -= wait_xfer_us + wait_arb_lost_us; in vivid_cec_bus_thread()
208 retry_us = CEC_SIGNAL_FREE_TIME_RETRY * CEC_DATA_BIT_US - delta_us; in vivid_cec_bus_thread()
/openbmc/linux/samples/bpf/
H A Dhbm.c321 long long delta_us = (qstats.lastPacketTime - in run_bpf_prog() local
325 delta_us); in run_bpf_prog()
/openbmc/linux/drivers/net/can/usb/peak_usb/
H A Dpcan_usb_core.c159 u64 delta_us; in peak_usb_get_ts_time() local
208 delta_us = delta_ts * time_ref->adapter->us_per_ts_scale; in peak_usb_get_ts_time()
209 delta_us >>= time_ref->adapter->us_per_ts_shift; in peak_usb_get_ts_time()
211 *time = ktime_add_us(time_ref->tv_host_0, delta_us); in peak_usb_get_ts_time()
/openbmc/linux/net/ipv4/
H A Dtcp_input.c686 u32 delta_us; in tcp_rcv_rtt_measure() local
692 delta_us = tcp_stamp_us_delta(tp->tcp_mstamp, tp->rcv_rtt_est.time); in tcp_rcv_rtt_measure()
693 if (!delta_us) in tcp_rcv_rtt_measure()
694 delta_us = 1; in tcp_rcv_rtt_measure()
695 tcp_rcv_rtt_update(tp, delta_us, 1); in tcp_rcv_rtt_measure()
714 u32 delta_us; in tcp_rcv_rtt_measure_ts() local
719 delta_us = delta * (USEC_PER_SEC / TCP_TS_HZ); in tcp_rcv_rtt_measure_ts()
720 tcp_rcv_rtt_update(tp, delta_us, 0); in tcp_rcv_rtt_measure_ts()
3269 s64 delta_us = tcp_rto_delta_us(sk); in tcp_rearm_rto() local
3273 rto = usecs_to_jiffies(max_t(int, delta_us, 1)); in tcp_rearm_rto()
H A Dtcp_ipv4.c437 u32 delta_us; in tcp_ld_RTO_revert() local
455 delta_us = (u32)(tp->tcp_mstamp - tcp_skb_timestamp_us(skb)); in tcp_ld_RTO_revert()
456 remaining = icsk->icsk_rto - usecs_to_jiffies(delta_us); in tcp_ld_RTO_revert()
/openbmc/linux/block/
H A Dbfq-iosched.c6364 u32 delta_us; in bfq_completed_request() local
6393 delta_us = div_u64(now_ns - bfqd->last_completion, NSEC_PER_USEC); in bfq_completed_request()
6411 if (delta_us > BFQ_MIN_TT/NSEC_PER_USEC && in bfq_completed_request()
6412 (bfqd->last_rq_max_size<<BFQ_RATE_SHIFT)/delta_us < in bfq_completed_request()