Home
last modified time | relevance | path

Searched refs:ts2 (Results 1 - 25 of 37) sorted by relevance

12

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dtime_tai.c37 __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 Dfexit_sleep.c15 struct timespec ts2 = { .tv_sec = 10 }; in do_sleep() local
19 (void)syscall(__NR_nanosleep, &ts2, NULL); in do_sleep()
/kernel/linux/linux-6.6/drivers/pps/generators/
H A Dpps_gen_parport.c57 struct timespec64 expire_time, ts1, ts2, ts3, dts; in hrtimer_event() local
90 ktime_get_real_ts64(&ts2); in hrtimer_event()
91 } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); in hrtimer_event()
100 ktime_get_real_ts64(&ts2); in hrtimer_event()
101 } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); in hrtimer_event()
111 dts = timespec64_sub(ts3, ts2); in hrtimer_event()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_time_tai.c12 __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()
/kernel/linux/linux-5.10/drivers/pps/generators/
H A Dpps_gen_parport.c59 struct timespec64 expire_time, ts1, ts2, ts3, dts; in hrtimer_event() local
92 ktime_get_real_ts64(&ts2); in hrtimer_event()
93 } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); in hrtimer_event()
102 ktime_get_real_ts64(&ts2); in hrtimer_event()
103 } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); in hrtimer_event()
113 dts = timespec64_sub(ts3, ts2); in hrtimer_event()
/kernel/linux/linux-5.10/tools/testing/selftests/timers/
H A Dfreq-step.c43 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()
/kernel/linux/linux-6.6/tools/testing/selftests/timers/
H A Dfreq-step.c43 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()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/
H A Dtest_util.c73 struct timespec timespec_add(struct timespec ts1, struct timespec ts2) in timespec_add() argument
76 int64_t ns2 = timespec_to_ns(ts2); in timespec_add()
80 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2) in timespec_sub() argument
83 int64_t ns2 = timespec_to_ns(ts2); in timespec_sub()
/kernel/linux/linux-5.10/drivers/media/pci/cx23885/
H A Dcx23885-cards.c2135 struct cx23885_tsport *ts2 = &dev->ts2; in cx23885_card_setup() local
2202 ts2->gen_ctrl_val = 0x10e; in cx23885_card_setup()
2203 ts2->ts_clk_en_val = 0x1; /* Enable TS_CLK */ in cx23885_card_setup()
2204 ts2->src_sel_val = CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO; in cx23885_card_setup()
2209 ts2->gen_ctrl_val = 0xc; /* Serial bus + punctured clock */ in cx23885_card_setup()
2210 ts2->ts_clk_en_val = 0x1; /* Enable TS_CLK */ in cx23885_card_setup()
2211 ts2->src_sel_val = CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO; in cx23885_card_setup()
2232 ts2->gen_ctrl_val = 0xc; /* Serial bus + punctured clock */ in cx23885_card_setup()
2233 ts2 in cx23885_card_setup()
[all...]
H A Dcx23885-core.c981 cx23885_init_tsport(dev, &dev->ts2, 2); in cx23885_dev_setup()
1071 dev->ts2.num_frontends = in cx23885_dev_setup()
1073 if (cx23885_dvb_register(&dev->ts2) < 0) { in cx23885_dev_setup()
1119 cx23885_dvb_unregister(&dev->ts2); in cx23885_dev_unregister()
1780 struct cx23885_tsport *ts2 = &dev->ts2; in cx23885_irq() local
1815 ts2_count = cx_read(ts2->reg_gpcnt); in cx23885_irq()
1909 handled += cx23885_irq_ts(ts2, ts2_status); in cx23885_irq()
H A Dcx23885.h382 struct cx23885_tsport ts1, ts2; member
/kernel/linux/linux-6.6/drivers/media/pci/cx23885/
H A Dcx23885-cards.c2135 struct cx23885_tsport *ts2 = &dev->ts2; in cx23885_card_setup() local
2202 ts2->gen_ctrl_val = 0x10e; in cx23885_card_setup()
2203 ts2->ts_clk_en_val = 0x1; /* Enable TS_CLK */ in cx23885_card_setup()
2204 ts2->src_sel_val = CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO; in cx23885_card_setup()
2209 ts2->gen_ctrl_val = 0xc; /* Serial bus + punctured clock */ in cx23885_card_setup()
2210 ts2->ts_clk_en_val = 0x1; /* Enable TS_CLK */ in cx23885_card_setup()
2211 ts2->src_sel_val = CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO; in cx23885_card_setup()
2232 ts2->gen_ctrl_val = 0xc; /* Serial bus + punctured clock */ in cx23885_card_setup()
2233 ts2 in cx23885_card_setup()
[all...]
H A Dcx23885-core.c981 cx23885_init_tsport(dev, &dev->ts2, 2); in cx23885_dev_setup()
1071 dev->ts2.num_frontends = in cx23885_dev_setup()
1073 if (cx23885_dvb_register(&dev->ts2) < 0) { in cx23885_dev_setup()
1119 cx23885_dvb_unregister(&dev->ts2); in cx23885_dev_unregister()
1784 struct cx23885_tsport *ts2 = &dev->ts2; in cx23885_irq() local
1819 ts2_count = cx_read(ts2->reg_gpcnt); in cx23885_irq()
1913 handled += cx23885_irq_ts(ts2, ts2_status); in cx23885_irq()
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_common/
H A Dadf_clock.c42 struct timespec64 ts1, ts2, ts3, ts4; in measure_clock() local
56 ktime_get_real_ts64(&ts2); in measure_clock()
57 delta_us = timespec_to_us(&ts2) - timespec_to_us(&ts1); in measure_clock()
/kernel/linux/linux-5.10/drivers/mmc/core/
H A Dmmc_test.c560 struct timespec64 *ts1, struct timespec64 *ts2) in mmc_test_print_rate()
565 ts = timespec64_sub(*ts2, *ts1); in mmc_test_print_rate()
585 struct timespec64 *ts2) in mmc_test_print_avg_rate()
591 ts = timespec64_sub(*ts2, *ts1); in mmc_test_print_avg_rate()
1462 struct timespec64 ts1, ts2; in mmc_test_area_io_seq() local
1500 ktime_get_ts64(&ts2); in mmc_test_area_io_seq()
1503 mmc_test_print_avg_rate(test, sz, count, &ts1, &ts2); in mmc_test_area_io_seq()
1766 struct timespec64 ts1, ts2; in mmc_test_profile_trim_perf() local
1781 ktime_get_ts64(&ts2); in mmc_test_profile_trim_perf()
1782 mmc_test_print_rate(test, sz, &ts1, &ts2); in mmc_test_profile_trim_perf()
559 mmc_test_print_rate(struct mmc_test_card *test, uint64_t bytes, struct timespec64 *ts1, struct timespec64 *ts2) mmc_test_print_rate() argument
583 mmc_test_print_avg_rate(struct mmc_test_card *test, uint64_t bytes, unsigned int count, struct timespec64 *ts1, struct timespec64 *ts2) mmc_test_print_avg_rate() argument
1798 struct timespec64 ts1, ts2; mmc_test_seq_read_perf() local
1837 struct timespec64 ts1, ts2; mmc_test_seq_write_perf() local
1883 struct timespec64 ts1, ts2; mmc_test_profile_seq_trim_perf() local
1931 struct timespec64 ts1, ts2, ts; mmc_test_rnd_perf() local
2017 struct timespec64 ts1, ts2; mmc_test_seq_perf() local
[all...]
/kernel/linux/linux-6.6/drivers/mmc/core/
H A Dmmc_test.c559 struct timespec64 *ts1, struct timespec64 *ts2) in mmc_test_print_rate()
564 ts = timespec64_sub(*ts2, *ts1); in mmc_test_print_rate()
584 struct timespec64 *ts2) in mmc_test_print_avg_rate()
590 ts = timespec64_sub(*ts2, *ts1); in mmc_test_print_avg_rate()
1442 struct timespec64 ts1, ts2; in mmc_test_area_io_seq() local
1480 ktime_get_ts64(&ts2); in mmc_test_area_io_seq()
1483 mmc_test_print_avg_rate(test, sz, count, &ts1, &ts2); in mmc_test_area_io_seq()
1746 struct timespec64 ts1, ts2; in mmc_test_profile_trim_perf() local
1761 ktime_get_ts64(&ts2); in mmc_test_profile_trim_perf()
1762 mmc_test_print_rate(test, sz, &ts1, &ts2); in mmc_test_profile_trim_perf()
558 mmc_test_print_rate(struct mmc_test_card *test, uint64_t bytes, struct timespec64 *ts1, struct timespec64 *ts2) mmc_test_print_rate() argument
582 mmc_test_print_avg_rate(struct mmc_test_card *test, uint64_t bytes, unsigned int count, struct timespec64 *ts1, struct timespec64 *ts2) mmc_test_print_avg_rate() argument
1778 struct timespec64 ts1, ts2; mmc_test_seq_read_perf() local
1817 struct timespec64 ts1, ts2; mmc_test_seq_write_perf() local
1863 struct timespec64 ts1, ts2; mmc_test_profile_seq_trim_perf() local
1911 struct timespec64 ts1, ts2, ts; mmc_test_rnd_perf() local
1997 struct timespec64 ts1, ts2; mmc_test_seq_perf() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/include/
H A Dtest_util.h65 struct timespec timespec_add(struct timespec ts1, struct timespec ts2);
66 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2);
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/lib/
H A Dtest_util.c97 struct timespec timespec_add(struct timespec ts1, struct timespec ts2) in timespec_add() argument
100 int64_t ns2 = timespec_to_ns(ts2); in timespec_add()
104 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2) in timespec_sub() argument
107 int64_t ns2 = timespec_to_ns(ts2); in timespec_sub()
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dmigration.c67 struct timespec ts1, ts2; in migrate() local
73 if (clock_gettime(CLOCK_MONOTONIC, &ts2)) in migrate()
76 if (ts2.tv_sec - ts1.tv_sec >= RUNTIME) in migrate()
/kernel/liteos_m/testsuites/unittest/posix/src/semaphore/
H A Dsemaphore_func_test.c88 int GetTimeDiff(struct timespec ts1, struct timespec ts2) in GetTimeDiff() argument
92 int ms = (ts1.tv_sec - ts2.tv_sec) * nsecPerSec + (ts1.tv_nsec - ts2.tv_nsec); in GetTimeDiff()
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/include/
H A Dtest_util.h83 struct timespec timespec_add(struct timespec ts1, struct timespec ts2);
84 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2);
/kernel/linux/linux-5.10/kernel/
H A Dsmp.c148 u64 ts2, ts_delta; in csd_lock_wait_toolong() local
161 ts2 = sched_clock(); in csd_lock_wait_toolong()
162 ts_delta = ts2 - *ts1; in csd_lock_wait_toolong()
176 firsttime ? "Detected" : "Continued", *bug_id, raw_smp_processor_id(), ts2 - ts0, in csd_lock_wait_toolong()
195 *ts1 = ts2; in csd_lock_wait_toolong()
/kernel/linux/linux-6.6/kernel/
H A Dsmp.c220 u64 ts2, ts_delta; in csd_lock_wait_toolong() local
234 ts2 = sched_clock(); in csd_lock_wait_toolong()
236 ts_delta = ts2 - *ts1; in csd_lock_wait_toolong()
250 ts_delta = ts2 - ts0; in csd_lock_wait_toolong()
278 *ts1 = ts2; in csd_lock_wait_toolong()
/kernel/linux/linux-5.10/drivers/ptp/
H A Dptp_idt82p33.c423 struct timespec64 ts2; in idt82p33_measure_settime_gettime_gap_overhead() local
433 err = _idt82p33_gettime(channel, &ts2); in idt82p33_measure_settime_gettime_gap_overhead()
436 *overhead_ns = timespec64_to_ns(&ts2) - timespec64_to_ns(&ts1); in idt82p33_measure_settime_gettime_gap_overhead()
/kernel/linux/linux-6.6/drivers/ptp/
H A Dptp_idt82p33.c745 struct timespec64 ts2; in idt82p33_measure_settime_gettime_gap_overhead() local
755 err = _idt82p33_gettime(channel, &ts2); in idt82p33_measure_settime_gettime_gap_overhead()
758 *overhead_ns = timespec64_to_ns(&ts2) - timespec64_to_ns(&ts1); in idt82p33_measure_settime_gettime_gap_overhead()

Completed in 31 milliseconds

12