Home
last modified time | relevance | path

Searched refs:ts1 (Results 1 – 25 of 27) sorted by relevance

12

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtime_tai.c37 __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 Dfexit_sleep.c14 struct timespec ts1 = { .tv_nsec = 1 }; in do_sleep() local
18 (void)syscall(__NR_nanosleep, &ts1, NULL); in do_sleep()
/linux/drivers/media/pci/cx23885/
H A Dcx23885-cards.c2134 struct cx23885_tsport *ts1 = &dev->ts1; in cx23885_card_setup() local
2197 ts1->gen_ctrl_val = 0x4; /* Parallel */ in cx23885_card_setup()
2222 ts1->gen_ctrl_val = 0x10e; in cx23885_card_setup()
2227 ts1->vld_misc_val = 0x2000; in cx23885_card_setup()
2237 ts1->gen_ctrl_val = 0x4; /* Parallel */ in cx23885_card_setup()
2249 ts1->gen_ctrl_val = 0x5; /* Parallel */ in cx23885_card_setup()
2276 ts1->gen_ctrl_val = 0x5; /* Parallel */ in cx23885_card_setup()
2281 ts1->gen_ctrl_val = 0x5; /* Parallel */ in cx23885_card_setup()
2303 ts1->gen_ctrl_val = 0x5; /* Parallel */ in cx23885_card_setup()
2311 ts1->gen_ctrl_val = 0x5; /* Parallel */ in cx23885_card_setup()
[all …]
H A Dcx23885-417.c1013 dev->ts1.height = 480; in cx23885_codec_settings()
1015 dev->ts1.height = 576; in cx23885_codec_settings()
1019 dev->ts1.height, dev->ts1.width); in cx23885_codec_settings()
1021 dev->cxhdl.width = dev->ts1.width; in cx23885_codec_settings()
1164 cx23885_buf_queue(&dev->ts1, buf); in buffer_queue()
1205 cx23885_cancel_buffers(&dev->ts1); in cx23885_stop_streaming()
1355 dev->ts1.ts_packet_size * dev->ts1.ts_packet_count; in vidioc_g_fmt_vid_cap()
1361 dev->ts1.width, dev->ts1.height); in vidioc_g_fmt_vid_cap()
1373 dev->ts1.ts_packet_size * dev->ts1.ts_packet_count; in vidioc_try_fmt_vid_cap()
1377 dev->ts1.width, dev->ts1.height); in vidioc_try_fmt_vid_cap()
[all …]
H A Dcx23885-core.c977 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 Dcx23885-dvb.c1263 tda18271_attach(&dev->ts1.analog_fe, in dvb_register()
1671 tda18271_attach(&dev->ts1.analog_fe, in dvb_register()
2318 dev->ts1.analog_fe.tuner_priv = client_tuner; in dvb_register()
2319 memcpy(&dev->ts1.analog_fe.ops.tuner_ops, in dvb_register()
2381 dev->ts1.analog_fe.tuner_priv = client_tuner; in dvb_register()
2382 memcpy(&dev->ts1.analog_fe.ops.tuner_ops, in dvb_register()
2474 dev->ts1.analog_fe.tuner_priv = client_tuner; in dvb_register()
2475 memcpy(&dev->ts1.analog_fe.ops.tuner_ops, in dvb_register()
2545 dev->ts1.analog_fe.tuner_priv = client_tuner; in dvb_register()
2546 memcpy(&dev->ts1.analog_fe.ops.tuner_ops, in dvb_register()
H A Dcimax2.c382 port = &dev->ts1; in netup_ci_slot_status()
H A Dcx23885.h382 struct cx23885_tsport ts1, ts2; member
/linux/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
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/drivers/pps/generators/
H A Dpps_gen_parport.c57 struct timespec64 expire_time, ts1, ts2, ts3, dts; in hrtimer_event() local
75 ktime_get_real_ts64(&ts1); in hrtimer_event()
81 if (expire_time.tv_sec != ts1.tv_sec || ts1.tv_nsec > lim) { in hrtimer_event()
84 (s64)ts1.tv_sec, ts1.tv_nsec); in hrtimer_event()
117 dts = timespec64_sub(ts1, expire_time); in hrtimer_event()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_time_tai.c12 __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 Dadf_clock.c43 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/lib/math/
H A Dtest_div64.c222 struct timespec64 ts, ts0, ts1; in test_div64_init() local
232 ktime_get_ts64(&ts1); in test_div64_init()
233 ts = timespec64_sub(ts1, ts0); in test_div64_init()
/linux/drivers/media/usb/cx231xx/
H A Dcx231xx-417.c1084 dev->ts1.height, dev->ts1.width); in cx231xx_codec_settings()
1223 dev->ts1.ts_packet_size = mpeglinesize; in queue_setup()
1224 dev->ts1.ts_packet_count = mpeglines; in queue_setup()
1495 s->r.width = dev->ts1.width; in vidioc_g_selection()
1496 s->r.height = dev->ts1.height; in vidioc_g_selection()
1527 dev->ts1.height = 480; in vidioc_s_std()
1532 dev->ts1.height = 576; in vidioc_s_std()
1578 f->fmt.pix.width = dev->ts1.width; in vidioc_g_fmt_vid_cap()
1579 f->fmt.pix.height = dev->ts1.height; in vidioc_g_fmt_vid_cap()
1582 dev->ts1.width, dev->ts1.height); in vidioc_g_fmt_vid_cap()
[all …]
H A Dcx231xx.h707 struct cx231xx_tsport ts1, ts2; member
/linux/drivers/mmc/core/
H A Dmmc_test.c1442 struct timespec64 ts1, ts2; in mmc_test_area_io_seq() local
1467 ktime_get_ts64(&ts1); in mmc_test_area_io_seq()
1746 struct timespec64 ts1, ts2; in mmc_test_profile_trim_perf() local
1757 ktime_get_ts64(&ts1); in mmc_test_profile_trim_perf()
1765 ktime_get_ts64(&ts1); in mmc_test_profile_trim_perf()
1778 struct timespec64 ts1, ts2; in mmc_test_seq_read_perf() local
1783 ktime_get_ts64(&ts1); in mmc_test_seq_read_perf()
1825 ktime_get_ts64(&ts1); in mmc_test_seq_write_perf()
1881 ktime_get_ts64(&ts1); in mmc_test_profile_seq_trim_perf()
1920 ktime_get_ts64(&ts1); in mmc_test_rnd_perf()
[all …]
/linux/tools/testing/selftests/mm/
H A Dmigration.c67 struct timespec ts1, ts2; in migrate() local
69 if (clock_gettime(CLOCK_MONOTONIC, &ts1)) in migrate()
76 if (ts2.tv_sec - ts1.tv_sec >= RUNTIME) in migrate()
/linux/tools/testing/selftests/kvm/lib/
H A Dtest_util.c95 struct timespec timespec_add(struct timespec ts1, struct timespec ts2) in timespec_add() argument
97 int64_t ns1 = timespec_to_ns(ts1); in timespec_add()
102 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2) in timespec_sub() argument
104 int64_t ns1 = timespec_to_ns(ts1); in timespec_sub()
/linux/kernel/
H A Dsmp.c215 static bool csd_lock_wait_toolong(call_single_data_t *csd, u64 ts0, u64 *ts1, int *bug_id) in csd_lock_wait_toolong() argument
236 ts_delta = ts2 - *ts1; in csd_lock_wait_toolong()
278 *ts1 = ts2; in csd_lock_wait_toolong()
293 u64 ts0, ts1; in __csd_lock_wait() local
295 ts1 = ts0 = sched_clock(); in __csd_lock_wait()
297 if (csd_lock_wait_toolong(csd, ts0, &ts1, &bug_id)) in __csd_lock_wait()
/linux/tools/testing/selftests/kvm/include/
H A Dtest_util.h85 struct timespec timespec_add(struct timespec ts1, struct timespec ts2);
86 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2);
/linux/fs/ext4/
H A Dioctl.c315 struct timespec64 ts1, ts2; in swap_inode_data() local
322 ts1 = inode_get_atime(inode1); in swap_inode_data()
325 inode_set_atime_to_ts(inode2, ts1); in swap_inode_data()
327 ts1 = inode_get_mtime(inode1); in swap_inode_data()
330 inode_set_mtime_to_ts(inode2, ts1); in swap_inode_data()
/linux/drivers/ptp/
H A Dptp_idt82p33.c744 struct timespec64 ts1 = {0, 0}; in idt82p33_measure_settime_gettime_gap_overhead() local
750 err = _idt82p33_settime(channel, &ts1); 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()
H A Dptp_ocp.c340 struct ptp_ocp_ext_src *ts1; member
511 OCP_EXT_RESOURCE(ts1),
764 OCP_EXT_RESOURCE(ts1),
879 OCP_EXT_RESOURCE(ts1),
1380 ext = bp->ts1; in ptp_ocp_enable()
4019 if (bp->ts1) { in ptp_ocp_summary_show()
4020 ts_reg = bp->ts1->mem; in ptp_ocp_summary_show()
4463 if (bp->ts1) in ptp_ocp_detach()
4464 ptp_ocp_unregister_ext(bp->ts1); in ptp_ocp_detach()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dcmd.c1039 ent->ts1 = ktime_get_ns(); in cmd_work_handler()
1254 ds = ent->ts2 - ent->ts1; in mlx5_cmd_invoke()
1727 ds = ent->ts2 - ent->ts1; in mlx5_cmd_comp_handler()
/linux/include/linux/mlx5/
H A Ddriver.h874 u64 ts1; member

12