| /Linux-v5.4/include/linux/ |
| D | time32.h | 79 static inline struct timespec timespec64_to_timespec(const struct timespec64 ts64) in timespec64_to_timespec() 81 return *(const struct timespec *)&ts64; in timespec64_to_timespec() 84 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64() 90 static inline struct timespec timespec64_to_timespec(const struct timespec64 ts64) in timespec64_to_timespec() 92 struct timespec ret; in timespec64_to_timespec() 99 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64() 109 static inline int timespec_equal(const struct timespec *a, in timespec_equal() 110 const struct timespec *b) in timespec_equal() 120 static inline int timespec_compare(const struct timespec *lhs, const struct timespec *rhs) in timespec_compare() 132 static inline bool timespec_valid(const struct timespec *ts) in timespec_valid() [all …]
|
| D | timekeeping32.h | 14 static inline void getnstimeofday(struct timespec *ts) in getnstimeofday() 22 static inline void ktime_get_ts(struct timespec *ts) in ktime_get_ts() 30 static inline void getrawmonotonic(struct timespec *ts) in getrawmonotonic() 38 static inline void getboottime(struct timespec *ts) in getboottime()
|
| /Linux-v5.4/arch/nds32/kernel/vdso/ |
| D | gettimeofday.c | 51 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-v5.4/tools/testing/selftests/timers/ |
| D | raw_skew.c | 46 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()
|
| D | adjtick.c | 44 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() 170 struct timespec raw; in main()
|
| D | mqueue-lat.c | 40 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()
|
| D | nanosleep.c | 80 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()
|
| D | leap-a-day.c | 60 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()
|
| D | nsleep-lat.c | 79 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()
|
| D | alarmtimer-suspend.c | 54 struct timespec start_time; 87 long long timespec_sub(struct timespec a, struct timespec b) in timespec_sub() 100 struct timespec ts; in sigalarm()
|
| D | inconsistency-check.c | 80 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()
|
| D | threadtest.c | 37 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()
|
| D | set-timer-lat.c | 54 struct timespec start_time; 88 long long timespec_sub(struct timespec a, struct timespec b) in timespec_sub() 100 struct timespec ts; in sigalarm()
|
| /Linux-v5.4/arch/arm/vdso/ |
| D | vgettimeofday.c | 51 struct timespec *_ts) in clock_gettime_fallback() 53 register struct timespec *ts asm("r1") = _ts; in clock_gettime_fallback() 67 static notrace int do_realtime_coarse(struct timespec *ts, in do_realtime_coarse() 83 static notrace int do_monotonic_coarse(struct timespec *ts, in do_monotonic_coarse() 86 struct timespec tomono; in do_monotonic_coarse() 125 static notrace int do_realtime(struct timespec *ts, struct vdso_data *vdata) in do_realtime() 147 static notrace int do_monotonic(struct timespec *ts, struct vdso_data *vdata) in do_monotonic() 149 struct timespec tomono; in do_monotonic() 176 static notrace int do_realtime(struct timespec *ts, struct vdso_data *vdata) in do_realtime() 181 static notrace int do_monotonic(struct timespec *ts, struct vdso_data *vdata) in do_monotonic() [all …]
|
| /Linux-v5.4/arch/sparc/vdso/ |
| D | vclock_gettime.c | 66 notrace static long vdso_fallback_gettime(long clock, struct timespec *ts) in vdso_fallback_gettime() 147 struct timespec *ts) in do_realtime() 167 struct timespec *ts) in do_realtime_stick() 187 struct timespec *ts) in do_monotonic() 207 struct timespec *ts) in do_monotonic_stick() 227 struct timespec *ts) in do_realtime_coarse() 240 struct timespec *ts) in do_monotonic_coarse() 254 __vdso_clock_gettime(clockid_t clock, struct timespec *ts) in __vdso_clock_gettime() 278 clock_gettime(clockid_t, struct timespec *) 282 __vdso_clock_gettime_stick(clockid_t clock, struct timespec *ts) in __vdso_clock_gettime_stick() [all …]
|
| /Linux-v5.4/arch/um/os-Linux/ |
| D | time.c | 27 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() 96 struct timespec ts; in os_nsecs() 108 struct timespec ts = { in os_idle_sleep()
|
| /Linux-v5.4/include/uapi/linux/ |
| D | time.h | 10 struct timespec { struct 35 struct timespec it_interval; /* timer period */ argument 36 struct timespec it_value; /* timer expiration */
|
| /Linux-v5.4/fs/hostfs/ |
| D | hostfs.h | 47 struct timespec ia_atime; 48 struct timespec ia_mtime; 49 struct timespec ia_ctime; 59 struct timespec atime, mtime, ctime;
|
| /Linux-v5.4/tools/testing/radix-tree/ |
| D | benchmark.c | 18 struct timespec start, finish; in benchmark_iter() 55 struct timespec start, finish; in benchmark_insert() 76 struct timespec start, finish; in benchmark_tagging() 97 struct timespec start, finish; in benchmark_delete()
|
| /Linux-v5.4/tools/testing/selftests/futex/include/ |
| D | futextest.h | 78 futex_wait(futex_t *uaddr, futex_t val, struct timespec *timeout, int opflags) in futex_wait() 98 futex_wait_bitset(futex_t *uaddr, futex_t val, struct timespec *timeout, in futex_wait_bitset() 121 futex_lock_pi(futex_t *uaddr, struct timespec *timeout, int detect, in futex_lock_pi() 186 struct timespec *timeout, int opflags) in futex_wait_requeue_pi()
|
| /Linux-v5.4/Documentation/core-api/ |
| D | timekeeping.rst | 84 interface that expects a 'timespec' or 'timeval' structure. 149 all interfaces returning a 'struct timeval' or 'struct timespec' have 153 .. c:function:: void ktime_get_ts( struct timespec * ) 158 struct timespec getnstimeofday( void ) 160 void ktime_get_real_ts( struct timespec * ) 166 .. c:function:: struct timespec current_kernel_time( void ) 168 struct timespec get_monotonic_coarse( void ) 177 .. c:function:: struct timespec getrawmonotonic( void ) 179 struct timespec timekeeping_clocktai( void ) 181 struct timespec get_monotonic_boottime( void )
|
| /Linux-v5.4/tools/include/uapi/sound/ |
| D | asound.h | 461 struct timespec trigger_tstamp; /* time when stream was started/stopped/paused */ 462 struct timespec tstamp; /* reference timestamp */ 471 struct timespec audio_tstamp; /* sample counter, wall clock, PHC or on-demand sync'ed */ 472 struct timespec driver_tstamp; /* useful in case reference system tstamp is reported with delay */ 474 unsigned char reserved[52-2*sizeof(struct timespec)]; /* must be filled with zero */ 481 struct timespec tstamp; /* Timestamp */ 483 struct timespec audio_tstamp; /* from sample counter or wall clock */ 653 struct timespec tstamp; /* Timestamp */ 765 struct timespec tstamp; /* Timestamp - last update */ 815 struct timespec tstamp; [all …]
|
| /Linux-v5.4/include/uapi/sound/ |
| D | asound.h | 461 struct timespec trigger_tstamp; /* time when stream was started/stopped/paused */ 462 struct timespec tstamp; /* reference timestamp */ 471 struct timespec audio_tstamp; /* sample counter, wall clock, PHC or on-demand sync'ed */ 472 struct timespec driver_tstamp; /* useful in case reference system tstamp is reported with delay */ 474 unsigned char reserved[52-2*sizeof(struct timespec)]; /* must be filled with zero */ 481 struct timespec tstamp; /* Timestamp */ 483 struct timespec audio_tstamp; /* from sample counter or wall clock */ 653 struct timespec tstamp; /* Timestamp */ 765 struct timespec tstamp; /* Timestamp - last update */ 815 struct timespec tstamp; [all …]
|
| /Linux-v5.4/tools/testing/selftests/x86/ |
| D | test_vdso.c | 35 typedef int (*vgettime_t)(clockid_t, struct timespec *); 124 static inline int sys_clock_gettime(clockid_t id, struct timespec *ts) in sys_clock_gettime() 186 static bool ts_leq(const struct timespec *a, const struct timespec *b) in ts_leq() 219 struct timespec start, vdso, end; in test_one_clock_gettime()
|
| /Linux-v5.4/arch/x86/um/vdso/ |
| D | um_vdso.c | 16 int __vdso_clock_gettime(clockid_t clock, struct timespec *ts) in __vdso_clock_gettime() 25 int clock_gettime(clockid_t, struct timespec *)
|