/kernel/linux/linux-5.10/include/linux/ |
H A D | time64.h | 13 struct timespec64 { struct 19 struct timespec64 it_interval; 20 struct timespec64 it_value; 41 static inline int timespec64_equal(const struct timespec64 *a, in timespec64_equal() 42 const struct timespec64 *b) in timespec64_equal() 52 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) in timespec64_compare() 61 extern void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec); 63 static inline struct timespec64 timespec64_add(struct timespec64 lh [all...] |
H A D | timekeeping.h | 19 extern int do_settimeofday64(const struct timespec64 *ts); 20 extern int do_sys_settimeofday64(const struct timespec64 *tv, 39 * timespec64 based interfaces 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 t in ktime_get_coarse() [all...] |
H A D | time_namespace.h | 16 struct timespec64 monotonic; 17 struct timespec64 boottime; 60 struct timespec64 val; 66 static inline void timens_add_monotonic(struct timespec64 *ts) in timens_add_monotonic() 73 static inline void timens_add_boottime(struct timespec64 *ts) in timens_add_boottime() 131 static inline void timens_add_monotonic(struct timespec64 *ts) { } in timens_add_monotonic() 132 static inline void timens_add_boottime(struct timespec64 *ts) { } in timens_add_boottime()
|
H A D | stat.h | 43 struct timespec64 atime; 44 struct timespec64 mtime; 45 struct timespec64 ctime; 46 struct timespec64 btime; /* File creation time */
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | time64.h | 13 struct timespec64 { struct 19 struct timespec64 it_interval; 20 struct timespec64 it_value; 46 static inline int timespec64_equal(const struct timespec64 *a, in timespec64_equal() 47 const struct timespec64 *b) in timespec64_equal() 57 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) in timespec64_compare() 66 extern void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec); 68 static inline struct timespec64 timespec64_add(struct timespec64 lh [all...] |
H A D | timekeeping.h | 19 extern int do_settimeofday64(const struct timespec64 *ts); 20 extern int do_sys_settimeofday64(const struct timespec64 *tv, 39 * timespec64 based interfaces 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 t in ktime_get_coarse() [all...] |
H A D | time_namespace.h | 15 struct timespec64 monotonic; 16 struct timespec64 boottime; 59 struct timespec64 val; 65 static inline void timens_add_monotonic(struct timespec64 *ts) in timens_add_monotonic() 72 static inline void timens_add_boottime(struct timespec64 *ts) in timens_add_boottime() 86 static inline void timens_sub_boottime(struct timespec64 *ts) in timens_sub_boottime() 149 static inline void timens_add_monotonic(struct timespec64 *ts) { } in timens_add_monotonic() 150 static inline void timens_add_boottime(struct timespec64 *ts) { } in timens_add_boottime() 157 static inline void timens_sub_boottime(struct timespec64 *ts) { } in timens_sub_boottime()
|
H A D | ptp_clock_kernel.h | 52 struct timespec64 pre_ts; 53 struct timespec64 post_ts; 180 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts); 181 int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts, 185 int (*settime64)(struct ptp_clock_info *p, const struct timespec64 *ts); 186 int (*getcycles64)(struct ptp_clock_info *ptp, struct timespec64 *ts); 187 int (*getcyclesx64)(struct ptp_clock_info *ptp, struct timespec64 *ts,
|
H A D | stat.h | 47 struct timespec64 atime; 48 struct timespec64 mtime; 49 struct timespec64 ctime; 50 struct timespec64 btime; /* File creation time */
|
H A D | ptp_kvm.h | 13 struct timespec64; 18 int kvm_arch_ptp_get_clock(struct timespec64 *ts); 20 struct timespec64 *tspec, struct clocksource **cs);
|
/kernel/linux/linux-6.6/kernel/time/ |
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 | 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() 472 struct timespec64 ts = ns_to_timespec64(nsec); in ns_to_kernel_old_timeval() 495 void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec) in set_normalized_timespec64() 518 * ns_to_timespec64 - Convert nanoseconds to timespec64 [all...] |
H A D | posix-timers.h | 6 struct timespec64 *tp); 8 const struct timespec64 *tp); 11 struct timespec64 *tp); 17 const struct timespec64 *);
|
/kernel/linux/linux-5.10/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() 454 struct timespec64 ts = ns_to_timespec64(nsec); in ns_to_kernel_old_timeval() 478 void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec) in set_normalized_timespec64() 501 * ns_to_timespec64 - Convert nanoseconds to timespec64 [all...] |
H A D | posix-stubs.c | 63 struct timespec64 new_tp; in SYSCALL_DEFINE2() 73 int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) in do_clock_gettime() 97 struct timespec64 kernel_tp; in SYSCALL_DEFINE2() 110 struct timespec64 rtn_tp = { in SYSCALL_DEFINE2() 131 struct timespec64 t; in SYSCALL_DEFINE4() 176 struct timespec64 new_tp; in SYSCALL_DEFINE2() 190 struct timespec64 kernel_tp; in SYSCALL_DEFINE2() 204 struct timespec64 rtn_tp = { in SYSCALL_DEFINE2() 225 struct timespec64 t; in SYSCALL_DEFINE4()
|
H A D | posix-timers.h | 6 struct timespec64 *tp); 8 const struct timespec64 *tp); 11 struct timespec64 *tp); 17 const struct timespec64 *);
|
H A D | ntp_internal.h | 12 const struct timespec64 *ts, 14 extern void __hardpps(const struct timespec64 *phase_ts, const struct timespec64 *raw_ts);
|
/kernel/linux/linux-6.6/fs/fat/ |
H A D | misc.c | 204 void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec64 *ts, in fat_time_fat2unix() 243 void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec64 *ts, in fat_time_unix2fat() 279 static inline struct timespec64 fat_timespec64_trunc_2secs(struct timespec64 ts) in fat_timespec64_trunc_2secs() 281 return (struct timespec64){ ts.tv_sec & ~1ULL, 0 }; in fat_timespec64_trunc_2secs() 287 struct timespec64 fat_truncate_atime(const struct msdos_sb_info *sbi, in fat_truncate_atime() 288 const struct timespec64 *ts) in fat_truncate_atime() 298 return (struct timespec64){ seconds, 0 }; in fat_truncate_atime() 304 struct timespec64 fat_truncate_mtime(const struct msdos_sb_info *sbi, in fat_truncate_mtime() 305 const struct timespec64 *t in fat_truncate_mtime() [all...] |
/kernel/linux/linux-5.10/fs/ntfs/ |
H A D | time.h | 25 * Linux stores time in a struct timespec64 consisting of a time64_t tv_sec 34 static inline sle64 utc2ntfs(const struct timespec64 ts) in utc2ntfs() 52 struct timespec64 ts; in get_current_ntfs_time() 65 * Linux stores time in a struct timespec64 consisting of a time64_t tv_sec 74 static inline struct timespec64 ntfs2utc(const sle64 time) in ntfs2utc() 76 struct timespec64 ts; in ntfs2utc()
|
/kernel/linux/linux-6.6/fs/ntfs/ |
H A D | time.h | 25 * Linux stores time in a struct timespec64 consisting of a time64_t tv_sec 34 static inline sle64 utc2ntfs(const struct timespec64 ts) in utc2ntfs() 52 struct timespec64 ts; in get_current_ntfs_time() 65 * Linux stores time in a struct timespec64 consisting of a time64_t tv_sec 74 static inline struct timespec64 ntfs2utc(const sle64 time) in ntfs2utc() 76 struct timespec64 ts; in ntfs2utc()
|
/kernel/linux/linux-5.10/fs/fat/ |
H A D | misc.c | 198 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() 275 static inline struct timespec64 fat_timespec64_trunc_10ms(struct timespec64 ts) in fat_timespec64_trunc_10ms() 293 int fat_truncate_time(struct inode *inode, struct timespec64 *now, int flags) in fat_truncate_time() 296 struct timespec64 ts; in fat_truncate_time() 315 inode->i_atime = (struct timespec64){ second in fat_truncate_time() [all...] |
/kernel/liteos_a/syscall/ |
H A D | time_syscall.c | 405 int SysClockSettime64(clockid_t clockID, const struct timespec64 *tp) in SysClockSettime64() 409 struct timespec64 stp; in SysClockSettime64() 416 if (LOS_ArchCopyFromUser(&stp, tp, sizeof(struct timespec64))) { in SysClockSettime64() 435 int SysClockGettime64(clockid_t clockID, struct timespec64 *tp) in SysClockGettime64() 439 struct timespec64 stp = { 0 }; in SysClockGettime64() 454 if (LOS_ArchCopyToUser(tp, &stp, sizeof(struct timespec64))) { in SysClockGettime64() 462 int SysClockGetres64(clockid_t clockID, struct timespec64 *tp) in SysClockGetres64() 466 struct timespec64 stp = { 0 }; in SysClockGetres64() 481 if (LOS_ArchCopyToUser(tp, &stp, sizeof(struct timespec64))) { in SysClockGetres64() 489 int SysClockNanoSleep64(clockid_t clk, int flags, const struct timespec64 *re [all...] |
/kernel/linux/linux-5.10/fs/ |
H A D | utimes.c | 19 int vfs_utimes(const struct path *path, struct timespec64 *times) in vfs_utimes() 79 struct timespec64 *times, int flags) in do_utimes_path() 107 static int do_utimes_fd(int fd, struct timespec64 *times, int flags) in do_utimes_fd() 138 long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, in do_utimes() 149 struct timespec64 tstimes[2]; in SYSCALL_DEFINE4() 176 struct timespec64 tstimes[2]; in do_futimesat() 215 struct timespec64 tv[2]; in SYSCALL_DEFINE2() 237 struct timespec64 tv[2]; in SYSCALL_DEFINE2() 252 struct timespec64 tv[2]; in SYSCALL_DEFINE4() 269 struct timespec64 t in do_compat_futimesat() [all...] |
/kernel/linux/linux-6.6/fs/ |
H A D | utimes.c | 20 int vfs_utimes(const struct path *path, struct timespec64 *times) in vfs_utimes() 81 struct timespec64 *times, int flags) in do_utimes_path() 109 static int do_utimes_fd(int fd, struct timespec64 *times, int flags) in do_utimes_fd() 140 long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, in do_utimes() 151 struct timespec64 tstimes[2]; in SYSCALL_DEFINE4() 178 struct timespec64 tstimes[2]; in do_futimesat() 217 struct timespec64 tv[2]; in SYSCALL_DEFINE2() 239 struct timespec64 tv[2]; in SYSCALL_DEFINE2() 254 struct timespec64 tv[2]; in SYSCALL_DEFINE4() 271 struct timespec64 t in do_compat_futimesat() [all...] |
/kernel/liteos_a/compat/posix/src/ |
H A D | time.c | 79 #define timespec64 timespec macro 136 STATIC struct timespec64 g_accDeltaFromAdj; 138 STATIC struct timespec64 g_accDeltaFromSet; 245 STATIC INLINE struct timespec64 OsTimeSpecAdd(const struct timespec64 t1, const struct timespec64 t2) in OsTimeSpecAdd() 247 struct timespec64 ret = {0}; in OsTimeSpecAdd() 262 STATIC INLINE struct timespec64 OsTimeSpecSub(const struct timespec64 t1, const struct timespec64 t [all...] |