| /linux-6.15/include/linux/ |
| H A D | time64.h | 13 struct timespec64 { struct 19 struct timespec64 it_interval; argument 20 struct timespec64 it_value; 62 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) in timespec64_compare() 73 static inline struct timespec64 timespec64_add(struct timespec64 lhs, in timespec64_add() 74 struct timespec64 rhs) in timespec64_add() 76 struct timespec64 ts_delta; in timespec64_add() 85 static inline struct timespec64 timespec64_sub(struct timespec64 lhs, in timespec64_sub() 86 struct timespec64 rhs) in timespec64_sub() 88 struct timespec64 ts_delta; in timespec64_sub() [all …]
|
| 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); 50 extern void ktime_get_real_ts64_mg(struct timespec64 *ts); 53 void getboottime64(struct timespec64 *ts); 130 struct timespec64 ts; in ktime_get_coarse() [all …]
|
| H A D | time_namespace.h | 18 struct timespec64 monotonic; 19 struct timespec64 boottime; 62 struct timespec64 val; 68 static inline void timens_add_monotonic(struct timespec64 *ts) in timens_add_monotonic() 75 static inline void timens_add_boottime(struct timespec64 *ts) in timens_add_boottime() 89 static inline void timens_sub_boottime(struct timespec64 *ts) in timens_sub_boottime() 152 static inline void timens_add_monotonic(struct timespec64 *ts) { } in timens_add_monotonic() 153 static inline void timens_add_boottime(struct timespec64 *ts) { } in timens_add_boottime() 160 static inline void timens_sub_boottime(struct timespec64 *ts) { } in timens_sub_boottime()
|
| H A D | ptp_clock_kernel.h | 53 struct timespec64 pre_ts; 54 struct timespec64 post_ts; 182 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts); 183 int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts, 187 int (*settime64)(struct ptp_clock_info *p, const struct timespec64 *ts); 188 int (*getcycles64)(struct ptp_clock_info *ptp, struct timespec64 *ts); 189 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 | 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; 93 struct timespec64 ts) in timespec_to_pps_ktime() 111 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);
|
| /linux-6.15/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() 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() 525 struct timespec64 ts = { 0, 0 }; in ns_to_timespec64() 846 struct timespec64 timespec64_add_safe(const struct timespec64 lhs, in timespec64_add_safe() 847 const struct timespec64 rhs) in timespec64_add_safe() 849 struct timespec64 res; in timespec64_add_safe() [all …]
|
| H A D | timekeeping.c | 160 struct timespec64 ts; in tk_xtime() 169 struct timespec64 ts; in tk_xtime_coarse() 207 struct timespec64 tmp; in tk_set_wall_to_mono() 910 struct timespec64 tomono; in ktime_get_ts64() 1428 struct timespec64 tmp; in timekeeping_inject_offset() 1475 struct timespec64 adjust; in timekeeping_warp_clock() 2120 struct timespec64 ts; in accumulate_nsecs_to_secs() 2381 struct timespec64 now, mono; in ktime_get_coarse_ts64() 2538 struct timespec64 ts; in do_adjtimex() 2548 struct timespec64 delta; in do_adjtimex() [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 | 12 const struct timespec64 *ts, 14 extern void __hardpps(const struct timespec64 *phase_ts, const struct timespec64 *raw_ts);
|
| /linux-6.15/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 *ts) in fat_truncate_mtime() 314 int fat_truncate_time(struct inode *inode, struct timespec64 *now, int flags) in fat_truncate_time() [all …]
|
| /linux-6.15/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() 135 long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, in do_utimes() 146 struct timespec64 tstimes[2]; in SYSCALL_DEFINE4() 173 struct timespec64 tstimes[2]; in do_futimesat() 212 struct timespec64 tv[2]; in SYSCALL_DEFINE2() 234 struct timespec64 tv[2]; in SYSCALL_DEFINE2() 249 struct timespec64 tv[2]; in SYSCALL_DEFINE4() 266 struct timespec64 tv[2]; in do_compat_futimesat()
|
| /linux-6.15/Documentation/core-api/ |
| H A D | timekeeping.rst | 59 nanosecond, timespec64, and second output 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 * ) 160 void getnstimeofday64( struct timespec64 * ) 168 struct timespec64 current_kernel_time64( void ) 170 struct timespec64 get_monotonic_coarse64( void ) 179 struct timespec64 getrawmonotonic64( void ) 181 struct timespec64 timekeeping_clocktai64( void ) [all …]
|
| /linux-6.15/drivers/ptp/ |
| H A D | ptp_s390.c | 23 static struct timespec64 eitod_to_timespec64(union tod_clock *clk) in eitod_to_timespec64() 28 static struct timespec64 tod_to_timespec64(unsigned long tod) in tod_to_timespec64() 34 struct timespec64 *ts) in ptp_s390_stcke_gettime() 47 struct timespec64 *ts) in ptp_s390_qpt_gettime() 57 const struct timespec64 *ts) in ptp_s390_settime()
|
| 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()
|
| /linux-6.15/arch/x86/include/asm/ |
| H A D | x86_init.h | 201 struct timespec64; 313 void (*get_wallclock)(struct timespec64 *ts); 314 int (*set_wallclock)(const struct timespec64 *ts); 347 extern int set_rtc_noop(const struct timespec64 *now); 348 extern void get_rtc_noop(struct timespec64 *now);
|
| /linux-6.15/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-6.15/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-6.15/include/trace/events/ |
| H A D | timestamp.h | 16 struct timespec64 *ctime), 44 struct timespec64 *ctime), 49 struct timespec64 *ctime), 90 struct timespec64 *ctime, 91 struct timespec64 *mtime),
|
| /linux-6.15/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-6.15/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() 78 const struct timespec64 *ts) in gem_tsu_set_time() 160 struct timespec64 now, then = ns_to_timespec64(delta); in gem_ptp_adjtime() 173 (const struct timespec64 *)&now); in gem_ptp_adjtime() 222 struct timespec64 ts; in gem_ptp_init_tsu() 247 u32 dma_desc_ts_2, struct timespec64 *ts) in gem_hw_timestamp() 249 struct timespec64 tsu; in gem_hw_timestamp() 279 struct timespec64 ts; in gem_ptp_rxstamp() 300 struct timespec64 ts; in gem_ptp_txstamp()
|