| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | time_tai.c | 37 __u64 ts1, ts2, now; in test_time_tai() local 51 ts1 = skb.tstamp; in test_time_tai() 55 ASSERT_NEQ(ts1, 0, "tai_ts1"); in test_time_tai() 59 ASSERT_GE(ts2, ts1, "tai_forward"); in test_time_tai() 66 ASSERT_TRUE(now > ts1, "tai_future_ts1"); in test_time_tai() 70 ASSERT_TRUE(now - ts1 < TAI_THRESHOLD, "tai_range_ts1"); in test_time_tai()
|
| H A D | fexit_sleep.c | 14 struct timespec ts1 = { .tv_nsec = 1 }; in do_sleep() local 18 (void)syscall(__NR_nanosleep, &ts1, NULL); in do_sleep()
|
| /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 55 clock_gettime(CLOCK_MONOTONIC_RAW, &ts1); in get_sample() 59 ts1.tv_sec -= mono_raw_base; in get_sample() 63 delay = diff_timespec(&ts3, &ts1); in get_sample() 70 sample->offset = diff_timespec(&ts2, &ts1); in get_sample() 72 sample->time = ts1.tv_sec + ts1.tv_nsec / 1e9; in get_sample()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_time_tai.c | 12 __u64 ts1, ts2; in time_tai() local 15 ts1 = bpf_ktime_get_tai_ns(); in time_tai() 19 skb->tstamp = ts1; in time_tai()
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | adf_clock.c | 43 struct timespec64 ts1, ts2, ts3, ts4; in measure_clock() local 50 ktime_get_real_ts64(&ts1); in measure_clock() 58 delta_us = timespec_to_us(&ts2) - timespec_to_us(&ts1); in measure_clock() 85 delta_us = timespec_to_us(&ts3) - timespec_to_us(&ts1); in measure_clock()
|
| /linux/drivers/mmc/core/ |
| H A D | mmc_test.c | 553 struct timespec64 *ts1, struct timespec64 *ts2) in mmc_test_print_rate() argument 558 ts = timespec64_sub(*ts2, *ts1); in mmc_test_print_rate() 577 unsigned int count, struct timespec64 *ts1, in mmc_test_print_avg_rate() argument 584 ts = timespec64_sub(*ts2, *ts1); in mmc_test_print_avg_rate() 1433 struct timespec64 ts1, ts2; in mmc_test_area_io_seq() local 1458 ktime_get_ts64(&ts1); in mmc_test_area_io_seq() 1474 mmc_test_print_avg_rate(test, sz, count, &ts1, &ts2); in mmc_test_area_io_seq() 1736 struct timespec64 ts1, ts2; in mmc_test_profile_trim_perf() local 1747 ktime_get_ts64(&ts1); in mmc_test_profile_trim_perf() 1752 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 104 int64_t ns1 = timespec_to_ns(ts1); in timespec_add() 109 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2) in timespec_sub() argument 111 int64_t ns1 = timespec_to_ns(ts1); in timespec_sub()
|
| /linux/kernel/ |
| H A D | smp.c | 231 static bool csd_lock_wait_toolong(call_single_data_t *csd, u64 ts0, u64 *ts1, int *bug_id, unsigned long *nmessages) in csd_lock_wait_toolong() argument 253 ts_delta = ts2 - *ts1; in csd_lock_wait_toolong() 263 *ts1 = ts2; in csd_lock_wait_toolong() 308 *ts1 = ts2; in csd_lock_wait_toolong() 324 u64 ts0, ts1; in __csd_lock_wait() local 326 ts1 = ts0 = ktime_get_mono_fast_ns(); in __csd_lock_wait() 328 if (csd_lock_wait_toolong(csd, ts0, &ts1, &bug_id, &nmessages)) in __csd_lock_wait()
|
| /linux/tools/testing/selftests/mm/ |
| H A D | migration.c | 70 struct timespec ts1, ts2; in migrate() local 73 if (clock_gettime(CLOCK_MONOTONIC, &ts1)) in migrate() 80 if (ts2.tv_sec - ts1.tv_sec >= RUNTIME) in migrate()
|
| /linux/tools/testing/selftests/kvm/include/ |
| H A D | test_util.h | 104 struct timespec timespec_add(struct timespec ts1, struct timespec ts2); 105 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2);
|
| /linux/drivers/media/pci/cx23885/ |
| H A D | cx23885-core.c | 977 cx23885_init_tsport(dev, &dev->ts1, 1); in cx23885_dev_setup() 1055 dev->ts1.num_frontends = in cx23885_dev_setup() 1057 if (cx23885_dvb_register(&dev->ts1) < 0) { in cx23885_dev_setup() 1113 cx23885_dvb_unregister(&dev->ts1); in cx23885_dev_unregister() 1676 struct cx23885_tsport *port = &dev->ts1; in cx23885_irq_417() 1783 struct cx23885_tsport *ts1 = &dev->ts1; in cx23885_irq() local 1818 ts1_count = cx_read(ts1->reg_gpcnt); in cx23885_irq() 1905 handled += cx23885_irq_ts(ts1, ts1_status); in cx23885_irq()
|
| H A D | cimax2.c | 382 port = &dev->ts1; in netup_ci_slot_status()
|
| /linux/drivers/ptp/ |
| H A D | ptp_ocp.c | 351 struct ptp_ocp_ext_src *ts1; member 522 OCP_EXT_RESOURCE(ts1), 775 OCP_EXT_RESOURCE(ts1), 890 OCP_EXT_RESOURCE(ts1), 1391 ext = bp->ts1; in ptp_ocp_enable() 4145 if (bp->ts1) { in ptp_ocp_summary_show() 4146 ts_reg = bp->ts1->mem; in ptp_ocp_summary_show() 4562 ptp_ocp_unregister_ext(bp->ts1); in ptp_ocp_detach()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | cmd.c | 1054 ent->ts1 = ktime_get_ns(); in cmd_work_handler() 1316 ds = ent->ts2 - ent->ts1; in mlx5_cmd_invoke() 1796 ds = ent->ts2 - ent->ts1; in mlx5_cmd_comp_handler()
|
| /linux/include/linux/mlx5/ |
| H A D | driver.h | 851 u64 ts1; member
|