/Linux-v4.19/include/linux/ |
D | time64.h | 20 struct timespec64 { struct 26 struct timespec64 it_interval; argument 27 struct timespec64 it_value; 44 static inline int timespec64_equal(const struct timespec64 *a, in timespec64_equal() 45 const struct timespec64 *b) in timespec64_equal() 55 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) in timespec64_compare() 64 extern void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec); 66 static inline struct timespec64 timespec64_add(struct timespec64 lhs, in timespec64_add() 67 struct timespec64 rhs) in timespec64_add() 69 struct timespec64 ts_delta; in timespec64_add() [all …]
|
D | timekeeping.h | 19 extern int do_settimeofday64(const struct timespec64 *ts); 20 extern int do_sys_settimeofday64(const struct timespec64 *tv, 41 extern void ktime_get_raw_ts64(struct timespec64 *ts); 42 extern void ktime_get_ts64(struct timespec64 *ts); 43 extern void ktime_get_real_ts64(struct timespec64 *tv); 44 extern void ktime_get_coarse_ts64(struct timespec64 *ts); 45 extern void ktime_get_coarse_real_ts64(struct timespec64 *ts); 47 void getboottime64(struct timespec64 *ts); 159 static inline void ktime_get_boottime_ts64(struct timespec64 *ts) in ktime_get_boottime_ts64() 164 static inline void ktime_get_coarse_boottime_ts64(struct timespec64 *ts) in ktime_get_coarse_boottime_ts64() [all …]
|
D | timekeeping32.h | 14 struct timespec64 ts64; in current_kernel_time() 26 struct timespec64 ts64; in do_settimeofday() 34 struct timespec64 ts64; in getnstimeofday() 42 struct timespec64 ts64; in ktime_get_ts() 50 struct timespec64 ts64; in ktime_get_real_ts() 58 struct timespec64 ts64; in getrawmonotonic() 66 struct timespec64 ts64; in get_monotonic_coarse() 75 struct timespec64 ts64; in getboottime()
|
D | stat.h | 44 struct timespec64 atime; 45 struct timespec64 mtime; 46 struct timespec64 ctime; 47 struct timespec64 btime; /* File creation time */
|
D | time32.h | 19 static inline struct timespec timespec64_to_timespec(const struct timespec64 ts64) in timespec64_to_timespec() 24 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64() 26 return *(const struct timespec64 *)&ts; in timespec_to_timespec64() 30 static inline struct timespec timespec64_to_timespec(const struct timespec64 ts64) in timespec64_to_timespec() 39 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64() 41 struct timespec64 ret; in timespec_to_timespec64()
|
D | pps_kernel.h | 50 struct timespec64 ts_raw; 52 struct timespec64 ts_real; 107 struct timespec64 ts) in timespec_to_pps_ktime() 125 static inline void pps_sub_ts(struct pps_event_time *ts, struct timespec64 delta) in pps_sub_ts()
|
D | posix-clock.h | 56 int (*clock_gettime)(struct posix_clock *pc, struct timespec64 *ts); 58 int (*clock_getres) (struct posix_clock *pc, struct timespec64 *ts); 61 const struct timespec64 *ts);
|
D | time.h | 12 int get_timespec64(struct timespec64 *ts, 14 int put_timespec64(const struct timespec64 *ts, 43 extern long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, int flags);
|
D | compat_time.h | 25 extern int compat_get_timespec64(struct timespec64 *, const void __user *); 26 extern int compat_put_timespec64(const struct timespec64 *, void __user *);
|
/Linux-v4.19/kernel/time/ |
D | posix-stubs.c | 64 struct timespec64 new_tp; in SYSCALL_DEFINE2() 74 int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) in do_clock_gettime() 96 struct timespec64 kernel_tp; in SYSCALL_DEFINE2() 109 struct timespec64 rtn_tp = { in SYSCALL_DEFINE2() 130 struct timespec64 t; in SYSCALL_DEFINE4() 167 struct timespec64 new_tp; in COMPAT_SYSCALL_DEFINE2() 181 struct timespec64 kernel_tp; in COMPAT_SYSCALL_DEFINE2() 195 struct timespec64 rtn_tp = { in COMPAT_SYSCALL_DEFINE2() 216 struct timespec64 t; in COMPAT_SYSCALL_DEFINE4()
|
D | time.c | 86 struct timespec64 tv; in SYSCALL_DEFINE1() 124 struct timespec64 tv; in COMPAT_SYSCALL_DEFINE1() 170 int do_sys_settimeofday64(const struct timespec64 *tv, const struct timezone *tz) in do_sys_settimeofday64() 203 struct timespec64 new_ts; in SYSCALL_DEFINE2() 247 struct timespec64 new_ts; in COMPAT_SYSCALL_DEFINE2() 491 struct timespec64 ts = ns_to_timespec64(nsec); in ns_to_kernel_old_timeval() 515 void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec) in set_normalized_timespec64() 543 struct timespec64 ns_to_timespec64(const s64 nsec) in ns_to_timespec64() 545 struct timespec64 ts; in ns_to_timespec64() 549 return (struct timespec64) {0, 0}; in ns_to_timespec64() [all …]
|
D | posix-timers.h | 6 struct timespec64 *tp); 8 const struct timespec64 *tp); 10 struct timespec64 *tp); 14 const struct timespec64 *);
|
D | ntp_internal.h | 11 extern int __do_adjtimex(struct timex *txc, const struct timespec64 *ts, s32 *time_tai); 12 extern void __hardpps(const struct timespec64 *phase_ts, const struct timespec64 *raw_ts);
|
D | timekeeping.c | 109 static inline struct timespec64 tk_xtime(const struct timekeeper *tk) in tk_xtime() 111 struct timespec64 ts; in tk_xtime() 118 static void tk_set_xtime(struct timekeeper *tk, const struct timespec64 *ts) in tk_set_xtime() 124 static void tk_xtime_add(struct timekeeper *tk, const struct timespec64 *ts) in tk_xtime_add() 131 static void tk_set_wall_to_mono(struct timekeeper *tk, struct timespec64 wtm) in tk_set_wall_to_mono() 133 struct timespec64 tmp; in tk_set_wall_to_mono() 723 void ktime_get_real_ts64(struct timespec64 *ts) in ktime_get_real_ts64() 876 void ktime_get_ts64(struct timespec64 *ts) in ktime_get_ts64() 879 struct timespec64 tomono; in ktime_get_ts64() 1222 struct timespec64 now; in do_gettimeofday() [all …]
|
D | posix-timers.c | 189 static int posix_clock_realtime_get(clockid_t which_clock, struct timespec64 *tp) in posix_clock_realtime_get() 197 const struct timespec64 *tp) in posix_clock_realtime_set() 211 static int posix_ktime_get_ts(clockid_t which_clock, struct timespec64 *tp) in posix_ktime_get_ts() 220 static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_raw() 227 static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec64 *tp) in posix_get_realtime_coarse() 234 struct timespec64 *tp) in posix_get_monotonic_coarse() 240 static int posix_get_coarse_res(const clockid_t which_clock, struct timespec64 *tp) in posix_get_coarse_res() 246 static int posix_get_boottime(const clockid_t which_clock, struct timespec64 *tp) in posix_get_boottime() 252 static int posix_get_tai(clockid_t which_clock, struct timespec64 *tp) in posix_get_tai() 258 static int posix_get_hrtimer_res(clockid_t which_clock, struct timespec64 *tp) in posix_get_hrtimer_res() [all …]
|
D | ntp.c | 106 static struct timespec64 pps_fbase; /* beginning of the last freq interval */ 499 static void sched_sync_hw_clock(struct timespec64 now, in sched_sync_hw_clock() 503 struct timespec64 next; in sched_sync_hw_clock() 534 struct timespec64 adjust, now; in sync_rtc_clock() 563 int __weak update_persistent_clock64(struct timespec64 now64) in update_persistent_clock64() 575 struct timespec64 now; in sync_cmos_clock() 576 struct timespec64 adjust; in sync_cmos_clock() 719 int __do_adjtimex(struct timex *txc, const struct timespec64 *ts, s32 *time_tai) in __do_adjtimex() 802 static inline struct pps_normtime pps_normalize_ts(struct timespec64 ts) in pps_normalize_ts() 971 void __hardpps(const struct timespec64 *phase_ts, const struct timespec64 *raw_ts) in __hardpps()
|
/Linux-v4.19/Documentation/core-api/ |
D | timekeeping.rst | 59 nanosecond, timespec64, and second output 75 .. c:function:: void ktime_get_ts64( struct timespec64 * ) 76 void ktime_get_boottime_ts64( struct timespec64 * ) 77 void ktime_get_real_ts64( struct timespec64 * ) 78 void ktime_get_clocktai_ts64( struct timespec64 * ) 79 void ktime_get_raw_ts64( struct timespec64 * ) 81 Same above, but returns the time in a 'struct timespec64', split 107 .. c:function:: void ktime_get_coarse_ts64( struct timespec64 * ) 108 void ktime_get_coarse_boottime_ts64( struct timespec64 * ) 109 void ktime_get_coarse_real_ts64( struct timespec64 * ) [all …]
|
/Linux-v4.19/fs/ntfs/ |
D | time.h | 48 static inline sle64 utc2ntfs(const struct timespec64 ts) in utc2ntfs() 66 struct timespec64 ts; in get_current_ntfs_time() 88 static inline struct timespec64 ntfs2utc(const sle64 time) in ntfs2utc() 90 struct timespec64 ts; in ntfs2utc()
|
/Linux-v4.19/fs/ |
D | utimes.c | 26 struct timespec64 tv[2]; in SYSCALL_DEFINE2() 48 static int utimes_common(const struct path *path, struct timespec64 *times) in utimes_common() 119 long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, in do_utimes() 171 struct timespec64 tstimes[2]; in SYSCALL_DEFINE4() 191 struct timespec64 tstimes[2]; in do_futimesat() 236 struct timespec64 tv[2]; in COMPAT_SYSCALL_DEFINE2() 250 struct timespec64 tv[2]; in COMPAT_SYSCALL_DEFINE4() 266 struct timespec64 tv[2]; in do_compat_futimesat()
|
D | select.c | 52 static long __estimate_accuracy(struct timespec64 *tv) in __estimate_accuracy() 75 u64 select_estimate_accuracy(struct timespec64 *tv) in select_estimate_accuracy() 78 struct timespec64 now; in select_estimate_accuracy() 273 int poll_select_set_timeout(struct timespec64 *to, time64_t sec, long nsec) in poll_select_set_timeout() 275 struct timespec64 ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout() 290 static int poll_select_copy_remaining(struct timespec64 *end_time, in poll_select_copy_remaining() 294 struct timespec64 rts; in poll_select_copy_remaining() 449 static int do_select(int n, fd_set_bits *fds, struct timespec64 *end_time) in do_select() 595 fd_set __user *exp, struct timespec64 *end_time) in core_sys_select() 676 struct timespec64 end_time, *to = NULL; in kern_select() [all …]
|
/Linux-v4.19/drivers/ptp/ |
D | ptp_kvm.c | 47 struct timespec64 tspec; in ptp_kvm_get_time_fn() 117 const struct timespec64 *ts) in ptp_kvm_settime() 122 static int ptp_kvm_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_kvm_gettime() 125 struct timespec64 tspec; in ptp_kvm_gettime() 142 memcpy(ts, &tspec, sizeof(struct timespec64)); in ptp_kvm_gettime()
|
/Linux-v4.19/arch/x86/kernel/ |
D | rtc.c | 42 int mach_set_rtc_mmss(const struct timespec64 *now) in mach_set_rtc_mmss() 63 void mach_get_cmos_time(struct timespec64 *now) in mach_get_cmos_time() 148 int update_persistent_clock64(struct timespec64 now) in update_persistent_clock64() 154 void read_persistent_clock64(struct timespec64 *ts) in read_persistent_clock64()
|
/Linux-v4.19/arch/x86/include/asm/ |
D | intel_mid_vrtc.h | 7 extern void vrtc_get_time(struct timespec64 *now); 8 extern int vrtc_set_mmss(const struct timespec64 *now);
|
D | x86_init.h | 173 struct timespec64; 267 void (*get_wallclock)(struct timespec64 *ts); 268 int (*set_wallclock)(const struct timespec64 *ts);
|
/Linux-v4.19/drivers/net/ethernet/cadence/ |
D | macb_ptp.c | 52 static int gem_tsu_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts) in gem_tsu_get_time() 84 const struct timespec64 *ts) in gem_tsu_set_time() 163 struct timespec64 now, then = ns_to_timespec64(delta); in gem_ptp_adjtime() 176 (const struct timespec64 *)&now); in gem_ptp_adjtime() 225 struct timespec64 ts; in gem_ptp_init_tsu() 250 u32 dma_desc_ts_2, struct timespec64 *ts) in gem_hw_timestamp() 252 struct timespec64 tsu; in gem_hw_timestamp() 282 struct timespec64 ts; in gem_ptp_rxstamp() 296 struct timespec64 ts; in gem_tstamp_tx()
|