Lines Matching refs:ts
68 static void exfat_adjust_tz(struct timespec64 *ts, u8 tz_off) in exfat_adjust_tz() argument
71 ts->tv_sec -= TIMEZONE_SEC(tz_off); in exfat_adjust_tz()
73 ts->tv_sec += TIMEZONE_SEC(0x80 - tz_off); in exfat_adjust_tz()
77 void exfat_get_entry_time(struct exfat_sb_info *sbi, struct timespec64 *ts, in exfat_get_entry_time() argument
83 ts->tv_sec = mktime64(1980 + (d >> 9), d >> 5 & 0x000F, d & 0x001F, in exfat_get_entry_time()
89 ts->tv_sec += time_cs / 100; in exfat_get_entry_time()
90 ts->tv_nsec = (time_cs % 100) * 10 * NSEC_PER_MSEC; in exfat_get_entry_time()
92 ts->tv_nsec = 0; in exfat_get_entry_time()
96 exfat_adjust_tz(ts, tz & ~EXFAT_TZ_VALID); in exfat_get_entry_time()
99 ts->tv_sec -= sbi->options.time_offset * SECS_PER_MIN; in exfat_get_entry_time()
103 void exfat_set_entry_time(struct exfat_sb_info *sbi, struct timespec64 *ts, in exfat_set_entry_time() argument
109 time64_to_tm(ts->tv_sec, 0, &tm); in exfat_set_entry_time()
119 ts->tv_nsec / (10 * NSEC_PER_MSEC); in exfat_set_entry_time()
133 void exfat_truncate_atime(struct timespec64 *ts) in exfat_truncate_atime() argument
135 ts->tv_sec = round_down(ts->tv_sec, 2); in exfat_truncate_atime()
136 ts->tv_nsec = 0; in exfat_truncate_atime()