| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | time64.h | 13 struct timespec64 { struct 19 struct timespec64 it_interval; argument 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 lhs, in timespec64_add() 64 struct timespec64 rhs) in timespec64_add() 66 struct timespec64 ts_delta; in timespec64_add() [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, 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 …]
|
| 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 */
|
| H A D | ptp_clock_kernel.h | 34 struct timespec64 pre_ts; 35 struct timespec64 post_ts; 136 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts); 137 int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts, 141 int (*settime64)(struct ptp_clock_info *p, const struct timespec64 *ts);
|
| 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 | 43 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);
|
| H A D | time.h | 11 int get_timespec64(struct timespec64 *ts, 13 int put_timespec64(const struct timespec64 *ts, 43 extern long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, int flags);
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/ |
| H A D | mali_kbase_trace_timeline.h | 52 struct timespec64 ts; \ 62 struct timespec64 ts; \ 79 struct timespec64 ts; \ 91 struct timespec64 ts; \ 102 struct timespec64 ts; \ 113 struct timespec64 ts; \ 126 struct timespec64 ts; \ 135 struct timespec64 ts; \ 145 struct timespec64 ts; \ 155 struct timespec64 ts; \ [all …]
|
| /OK3568_Linux_fs/kernel/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() 506 struct timespec64 ns_to_timespec64(const s64 nsec) in ns_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() 175 struct timespec64 new_tp; in SYSCALL_DEFINE2() 189 struct timespec64 kernel_tp; in SYSCALL_DEFINE2() 203 struct timespec64 rtn_tp = { in SYSCALL_DEFINE2() 224 struct timespec64 t; in SYSCALL_DEFINE4()
|
| H A D | timekeeping.c | 129 static inline struct timespec64 tk_xtime(const struct timekeeper *tk) in tk_xtime() 131 struct timespec64 ts; in tk_xtime() 138 static void tk_set_xtime(struct timekeeper *tk, const struct timespec64 *ts) in tk_set_xtime() 144 static void tk_xtime_add(struct timekeeper *tk, const struct timespec64 *ts) in tk_xtime_add() 151 static void tk_set_wall_to_mono(struct timekeeper *tk, struct timespec64 wtm) in tk_set_wall_to_mono() 153 struct timespec64 tmp; in tk_set_wall_to_mono() 802 void ktime_get_real_ts64(struct timespec64 *ts) in ktime_get_real_ts64() 956 void ktime_get_ts64(struct timespec64 *ts) in ktime_get_ts64() 959 struct timespec64 tomono; in ktime_get_ts64() 1299 int do_settimeofday64(const struct timespec64 *ts) in do_settimeofday64() [all …]
|
| 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);
|
| H A D | posix-timers.c | 170 static int posix_get_realtime_timespec(clockid_t which_clock, struct timespec64 *tp) in posix_get_realtime_timespec() 183 const struct timespec64 *tp) in posix_clock_realtime_set() 197 static int posix_get_monotonic_timespec(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_timespec() 212 static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_raw() 220 static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec64 *tp) in posix_get_realtime_coarse() 227 struct timespec64 *tp) in posix_get_monotonic_coarse() 234 static int posix_get_coarse_res(const clockid_t which_clock, struct timespec64 *tp) in posix_get_coarse_res() 240 static int posix_get_boottime_timespec(const clockid_t which_clock, struct timespec64 *tp) in posix_get_boottime_timespec() 252 static int posix_get_tai_timespec(clockid_t which_clock, struct timespec64 *tp) in posix_get_tai_timespec() 263 static int posix_get_hrtimer_res(clockid_t which_clock, struct timespec64 *tp) in posix_get_hrtimer_res() [all …]
|
| H A D | ntp.c | 107 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()
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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){ seconds, 0 }; in fat_truncate_time() 330 int fat_update_time(struct inode *inode, struct timespec64 *now, int flags) in fat_update_time()
|
| /OK3568_Linux_fs/kernel/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 tv[2]; in do_compat_futimesat()
|
| H A 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() 297 static int poll_select_finish(struct timespec64 *end_time, in poll_select_finish() 301 struct timespec64 rts; in poll_select_finish() 478 static int do_select(int n, fd_set_bits *fds, struct timespec64 *end_time) in do_select() 625 fd_set __user *exp, struct timespec64 *end_time) in core_sys_select() 706 struct timespec64 end_time, *to = NULL; in kern_select() [all …]
|
| /OK3568_Linux_fs/kernel/fs/ntfs/ |
| H A D | time.h | 34 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()
|
| /OK3568_Linux_fs/kernel/drivers/ptp/ |
| H A D | ptp_kvm.c | 37 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()
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/cadence/ |
| H A D | macb_ptp.c | 41 static int gem_tsu_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts) in gem_tsu_get_time() 73 const struct timespec64 *ts) in gem_tsu_set_time() 155 struct timespec64 now, then = ns_to_timespec64(delta); in gem_ptp_adjtime() 168 (const struct timespec64 *)&now); in gem_ptp_adjtime() 217 struct timespec64 ts; in gem_ptp_init_tsu() 242 u32 dma_desc_ts_2, struct timespec64 *ts) in gem_hw_timestamp() 244 struct timespec64 tsu; in gem_hw_timestamp() 274 struct timespec64 ts; in gem_ptp_rxstamp() 294 struct timespec64 ts; in gem_tstamp_tx()
|