| /linux/include/linux/ |
| H A D | timekeeping.h | 20 extern int do_settimeofday64(const struct timespec64 *ts); 21 extern int do_sys_settimeofday64(const struct timespec64 *tv, 42 extern void ktime_get_raw_ts64(struct timespec64 *ts); 43 extern void ktime_get_ts64(struct timespec64 *ts); 44 extern void ktime_get_real_ts64(struct timespec64 *tv); 45 extern void ktime_get_coarse_ts64(struct timespec64 *ts); 46 extern void ktime_get_coarse_real_ts64(struct timespec64 *ts); 47 extern void ktime_get_clock_ts64(clockid_t id, struct timespec64 *ts); 50 extern void ktime_get_coarse_real_ts64_mg(struct timespec64 *ts); 51 extern void ktime_get_real_ts64_mg(struct timespec64 *ts); [all …]
|
| H A D | time_namespace.h | 19 struct timespec64 monotonic; 20 struct timespec64 boottime; 68 struct timespec64 val; 74 static inline void timens_add_monotonic(struct timespec64 *ts) in timens_add_monotonic() 81 static inline void timens_add_boottime(struct timespec64 *ts) in timens_add_boottime() 95 static inline void timens_sub_boottime(struct timespec64 *ts) in timens_sub_boottime() 162 static inline void timens_add_monotonic(struct timespec64 *ts) { } in timens_add_monotonic() 163 static inline void timens_add_boottime(struct timespec64 *ts) { } in timens_add_boottime() 170 static inline void timens_sub_boottime(struct timespec64 *ts) { } in timens_sub_boottime()
|
| H A D | ptp_kvm.h | 14 struct timespec64; 18 int kvm_arch_ptp_get_clock(struct timespec64 *ts); 20 struct timespec64 *tspec, enum clocksource_ids *cs_id);
|
| H A D | pps_kernel.h | 37 struct timespec64 ts_raw; 39 struct timespec64 ts_real; 94 struct timespec64 ts) in timespec_to_pps_ktime() 112 static inline void pps_sub_ts(struct pps_event_time *ts, struct timespec64 delta) in pps_sub_ts()
|
| H A D | posix-clock.h | 44 int (*clock_gettime)(struct posix_clock *pc, struct timespec64 *ts); 46 int (*clock_getres) (struct posix_clock *pc, struct timespec64 *ts); 49 const struct timespec64 *ts);
|
| H A D | time.h | 11 int get_timespec64(struct timespec64 *ts, 13 int put_timespec64(const struct timespec64 *ts, 30 extern long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, int flags);
|
| H A D | timekeeper_internal.h | 147 struct timespec64 wall_to_monotonic; 167 struct timespec64 monotonic_to_boot; 168 struct timespec64 monotonic_to_aux;
|
| /linux/kernel/time/ |
| H A D | time.c | 83 struct timespec64 tv; in SYSCALL_DEFINE1() 121 struct timespec64 tv; in SYSCALL_DEFINE1() 144 struct timespec64 ts; in SYSCALL_DEFINE2() 169 int do_sys_settimeofday64(const struct timespec64 *tv, const struct timezone *tz) in do_sys_settimeofday64() 202 struct timespec64 new_ts; in SYSCALL_DEFINE2() 228 struct timespec64 ts; in COMPAT_SYSCALL_DEFINE2() 246 struct timespec64 new_ts; in COMPAT_SYSCALL_DEFINE2() 467 struct timespec64 ts = ns_to_timespec64(nsec); in ns_to_kernel_old_timeval() 490 void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec) in set_normalized_timespec64() 518 struct timespec64 ns_to_timespec64(s64 nsec) in ns_to_timespec64() [all …]
|
| H A D | posix-stubs.c | 29 struct timespec64 new_tp; in SYSCALL_DEFINE2() 39 static int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) in do_clock_gettime() 64 struct timespec64 kernel_tp; in SYSCALL_DEFINE2() 77 struct timespec64 rtn_tp = { in SYSCALL_DEFINE2() 98 struct timespec64 t; in SYSCALL_DEFINE4() 132 struct timespec64 new_tp; in SYSCALL_DEFINE2() 146 struct timespec64 kernel_tp; in SYSCALL_DEFINE2() 160 struct timespec64 rtn_tp = { in SYSCALL_DEFINE2() 181 struct timespec64 t; in SYSCALL_DEFINE4()
|
| H A D | timekeeping.c | 65 static inline bool tk_get_aux_ts64(unsigned int tkid, struct timespec64 *ts) in tk_get_aux_ts64() 75 static inline bool tk_get_aux_ts64(unsigned int tkid, struct timespec64 *ts) in tk_get_aux_ts64() 202 static inline struct timespec64 tk_xtime(const struct timekeeper *tk) in tk_xtime() 204 struct timespec64 ts; in tk_xtime() 211 static inline struct timespec64 tk_xtime_coarse(const struct timekeeper *tk) in tk_xtime_coarse() 213 struct timespec64 ts; in tk_xtime_coarse() 234 static void tk_set_xtime(struct timekeeper *tk, const struct timespec64 *ts) in tk_set_xtime() 241 static void tk_xtime_add(struct timekeeper *tk, const struct timespec64 *ts) in tk_xtime_add() 249 static void tk_set_wall_to_mono(struct timekeeper *tk, struct timespec64 wtm) in tk_set_wall_to_mono() 251 struct timespec64 tmp; in tk_set_wall_to_mono() [all …]
|
| H A D | posix-timers.h | 12 struct timespec64 *tp); 14 const struct timespec64 *tp); 17 struct timespec64 *tp); 23 const struct timespec64 *);
|
| H A D | ntp_internal.h | 11 extern int ntp_adjtimex(unsigned int tkid, struct __kernel_timex *txc, const struct timespec64 *ts, 13 extern void __hardpps(const struct timespec64 *phase_ts, const struct timespec64 *raw_ts);
|
| H A D | posix-timers.c | 187 static int posix_get_realtime_timespec(clockid_t which_clock, struct timespec64 *tp) in posix_timer_add() 199 const struct timespec64 *tp) 210 static int posix_get_monotonic_timespec(clockid_t which_clock, struct timespec64 *tp) 222 static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_timespec() 229 static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_raw() 236 struct timespec64 *tp) in posix_get_realtime_coarse() 243 static int posix_get_coarse_res(const clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_coarse() 249 static int posix_get_boottime_timespec(const clockid_t which_clock, struct timespec64 *tp) 261 static int posix_get_tai_timespec(clockid_t which_clock, struct timespec64 *tp) in posix_get_boottime_timespec() 272 static int posix_get_hrtimer_res(clockid_t which_clock, struct timespec64 *t in posix_get_tai_timespec() [all...] |
| H A D | ntp.c | 78 struct timespec64 pps_fbase; 540 struct timespec64 *to_set, in rtc_tv_nsec_ok() 541 const struct timespec64 *now) in rtc_tv_nsec_ok() 545 struct timespec64 delay = {.tv_sec = -1, in rtc_tv_nsec_ok() 564 int __weak update_persistent_clock64(struct timespec64 now64) in update_persistent_clock64() 569 static inline int update_persistent_clock64(struct timespec64 now64) in update_persistent_clock64() 577 static int update_rtc(struct timespec64 *to_set, unsigned long *offset_nsec) in update_rtc() 604 static inline int update_rtc(struct timespec64 *to_set, unsigned long *offset_nsec) in update_rtc() 635 struct timespec64 now, to_set; in sync_hw_clock() 770 int ntp_adjtimex(unsigned int tkid, struct __kernel_timex *txc, const struct timespec64 *ts, in ntp_adjtimex() [all …]
|
| /linux/Documentation/core-api/ |
| H A 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 112 .. c:function:: void ktime_get_coarse_ts64( struct timespec64 * ) 113 void ktime_get_coarse_boottime_ts64( struct timespec64 * ) 114 void ktime_get_coarse_real_ts64( struct timespec64 * ) [all …]
|
| /linux/drivers/ptp/ |
| H A D | ptp_kvm_common.c | 32 struct timespec64 tspec; in ptp_kvm_get_time_fn() 80 const struct timespec64 *ts) in ptp_kvm_settime() 85 static int ptp_kvm_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_kvm_gettime() 88 struct timespec64 tspec; in ptp_kvm_gettime() 100 memcpy(ts, &tspec, sizeof(struct timespec64)); in ptp_kvm_gettime()
|
| H A D | ptp_vclock.c | 73 struct timespec64 *ts) in ptp_vclock_gettime() 88 struct timespec64 *ts, in ptp_vclock_gettimex() 93 struct timespec64 pts; in ptp_vclock_gettimex() 112 const struct timespec64 *ts) in ptp_vclock_settime() 150 struct timespec64 ts; in ptp_vclock_refresh() 176 struct timespec64 ts = {}; in ptp_vclock_read()
|
| /linux/arch/x86/include/asm/ |
| H A D | x86_init.h | 201 struct timespec64; 318 void (*get_wallclock)(struct timespec64 *ts); 319 int (*set_wallclock)(const struct timespec64 *ts); 352 extern int set_rtc_noop(const struct timespec64 *now); 353 extern void get_rtc_noop(struct timespec64 *now);
|
| /linux/fs/ |
| H A D | select.c | 53 static long __estimate_accuracy(struct timespec64 *tv) in __estimate_accuracy() 76 u64 select_estimate_accuracy(struct timespec64 *tv) in select_estimate_accuracy() 79 struct timespec64 now; in select_estimate_accuracy() 271 int poll_select_set_timeout(struct timespec64 *to, time64_t sec, long nsec) in poll_select_set_timeout() 273 struct timespec64 ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout() 295 static int poll_select_finish(struct timespec64 *end_time, in poll_select_finish() 299 struct timespec64 rts; in poll_select_finish() 483 static noinline_for_stack int do_select(int n, fd_set_bits *fds, struct timespec64 *end_time) in do_select() 622 fd_set __user *exp, struct timespec64 *end_time) in core_sys_select() 703 struct timespec64 end_time, *to = NULL; in kern_select() [all …]
|
| /linux/arch/x86/kernel/ |
| H A D | rtc.c | 35 int mach_set_cmos_time(const struct timespec64 *now) in mach_set_cmos_time() 56 void mach_get_cmos_time(struct timespec64 *now) in mach_get_cmos_time() 102 int update_persistent_clock64(struct timespec64 now) in update_persistent_clock64() 108 void read_persistent_clock64(struct timespec64 *ts) in read_persistent_clock64()
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | adf_clock.c | 23 static inline u64 timespec_to_us(const struct timespec64 *ts) in timespec_to_us() 28 static inline u64 timespec_to_ms(const struct timespec64 *ts) in timespec_to_ms() 35 struct timespec64 ts; in adf_clock_get_current_time() 43 struct timespec64 ts1, ts2, ts3, ts4; in measure_clock()
|
| /linux/drivers/net/ethernet/cadence/ |
| H A D | macb_ptp.c | 43 static int gem_tsu_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts, in gem_tsu_get_time() 80 const struct timespec64 *ts) in gem_tsu_set_time() 162 struct timespec64 now, then = ns_to_timespec64(delta); in gem_ptp_adjtime() 175 (const struct timespec64 *)&now); in gem_ptp_adjtime() 224 struct timespec64 ts; in gem_ptp_init_tsu() 249 u32 dma_desc_ts_2, struct timespec64 *ts) in gem_hw_timestamp() 251 struct timespec64 tsu; in gem_hw_timestamp() 281 struct timespec64 ts; in gem_ptp_rxstamp() 302 struct timespec64 ts; in gem_ptp_txstamp()
|
| /linux/drivers/input/misc/ |
| H A D | hp_sdc_rtc.c | 183 static inline int hp_sdc_rtc_read_rt(struct timespec64 *res) { in hp_sdc_rtc_read_rt() 202 static inline int hp_sdc_rtc_read_fhs(struct timespec64 *res) { in hp_sdc_rtc_read_fhs() 219 static inline int hp_sdc_rtc_read_mt(struct timespec64 *res) { in hp_sdc_rtc_read_mt() 236 static inline int hp_sdc_rtc_read_dt(struct timespec64 *res) { in hp_sdc_rtc_read_dt() 253 static inline int hp_sdc_rtc_read_ct(struct timespec64 *res) { in hp_sdc_rtc_read_ct() 273 struct timespec64 tv; in hp_sdc_rtc_proc_show()
|
| /linux/drivers/net/ethernet/marvell/mvpp2/ |
| H A D | mvpp2_tai.c | 63 struct timespec64 stamp; 90 static void mvpp22_tai_read_ts(struct timespec64 *ts, void __iomem *base) in mvpp22_tai_read_ts() 104 static void mvpp2_tai_write_tlv(const struct timespec64 *ts, u32 frac, in mvpp2_tai_write_tlv() 208 struct timespec64 ts; in mvpp22_tai_adjtime() 236 struct timespec64 *ts, in mvpp22_tai_gettimex64() 277 const struct timespec64 *ts) in mvpp22_tai_settime64() 348 struct timespec64 ts; in mvpp22_tai_tstamp()
|
| /linux/fs/exfat/ |
| H A D | misc.c | 52 static void exfat_adjust_tz(struct timespec64 *ts, u8 tz_off) in exfat_adjust_tz() 68 void exfat_get_entry_time(struct exfat_sb_info *sbi, struct timespec64 *ts, in exfat_get_entry_time() 93 void exfat_set_entry_time(struct exfat_sb_info *sbi, struct timespec64 *ts, in exfat_set_entry_time() 123 void exfat_truncate_atime(struct timespec64 *ts) in exfat_truncate_atime() 131 struct timespec64 atime = inode_get_atime(inode); in exfat_truncate_inode_atime()
|