Home
last modified time | relevance | path

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

/linux-6.15/drivers/crypto/intel/qat/qat_common/
H A Dadf_clock.c45 u32 delta_us, tries; in measure_clock() local
58 delta_us = timespec_to_us(&ts2) - timespec_to_us(&ts1); in measure_clock()
59 } while (delta_us > MEASURE_CLOCK_DELTA_THRESHOLD_US && --tries); in measure_clock()
77 delta_us = timespec_to_us(&ts4) - timespec_to_us(&ts3); in measure_clock()
78 } while (delta_us > MEASURE_CLOCK_DELTA_THRESHOLD_US && --tries); in measure_clock()
85 delta_us = timespec_to_us(&ts3) - timespec_to_us(&ts1); in measure_clock()
86 if (!delta_us) in measure_clock()
90 temp = DIV_ROUND_CLOSEST_ULL(temp, delta_us); in measure_clock()
/linux-6.15/lib/dim/
H A Ddim.c62 u32 delta_us = ktime_us_delta(end->time, start->time); in dim_calc_stats() local
69 if (!delta_us) in dim_calc_stats()
72 curr_stats->ppms = DIV_ROUND_UP(npkts * USEC_PER_MSEC, delta_us); in dim_calc_stats()
73 curr_stats->bpms = DIV_ROUND_UP(nbytes * USEC_PER_MSEC, delta_us); in dim_calc_stats()
75 delta_us); in dim_calc_stats()
76 curr_stats->cpms = DIV_ROUND_UP(ncomps * USEC_PER_MSEC, delta_us); in dim_calc_stats()
/linux-6.15/tools/bpf/runqslower/
H A Drunqslower.bpf.c72 u64 *tsp, delta_us; in handle__sched_switch() local
90 delta_us = (bpf_ktime_get_ns() - *tsp) / 1000; in handle__sched_switch()
91 if (min_us && delta_us <= min_us) in handle__sched_switch()
95 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()
/linux-6.15/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()
/linux-6.15/drivers/media/test-drivers/vivid/
H A Dvivid-cec.c119 s64 delta_us, retry_us; in vivid_cec_bus_thread() local
241 delta_us = div_s64(end - start, 1000); in vivid_cec_bus_thread()
242 delta_us -= wait_xfer_us + wait_arb_lost_us; in vivid_cec_bus_thread()
243 retry_us = CEC_SIGNAL_FREE_TIME_RETRY * CEC_DATA_BIT_US - delta_us; in vivid_cec_bus_thread()
/linux-6.15/samples/bpf/
H A Dhbm.c321 long long delta_us = (qstats.lastPacketTime - in run_bpf_prog() local
325 delta_us); in run_bpf_prog()
/linux-6.15/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()
/linux-6.15/drivers/acpi/
H A Dosl.c610 u64 usec = ms * USEC_PER_MSEC, delta_us = 50; in acpi_os_sleep() local
628 delta_us = (USEC_PER_MSEC / 100) * ms; in acpi_os_sleep()
630 usleep_range(usec, usec + delta_us); in acpi_os_sleep()
/linux-6.15/net/ipv4/
H A Dtcp_input.c699 u32 delta_us; in tcp_rcv_rtt_measure() local
705 delta_us = tcp_stamp_us_delta(tp->tcp_mstamp, tp->rcv_rtt_est.time); in tcp_rcv_rtt_measure()
706 if (!delta_us) in tcp_rcv_rtt_measure()
707 delta_us = 1; in tcp_rcv_rtt_measure()
708 tcp_rcv_rtt_update(tp, delta_us, 1); in tcp_rcv_rtt_measure()
717 u32 delta, delta_us; in tcp_rtt_tsopt_us() local
726 delta_us = delta * (USEC_PER_SEC / TCP_TS_HZ); in tcp_rtt_tsopt_us()
727 return delta_us; in tcp_rtt_tsopt_us()
3290 s64 delta_us = tcp_rto_delta_us(sk); in tcp_rearm_rto() local
3294 rto = usecs_to_jiffies(max_t(int, delta_us, 1)); in tcp_rearm_rto()
H A Dtcp_ipv4.c446 u32 delta_us; in tcp_ld_RTO_revert() local
464 delta_us = (u32)(tp->tcp_mstamp - tcp_skb_timestamp_us(skb)); in tcp_ld_RTO_revert()
465 remaining = icsk->icsk_rto - usecs_to_jiffies(delta_us); in tcp_ld_RTO_revert()
/linux-6.15/block/
H A Dbfq-iosched.c6366 u32 delta_us; in bfq_completed_request() local
6395 delta_us = div_u64(now_ns - bfqd->last_completion, NSEC_PER_USEC); in bfq_completed_request()
6413 if (delta_us > BFQ_MIN_TT/NSEC_PER_USEC && in bfq_completed_request()
6414 (bfqd->last_rq_max_size<<BFQ_RATE_SHIFT)/delta_us < in bfq_completed_request()