| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | time_tai.c | 37 __u64 ts1, ts2, now; in test_time_tai() local 52 ts2 = skb.cb[0] | ((__u64)skb.cb[1] << 32); in test_time_tai() 56 ASSERT_NEQ(ts2, 0, "tai_ts2"); in test_time_tai() 59 ASSERT_GE(ts2, ts1, "tai_forward"); in test_time_tai() 67 ASSERT_TRUE(now > ts2, "tai_future_ts2"); in test_time_tai() 71 ASSERT_TRUE(now - ts2 < TAI_THRESHOLD, "tai_range_ts2"); in test_time_tai()
|
| H A D | fexit_sleep.c | 15 struct timespec ts2 = { .tv_sec = 10 }; in do_sleep() local 19 (void)syscall(__NR_nanosleep, &ts2, NULL); in do_sleep()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_time_tai.c | 12 __u64 ts1, ts2; in time_tai() local 16 ts2 = bpf_ktime_get_tai_ns(); in time_tai() 20 skb->cb[0] = ts2 & 0xffffffff; in time_tai() 21 skb->cb[1] = ts2 >> 32; in time_tai()
|
| /linux/tools/testing/selftests/timers/ |
| H A D | freq-step.c | 43 static double diff_timespec(struct timespec *ts1, struct timespec *ts2) in diff_timespec() argument 45 return ts1->tv_sec - ts2->tv_sec + (ts1->tv_nsec - ts2->tv_nsec) / 1e9; in diff_timespec() 51 struct timespec ts1, ts2, ts3; in get_sample() local 56 clock_gettime(CLOCK_MONOTONIC, &ts2); in get_sample() 60 ts2.tv_sec -= mono_base; in get_sample() 70 sample->offset = diff_timespec(&ts2, &ts1); in get_sample()
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | adf_clock.c | 43 struct timespec64 ts1, ts2, ts3, ts4; in measure_clock() local 57 ktime_get_real_ts64(&ts2); in measure_clock() 58 delta_us = timespec_to_us(&ts2) - timespec_to_us(&ts1); in measure_clock()
|
| /linux/drivers/mmc/core/ |
| H A D | mmc_test.c | 558 struct timespec64 *ts1, struct timespec64 *ts2) in mmc_test_print_rate() argument 563 ts = timespec64_sub(*ts2, *ts1); in mmc_test_print_rate() 583 struct timespec64 *ts2) in mmc_test_print_avg_rate() argument 589 ts = timespec64_sub(*ts2, *ts1); in mmc_test_print_avg_rate() 1438 struct timespec64 ts1, ts2; in mmc_test_area_io_seq() local 1476 ktime_get_ts64(&ts2); in mmc_test_area_io_seq() 1479 mmc_test_print_avg_rate(test, sz, count, &ts1, &ts2); in mmc_test_area_io_seq() 1741 struct timespec64 ts1, ts2; in mmc_test_profile_trim_perf() local 1756 ktime_get_ts64(&ts2); in mmc_test_profile_trim_perf() 1757 mmc_test_print_rate(test, sz, &ts1, &ts2); in mmc_test_profile_trim_perf() [all …]
|
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | test_util.c | 102 struct timespec timespec_add(struct timespec ts1, struct timespec ts2) in timespec_add() argument 105 s64 ns2 = timespec_to_ns(ts2); in timespec_add() 109 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2) in timespec_sub() argument 112 s64 ns2 = timespec_to_ns(ts2); in timespec_sub()
|
| /linux/kernel/ |
| H A D | smp.c | 249 u64 ts2, ts_delta; in csd_lock_wait_toolong() local 264 ts2 = ktime_get_mono_fast_ns(); in csd_lock_wait_toolong() 266 ts_delta = ts2 - *ts1; in csd_lock_wait_toolong() 272 if (ts0 > ts2) { in csd_lock_wait_toolong() 274 ts_delta = ts0 - ts2; in csd_lock_wait_toolong() 276 *ts1 = ts2; in csd_lock_wait_toolong() 296 ts_delta = ts2 - ts0; in csd_lock_wait_toolong() 327 *ts1 = ts2; in csd_lock_wait_toolong()
|
| /linux/tools/testing/selftests/mm/ |
| H A D | migration.c | 112 struct timespec ts1, ts2; in access_mem() 119 if (clock_gettime(CLOCK_MONOTONIC, &ts2)) 122 if (ts2.tv_sec - ts1.tv_sec >= RUNTIME) 70 struct timespec ts1, ts2; migrate() local
|
| /linux/drivers/ptp/ |
| H A D | ptp_clock.c | 138 struct timespec64 ts, ts2; in ptp_clock_adjtime() local 152 err = ptp_clock_gettime(pc, &ts2); in ptp_clock_adjtime() 155 ts2 = timespec64_add(ts2, ts); in ptp_clock_adjtime() 156 if (!timespec64_valid_settod(&ts2)) in ptp_clock_adjtime()
|
| H A D | ptp_ocp.c | 381 struct ptp_ocp_ext_src *ts2; member 565 OCP_EXT_RESOURCE(ts2), 818 OCP_EXT_RESOURCE(ts2), 933 OCP_EXT_RESOURCE(ts2), 1098 OCP_EXT_RESOURCE(ts2), 1654 ext = bp->ts2; in ptp_ocp_enable() 4466 if (bp->ts2) { in ptp_ocp_summary_show() 4467 ts_reg = bp->ts2->mem; in ptp_ocp_summary_show() 4879 if (bp->ts2) in ptp_ocp_detach() 4880 ptp_ocp_ts_enable(bp->ts2, 0, false); in ptp_ocp_detach() [all …]
|
| /linux/tools/testing/selftests/kvm/include/ |
| H A D | test_util.h | 106 struct timespec timespec_add(struct timespec ts1, struct timespec ts2); 107 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2);
|
| /linux/include/linux/mlx5/ |
| H A D | driver.h | 855 u64 ts2; member
|