/linux-6.1.9/include/linux/ |
D | time64.h | 14 time64_t tv_sec; /* seconds */ member 49 return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec); in timespec64_equal() 59 if (lhs->tv_sec < rhs->tv_sec) in timespec64_compare() 61 if (lhs->tv_sec > rhs->tv_sec) in timespec64_compare() 72 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add() 84 set_normalized_timespec64(&ts_delta, lhs.tv_sec - rhs.tv_sec, in timespec64_sub() 95 if (ts->tv_sec < 0) in timespec64_valid() 108 if ((unsigned long long)ts->tv_sec >= KTIME_SEC_MAX) in timespec64_valid_strict() 118 if ((unsigned long long)ts->tv_sec >= TIME_SETTOD_SEC_MAX) in timespec64_valid_settod() 133 if (ts->tv_sec >= KTIME_SEC_MAX) in timespec64_to_ns() [all …]
|
/linux-6.1.9/tools/testing/selftests/timens/ |
D | exec.c | 28 if (sscanf(argv[1], "%ld", &now.tv_sec) != 1) in main() 33 if (abs(tst.tv_sec - now.tv_sec) > 5) in main() 34 return pr_fail("%ld %ld\n", now.tv_sec, tst.tv_sec); in main() 53 if (abs(tst.tv_sec - now.tv_sec) > 5) in main() 55 now.tv_sec, tst.tv_sec); in main() 73 if (abs(tst.tv_sec - now.tv_sec - OFFSET) > 5) in main() 75 now.tv_sec + OFFSET, tst.tv_sec); in main() 79 snprintf(now_str, sizeof(now_str), "%ld", now.tv_sec + OFFSET); in main()
|
D | timens.c | 111 child_ts_new.tv_sec = parent_ts_old.tv_sec + offset; in test_gettime() 119 if (difftime(cur_ts.tv_sec, child_ts_new.tv_sec) < precision) { in test_gettime() 122 clocks[clock_index].name, entry, parent_ts_old.tv_sec, in test_gettime() 123 child_ts_new.tv_sec, cur_ts.tv_sec); in test_gettime() 133 if (difftime(cur_ts.tv_sec, parent_ts_old.tv_sec) > DAY_IN_SEC) { in test_gettime() 136 clocks[clock_index].name, entry, parent_ts_old.tv_sec, in test_gettime() 137 child_ts_new.tv_sec, cur_ts.tv_sec); in test_gettime()
|
D | timer.c | 32 new_value.it_value.tv_sec = 3600; in run_test() 34 new_value.it_interval.tv_sec = 1; in run_test() 38 new_value.it_value.tv_sec += now.tv_sec; in run_test() 58 elapsed = new_value.it_value.tv_sec; in run_test() 101 mtime_now.tv_sec += 70 * 24 * 3600; in main() 102 btime_now.tv_sec += 9 * 24 * 3600; in main()
|
D | timerfd.c | 40 new_value.it_value.tv_sec = 3600; in run_test() 42 new_value.it_interval.tv_sec = 1; in run_test() 46 new_value.it_value.tv_sec += now.tv_sec; in run_test() 63 elapsed = new_value.it_value.tv_sec; in run_test() 108 mtime_now.tv_sec += 70 * 24 * 3600; in main() 109 btime_now.tv_sec += 9 * 24 * 3600; in main()
|
/linux-6.1.9/fs/ext4/ |
D | inode-test.c | 89 .expected = {.tv_sec = -0x80000000LL, .tv_nsec = 0L}, 97 .expected = {.tv_sec = -1LL, .tv_nsec = 0L}, 113 .expected = {.tv_sec = 0x7fffffffLL, .tv_nsec = 0L}, 121 .expected = {.tv_sec = 0x80000000LL, .tv_nsec = 0L}, 129 .expected = {.tv_sec = 0xffffffffLL, .tv_nsec = 0L}, 137 .expected = {.tv_sec = 0x100000000LL, .tv_nsec = 0L}, 145 .expected = {.tv_sec = 0x17fffffffLL, .tv_nsec = 0L}, 153 .expected = {.tv_sec = 0x180000000LL, .tv_nsec = 0L}, 161 .expected = {.tv_sec = 0x1ffffffffLL, .tv_nsec = 0L}, 169 .expected = {.tv_sec = 0x200000000LL, .tv_nsec = 0L}, [all …]
|
/linux-6.1.9/tools/testing/selftests/timers/ |
D | leap-a-day.c | 62 if (a.tv_sec < b.tv_sec) in in_order() 64 if (a.tv_sec > b.tv_sec) in in_order() 76 ts.tv_sec++; in timespec_add() 138 if (tx.time.tv_sec < next_leap) { in sigalarm() 142 tx.time.tv_sec, in sigalarm() 151 tx.time.tv_sec, in sigalarm() 246 next_leap = ts.tv_sec; in main() 252 tv.tv_sec = next_leap - 10; in main() 255 printf("Setting time to %s", ctime(&tv.tv_sec)); in main() 300 its1.it_value.tv_sec = next_leap; in main() [all …]
|
D | inconsistency-check.c | 83 if ((unsigned long)a.tv_sec < (unsigned long)b.tv_sec) in in_order() 85 if ((unsigned long)a.tv_sec > (unsigned long)b.tv_sec) in in_order() 103 now = then = list[0].tv_sec; in consistency_test() 129 ksft_print_msg("%lu:%lu\n", list[i].tv_sec, in consistency_test() 134 delta = list[inconsistent].tv_sec * NSEC_PER_SEC; in consistency_test() 136 delta -= list[inconsistent+1].tv_sec * NSEC_PER_SEC; in consistency_test() 145 now = list[0].tv_sec; in consistency_test()
|
D | freq-step.c | 45 return ts1->tv_sec - ts2->tv_sec + (ts1->tv_nsec - ts2->tv_nsec) / 1e9; in diff_timespec() 59 ts1.tv_sec -= mono_raw_base; in get_sample() 60 ts2.tv_sec -= mono_base; in get_sample() 61 ts3.tv_sec -= mono_raw_base; in get_sample() 72 sample->time = ts1.tv_sec + ts1.tv_nsec / 1e9; in get_sample() 85 txc.time.tv_sec = 0; in reset_ntp_error() 213 mono_raw_base = ts.tv_sec; in init_test() 220 mono_base = ts.tv_sec; in init_test() 233 srand(ts.tv_sec ^ ts.tv_nsec); in init_test()
|
D | nanosleep.c | 82 if (a.tv_sec < b.tv_sec) in in_order() 84 if (a.tv_sec > b.tv_sec) in in_order() 96 ts.tv_sec++; in timespec_add() 119 rel.tv_sec = 0; in nanosleep_test()
|
/linux-6.1.9/tools/testing/selftests/vDSO/ |
D | vdso_test_correctness.c | 41 long long tv_sec; member 219 if (a->tv_sec != b->tv_sec) in ts_leq() 220 return a->tv_sec < b->tv_sec; in ts_leq() 228 if (a->tv_sec != b->tv_sec) in ts64_leq() 229 return a->tv_sec < b->tv_sec; in ts64_leq() 236 if (a->tv_sec != b->tv_sec) in tv_leq() 237 return a->tv_sec < b->tv_sec; in tv_leq() 290 (unsigned long long)start.tv_sec, start.tv_nsec, in test_one_clock_gettime() 291 (unsigned long long)vdso.tv_sec, vdso.tv_nsec, in test_one_clock_gettime() 292 (unsigned long long)end.tv_sec, end.tv_nsec); in test_one_clock_gettime() [all …]
|
/linux-6.1.9/kernel/time/ |
D | time.c | 86 if (get_user(tv.tv_sec, tptr)) in SYSCALL_DEFINE1() 124 if (get_user(tv.tv_sec, tptr)) in SYSCALL_DEFINE1() 147 if (put_user(ts.tv_sec, &tv->tv_sec) || in SYSCALL_DEFINE2() 206 if (get_user(new_ts.tv_sec, &tv->tv_sec) || in SYSCALL_DEFINE2() 231 if (put_user(ts.tv_sec, &tv->tv_sec) || in COMPAT_SYSCALL_DEFINE2() 250 if (get_user(new_ts.tv_sec, &tv->tv_sec) || in COMPAT_SYSCALL_DEFINE2() 303 txc->time.tv_sec = tx32.time.tv_sec; in get_old_timex32() 332 tx32.time.tv_sec = txc->time.tv_sec; in put_old_timex32() 457 tv.tv_sec = ts.tv_sec; in ns_to_kernel_old_timeval() 495 ts->tv_sec = sec; in set_normalized_timespec64() [all …]
|
D | itimer.c | 105 v.it_interval.tv_sec = i->it_interval.tv_sec; in put_itimerval() 107 v.it_value.tv_sec = i->it_value.tv_sec; in put_itimerval() 134 v32.it_interval.tv_sec = i->it_interval.tv_sec; in put_old_itimerval32() 136 v32.it_value.tv_sec = i->it_value.tv_sec; in put_old_itimerval32() 204 (((t)->tv_sec >= 0) && (((unsigned long) (t)->tv_usec) < USEC_PER_SEC)) 285 it_new.it_value.tv_sec = seconds; in alarm_setitimer() 287 it_new.it_interval.tv_sec = it_new.it_interval.tv_nsec = 0; in alarm_setitimer() 295 if ((!it_old.it_value.tv_sec && it_old.it_value.tv_nsec) || in alarm_setitimer() 297 it_old.it_value.tv_sec++; in alarm_setitimer() 299 return it_old.it_value.tv_sec; in alarm_setitimer() [all …]
|
/linux-6.1.9/fs/fat/ |
D | fat_test.c | 35 .ts = {.tv_sec = 315532800LL, .tv_nsec = 0L}, 43 .ts = {.tv_sec = 4354819198LL, .tv_nsec = 0L}, 51 .ts = {.tv_sec = 315493200LL, .tv_nsec = 0L}, 59 .ts = {.tv_sec = 4354858798LL, .tv_nsec = 0L}, 67 .ts = {.tv_sec = 825552000LL, .tv_nsec = 0L}, 75 .ts = {.tv_sec = 951782400LL, .tv_nsec = 0L}, 83 .ts = {.tv_sec = 4107542400LL, .tv_nsec = 0L}, 91 .ts = {.tv_sec = 1078014600LL, .tv_nsec = 0L}, 99 .ts = {.tv_sec = 1078097400LL, .tv_nsec = 0L}, 107 .ts = {.tv_sec = 946684799LL, .tv_nsec = 0L}, [all …]
|
/linux-6.1.9/fs/coda/ |
D | coda_linux.c | 72 .tv_sec = ts.tv_sec, in coda_to_timespec64() 82 .tv_sec = ts64.tv_sec, in timespec64_to_coda() 125 if (attr->va_atime.tv_sec != -1) in coda_vattr_to_iattr() 127 if (attr->va_mtime.tv_sec != -1) in coda_vattr_to_iattr() 129 if (attr->va_ctime.tv_sec != -1) in coda_vattr_to_iattr() 151 vattr->va_atime.tv_sec = (int64_t) -1; in coda_iattr_to_vattr() 153 vattr->va_mtime.tv_sec = (int64_t) -1; in coda_iattr_to_vattr() 155 vattr->va_ctime.tv_sec = (int64_t) -1; in coda_iattr_to_vattr()
|
/linux-6.1.9/tools/testing/selftests/mqueue/ |
D | mq_perf_tests.c | 358 nsec = ((middle.tv_sec - start.tv_sec) * 1000000000) + \ 362 send_total.tv_sec++; \ 365 nsec = ((end.tv_sec - middle.tv_sec) * 1000000000) + \ 369 recv_total.tv_sec++; \ 457 send_total.tv_sec = 0; in perf_test_thread() 459 recv_total.tv_sec = 0; in perf_test_thread() 464 send_total.tv_sec, send_total.tv_nsec); in perf_test_thread() 465 nsec = ((unsigned long long)send_total.tv_sec * 1000000000 + in perf_test_thread() 469 recv_total.tv_sec, recv_total.tv_nsec); in perf_test_thread() 470 nsec = ((unsigned long long)recv_total.tv_sec * 1000000000 + in perf_test_thread() [all …]
|
/linux-6.1.9/sound/core/seq/ |
D | seq_timer.h | 75 if (a->tv_sec > b->tv_sec) in snd_seq_compare_real_time() 77 if ((a->tv_sec == b->tv_sec) && (a->tv_nsec >= b->tv_nsec)) in snd_seq_compare_real_time() 88 tm->tv_sec++; in snd_seq_sanity_real_time() 96 tm->tv_sec += inc->tv_sec; in snd_seq_inc_real_time()
|
/linux-6.1.9/tools/testing/radix-tree/ |
D | benchmark.c | 38 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_iter() 66 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_insert() 87 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_tagging() 108 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_delete()
|
/linux-6.1.9/arch/um/os-Linux/ |
D | time.c | 23 return ((long long) ts->tv_sec * UM_NSEC_PER_SEC) + ts->tv_nsec; in timespec_to_ns() 51 its.it_value.tv_sec = nsecs / UM_NSEC_PER_SEC; in os_timer_set_interval() 54 its.it_interval.tv_sec = nsecs / UM_NSEC_PER_SEC; in os_timer_set_interval() 66 .it_value.tv_sec = nsecs / UM_NSEC_PER_SEC, in os_timer_one_shot() 69 .it_interval.tv_sec = 0, in os_timer_one_shot() 111 if (its.it_value.tv_sec || its.it_value.tv_nsec) in os_idle_sleep()
|
/linux-6.1.9/fs/ |
D | utimes.c | 192 tstimes[0].tv_sec = times[0].tv_sec; in do_futimesat() 194 tstimes[1].tv_sec = times[1].tv_sec; in do_futimesat() 219 if (get_user(tv[0].tv_sec, ×->actime) || in SYSCALL_DEFINE2() 220 get_user(tv[1].tv_sec, ×->modtime)) in SYSCALL_DEFINE2() 241 if (get_user(tv[0].tv_sec, &t->actime) || in SYSCALL_DEFINE2() 242 get_user(tv[1].tv_sec, &t->modtime)) in SYSCALL_DEFINE2() 273 if (get_user(tv[0].tv_sec, &t[0].tv_sec) || in do_compat_futimesat() 275 get_user(tv[1].tv_sec, &t[1].tv_sec) || in do_compat_futimesat()
|
/linux-6.1.9/tools/testing/selftests/kvm/ |
D | dirty_log_perf_test.c | 105 vcpu_idx, current_iteration, ts_diff.tv_sec, in vcpu_worker() 109 vcpu_idx, current_iteration, ts_diff.tv_sec, in vcpu_worker() 125 total.tv_sec, total.tv_nsec, avg.tv_sec, avg.tv_nsec); in vcpu_worker() 263 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test() 270 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test() 290 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test() 298 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test() 307 iteration, ts_diff.tv_sec, ts_diff.tv_nsec); in run_test() 324 ts_diff.tv_sec, ts_diff.tv_nsec); in run_test() 336 p->iterations, get_dirty_log_total.tv_sec, in run_test() [all …]
|
/linux-6.1.9/tools/testing/selftests/net/ |
D | timestamping.c | 147 (long)now.tv_sec, (long)now.tv_usec, in sendpacket() 167 (long)now.tv_sec, (long)now.tv_usec, in printpacket() 184 (long)stamp->tv_sec, in printpacket() 192 (long)stamp->tv_sec, in printpacket() 201 (long)stamp->tv_sec, in printpacket() 207 (long)stamp->tv_sec, in printpacket() 264 (long)tv.tv_sec, in printpacket() 272 (long)ts.tv_sec, in printpacket() 498 next.tv_sec = (next.tv_sec + 1) / 5 * 5; in main() 508 delta_us = (long)(next.tv_sec - now.tv_sec) * 1000000 + in main() [all …]
|
/linux-6.1.9/drivers/pps/generators/ |
D | pps_gen_parport.c | 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() 91 } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); in hrtimer_event() 101 } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); in hrtimer_event() 131 ktime_set(expire_time.tv_sec + 1, in hrtimer_event() 171 return ktime_set(ts.tv_sec + in next_intr_time()
|
/linux-6.1.9/drivers/input/misc/ |
D | hp_sdc_rtc.c | 195 res->tv_sec = (tenms / 100) + (time64_t)days * 86400; in hp_sdc_rtc_read_rt() 212 res->tv_sec = (time64_t)(tenms / 100); in hp_sdc_rtc_read_fhs() 229 res->tv_sec = (time64_t)(tenms / 100); in hp_sdc_rtc_read_mt() 246 res->tv_sec = (time64_t)(tenms / 100); in hp_sdc_rtc_read_dt() 263 res->tv_sec = (time64_t)(tenms / 100); in hp_sdc_rtc_read_ct() 291 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 298 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 305 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 312 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 319 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show()
|
/linux-6.1.9/include/uapi/linux/ |
D | time_types.h | 8 __kernel_time64_t tv_sec; /* seconds */ member 26 __kernel_long_t tv_sec; member 32 __kernel_old_time_t tv_sec; /* seconds */ member 42 __s64 tv_sec; member
|