/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 | 175 void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec *ts, in fat_time_fat2unix() argument 202 ts->tv_sec = second + (time_cs / 100); in fat_time_fat2unix() 203 ts->tv_nsec = (time_cs % 100) * 10000000; in fat_time_fat2unix() 205 ts->tv_sec = second; in fat_time_fat2unix() 206 ts->tv_nsec = 0; in fat_time_fat2unix() 211 void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec *ts, in fat_time_unix2fat() argument 214 time_t second = ts->tv_sec; in fat_time_unix2fat() 267 *time_cs = (ts->tv_sec & 1) * 100 + ts->tv_nsec / 10000000; in fat_time_unix2fat()
|
D | namei_msdos.c | 242 struct timespec *ts, struct fat_slot_info *sinfo) in msdos_add_entry() argument 254 fat_time_unix2fat(sbi, ts, &time, &date, NULL); in msdos_add_entry() 268 dir->i_ctime = dir->i_mtime = *ts; in msdos_add_entry() 284 struct timespec ts; in msdos_create() local 302 ts = CURRENT_TIME_SEC; in msdos_create() 303 err = msdos_add_entry(dir, msdos_name, 0, is_hid, 0, &ts, &sinfo); in msdos_create() 312 inode->i_mtime = inode->i_atime = inode->i_ctime = ts; in msdos_create() 366 struct timespec ts; in msdos_mkdir() local 383 ts = CURRENT_TIME_SEC; in msdos_mkdir() 384 cluster = fat_alloc_new_dir(dir, &ts); in msdos_mkdir() [all …]
|
D | namei_vfat.c | 591 struct timespec *ts, in vfat_build_slots() argument 655 fat_time_unix2fat(sbi, ts, &time, &date, &time_cs); in vfat_build_slots() 668 int cluster, struct timespec *ts, in vfat_add_entry() argument 683 err = vfat_build_slots(dir, qname->name, len, is_dir, cluster, ts, in vfat_add_entry() 693 dir->i_ctime = dir->i_mtime = dir->i_atime = *ts; in vfat_add_entry() 777 struct timespec ts; in vfat_create() local 782 ts = CURRENT_TIME_SEC; in vfat_create() 783 err = vfat_add_entry(dir, &dentry->d_name, 0, 0, &ts, &sinfo); in vfat_create() 795 inode->i_mtime = inode->i_atime = inode->i_ctime = ts; in vfat_create() 865 struct timespec ts; in vfat_mkdir() local [all …]
|
D | fat.h | 245 extern int fat_alloc_new_dir(struct inode *dir, struct timespec *ts); 323 extern void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec *ts, 325 extern void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec *ts,
|
D | dir.c | 1094 int fat_alloc_new_dir(struct inode *dir, struct timespec *ts) in fat_alloc_new_dir() argument 1116 fat_time_unix2fat(sbi, ts, &time, &date, &time_cs); in fat_alloc_new_dir()
|
/fs/udf/ |
D | udftime.c | 119 timestamp *udf_time_to_disk_stamp(timestamp *dest, struct timespec ts) in udf_time_to_disk_stamp() argument 132 ts.tv_sec += offset * 60; in udf_time_to_disk_stamp() 133 days = ts.tv_sec / SECS_PER_DAY; in udf_time_to_disk_stamp() 134 rem = ts.tv_sec % SECS_PER_DAY; in udf_time_to_disk_stamp() 161 dest->centiseconds = ts.tv_nsec / 10000000; in udf_time_to_disk_stamp() 162 dest->hundredsOfMicroseconds = (ts.tv_nsec / 1000 - in udf_time_to_disk_stamp() 164 dest->microseconds = (ts.tv_nsec / 1000 - dest->centiseconds * 10000 - in udf_time_to_disk_stamp()
|
D | super.c | 920 timestamp *ts = &pvoldesc->recordingDateAndTime; in udf_load_pvoldesc() local 923 le16_to_cpu(ts->year), ts->month, ts->day, ts->hour, in udf_load_pvoldesc() 924 ts->minute, le16_to_cpu(ts->typeAndTimezone)); in udf_load_pvoldesc() 1981 timestamp ts; in udf_fill_super() local 1982 udf_time_to_disk_stamp(&ts, sbi->s_record_time); in udf_fill_super() 1985 sbi->s_volume_ident, le16_to_cpu(ts.year), ts.month, ts.day, in udf_fill_super() 1986 ts.hour, ts.minute, le16_to_cpu(ts.typeAndTimezone)); in udf_fill_super()
|
/fs/jbd2/ |
D | journal.c | 677 struct transaction_stats_s *ts, in jbd2_history_skip_empty() argument 680 if (ts == s->stats + s->max) in jbd2_history_skip_empty() 681 ts = s->stats; in jbd2_history_skip_empty() 682 if (!first && ts == s->stats + s->start) in jbd2_history_skip_empty() 684 while (ts->ts_type == 0) { in jbd2_history_skip_empty() 685 ts++; in jbd2_history_skip_empty() 686 if (ts == s->stats + s->max) in jbd2_history_skip_empty() 687 ts = s->stats; in jbd2_history_skip_empty() 688 if (ts == s->stats + s->start) in jbd2_history_skip_empty() 691 return ts; in jbd2_history_skip_empty() [all …]
|
D | transaction.c | 93 unsigned long ts = jiffies; in start_this_handle() local 226 if (time_after(transaction->t_start, ts)) { in start_this_handle() 227 ts = jbd2_time_diff(ts, transaction->t_start); in start_this_handle() 228 if (ts > transaction->t_max_wait) in start_this_handle() 229 transaction->t_max_wait = ts; in start_this_handle()
|
/fs/afs/ |
D | main.c | 51 struct timespec ts; in afs_get_client_UUID() local 62 getnstimeofday(&ts); in afs_get_client_UUID() 63 uuidtime = (u64) ts.tv_sec * 1000 * 1000 * 10; in afs_get_client_UUID() 64 uuidtime += ts.tv_nsec / 100; in afs_get_client_UUID()
|
/fs/ |
D | select.c | 253 struct timespec ts = {.tv_sec = sec, .tv_nsec = nsec}; in poll_select_set_timeout() local 255 if (!timespec_valid(&ts)) in poll_select_set_timeout() 263 *to = timespec_add_safe(*to, ts); in poll_select_set_timeout() 590 struct timespec ts, end_time, *to = NULL; in do_pselect() local 594 if (copy_from_user(&ts, tsp, sizeof(ts))) in do_pselect() 598 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in do_pselect() 898 struct timespec ts, end_time, *to = NULL; in SYSCALL_DEFINE5() local 902 if (copy_from_user(&ts, tsp, sizeof(ts))) in SYSCALL_DEFINE5() 906 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in SYSCALL_DEFINE5()
|
D | compat.c | 1487 struct timespec ts; in poll_select_copy_remaining() local 1499 ktime_get_ts(&ts); in poll_select_copy_remaining() 1500 ts = timespec_sub(*end_time, ts); in poll_select_copy_remaining() 1501 if (ts.tv_sec < 0) in poll_select_copy_remaining() 1502 ts.tv_sec = ts.tv_nsec = 0; in poll_select_copy_remaining() 1507 rtv.tv_sec = ts.tv_sec; in poll_select_copy_remaining() 1508 rtv.tv_usec = ts.tv_nsec / NSEC_PER_USEC; in poll_select_copy_remaining() 1515 rts.tv_sec = ts.tv_sec; in poll_select_copy_remaining() 1516 rts.tv_nsec = ts.tv_nsec; in poll_select_copy_remaining() 1719 struct compat_timespec ts; in do_compat_pselect() local [all …]
|
D | aio.c | 1115 const struct timespec *ts) in set_timeout() argument 1117 to->timer.expires = start_jiffies + timespec_to_jiffies(ts); in set_timeout() 1186 struct timespec ts; in read_events() local 1188 if (unlikely(copy_from_user(&ts, timeout, sizeof(ts)))) in read_events() 1191 set_timeout(start_jiffies, &to, &ts); in read_events()
|
D | compat_ioctl.c | 1815 struct timeval ts; in lp_timeout_trans() local 1816 if (get_user(ts.tv_sec, &tc->tv_sec) || in lp_timeout_trans() 1817 get_user(ts.tv_usec, &tc->tv_usec) || in lp_timeout_trans() 1818 put_user(ts.tv_sec, &tn->tv_sec) || in lp_timeout_trans() 1819 put_user(ts.tv_usec, &tn->tv_usec)) in lp_timeout_trans()
|
/fs/xfs/linux-2.6/ |
D | xfs_vnode.h | 74 static inline void vn_atime_to_timespec(struct inode *vp, struct timespec *ts) in vn_atime_to_timespec() argument 76 *ts = vp->i_atime; in vn_atime_to_timespec()
|
/fs/cifs/ |
D | netmisc.c | 861 struct timespec ts; in cifs_NTtimeToUnix() local 868 ts.tv_nsec = do_div(t, 10000000) * 100; in cifs_NTtimeToUnix() 869 ts.tv_sec = t; in cifs_NTtimeToUnix() 870 return ts; in cifs_NTtimeToUnix() 892 struct timespec ts; in cnvrtDosUnixTm() local 934 ts.tv_sec = sec; in cnvrtDosUnixTm() 938 ts.tv_nsec = 0; in cnvrtDosUnixTm() 939 return ts; in cnvrtDosUnixTm()
|
D | cifssmb.c | 552 struct timespec ts, utc; in CIFSSMBNegotiate() local 554 ts = cnvrtDosUnixTm(le16_to_cpu(rsp->SrvTime.Date), in CIFSSMBNegotiate() 557 (int)ts.tv_sec, (int)utc.tv_sec, in CIFSSMBNegotiate() 558 (int)(utc.tv_sec - ts.tv_sec))); in CIFSSMBNegotiate() 559 val = (int)(utc.tv_sec - ts.tv_sec); in CIFSSMBNegotiate() 3279 struct timespec ts; in SMBQueryInformation() local 3285 ts.tv_nsec = 0; in SMBQueryInformation() 3286 ts.tv_sec = time; in SMBQueryInformation() 3288 pFinfo->ChangeTime = cpu_to_le64(cifs_UnixTimeToNT(ts)); in SMBQueryInformation()
|
/fs/lockd/ |
D | mon.c | 276 struct timespec ts; in nsm_init_private() local 278 ktime_get_ts(&ts); in nsm_init_private() 279 *p++ = timespec_to_ns(&ts); in nsm_init_private()
|
/fs/smbfs/ |
D | proc.c | 530 struct timespec ts; in smb_ntutc2unixutc() local 534 ts.tv_nsec = do_div(t, 10000000) * 100; in smb_ntutc2unixutc() 535 ts.tv_sec = t; in smb_ntutc2unixutc() 536 return ts; in smb_ntutc2unixutc() 541 smb_unixutc2ntutc(struct timespec ts) in smb_unixutc2ntutc() argument 545 return ((u64)ts.tv_sec) * 10000000 + ts.tv_nsec/100 + NTFS_TIME_OFFSET; in smb_unixutc2ntutc()
|
/fs/ocfs2/ |
D | dlmglue.c | 413 struct timespec ts = current_kernel_time(); in ocfs2_update_lock_stats() local 414 unsigned long long time = timespec_to_ns(&ts) - mw->mw_lock_start; in ocfs2_update_lock_stats() 444 struct timespec ts = current_kernel_time(); in ocfs2_init_start_time() local 445 mw->mw_lock_start = timespec_to_ns(&ts); in ocfs2_init_start_time()
|
/fs/fuse/ |
D | dir.c | 56 struct timespec ts = {sec, nsec}; in time_to_jiffies() local 57 return get_jiffies_64() + timespec_to_jiffies(&ts); in time_to_jiffies()
|