/fs/ntfs/ |
D | time.h | 48 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/ |
D | misc.c | 196 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()
|
D | namei_msdos.c | 231 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 …]
|
D | namei_vfat.c | 586 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 …]
|
D | fat.h | 304 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,
|
D | dir.c | 1137 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/ |
D | udftime.c | 122 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()
|
D | super.c | 874 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/ |
D | main.c | 40 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/ |
D | compat.c | 1094 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 …]
|
D | select.c | 274 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()
|
D | aio.c | 791 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()
|
D | eventpoll.c | 1528 struct timespec now, ts = { in ep_set_mstimeout() local 1534 return timespec_add_safe(now, ts); in ep_set_mstimeout()
|
/fs/cifs/ |
D | netmisc.c | 922 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()
|
D | cifssmb.c | 480 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/ |
D | transaction.c | 130 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/ |
D | mon.c | 309 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/ |
D | internal.h | 573 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()
|
D | file.c | 782 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/ |
D | mds_client.c | 846 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/ |
D | send.c | 480 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/ |
D | dir.c | 79 struct timespec ts = {sec, nsec}; in time_to_jiffies() local 80 return get_jiffies_64() + timespec_to_jiffies(&ts); in time_to_jiffies()
|