Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 23 of 23) 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.c189 void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec *ts, in fat_time_fat2unix() argument
218 ts->tv_sec = second + (time_cs / 100); in fat_time_fat2unix()
219 ts->tv_nsec = (time_cs % 100) * 10000000; in fat_time_fat2unix()
221 ts->tv_sec = second; in fat_time_fat2unix()
222 ts->tv_nsec = 0; in fat_time_fat2unix()
227 void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec *ts, in fat_time_unix2fat() argument
231 time_to_tm(ts->tv_sec, in fat_time_unix2fat()
261 *time_cs = (ts->tv_sec & 1) * 100 + ts->tv_nsec / 10000000; in fat_time_unix2fat()
Dnamei_msdos.c227 struct timespec *ts, struct fat_slot_info *sinfo) in msdos_add_entry() argument
239 fat_time_unix2fat(sbi, ts, &time, &date, NULL); in msdos_add_entry()
252 dir->i_ctime = dir->i_mtime = *ts; in msdos_add_entry()
268 struct timespec ts; in msdos_create() local
286 ts = current_time(dir); in msdos_create()
287 err = msdos_add_entry(dir, msdos_name, 0, is_hid, 0, &ts, &sinfo); in msdos_create()
296 inode->i_mtime = inode->i_atime = inode->i_ctime = ts; in msdos_create()
350 struct timespec ts; in msdos_mkdir() local
367 ts = current_time(dir); in msdos_mkdir()
368 cluster = fat_alloc_new_dir(dir, &ts); in msdos_mkdir()
[all …]
Dnamei_vfat.c591 struct timespec *ts, in vfat_build_slots() argument
655 fat_time_unix2fat(sbi, ts, &time, &date, &time_cs); in vfat_build_slots()
667 int is_dir, int cluster, struct timespec *ts, in vfat_add_entry() argument
682 err = vfat_build_slots(dir, qname->name, len, is_dir, cluster, ts, in vfat_add_entry()
692 dir->i_ctime = dir->i_mtime = dir->i_atime = *ts; in vfat_add_entry()
786 struct timespec ts; in vfat_create() local
791 ts = current_time(dir); in vfat_create()
792 err = vfat_add_entry(dir, &dentry->d_name, 0, 0, &ts, &sinfo); in vfat_create()
804 inode->i_mtime = inode->i_atime = inode->i_ctime = ts; in vfat_create()
875 struct timespec ts; in vfat_mkdir() local
[all …]
Dfat.h306 extern int fat_alloc_new_dir(struct inode *dir, struct timespec *ts);
408 extern void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec *ts,
410 extern void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec *ts,
Ddir.c1133 int fat_alloc_new_dir(struct inode *dir, struct timespec *ts) in fat_alloc_new_dir() argument
1155 fat_time_unix2fat(sbi, ts, &time, &date, &time_cs); in fat_alloc_new_dir()
/fs/udf/
Dudftime.c120 udf_time_to_disk_stamp(struct timestamp *dest, struct timespec ts) in udf_time_to_disk_stamp() argument
133 ts.tv_sec += offset * 60; in udf_time_to_disk_stamp()
134 days = ts.tv_sec / SECS_PER_DAY; in udf_time_to_disk_stamp()
135 rem = ts.tv_sec % SECS_PER_DAY; in udf_time_to_disk_stamp()
162 dest->centiseconds = ts.tv_nsec / 10000000; in udf_time_to_disk_stamp()
163 dest->hundredsOfMicroseconds = (ts.tv_nsec / 1000 - in udf_time_to_disk_stamp()
165 dest->microseconds = (ts.tv_nsec / 1000 - dest->centiseconds * 10000 - in udf_time_to_disk_stamp()
Dsuper.c924 struct timestamp *ts = &pvoldesc->recordingDateAndTime; in udf_load_pvoldesc() local
926 le16_to_cpu(ts->year), ts->month, ts->day, ts->hour, in udf_load_pvoldesc()
927 ts->minute, le16_to_cpu(ts->typeAndTimezone)); in udf_load_pvoldesc()
2234 struct timestamp ts; in udf_fill_super() local
2235 udf_time_to_disk_stamp(&ts, sbi->s_record_time); in udf_fill_super()
2238 le16_to_cpu(ts.year), ts.month, ts.day, in udf_fill_super()
2239 ts.hour, ts.minute, le16_to_cpu(ts.typeAndTimezone)); in udf_fill_super()
/fs/afs/
Dmain.c41 struct timespec ts; in afs_get_client_UUID() local
52 getnstimeofday(&ts); in afs_get_client_UUID()
53 uuidtime = (u64) ts.tv_sec * 1000 * 1000 * 10; in afs_get_client_UUID()
54 uuidtime += ts.tv_nsec / 100; in afs_get_client_UUID()
/fs/
Dcompat.c1098 struct timespec ts; in poll_select_copy_remaining() local
1110 ktime_get_ts(&ts); in poll_select_copy_remaining()
1111 ts = timespec_sub(*end_time, ts); in poll_select_copy_remaining()
1112 if (ts.tv_sec < 0) in poll_select_copy_remaining()
1113 ts.tv_sec = ts.tv_nsec = 0; in poll_select_copy_remaining()
1118 rtv.tv_sec = ts.tv_sec; in poll_select_copy_remaining()
1119 rtv.tv_usec = ts.tv_nsec / NSEC_PER_USEC; in poll_select_copy_remaining()
1126 rts.tv_sec = ts.tv_sec; in poll_select_copy_remaining()
1127 rts.tv_nsec = ts.tv_nsec; in poll_select_copy_remaining()
1344 struct compat_timespec ts; in do_compat_pselect() local
[all …]
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()
663 struct timespec ts; in do_pselect() local
668 if (copy_from_user(&ts, tsp, sizeof(ts))) in do_pselect()
670 ts64 = timespec_to_timespec64(ts); in do_pselect()
1010 struct timespec ts; in SYSCALL_DEFINE5() local
1015 if (copy_from_user(&ts, tsp, sizeof(ts))) in SYSCALL_DEFINE5()
1019 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in SYSCALL_DEFINE5()
Daio.c1309 struct timespec ts; in read_events() local
1311 if (unlikely(copy_from_user(&ts, timeout, sizeof(ts)))) in read_events()
1314 until = timespec_to_ktime(ts); in read_events()
Deventpoll.c1599 struct timespec64 now, ts = { in ep_set_mstimeout() local
1605 return timespec64_add_safe(now, ts); in ep_set_mstimeout()
/fs/cifs/
Dnetmisc.c924 struct timespec ts; in cifs_NTtimeToUnix() local
938 ts.tv_nsec = (long)(do_div(abs_t, 10000000) * 100); in cifs_NTtimeToUnix()
939 ts.tv_nsec = -ts.tv_nsec; in cifs_NTtimeToUnix()
940 ts.tv_sec = -abs_t; in cifs_NTtimeToUnix()
943 ts.tv_nsec = (long)do_div(abs_t, 10000000) * 100; in cifs_NTtimeToUnix()
944 ts.tv_sec = abs_t; in cifs_NTtimeToUnix()
947 return ts; in cifs_NTtimeToUnix()
964 struct timespec ts; in cnvrtDosUnixTm() local
1008 ts.tv_sec = sec + offset; in cnvrtDosUnixTm()
1012 ts.tv_nsec = 0; in cnvrtDosUnixTm()
[all …]
Dcifssmb.c481 struct timespec ts, utc; in decode_lanman_negprot_rsp() local
483 ts = cnvrtDosUnixTm(rsp->SrvTime.Date, in decode_lanman_negprot_rsp()
486 (int)ts.tv_sec, (int)utc.tv_sec, in decode_lanman_negprot_rsp()
487 (int)(utc.tv_sec - ts.tv_sec)); in decode_lanman_negprot_rsp()
488 val = (int)(utc.tv_sec - ts.tv_sec); in decode_lanman_negprot_rsp()
4024 struct timespec ts; in SMBQueryInformation() local
4030 ts.tv_nsec = 0; in SMBQueryInformation()
4031 ts.tv_sec = time; in SMBQueryInformation()
4033 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()
281 unsigned long ts = jiffies; in start_this_handle() local
376 update_t_max_wait(transaction, ts); in start_this_handle()
/fs/nfs/
Dinternal.h719 u64 nfs_timespec_to_change_attr(const struct timespec *ts) in nfs_timespec_to_change_attr() argument
721 return ((u64)ts->tv_sec << 30) + ts->tv_nsec; in nfs_timespec_to_change_attr()
/fs/ceph/
Dmds_client.c981 struct ceph_mds_session *ts; in __open_export_target_sessions() local
992 ts = __open_export_target_session(mdsc, mi->export_targets[i]); in __open_export_target_sessions()
993 if (!IS_ERR(ts)) in __open_export_target_sessions()
994 ceph_put_mds_session(ts); in __open_export_target_sessions()
1989 struct ceph_timespec ts; in create_request_message() local
1990 ceph_encode_timespec(&ts, &req->r_stamp); in create_request_message()
1991 ceph_encode_copy(&p, &ts, sizeof(ts)); in create_request_message()
2082 struct ceph_timespec ts; in __prepare_send_request() local
2083 ceph_encode_timespec(&ts, &req->r_stamp); in __prepare_send_request()
2084 ceph_encode_copy(&p, &ts, sizeof(ts)); in __prepare_send_request()
/fs/overlayfs/
Doverlayfs.h195 int ovl_update_time(struct inode *inode, struct timespec *ts, int flags);
Dinode.c326 int ovl_update_time(struct inode *inode, struct timespec *ts, int flags) in ovl_update_time() argument
/fs/nfs/flexfilelayout/
Dflexfilelayout.c2129 struct timespec64 ts; in ff_layout_encode_nfstime() local
2133 ts = ktime_to_timespec64(t); in ff_layout_encode_nfstime()
2134 p = xdr_encode_hyper(p, ts.tv_sec); in ff_layout_encode_nfstime()
2135 *p++ = cpu_to_be32(ts.tv_nsec); in ff_layout_encode_nfstime()
/fs/fuse/
Ddir.c69 struct timespec64 ts = { in time_to_jiffies() local
74 return get_jiffies_64() + timespec64_to_jiffies(&ts); in time_to_jiffies()
/fs/btrfs/
Dsend.c615 struct btrfs_timespec *ts) in tlv_put_btrfs_timespec() argument
618 read_extent_buffer(eb, &bts, (unsigned long)ts, sizeof(bts)); in tlv_put_btrfs_timespec()
660 #define TLV_PUT_BTRFS_TIMESPEC(sctx, attrtype, eb, ts) \ argument
662 ret = tlv_put_btrfs_timespec(sctx, attrtype, eb, ts); \