Home
last modified time | relevance | path

Searched refs:timespec64 (Results 1 – 25 of 298) sorted by relevance

12345678910>>...12

/Linux-v5.4/include/linux/
Dtime64.h12 struct timespec64 { struct
18 struct timespec64 it_interval; argument
19 struct timespec64 it_value;
49 static inline int timespec64_equal(const struct timespec64 *a, in timespec64_equal()
50 const struct timespec64 *b) in timespec64_equal()
60 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) in timespec64_compare()
69 extern void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec);
71 static inline struct timespec64 timespec64_add(struct timespec64 lhs, in timespec64_add()
72 struct timespec64 rhs) in timespec64_add()
74 struct timespec64 ts_delta; in timespec64_add()
[all …]
Dtimekeeping.h19 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);
118 struct timespec64 ts; in ktime_get_coarse()
187 static inline void ktime_get_boottime_ts64(struct timespec64 *ts) in ktime_get_boottime_ts64()
[all …]
Dtime32.h66 extern int get_old_timespec32(struct timespec64 *, const void __user *);
67 extern int put_old_timespec32(const struct timespec64 *, void __user *);
79 static inline struct timespec timespec64_to_timespec(const struct timespec64 ts64) in timespec64_to_timespec()
84 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64()
86 return *(const struct timespec64 *)&ts; in timespec_to_timespec64()
90 static inline struct timespec timespec64_to_timespec(const struct timespec64 ts64) in timespec64_to_timespec()
99 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64()
101 struct timespec64 ret; in timespec_to_timespec64()
Dtimekeeping32.h16 struct timespec64 ts64; in getnstimeofday()
24 struct timespec64 ts64; in ktime_get_ts()
32 struct timespec64 ts64; in getrawmonotonic()
40 struct timespec64 ts64; in getboottime()
Dstat.h44 struct timespec64 atime;
45 struct timespec64 mtime;
46 struct timespec64 ctime;
47 struct timespec64 btime; /* File creation time */
Dptp_clock_kernel.h34 struct timespec64 pre_ts;
35 struct timespec64 post_ts;
132 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts);
133 int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts,
137 int (*settime64)(struct ptp_clock_info *p, const struct timespec64 *ts);
Dpps_kernel.h37 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()
Dposix-clock.h43 int (*clock_gettime)(struct posix_clock *pc, struct timespec64 *ts);
45 int (*clock_getres) (struct posix_clock *pc, struct timespec64 *ts);
48 const struct timespec64 *ts);
Dtime.h12 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);
/Linux-v5.4/kernel/time/
Dposix-stubs.c62 struct timespec64 new_tp; in SYSCALL_DEFINE2()
72 int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) in do_clock_gettime()
94 struct timespec64 kernel_tp; in SYSCALL_DEFINE2()
107 struct timespec64 rtn_tp = { in SYSCALL_DEFINE2()
128 struct timespec64 t; in SYSCALL_DEFINE4()
165 struct timespec64 new_tp; in SYSCALL_DEFINE2()
179 struct timespec64 kernel_tp; in SYSCALL_DEFINE2()
193 struct timespec64 rtn_tp = { in SYSCALL_DEFINE2()
214 struct timespec64 t; in SYSCALL_DEFINE4()
Dtime.c83 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()
229 struct timespec64 ts; in COMPAT_SYSCALL_DEFINE2()
247 struct timespec64 new_ts; in COMPAT_SYSCALL_DEFINE2()
499 struct timespec64 ts = ns_to_timespec64(nsec); in ns_to_kernel_old_timeval()
523 void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec) in set_normalized_timespec64()
551 struct timespec64 ns_to_timespec64(const s64 nsec) in ns_to_timespec64()
[all …]
Dposix-timers.h6 struct timespec64 *tp);
8 const struct timespec64 *tp);
10 struct timespec64 *tp);
14 const struct timespec64 *);
Dntp_internal.h12 const struct timespec64 *ts,
14 extern void __hardpps(const struct timespec64 *phase_ts, const struct timespec64 *raw_ts);
Dtimekeeping.c107 static inline struct timespec64 tk_xtime(const struct timekeeper *tk) in tk_xtime()
109 struct timespec64 ts; in tk_xtime()
116 static void tk_set_xtime(struct timekeeper *tk, const struct timespec64 *ts) in tk_set_xtime()
122 static void tk_xtime_add(struct timekeeper *tk, const struct timespec64 *ts) in tk_xtime_add()
129 static void tk_set_wall_to_mono(struct timekeeper *tk, struct timespec64 wtm) in tk_set_wall_to_mono()
131 struct timespec64 tmp; in tk_set_wall_to_mono()
726 void ktime_get_real_ts64(struct timespec64 *ts) in ktime_get_real_ts64()
880 void ktime_get_ts64(struct timespec64 *ts) in ktime_get_ts64()
883 struct timespec64 tomono; in ktime_get_ts64()
1224 int do_settimeofday64(const struct timespec64 *ts) in do_settimeofday64()
[all …]
Dposix-timers.c168 static int posix_clock_realtime_get(clockid_t which_clock, struct timespec64 *tp) in posix_clock_realtime_get()
176 const struct timespec64 *tp) in posix_clock_realtime_set()
190 static int posix_ktime_get_ts(clockid_t which_clock, struct timespec64 *tp) in posix_ktime_get_ts()
199 static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_raw()
206 static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec64 *tp) in posix_get_realtime_coarse()
213 struct timespec64 *tp) in posix_get_monotonic_coarse()
219 static int posix_get_coarse_res(const clockid_t which_clock, struct timespec64 *tp) in posix_get_coarse_res()
225 static int posix_get_boottime(const clockid_t which_clock, struct timespec64 *tp) in posix_get_boottime()
231 static int posix_get_tai(clockid_t which_clock, struct timespec64 *tp) in posix_get_tai()
237 static int posix_get_hrtimer_res(clockid_t which_clock, struct timespec64 *tp) in posix_get_hrtimer_res()
[all …]
Dntp.c107 static struct timespec64 pps_fbase; /* beginning of the last freq interval */
500 static void sched_sync_hw_clock(struct timespec64 now, in sched_sync_hw_clock()
504 struct timespec64 next; in sched_sync_hw_clock()
535 struct timespec64 adjust, now; in sync_rtc_clock()
559 int __weak update_persistent_clock64(struct timespec64 now64) in update_persistent_clock64()
568 struct timespec64 now; in sync_cmos_clock()
569 struct timespec64 adjust; in sync_cmos_clock()
714 int __do_adjtimex(struct __kernel_timex *txc, const struct timespec64 *ts, in __do_adjtimex()
813 static inline struct pps_normtime pps_normalize_ts(struct timespec64 ts) in pps_normalize_ts()
982 void __hardpps(const struct timespec64 *phase_ts, const struct timespec64 *raw_ts) in __hardpps()
/Linux-v5.4/fs/ntfs/
Dtime.h34 static inline sle64 utc2ntfs(const struct timespec64 ts) in utc2ntfs()
52 struct timespec64 ts; in get_current_ntfs_time()
74 static inline struct timespec64 ntfs2utc(const sle64 time) in ntfs2utc()
76 struct timespec64 ts; in ntfs2utc()
/Linux-v5.4/Documentation/core-api/
Dtimekeeping.rst59 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-v5.4/fs/fat/
Dmisc.c198 void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec64 *ts, in fat_time_fat2unix()
234 void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec64 *ts, in fat_time_unix2fat()
270 static inline struct timespec64 fat_timespec64_trunc_2secs(struct timespec64 ts) in fat_timespec64_trunc_2secs()
272 return (struct timespec64){ ts.tv_sec & ~1ULL, 0 }; in fat_timespec64_trunc_2secs()
285 int fat_truncate_time(struct inode *inode, struct timespec64 *now, int flags) in fat_truncate_time()
288 struct timespec64 ts; in fat_truncate_time()
307 inode->i_atime = (struct timespec64){ seconds, 0 }; in fat_truncate_time()
322 int fat_update_time(struct inode *inode, struct timespec64 *now, int flags) in fat_update_time()
/Linux-v5.4/fs/
Dutimes.c19 static int utimes_common(const struct path *path, struct timespec64 *times) in utimes_common()
88 long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, in do_utimes()
140 struct timespec64 tstimes[2]; in SYSCALL_DEFINE4()
167 struct timespec64 tstimes[2]; in do_futimesat()
206 struct timespec64 tv[2]; in SYSCALL_DEFINE2()
228 struct timespec64 tv[2]; in SYSCALL_DEFINE2()
243 struct timespec64 tv[2]; in SYSCALL_DEFINE4()
260 struct timespec64 tv[2]; in do_compat_futimesat()
Dselect.c52 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()
297 static int poll_select_finish(struct timespec64 *end_time, in poll_select_finish()
301 struct timespec64 rts; in poll_select_finish()
476 static 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-v5.4/drivers/ptp/
Dptp_kvm.c37 struct timespec64 tspec; in ptp_kvm_get_time_fn()
107 const struct timespec64 *ts) in ptp_kvm_settime()
112 static int ptp_kvm_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_kvm_gettime()
115 struct timespec64 tspec; in ptp_kvm_gettime()
132 memcpy(ts, &tspec, sizeof(struct timespec64)); in ptp_kvm_gettime()
/Linux-v5.4/arch/x86/kernel/
Drtc.c42 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-v5.4/arch/x86/include/asm/
Dintel_mid_vrtc.h7 extern void vrtc_get_time(struct timespec64 *now);
8 extern int vrtc_set_mmss(const struct timespec64 *now);
/Linux-v5.4/fs/kernfs/
Dkernfs-internal.h24 struct timespec64 ia_atime;
25 struct timespec64 ia_mtime;
26 struct timespec64 ia_ctime;

12345678910>>...12