Home
last modified time | relevance | path

Searched refs:tv_nsec (Results 1 – 25 of 359) sorted by relevance

12345678910>>...15

/Linux-v5.4/fs/
Dutimes.c30 if (times && times[0].tv_nsec == UTIME_NOW && in utimes_common()
31 times[1].tv_nsec == UTIME_NOW) in utimes_common()
36 if (times[0].tv_nsec == UTIME_OMIT) in utimes_common()
38 else if (times[0].tv_nsec != UTIME_NOW) { in utimes_common()
43 if (times[1].tv_nsec == UTIME_OMIT) in utimes_common()
45 else if (times[1].tv_nsec != UTIME_NOW) { in utimes_common()
93 if (times && (!nsec_valid(times[0].tv_nsec) || in do_utimes()
94 !nsec_valid(times[1].tv_nsec))) { in do_utimes()
148 if (tstimes[0].tv_nsec == UTIME_OMIT && in SYSCALL_DEFINE4()
149 tstimes[1].tv_nsec == UTIME_OMIT) in SYSCALL_DEFINE4()
[all …]
Dstat.c328 tmp.st_atime_nsec = stat->atime.tv_nsec; in cp_new_stat()
329 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat()
330 tmp.st_ctime_nsec = stat->ctime.tv_nsec; in cp_new_stat()
467 tmp.st_atime_nsec = stat->atime.tv_nsec; in cp_new_stat64()
469 tmp.st_mtime_nsec = stat->mtime.tv_nsec; in cp_new_stat64()
471 tmp.st_ctime_nsec = stat->ctime.tv_nsec; in cp_new_stat64()
545 tmp.stx_atime.tv_nsec = stat->atime.tv_nsec; in cp_statx()
547 tmp.stx_btime.tv_nsec = stat->btime.tv_nsec; in cp_statx()
549 tmp.stx_ctime.tv_nsec = stat->ctime.tv_nsec; in cp_statx()
551 tmp.stx_mtime.tv_nsec = stat->mtime.tv_nsec; in cp_statx()
[all …]
/Linux-v5.4/include/linux/
Dtime64.h14 long tv_nsec; /* nanoseconds */ member
52 return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec); in timespec64_equal()
66 return lhs->tv_nsec - rhs->tv_nsec; in timespec64_compare()
76 lhs.tv_nsec + rhs.tv_nsec); in timespec64_add()
88 lhs.tv_nsec - rhs.tv_nsec); in timespec64_sub()
101 if ((unsigned long)ts->tv_nsec >= NSEC_PER_SEC) in timespec64_valid()
135 return ((s64) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; in timespec64_to_ns()
156 a->tv_sec += __iter_div_u64_rem(a->tv_nsec + ns, NSEC_PER_SEC, &ns); in timespec64_add_ns()
157 a->tv_nsec = ns; in timespec64_add_ns()
Dtime32.h21 s32 tv_nsec; member
95 ret.tv_nsec = ts64.tv_nsec; in timespec64_to_timespec()
104 ret.tv_nsec = ts.tv_nsec; in timespec_to_timespec64()
112 return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec); in timespec_equal()
126 return lhs->tv_nsec - rhs->tv_nsec; in timespec_compare()
138 if ((unsigned long)ts->tv_nsec >= NSEC_PER_SEC) in timespec_valid()
152 return ((s64) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; in timespec_to_ns()
173 a->tv_sec += __iter_div_u64_rem(a->tv_nsec + ns, NSEC_PER_SEC, &ns); in timespec_add_ns()
174 a->tv_nsec = ns; in timespec_add_ns()
/Linux-v5.4/tools/testing/selftests/mqueue/
Dmq_perf_tests.c356 (middle.tv_nsec - start.tv_nsec); \
357 send_total.tv_nsec += nsec; \
358 if (send_total.tv_nsec >= 1000000000) { \
360 send_total.tv_nsec -= 1000000000; \
363 (end.tv_nsec - middle.tv_nsec); \
364 recv_total.tv_nsec += nsec; \
365 if (recv_total.tv_nsec >= 1000000000) { \
367 recv_total.tv_nsec -= 1000000000; \
446 printf("\t\tClock resolution:\t\t%lu nsec%s\n", res.tv_nsec, in perf_test_thread()
447 res.tv_nsec > 1 ? "s" : ""); in perf_test_thread()
[all …]
/Linux-v5.4/arch/nds32/kernel/vdso/
Dgettimeofday.c75 ts->tv_nsec = vdata->xtime_coarse_nsec; in do_realtime_coarse()
91 ts->tv_nsec = vdata->xtime_coarse_nsec; in do_monotonic_coarse()
94 tomono.tv_nsec = vdata->wtm_clock_nsec; in do_monotonic_coarse()
99 timespec_add_ns(ts, tomono.tv_nsec); in do_monotonic_coarse()
131 ts->tv_nsec = ns; in do_realtime()
151 tomono.tv_nsec = vdata->wtm_clock_nsec; in do_monotonic()
156 ts->tv_nsec = 0; in do_monotonic()
157 timespec_add_ns(ts, nsecs + tomono.tv_nsec); in do_monotonic()
220 res->tv_nsec = vdata->hrtimer_res; in __vdso_clock_getres()
225 res->tv_nsec = CLOCK_COARSE_RES; in __vdso_clock_getres()
[all …]
/Linux-v5.4/arch/um/os-Linux/
Dtime.c29 return ((long long) ts->tv_sec * UM_NSEC_PER_SEC) + ts->tv_nsec; in timespec_to_ns()
58 its.it_value.tv_nsec = nsecs % UM_NSEC_PER_SEC; in os_timer_set_interval()
61 its.it_interval.tv_nsec = nsecs % UM_NSEC_PER_SEC; in os_timer_set_interval()
73 .it_value.tv_nsec = nsecs % UM_NSEC_PER_SEC, in os_timer_one_shot()
76 .it_interval.tv_nsec = 0, // we cheat here in os_timer_one_shot()
110 .tv_nsec = nsecs % UM_NSEC_PER_SEC in os_idle_sleep()
/Linux-v5.4/sound/core/seq/
Dseq_timer.h77 if ((a->tv_sec == b->tv_sec) && (a->tv_nsec >= b->tv_nsec)) in snd_seq_compare_real_time()
85 while (tm->tv_nsec >= 1000000000) { in snd_seq_sanity_real_time()
87 tm->tv_nsec -= 1000000000; in snd_seq_sanity_real_time()
97 tm->tv_nsec += inc->tv_nsec; in snd_seq_inc_real_time()
103 tm->tv_nsec += nsec; in snd_seq_inc_time_nsec()
/Linux-v5.4/kernel/time/
Dtime.c89 tv.tv_nsec = 0; in SYSCALL_DEFINE1()
127 tv.tv_nsec = 0; in SYSCALL_DEFINE1()
148 put_user(ts.tv_nsec / 1000, &tv->tv_usec)) in SYSCALL_DEFINE2()
214 new_ts.tv_nsec = user_tv.tv_usec * NSEC_PER_USEC; in SYSCALL_DEFINE2()
233 put_user(ts.tv_nsec / 1000, &tv->tv_usec)) in COMPAT_SYSCALL_DEFINE2()
259 new_ts.tv_nsec = user_tv.tv_usec * NSEC_PER_USEC; in COMPAT_SYSCALL_DEFINE2()
473 ts.tv_nsec = rem; in ns_to_timespec()
491 tv.tv_usec = (suseconds_t) ts.tv_nsec / 1000; in ns_to_timeval()
503 tv.tv_usec = (suseconds_t)ts.tv_nsec / 1000; in ns_to_kernel_old_timeval()
541 ts->tv_nsec = nsec; in set_normalized_timespec64()
[all …]
/Linux-v5.4/tools/testing/radix-tree/
Dbenchmark.c39 (finish.tv_nsec - start.tv_nsec); in benchmark_iter()
67 (finish.tv_nsec - start.tv_nsec); in benchmark_insert()
88 (finish.tv_nsec - start.tv_nsec); in benchmark_tagging()
109 (finish.tv_nsec - start.tv_nsec); in benchmark_delete()
/Linux-v5.4/tools/testing/selftests/timers/
Dnanosleep.c86 if (a.tv_nsec > b.tv_nsec) in in_order()
93 ts.tv_nsec += ns; in timespec_add()
94 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add()
95 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
120 rel.tv_nsec = 0; in nanosleep_test()
Dleap-a-day.c66 if (a.tv_nsec > b.tv_nsec) in in_order()
73 ts.tv_nsec += ns; in timespec_add()
74 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add()
75 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
301 its1.it_value.tv_nsec = 0; in main()
303 its1.it_interval.tv_nsec = 0; in main()
308 ts.tv_nsec = 0; in main()
341 tai.tv_nsec, in main()
356 ts.tv_nsec = NSEC_PER_SEC / 2; in main()
Dmqueue-lat.c42 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub()
44 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub()
50 ts.tv_nsec += ns; in timespec_add()
51 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add()
52 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
Dnsleep-lat.c81 ts.tv_nsec += ns; in timespec_add()
82 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add()
83 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
92 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub()
94 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub()
105 target.tv_nsec = ns%NSEC_PER_SEC; in nanosleep_lat_test()
Dalarmtimer-suspend.c89 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub()
91 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub()
109 ts.tv_nsec, delta_ns); in sigalarm()
152 start_time.tv_sec, start_time.tv_nsec); in main()
157 its1.it_interval.tv_nsec = 0; in main()
Dinconsistency-check.c87 if (a.tv_nsec > b.tv_nsec) in in_order()
130 list[i].tv_nsec); in consistency_test()
135 delta += list[inconsistent].tv_nsec; in consistency_test()
137 delta -= list[inconsistent+1].tv_nsec; in consistency_test()
/Linux-v5.4/arch/arm/vdso/
Dvgettimeofday.c76 ts->tv_nsec = vdata->xtime_coarse_nsec; in do_realtime_coarse()
93 ts->tv_nsec = vdata->xtime_coarse_nsec; in do_monotonic_coarse()
96 tomono.tv_nsec = vdata->wtm_clock_nsec; in do_monotonic_coarse()
101 timespec_add_ns(ts, tomono.tv_nsec); in do_monotonic_coarse()
141 ts->tv_nsec = 0; in do_realtime()
163 tomono.tv_nsec = vdata->wtm_clock_nsec; in do_monotonic()
168 ts->tv_nsec = 0; in do_monotonic()
169 timespec_add_ns(ts, nsecs + tomono.tv_nsec); in do_monotonic()
249 tv->tv_usec = ts.tv_nsec / 1000; in __vdso_gettimeofday()
/Linux-v5.4/fs/udf/
Dudftime.c63 dest->tv_nsec = 1000 * (src.centiseconds * 10000 + in udf_disk_stamp_to_time()
69 dest->tv_nsec %= NSEC_PER_SEC; in udf_disk_stamp_to_time()
91 dest->centiseconds = ts.tv_nsec / 10000000; in udf_time_to_disk_stamp()
92 dest->hundredsOfMicroseconds = (ts.tv_nsec / 1000 - in udf_time_to_disk_stamp()
94 dest->microseconds = (ts.tv_nsec / 1000 - dest->centiseconds * 10000 - in udf_time_to_disk_stamp()
/Linux-v5.4/lib/vdso/
Dgettimeofday.c66 ts->tv_nsec = ns; in do_hres()
80 ts->tv_nsec = vdso_ts->nsec; in do_coarse()
138 res->tv_nsec = ts.tv_nsec; in __cvdso_clock_gettime32()
155 tv->tv_usec = (u32)ts.tv_nsec / NSEC_PER_USEC; in __cvdso_gettimeofday()
219 res->tv_nsec = ns; in __cvdso_clock_getres_common()
251 res->tv_nsec = ts.tv_nsec; in __cvdso_clock_getres_time32()
/Linux-v5.4/fs/coda/
Dcoda_linux.c73 .tv_nsec = ts.tv_nsec, in coda_to_timespec64()
83 .tv_nsec = ts64.tv_nsec, in timespec64_to_coda()
153 vattr->va_atime.tv_nsec = (long) -1; in coda_iattr_to_vattr()
155 vattr->va_mtime.tv_nsec = (long) -1; in coda_iattr_to_vattr()
157 vattr->va_ctime.tv_nsec = (long) -1; in coda_iattr_to_vattr()
/Linux-v5.4/drivers/net/wireless/intersil/prism54/
Disl_38xx.c115 (s64)current_ts64.tv_sec, current_ts64.tv_nsec); in isl38xx_trigger_device()
118 (s64)current_ts64.tv_sec, current_ts64.tv_nsec, in isl38xx_trigger_device()
128 (s64)current_ts64.tv_sec, current_ts64.tv_nsec); in isl38xx_trigger_device()
142 (s64)current_ts64.tv_sec, current_ts64.tv_nsec, in isl38xx_trigger_device()
147 (s64)current_ts64.tv_sec, current_ts64.tv_nsec, in isl38xx_trigger_device()
162 (s64)current_ts64.tv_sec, current_ts64.tv_nsec, reg); in isl38xx_trigger_device()
/Linux-v5.4/tools/testing/selftests/seccomp/
Dseccomp_benchmark.c35 i += finish.tv_nsec - start.tv_nsec; in timing()
38 finish.tv_sec, finish.tv_nsec, in timing()
39 start.tv_sec, start.tv_nsec, in timing()
/Linux-v5.4/fs/proc/
Duptime.c24 idle.tv_nsec = rem; in uptime_proc_show()
27 (uptime.tv_nsec / (NSEC_PER_SEC / 100)), in uptime_proc_show()
29 (idle.tv_nsec / (NSEC_PER_SEC / 100))); in uptime_proc_show()
/Linux-v5.4/tools/power/cpupower/utils/idle_monitor/
Dcpupower-monitor.c54 if ((end.tv_nsec - start.tv_nsec) < 0) { in timespec_diff_us()
56 temp.tv_nsec = 1000000000 + end.tv_nsec - start.tv_nsec; in timespec_diff_us()
59 temp.tv_nsec = end.tv_nsec - start.tv_nsec; in timespec_diff_us()
61 return (temp.tv_sec * 1000000) + (temp.tv_nsec / 1000); in timespec_diff_us()
/Linux-v5.4/arch/sparc/vdso/
Dvclock_gettime.c161 ts->tv_nsec = ns; in do_realtime()
181 ts->tv_nsec = ns; in do_realtime_stick()
201 ts->tv_nsec = ns; in do_monotonic()
221 ts->tv_nsec = ns; in do_monotonic_stick()
234 ts->tv_nsec = vvar->wall_time_coarse_nsec; in do_realtime_coarse()
247 ts->tv_nsec = vvar->monotonic_time_coarse_nsec; in do_monotonic_coarse()
326 tstv->tv.tv_usec = tstv->ts.tv_nsec; in __vdso_gettimeofday()
362 tstv->tv.tv_usec = tstv->ts.tv_nsec; in __vdso_gettimeofday_stick()

12345678910>>...15