/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_time_tai.c | 12 __u64 ts1, ts2; local 16 ts2 = bpf_ktime_get_tai_ns(); 20 skb->cb[0] = ts2 & 0xffffffff; 21 skb->cb[1] = ts2 >> 32;
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | time_tai.c | 37 __u64 ts1, ts2, now; local 52 ts2 = skb.cb[0] | ((__u64)skb.cb[1] << 32); 56 ASSERT_NEQ(ts2, 0, "tai_ts2"); 59 ASSERT_GE(ts2, ts1, "tai_forward"); 67 ASSERT_TRUE(now > ts2, "tai_future_ts2"); 71 ASSERT_TRUE(now - ts2 < TAI_THRESHOLD, "tai_range_ts2");
|
H A D | fexit_sleep.c | 15 struct timespec ts2 = { .tv_sec = 10 }; local 19 (void)syscall(__NR_nanosleep, &ts2, NULL);
|
/linux-master/drivers/pps/generators/ |
H A D | pps_gen_parport.c | 57 struct timespec64 expire_time, ts1, ts2, ts3, dts; local 90 ktime_get_real_ts64(&ts2); 91 } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); 100 ktime_get_real_ts64(&ts2); 101 } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); 111 dts = timespec64_sub(ts3, ts2);
|
/linux-master/tools/testing/selftests/timers/ |
H A D | freq-step.c | 43 static double diff_timespec(struct timespec *ts1, struct timespec *ts2) argument 45 return ts1->tv_sec - ts2->tv_sec + (ts1->tv_nsec - ts2->tv_nsec) / 1e9; 51 struct timespec ts1, ts2, ts3; local 56 clock_gettime(CLOCK_MONOTONIC, &ts2); 60 ts2.tv_sec -= mono_base; 70 sample->offset = diff_timespec(&ts2, &ts1);
|
/linux-master/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_clock.c | 43 struct timespec64 ts1, ts2, ts3, ts4; local 57 ktime_get_real_ts64(&ts2); 58 delta_us = timespec_to_us(&ts2) - timespec_to_us(&ts1);
|
/linux-master/drivers/media/pci/cx23885/ |
H A D | cx23885-cards.c | 2135 struct cx23885_tsport *ts2 = &dev->ts2; local 2202 ts2->gen_ctrl_val = 0x10e; 2203 ts2->ts_clk_en_val = 0x1; /* Enable TS_CLK */ 2204 ts2->src_sel_val = CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO; 2209 ts2->gen_ctrl_val = 0xc; /* Serial bus + punctured clock */ 2210 ts2->ts_clk_en_val = 0x1; /* Enable TS_CLK */ 2211 ts2->src_sel_val = CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO; 2232 ts2->gen_ctrl_val = 0xc; /* Serial bus + punctured clock */ 2233 ts2 [all...] |
H A D | cx23885-core.c | 981 cx23885_init_tsport(dev, &dev->ts2, 2); 1071 dev->ts2.num_frontends = 1073 if (cx23885_dvb_register(&dev->ts2) < 0) { 1119 cx23885_dvb_unregister(&dev->ts2); 1784 struct cx23885_tsport *ts2 = &dev->ts2; local 1819 ts2_count = cx_read(ts2->reg_gpcnt); 1913 handled += cx23885_irq_ts(ts2, ts2_status);
|
H A D | cimax2.c | 389 port = &dev->ts2;
|
H A D | cx23885.h | 382 struct cx23885_tsport ts1, ts2; member in struct:cx23885_dev
|
H A D | cx23885-video.c | 1038 vfe = vb2_dvb_get_frontend(&dev->ts2.frontends, 1);
|
/linux-master/tools/testing/selftests/kvm/lib/ |
H A D | test_util.c | 97 struct timespec timespec_add(struct timespec ts1, struct timespec ts2) argument 100 int64_t ns2 = timespec_to_ns(ts2); 104 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2) argument 107 int64_t ns2 = timespec_to_ns(ts2);
|
/linux-master/tools/testing/selftests/mm/ |
H A D | migration.c | 67 struct timespec ts1, ts2; local 73 if (clock_gettime(CLOCK_MONOTONIC, &ts2)) 76 if (ts2.tv_sec - ts1.tv_sec >= RUNTIME)
|
/linux-master/drivers/mmc/core/ |
H A D | mmc_test.c | 559 struct timespec64 *ts1, struct timespec64 *ts2) 564 ts = timespec64_sub(*ts2, *ts1); 584 struct timespec64 *ts2) 590 ts = timespec64_sub(*ts2, *ts1); 1442 struct timespec64 ts1, ts2; local 1480 ktime_get_ts64(&ts2); 1483 mmc_test_print_avg_rate(test, sz, count, &ts1, &ts2); 1746 struct timespec64 ts1, ts2; local 1761 ktime_get_ts64(&ts2); 1762 mmc_test_print_rate(test, sz, &ts1, &ts2); 558 mmc_test_print_rate(struct mmc_test_card *test, uint64_t bytes, struct timespec64 *ts1, struct timespec64 *ts2) argument 582 mmc_test_print_avg_rate(struct mmc_test_card *test, uint64_t bytes, unsigned int count, struct timespec64 *ts1, struct timespec64 *ts2) argument 1778 struct timespec64 ts1, ts2; local 1817 struct timespec64 ts1, ts2; local 1863 struct timespec64 ts1, ts2; local 1911 struct timespec64 ts1, ts2, ts; local 2010 struct timespec64 ts1, ts2; local [all...] |
/linux-master/tools/testing/selftests/kvm/include/ |
H A D | test_util.h | 85 struct timespec timespec_add(struct timespec ts1, struct timespec ts2); 86 struct timespec timespec_sub(struct timespec ts1, struct timespec ts2);
|
/linux-master/kernel/ |
H A D | smp.c | 220 u64 ts2, ts_delta; local 234 ts2 = sched_clock(); 236 ts_delta = ts2 - *ts1; 250 ts_delta = ts2 - ts0; 278 *ts1 = ts2;
|
/linux-master/fs/ext4/ |
H A D | ioctl.c | 315 struct timespec64 ts1, ts2; local 323 ts2 = inode_get_atime(inode2); 324 inode_set_atime_to_ts(inode1, ts2); 328 ts2 = inode_get_mtime(inode2); 329 inode_set_mtime_to_ts(inode1, ts2);
|
/linux-master/drivers/ptp/ |
H A D | ptp_idt82p33.c | 745 struct timespec64 ts2; local 755 err = _idt82p33_gettime(channel, &ts2); 758 *overhead_ns = timespec64_to_ns(&ts2) - timespec64_to_ns(&ts1);
|
H A D | ptp_ocp.c | 341 struct ptp_ocp_ext_src *ts2; member in struct:ptp_ocp 520 OCP_EXT_RESOURCE(ts2), 773 OCP_EXT_RESOURCE(ts2), 888 OCP_EXT_RESOURCE(ts2), 1383 ext = bp->ts2; 4027 if (bp->ts2) { 4028 ts_reg = bp->ts2->mem; 4465 if (bp->ts2) 4466 ptp_ocp_unregister_ext(bp->ts2);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | cmd.c | 1231 ds = ent->ts2 - ent->ts1; 1683 ent->ts2 = ktime_get_ns(); 1701 ds = ent->ts2 - ent->ts1;
|
/linux-master/drivers/media/usb/cx231xx/ |
H A D | cx231xx.h | 707 struct cx231xx_tsport ts1, ts2; member in struct:cx231xx
|
/linux-master/include/linux/mlx5/ |
H A D | driver.h | 874 u64 ts2; member in struct:mlx5_cmd_work_ent
|