Home
last modified time | relevance | path

Searched refs:timespec (Results 1 – 25 of 176) sorted by relevance

12345678

/Linux-v4.19/include/linux/
Dtime32.h19 static inline struct timespec timespec64_to_timespec(const struct timespec64 ts64) in timespec64_to_timespec()
21 return *(const struct timespec *)&ts64; in timespec64_to_timespec()
24 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64()
30 static inline struct timespec timespec64_to_timespec(const struct timespec64 ts64) in timespec64_to_timespec()
32 struct timespec ret; in timespec64_to_timespec()
39 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64()
49 static inline int timespec_equal(const struct timespec *a, in timespec_equal()
50 const struct timespec *b) in timespec_equal()
60 static inline int timespec_compare(const struct timespec *lhs, const struct timespec *rhs) in timespec_compare()
69 extern void set_normalized_timespec(struct timespec *ts, time_t sec, s64 nsec);
[all …]
Dtimekeeping32.h12 static inline struct timespec current_kernel_time(void) in current_kernel_time()
24 static inline int do_settimeofday(const struct timespec *ts) in do_settimeofday()
32 static inline void getnstimeofday(struct timespec *ts) in getnstimeofday()
40 static inline void ktime_get_ts(struct timespec *ts) in ktime_get_ts()
48 static inline void ktime_get_real_ts(struct timespec *ts) in ktime_get_real_ts()
56 static inline void getrawmonotonic(struct timespec *ts) in getrawmonotonic()
64 static inline struct timespec get_monotonic_coarse(void) in get_monotonic_coarse()
73 static inline void getboottime(struct timespec *ts) in getboottime()
84 static inline void get_monotonic_boottime(struct timespec *ts) in get_monotonic_boottime()
89 static inline void timekeeping_clocktai(struct timespec *ts) in timekeeping_clocktai()
[all …]
/Linux-v4.19/arch/nds32/kernel/vdso/
Dgettimeofday.c51 struct timespec *_ts) in clock_gettime_fallback()
53 register struct timespec *ts asm("$r1") = _ts; in clock_gettime_fallback()
66 static notrace int do_realtime_coarse(struct timespec *ts, in do_realtime_coarse()
81 static notrace int do_monotonic_coarse(struct timespec *ts, in do_monotonic_coarse()
84 struct timespec tomono; in do_monotonic_coarse()
118 static notrace int do_realtime(struct timespec *ts, struct vdso_data *vdata) in do_realtime()
136 static notrace int do_monotonic(struct timespec *ts, struct vdso_data *vdata) in do_monotonic()
138 struct timespec tomono; in do_monotonic()
161 notrace int __vdso_clock_gettime(clockid_t clkid, struct timespec *ts) in __vdso_clock_gettime()
194 struct timespec *_res) in clock_getres_fallback()
[all …]
/Linux-v4.19/tools/testing/selftests/timers/
Draw_skew.c46 unsigned long long ts_to_nsec(struct timespec ts) in ts_to_nsec()
51 struct timespec nsec_to_ts(long long ns) in nsec_to_ts()
53 struct timespec ts; in nsec_to_ts()
60 long long diff_timespec(struct timespec start, struct timespec end) in diff_timespec()
69 void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw) in get_monotonic_and_raw()
71 struct timespec start, mid, end; in get_monotonic_and_raw()
94 struct timespec mon, raw, start, end; in main()
Dadjtick.c44 unsigned long long ts_to_nsec(struct timespec ts) in ts_to_nsec()
49 struct timespec nsec_to_ts(long long ns) in nsec_to_ts()
51 struct timespec ts; in nsec_to_ts()
59 long long diff_timespec(struct timespec start, struct timespec end) in diff_timespec()
69 void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw) in get_monotonic_and_raw()
71 struct timespec start, mid, end; in get_monotonic_and_raw()
98 struct timespec mon_start, raw_start, mon_end, raw_end; in get_ppm_drift()
169 struct timespec raw; in main()
Dmqueue-lat.c40 long long timespec_sub(struct timespec a, struct timespec b) in timespec_sub()
48 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add()
63 struct timespec start, end, now, target; in mqueue_lat_test()
Dnanosleep.c80 static inline int in_order(struct timespec a, struct timespec b) in in_order()
91 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add()
103 struct timespec now, target, rel; in nanosleep_test()
Dleap-a-day.c60 static inline int in_order(struct timespec a, struct timespec b) in in_order()
71 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add()
162 struct timespec now, target; in test_hrtimer_failure()
213 struct timespec ts; in main()
238 struct timespec ts; in main()
331 struct timespec tai; in main()
Dnsleep-lat.c79 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add()
90 long long timespec_sub(struct timespec a, struct timespec b) in timespec_sub()
100 struct timespec start, end, target; in nanosleep_lat_test()
Dalarmtimer-suspend.c54 struct timespec start_time;
87 long long timespec_sub(struct timespec a, struct timespec b) in timespec_sub()
100 struct timespec ts; in sigalarm()
Dthreadtest.c37 struct timespec global_list[LISTSIZE];
41 void checklist(struct timespec *list, int size) in checklist()
44 struct timespec *a, *b; in checklist()
105 struct timespec my_list[LISTSIZE]; in independent_thread()
Dinconsistency-check.c80 static inline int in_order(struct timespec a, struct timespec b) in in_order()
96 struct timespec list[CALLS_PER_LOOP]; in consistency_test()
159 struct timespec ts; in main()
/Linux-v4.19/arch/arm/vdso/
Dvgettimeofday.c63 struct timespec *_ts) in clock_gettime_fallback()
65 register struct timespec *ts asm("r1") = _ts; in clock_gettime_fallback()
79 static notrace int do_realtime_coarse(struct timespec *ts, in do_realtime_coarse()
95 static notrace int do_monotonic_coarse(struct timespec *ts, in do_monotonic_coarse()
98 struct timespec tomono; in do_monotonic_coarse()
136 static notrace int do_realtime(struct timespec *ts, struct vdso_data *vdata) in do_realtime()
158 static notrace int do_monotonic(struct timespec *ts, struct vdso_data *vdata) in do_monotonic()
160 struct timespec tomono; in do_monotonic()
187 static notrace int do_realtime(struct timespec *ts, struct vdso_data *vdata) in do_realtime()
192 static notrace int do_monotonic(struct timespec *ts, struct vdso_data *vdata) in do_monotonic()
[all …]
/Linux-v4.19/arch/sh/kernel/
Dtime.c26 static void null_rtc_get_time(struct timespec *tv) in null_rtc_get_time()
37 void (*rtc_sh_get_time)(struct timespec *) = null_rtc_get_time;
40 void read_persistent_clock(struct timespec *ts) in read_persistent_clock()
46 int update_persistent_clock(struct timespec now) in update_persistent_clock()
54 struct timespec tv; in rtc_generic_get_time()
/Linux-v4.19/arch/x86/entry/vdso/
Dvclock_gettime.c27 extern int __vdso_clock_gettime(clockid_t clock, struct timespec *ts);
43 notrace static long vdso_fallback_gettime(long clock, struct timespec *ts) in vdso_fallback_gettime()
65 notrace static long vdso_fallback_gettime(long clock, struct timespec *ts) in vdso_fallback_gettime()
209 notrace static int __always_inline do_realtime(struct timespec *ts) in do_realtime()
230 notrace static int __always_inline do_monotonic(struct timespec *ts) in do_monotonic()
251 notrace static void do_realtime_coarse(struct timespec *ts) in do_realtime_coarse()
261 notrace static void do_monotonic_coarse(struct timespec *ts) in do_monotonic_coarse()
271 notrace int __vdso_clock_gettime(clockid_t clock, struct timespec *ts) in __vdso_clock_gettime()
296 int clock_gettime(clockid_t, struct timespec *)
302 if (unlikely(do_realtime((struct timespec *)tv) == VCLOCK_NONE)) in __vdso_gettimeofday()
/Linux-v4.19/arch/sparc/vdso/
Dvclock_gettime.c80 vdso_fallback_gettime(long clock, struct timespec *ts) in vdso_fallback_gettime()
146 do_realtime(struct vvar_data *vvar, struct timespec *ts) in do_realtime()
166 do_monotonic(struct vvar_data *vvar, struct timespec *ts) in do_monotonic()
186 do_realtime_coarse(struct vvar_data *vvar, struct timespec *ts) in do_realtime_coarse()
199 do_monotonic_coarse(struct vvar_data *vvar, struct timespec *ts) in do_monotonic_coarse()
213 __vdso_clock_gettime(clockid_t clock, struct timespec *ts) in __vdso_clock_gettime()
237 clock_gettime(clockid_t, struct timespec *)
248 struct timespec ts; in __vdso_gettimeofday()
/Linux-v4.19/arch/mips/vdso/
Dgettimeofday.c45 struct timespec *_ts) in clock_gettime_fallback()
47 register struct timespec *ts asm("a1") = _ts; in clock_gettime_fallback()
63 static __always_inline int do_realtime_coarse(struct timespec *ts, in do_realtime_coarse()
78 static __always_inline int do_monotonic_coarse(struct timespec *ts, in do_monotonic_coarse()
164 static __always_inline int do_realtime(struct timespec *ts, in do_realtime()
186 static __always_inline int do_monotonic(struct timespec *ts, in do_monotonic()
225 struct timespec ts; in __vdso_gettimeofday()
247 int __vdso_clock_gettime(clockid_t clkid, struct timespec *ts) in __vdso_clock_gettime()
/Linux-v4.19/arch/um/os-Linux/
Dtime.c27 static inline long long timespec_to_ns(const struct timespec *ts) in timespec_to_ns()
34 struct timespec realtime_tp; in os_persistent_clock_emulation()
152 struct timespec ts; in os_vnsecs()
160 struct timespec ts; in os_nsecs()
172 struct timespec ts; in os_idle_sleep()
178 ts = ((struct timespec) { in os_idle_sleep()
/Linux-v4.19/fs/hostfs/
Dhostfs.h47 struct timespec ia_atime;
48 struct timespec ia_mtime;
49 struct timespec ia_ctime;
59 struct timespec atime, mtime, ctime;
/Linux-v4.19/include/uapi/linux/
Dtime.h10 struct timespec { struct
36 struct timespec it_interval; /* timer period */
37 struct timespec it_value; /* timer expiration */
/Linux-v4.19/Documentation/core-api/
Dtimekeeping.rst84 interface that expects a 'timespec' or 'timeval' structure.
145 all interfaces returning a 'struct timeval' or 'struct timespec' have
149 .. c:function:: void ktime_get_ts( struct timespec * )
154 struct timespec getnstimeofday( void )
156 void ktime_get_real_ts( struct timespec * )
162 .. c:function:: struct timespec current_kernel_time( void )
164 struct timespec get_monotonic_coarse( void )
173 .. c:function:: struct timespec getrawmonotonic( void )
175 struct timespec timekeeping_clocktai( void )
177 struct timespec get_monotonic_boottime( void )
/Linux-v4.19/tools/testing/radix-tree/
Dbenchmark.c29 struct timespec start, finish; in benchmark_iter()
66 struct timespec start, finish; in benchmark_insert()
87 struct timespec start, finish; in benchmark_tagging()
108 struct timespec start, finish; in benchmark_delete()
152 struct timespec start, finish; in __benchmark_split()
193 struct timespec start, finish; in __benchmark_join()
/Linux-v4.19/tools/testing/selftests/futex/include/
Dfutextest.h82 futex_wait(futex_t *uaddr, futex_t val, struct timespec *timeout, int opflags) in futex_wait()
102 futex_wait_bitset(futex_t *uaddr, futex_t val, struct timespec *timeout, in futex_wait_bitset()
125 futex_lock_pi(futex_t *uaddr, struct timespec *timeout, int detect, in futex_lock_pi()
190 struct timespec *timeout, int opflags) in futex_wait_requeue_pi()
/Linux-v4.19/tools/include/uapi/sound/
Dasound.h460 struct timespec trigger_tstamp; /* time when stream was started/stopped/paused */
461 struct timespec tstamp; /* reference timestamp */
470 struct timespec audio_tstamp; /* sample counter, wall clock, PHC or on-demand sync'ed */
471 struct timespec driver_tstamp; /* useful in case reference system tstamp is reported with delay */
473 unsigned char reserved[52-2*sizeof(struct timespec)]; /* must be filled with zero */
480 struct timespec tstamp; /* Timestamp */
482 struct timespec audio_tstamp; /* from sample counter or wall clock */
652 struct timespec tstamp; /* Timestamp */
764 struct timespec tstamp; /* Timestamp - last update */
814 struct timespec tstamp;
[all …]
/Linux-v4.19/include/uapi/sound/
Dasound.h460 struct timespec trigger_tstamp; /* time when stream was started/stopped/paused */
461 struct timespec tstamp; /* reference timestamp */
470 struct timespec audio_tstamp; /* sample counter, wall clock, PHC or on-demand sync'ed */
471 struct timespec driver_tstamp; /* useful in case reference system tstamp is reported with delay */
473 unsigned char reserved[52-2*sizeof(struct timespec)]; /* must be filled with zero */
480 struct timespec tstamp; /* Timestamp */
482 struct timespec audio_tstamp; /* from sample counter or wall clock */
652 struct timespec tstamp; /* Timestamp */
764 struct timespec tstamp; /* Timestamp - last update */
814 struct timespec tstamp;
[all …]

12345678