Lines Matching refs:ts
198 void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec64 *ts, in fat_time_fat2unix() argument
225 ts->tv_sec = second + (time_cs / 100); in fat_time_fat2unix()
226 ts->tv_nsec = (time_cs % 100) * 10000000; in fat_time_fat2unix()
228 ts->tv_sec = second; in fat_time_fat2unix()
229 ts->tv_nsec = 0; in fat_time_fat2unix()
234 void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec64 *ts, in fat_time_unix2fat() argument
238 time64_to_tm(ts->tv_sec, -fat_tz_offset(sbi), &tm); in fat_time_unix2fat()
266 *time_cs = (ts->tv_sec & 1) * 100 + ts->tv_nsec / 10000000; in fat_time_unix2fat()
270 static inline struct timespec64 fat_timespec64_trunc_2secs(struct timespec64 ts) in fat_timespec64_trunc_2secs() argument
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() argument
277 if (ts.tv_nsec) in fat_timespec64_trunc_10ms()
278 ts.tv_nsec -= ts.tv_nsec % 10000000UL; in fat_timespec64_trunc_10ms()
279 return ts; in fat_timespec64_trunc_10ms()
296 struct timespec64 ts; in fat_truncate_time() local
302 now = &ts; in fat_truncate_time()
303 ts = current_time(inode); in fat_truncate_time()