Home
last modified time | relevance | path

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

/fs/ntfs/
Dtime.h48 static inline sle64 utc2ntfs(const struct timespec ts) in utc2ntfs() argument
54 return cpu_to_sle64((s64)ts.tv_sec * 10000000 + ts.tv_nsec / 100 + in utc2ntfs()
87 struct timespec ts; in ntfs2utc() local
95 ts.tv_nsec = do_div(t, 10000000) * 100; in ntfs2utc()
96 ts.tv_sec = t; in ntfs2utc()
97 return ts; in ntfs2utc()
/fs/fat/
Dmisc.c196 void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec *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 timespec *ts, in fat_time_unix2fat() argument
238 time_to_tm(ts->tv_sec, in fat_time_unix2fat()
268 *time_cs = (ts->tv_sec & 1) * 100 + ts->tv_nsec / 10000000; in fat_time_unix2fat()
Dnamei_msdos.c231 struct timespec *ts, struct fat_slot_info *sinfo) in msdos_add_entry() argument
243 fat_time_unix2fat(sbi, ts, &time, &date, NULL); in msdos_add_entry()
256 dir->i_ctime = dir->i_mtime = *ts; in msdos_add_entry()
272 struct timespec ts; in msdos_create() local
290 ts = CURRENT_TIME_SEC; in msdos_create()
291 err = msdos_add_entry(dir, msdos_name, 0, is_hid, 0, &ts, &sinfo); in msdos_create()
300 inode->i_mtime = inode->i_atime = inode->i_ctime = ts; in msdos_create()
354 struct timespec ts; in msdos_mkdir() local
371 ts = CURRENT_TIME_SEC; in msdos_mkdir()
372 cluster = fat_alloc_new_dir(dir, &ts); in msdos_mkdir()
[all …]
Dnamei_vfat.c586 struct timespec *ts, in vfat_build_slots() argument
650 fat_time_unix2fat(sbi, ts, &time, &date, &time_cs); in vfat_build_slots()
662 int cluster, struct timespec *ts, in vfat_add_entry() argument
677 err = vfat_build_slots(dir, qname->name, len, is_dir, cluster, ts, in vfat_add_entry()
687 dir->i_ctime = dir->i_mtime = dir->i_atime = *ts; in vfat_add_entry()
779 struct timespec ts; in vfat_create() local
784 ts = CURRENT_TIME_SEC; in vfat_create()
785 err = vfat_add_entry(dir, &dentry->d_name, 0, 0, &ts, &sinfo); in vfat_create()
797 inode->i_mtime = inode->i_atime = inode->i_ctime = ts; in vfat_create()
867 struct timespec ts; in vfat_mkdir() local
[all …]
Dfat.h304 extern int fat_alloc_new_dir(struct inode *dir, struct timespec *ts);
404 extern void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec *ts,
406 extern void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec *ts,
Ddir.c1137 int fat_alloc_new_dir(struct inode *dir, struct timespec *ts) in fat_alloc_new_dir() argument
1159 fat_time_unix2fat(sbi, ts, &time, &date, &time_cs); in fat_alloc_new_dir()
/fs/udf/
Dudftime.c122 udf_time_to_disk_stamp(struct timestamp *dest, struct timespec ts) in udf_time_to_disk_stamp() argument
135 ts.tv_sec += offset * 60; in udf_time_to_disk_stamp()
136 days = ts.tv_sec / SECS_PER_DAY; in udf_time_to_disk_stamp()
137 rem = ts.tv_sec % SECS_PER_DAY; in udf_time_to_disk_stamp()
164 dest->centiseconds = ts.tv_nsec / 10000000; in udf_time_to_disk_stamp()
165 dest->hundredsOfMicroseconds = (ts.tv_nsec / 1000 - in udf_time_to_disk_stamp()
167 dest->microseconds = (ts.tv_nsec / 1000 - dest->centiseconds * 10000 - in udf_time_to_disk_stamp()
Dsuper.c874 struct timestamp *ts = &pvoldesc->recordingDateAndTime; in udf_load_pvoldesc() local
876 le16_to_cpu(ts->year), ts->month, ts->day, ts->hour, in udf_load_pvoldesc()
877 ts->minute, le16_to_cpu(ts->typeAndTimezone)); in udf_load_pvoldesc()
2073 struct timestamp ts; in udf_fill_super() local
2074 udf_time_to_disk_stamp(&ts, sbi->s_record_time); in udf_fill_super()
2077 le16_to_cpu(ts.year), ts.month, ts.day, in udf_fill_super()
2078 ts.hour, ts.minute, le16_to_cpu(ts.typeAndTimezone)); in udf_fill_super()
/fs/afs/
Dmain.c40 struct timespec ts; in afs_get_client_UUID() local
51 getnstimeofday(&ts); in afs_get_client_UUID()
52 uuidtime = (u64) ts.tv_sec * 1000 * 1000 * 10; in afs_get_client_UUID()
53 uuidtime += ts.tv_nsec / 100; in afs_get_client_UUID()
/fs/
Dcompat.c1094 struct timespec ts; in poll_select_copy_remaining() local
1106 ktime_get_ts(&ts); in poll_select_copy_remaining()
1107 ts = timespec_sub(*end_time, ts); in poll_select_copy_remaining()
1108 if (ts.tv_sec < 0) in poll_select_copy_remaining()
1109 ts.tv_sec = ts.tv_nsec = 0; in poll_select_copy_remaining()
1114 rtv.tv_sec = ts.tv_sec; in poll_select_copy_remaining()
1115 rtv.tv_usec = ts.tv_nsec / NSEC_PER_USEC; in poll_select_copy_remaining()
1122 rts.tv_sec = ts.tv_sec; in poll_select_copy_remaining()
1123 rts.tv_nsec = ts.tv_nsec; in poll_select_copy_remaining()
1340 struct compat_timespec ts; in do_compat_pselect() local
[all …]
Dselect.c274 struct timespec ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout() local
276 if (!timespec_valid(&ts)) in poll_select_set_timeout()
284 *to = timespec_add_safe(*to, ts); in poll_select_set_timeout()
623 struct timespec ts, end_time, *to = NULL; in do_pselect() local
627 if (copy_from_user(&ts, tsp, sizeof(ts))) in do_pselect()
631 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in do_pselect()
945 struct timespec ts, end_time, *to = NULL; in SYSCALL_DEFINE5() local
949 if (copy_from_user(&ts, tsp, sizeof(ts))) in SYSCALL_DEFINE5()
953 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in SYSCALL_DEFINE5()
Daio.c791 struct timespec ts; in read_events() local
793 if (unlikely(copy_from_user(&ts, timeout, sizeof(ts)))) in read_events()
796 until = timespec_to_ktime(ts); in read_events()
Deventpoll.c1528 struct timespec now, ts = { in ep_set_mstimeout() local
1534 return timespec_add_safe(now, ts); in ep_set_mstimeout()
/fs/cifs/
Dnetmisc.c922 struct timespec ts; in cifs_NTtimeToUnix() local
929 ts.tv_nsec = do_div(t, 10000000) * 100; in cifs_NTtimeToUnix()
930 ts.tv_sec = t; in cifs_NTtimeToUnix()
931 return ts; in cifs_NTtimeToUnix()
947 struct timespec ts; in cnvrtDosUnixTm() local
991 ts.tv_sec = sec + offset; in cnvrtDosUnixTm()
995 ts.tv_nsec = 0; in cnvrtDosUnixTm()
996 return ts; in cnvrtDosUnixTm()
Dcifssmb.c480 struct timespec ts, utc; in CIFSSMBNegotiate() local
482 ts = cnvrtDosUnixTm(rsp->SrvTime.Date, in CIFSSMBNegotiate()
485 (int)ts.tv_sec, (int)utc.tv_sec, in CIFSSMBNegotiate()
486 (int)(utc.tv_sec - ts.tv_sec)); in CIFSSMBNegotiate()
487 val = (int)(utc.tv_sec - ts.tv_sec); in CIFSSMBNegotiate()
3875 struct timespec ts; in SMBQueryInformation() local
3881 ts.tv_nsec = 0; in SMBQueryInformation()
3882 ts.tv_sec = time; in SMBQueryInformation()
3884 data->ChangeTime = cpu_to_le64(cifs_UnixTimeToNT(ts)); in SMBQueryInformation()
/fs/jbd2/
Dtransaction.c130 unsigned long ts) in update_t_max_wait() argument
134 time_after(transaction->t_start, ts)) { in update_t_max_wait()
135 ts = jbd2_time_diff(ts, transaction->t_start); in update_t_max_wait()
137 if (ts > transaction->t_max_wait) in update_t_max_wait()
138 transaction->t_max_wait = ts; in update_t_max_wait()
263 unsigned long ts = jiffies; in start_this_handle() local
360 update_t_max_wait(transaction, ts); in start_this_handle()
/fs/lockd/
Dmon.c309 struct timespec ts; in nsm_init_private() local
312 ktime_get_ts(&ts); in nsm_init_private()
313 ns = timespec_to_ns(&ts); in nsm_init_private()
/fs/nfs/
Dinternal.h573 u64 nfs_timespec_to_change_attr(const struct timespec *ts) in nfs_timespec_to_change_attr() argument
575 return ((u64)ts->tv_sec << 30) + ts->tv_nsec; in nfs_timespec_to_change_attr()
Dfile.c782 is_time_granular(struct timespec *ts) { in is_time_granular() argument
783 return ((ts->tv_sec == 0) && (ts->tv_nsec <= 1000)); in is_time_granular()
/fs/ceph/
Dmds_client.c846 struct ceph_mds_session *ts; in __open_export_target_sessions() local
858 ts = __ceph_lookup_mds_session(mdsc, target); in __open_export_target_sessions()
859 if (!ts) { in __open_export_target_sessions()
860 ts = register_session(mdsc, target); in __open_export_target_sessions()
861 if (IS_ERR(ts)) in __open_export_target_sessions()
869 i, ts, session_state_name(ts->s_state)); in __open_export_target_sessions()
870 ceph_put_mds_session(ts); in __open_export_target_sessions()
/fs/btrfs/
Dsend.c480 struct timespec *ts)
483 bts.sec = cpu_to_le64(ts->tv_sec);
484 bts.nsec = cpu_to_le32(ts->tv_nsec);
491 struct btrfs_timespec *ts) in tlv_put_btrfs_timespec() argument
494 read_extent_buffer(eb, &bts, (unsigned long)ts, sizeof(bts)); in tlv_put_btrfs_timespec()
536 #define TLV_PUT_TIMESPEC(sctx, attrtype, ts) \ argument
538 ret = tlv_put_timespec(sctx, attrtype, ts); \
542 #define TLV_PUT_BTRFS_TIMESPEC(sctx, attrtype, eb, ts) \ argument
544 ret = tlv_put_btrfs_timespec(sctx, attrtype, eb, ts); \
/fs/fuse/
Ddir.c79 struct timespec ts = {sec, nsec}; in time_to_jiffies() local
80 return get_jiffies_64() + timespec_to_jiffies(&ts); in time_to_jiffies()