Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 25 of 43) sorted by relevance

12

/fs/exfat/
Dmisc.c68 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()
[all …]
Dfile.c153 struct timespec64 ts; in __exfat_truncate() local
165 ts = current_time(inode); in __exfat_truncate()
166 exfat_set_entry_time(sbi, &ts, in __exfat_truncate()
Dexfat_fs.h520 void exfat_get_entry_time(struct exfat_sb_info *sbi, struct timespec64 *ts,
522 void exfat_truncate_atime(struct timespec64 *ts);
523 void exfat_set_entry_time(struct exfat_sb_info *sbi, struct timespec64 *ts,
/fs/ntfs/
Dtime.h34 static inline sle64 utc2ntfs(const struct timespec64 ts) in utc2ntfs() argument
40 return cpu_to_sle64((s64)ts.tv_sec * 10000000 + ts.tv_nsec / 100 + in utc2ntfs()
52 struct timespec64 ts; in get_current_ntfs_time() local
54 ktime_get_coarse_real_ts64(&ts); in get_current_ntfs_time()
55 return utc2ntfs(ts); in get_current_ntfs_time()
76 struct timespec64 ts; in ntfs2utc() local
84 ts.tv_nsec = do_div(t, 10000000) * 100; in ntfs2utc()
85 ts.tv_sec = t; in ntfs2utc()
86 return ts; in ntfs2utc()
/fs/fat/
Dmisc.c198 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()
[all …]
Dnamei_msdos.c229 struct timespec64 *ts, struct fat_slot_info *sinfo) in msdos_add_entry() argument
241 fat_time_unix2fat(sbi, ts, &time, &date, NULL); in msdos_add_entry()
254 fat_truncate_time(dir, ts, S_CTIME|S_MTIME); in msdos_add_entry()
270 struct timespec64 ts; in msdos_create() local
288 ts = current_time(dir); in msdos_create()
289 err = msdos_add_entry(dir, msdos_name, 0, is_hid, 0, &ts, &sinfo); in msdos_create()
298 fat_truncate_time(inode, &ts, S_ATIME|S_CTIME|S_MTIME); in msdos_create()
348 struct timespec64 ts; in msdos_mkdir() local
365 ts = current_time(dir); in msdos_mkdir()
366 cluster = fat_alloc_new_dir(dir, &ts); in msdos_mkdir()
[all …]
Dnamei_vfat.c581 struct timespec64 *ts, in vfat_build_slots() argument
645 fat_time_unix2fat(sbi, ts, &time, &date, &time_cs); in vfat_build_slots()
657 int is_dir, int cluster, struct timespec64 *ts, in vfat_add_entry() argument
672 err = vfat_build_slots(dir, qname->name, len, is_dir, cluster, ts, in vfat_add_entry()
682 fat_truncate_time(dir, ts, S_CTIME|S_MTIME); in vfat_add_entry()
765 struct timespec64 ts; in vfat_create() local
770 ts = current_time(dir); in vfat_create()
771 err = vfat_add_entry(dir, &dentry->d_name, 0, 0, &ts, &sinfo); in vfat_create()
783 fat_truncate_time(inode, &ts, S_ATIME|S_CTIME|S_MTIME); in vfat_create()
854 struct timespec64 ts; in vfat_mkdir() local
[all …]
Dfat.h335 extern int fat_alloc_new_dir(struct inode *dir, struct timespec64 *ts);
443 extern void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec64 *ts,
445 extern void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec64 *ts,
/fs/
Dselect.c275 struct timespec64 ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout() local
277 if (!timespec64_valid(&ts)) in poll_select_set_timeout()
285 *to = timespec64_add_safe(*to, ts); in poll_select_set_timeout()
736 struct timespec64 ts, end_time, *to = NULL; in do_pselect() local
742 if (get_timespec64(&ts, tsp)) in do_pselect()
746 if (get_old_timespec32(&ts, tsp)) in do_pselect()
754 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in do_pselect()
1104 struct timespec64 ts, end_time, *to = NULL; in SYSCALL_DEFINE5() local
1108 if (get_timespec64(&ts, tsp)) in SYSCALL_DEFINE5()
1112 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in SYSCALL_DEFINE5()
[all …]
Daio.c2180 struct timespec64 *ts) in do_io_getevents() argument
2182 ktime_t until = ts ? timespec64_to_ktime(*ts) : KTIME_MAX; in do_io_getevents()
2215 struct timespec64 ts; in SYSCALL_DEFINE5() local
2218 if (timeout && unlikely(get_timespec64(&ts, timeout))) in SYSCALL_DEFINE5()
2221 ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &ts : NULL); in SYSCALL_DEFINE5()
2243 struct timespec64 ts; in SYSCALL_DEFINE6() local
2247 if (timeout && unlikely(get_timespec64(&ts, timeout))) in SYSCALL_DEFINE6()
2257 ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &ts : NULL); in SYSCALL_DEFINE6()
2278 struct timespec64 ts; in SYSCALL_DEFINE6() local
2282 if (timeout && unlikely(get_old_timespec32(&ts, timeout))) in SYSCALL_DEFINE6()
[all …]
Dinit.c243 int __init init_utimes(char *filename, struct timespec64 *ts) in init_utimes() argument
251 error = vfs_utimes(&path, ts); in init_utimes()
/fs/udf/
Dudftime.c73 udf_time_to_disk_stamp(struct timestamp *dest, struct timespec64 ts) in udf_time_to_disk_stamp() argument
83 seconds = ts.tv_sec + offset * 60; in udf_time_to_disk_stamp()
91 dest->centiseconds = ts.tv_nsec / 10000000; in udf_time_to_disk_stamp()
92 dest->hundredsOfMicroseconds = (ts.tv_nsec / 1000 - in udf_time_to_disk_stamp()
94 dest->microseconds = (ts.tv_nsec / 1000 - dest->centiseconds * 10000 - in udf_time_to_disk_stamp()
Dsuper.c861 struct timestamp *ts; in udf_load_pvoldesc() local
882 ts = &pvoldesc->recordingDateAndTime; in udf_load_pvoldesc()
884 le16_to_cpu(ts->year), ts->month, ts->day, ts->hour, in udf_load_pvoldesc()
885 ts->minute, le16_to_cpu(ts->typeAndTimezone)); in udf_load_pvoldesc()
2020 struct timespec64 ts; in udf_finalize_lvid() local
2022 ktime_get_real_ts64(&ts); in udf_finalize_lvid()
2023 udf_time_to_disk_stamp(&lvid->recordingDateAndTime, ts); in udf_finalize_lvid()
2273 struct timestamp ts; in udf_fill_super() local
2274 udf_time_to_disk_stamp(&ts, sbi->s_record_time); in udf_fill_super()
2277 le16_to_cpu(ts.year), ts.month, ts.day, in udf_fill_super()
[all …]
/fs/ceph/
Dmetric.c22 struct timespec64 ts; in ceph_mdsc_send_metrics() local
57 jiffies_to_timespec64(sum, &ts); in ceph_mdsc_send_metrics()
58 read->sec = cpu_to_le32(ts.tv_sec); in ceph_mdsc_send_metrics()
59 read->nsec = cpu_to_le32(ts.tv_nsec); in ceph_mdsc_send_metrics()
69 jiffies_to_timespec64(sum, &ts); in ceph_mdsc_send_metrics()
70 write->sec = cpu_to_le32(ts.tv_sec); in ceph_mdsc_send_metrics()
71 write->nsec = cpu_to_le32(ts.tv_nsec); in ceph_mdsc_send_metrics()
81 jiffies_to_timespec64(sum, &ts); in ceph_mdsc_send_metrics()
82 meta->sec = cpu_to_le32(ts.tv_sec); in ceph_mdsc_send_metrics()
83 meta->nsec = cpu_to_le32(ts.tv_nsec); in ceph_mdsc_send_metrics()
/fs/coda/
Dcoda_linux.c69 static struct timespec64 coda_to_timespec64(struct coda_timespec ts) in coda_to_timespec64() argument
72 .tv_sec = ts.tv_sec, in coda_to_timespec64()
73 .tv_nsec = ts.tv_nsec, in coda_to_timespec64()
81 struct coda_timespec ts = { in timespec64_to_coda() local
86 return ts; in timespec64_to_coda()
/fs/xfs/libxfs/
Dxfs_inode_buf.c160 static inline struct timespec64 xfs_inode_decode_bigtime(uint64_t ts) in xfs_inode_decode_bigtime() argument
165 tv.tv_sec = xfs_bigtime_to_unix(div_u64_rem(ts, NSEC_PER_SEC, &n)); in xfs_inode_decode_bigtime()
175 const xfs_timestamp_t ts) in xfs_inode_from_disk_ts() argument
181 return xfs_inode_decode_bigtime(be64_to_cpu(ts)); in xfs_inode_from_disk_ts()
183 lts = (struct xfs_legacy_timestamp *)&ts; in xfs_inode_from_disk_ts()
288 xfs_timestamp_t ts; in xfs_inode_to_disk_ts() local
293 lts = (struct xfs_legacy_timestamp *)&ts; in xfs_inode_to_disk_ts()
297 return ts; in xfs_inode_to_disk_ts()
Dxfs_inode_buf.h72 const xfs_timestamp_t ts);
/fs/cifs/
Dnetmisc.c934 struct timespec64 ts; in cifs_NTtimeToUnix() local
948 ts.tv_nsec = (time64_t)(do_div(abs_t, 10000000) * 100); in cifs_NTtimeToUnix()
949 ts.tv_nsec = -ts.tv_nsec; in cifs_NTtimeToUnix()
950 ts.tv_sec = -abs_t; in cifs_NTtimeToUnix()
953 ts.tv_nsec = (time64_t)do_div(abs_t, 10000000) * 100; in cifs_NTtimeToUnix()
954 ts.tv_sec = abs_t; in cifs_NTtimeToUnix()
957 return ts; in cifs_NTtimeToUnix()
974 struct timespec64 ts; in cnvrtDosUnixTm() local
1019 ts.tv_sec = sec + offset; in cnvrtDosUnixTm()
1023 ts.tv_nsec = 0; in cnvrtDosUnixTm()
[all …]
Dcifsfs.c164 struct timespec64 ts; in cifs_read_super() local
193 ts = cnvrtDosUnixTm(cpu_to_le16(SMB_DATE_MIN), 0, 0); in cifs_read_super()
194 sb->s_time_min = ts.tv_sec; in cifs_read_super()
195 ts = cnvrtDosUnixTm(cpu_to_le16(SMB_DATE_MAX), in cifs_read_super()
197 sb->s_time_max = ts.tv_sec; in cifs_read_super()
204 ts = cifs_NTtimeToUnix(0); in cifs_read_super()
205 sb->s_time_min = ts.tv_sec; in cifs_read_super()
206 ts = cifs_NTtimeToUnix(cpu_to_le64(S64_MAX)); in cifs_read_super()
207 sb->s_time_max = ts.tv_sec; in cifs_read_super()
/fs/ufs/
Dialloc.c180 struct timespec64 ts; in ufs_new_inode() local
328 ktime_get_real_ts64(&ts); in ufs_new_inode()
329 ufs2_inode->ui_birthtime = cpu_to_fs64(sb, ts.tv_sec); in ufs_new_inode()
330 ufs2_inode->ui_birthnsec = cpu_to_fs32(sb, ts.tv_nsec); in ufs_new_inode()
/fs/nfs/
Dinode.c1393 struct timespec64 ts; in nfs_wcc_update_inode() local
1405 ts = inode->i_ctime; in nfs_wcc_update_inode()
1408 && timespec64_equal(&ts, &fattr->pre_ctime)) { in nfs_wcc_update_inode()
1412 ts = inode->i_mtime; in nfs_wcc_update_inode()
1415 && timespec64_equal(&ts, &fattr->pre_mtime)) { in nfs_wcc_update_inode()
1442 struct timespec64 ts; in nfs_check_inode_attributes() local
1469 ts = inode->i_mtime; in nfs_check_inode_attributes()
1470 if ((fattr->valid & NFS_ATTR_FATTR_MTIME) && !timespec64_equal(&ts, &fattr->mtime)) in nfs_check_inode_attributes()
1473 ts = inode->i_ctime; in nfs_check_inode_attributes()
1474 if ((fattr->valid & NFS_ATTR_FATTR_CTIME) && !timespec64_equal(&ts, &fattr->ctime)) in nfs_check_inode_attributes()
[all …]
/fs/xfs/
Dxfs_inode_item_recover.c132 xfs_timestamp_t ts; in xfs_log_dinode_to_disk_ts() local
137 lts = (struct xfs_legacy_timestamp *)&ts; in xfs_log_dinode_to_disk_ts()
142 return ts; in xfs_log_dinode_to_disk_ts()
/fs/jbd2/
Dtransaction.c150 unsigned long ts) in update_t_max_wait() argument
154 time_after(transaction->t_start, ts)) { in update_t_max_wait()
155 ts = jbd2_time_diff(ts, transaction->t_start); in update_t_max_wait()
157 if (ts > transaction->t_max_wait) in update_t_max_wait()
158 transaction->t_max_wait = ts; in update_t_max_wait()
331 unsigned long ts = jiffies; in start_this_handle() local
437 update_t_max_wait(transaction, ts); in start_this_handle()
/fs/adfs/
Dinode.c210 const struct timespec64 *ts) in adfs_unix2adfs_time() argument
212 s64 cs, nsec = timespec64_to_ns(ts); in adfs_unix2adfs_time()
/fs/afs/
Dyfsclient.c116 struct timespec64 ts; in yfs_time_to_linux() local
126 ts.tv_nsec = (time64_t)(do_div(abs_t, 10000000) * 100); in yfs_time_to_linux()
127 ts.tv_nsec = -ts.tv_nsec; in yfs_time_to_linux()
128 ts.tv_sec = -abs_t; in yfs_time_to_linux()
131 ts.tv_nsec = (time64_t)do_div(abs_t, 10000000) * 100; in yfs_time_to_linux()
132 ts.tv_sec = abs_t; in yfs_time_to_linux()
135 return ts; in yfs_time_to_linux()

12