/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 | 192 void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec *ts, in fat_time_fat2unix() argument 219 ts->tv_sec = second + (time_cs / 100); in fat_time_fat2unix() 220 ts->tv_nsec = (time_cs % 100) * 10000000; in fat_time_fat2unix() 222 ts->tv_sec = second; in fat_time_fat2unix() 223 ts->tv_nsec = 0; in fat_time_fat2unix() 228 void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec *ts, in fat_time_unix2fat() argument 232 time_to_tm(ts->tv_sec, sbi->options.tz_utc ? 0 : in fat_time_unix2fat() 261 *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() 257 dir->i_ctime = dir->i_mtime = *ts; in msdos_add_entry() 273 struct timespec ts; in msdos_create() local 291 ts = CURRENT_TIME_SEC; in msdos_create() 292 err = msdos_add_entry(dir, msdos_name, 0, is_hid, 0, &ts, &sinfo); in msdos_create() 301 inode->i_mtime = inode->i_atime = inode->i_ctime = ts; in msdos_create() 355 struct timespec ts; in msdos_mkdir() local 372 ts = CURRENT_TIME_SEC; in msdos_mkdir() 373 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() 663 int cluster, struct timespec *ts, in vfat_add_entry() argument 678 err = vfat_build_slots(dir, qname->name, len, is_dir, cluster, ts, in vfat_add_entry() 688 dir->i_ctime = dir->i_mtime = dir->i_atime = *ts; in vfat_add_entry() 780 struct timespec ts; in vfat_create() local 785 ts = CURRENT_TIME_SEC; in vfat_create() 786 err = vfat_add_entry(dir, &dentry->d_name, 0, 0, &ts, &sinfo); in vfat_create() 798 inode->i_mtime = inode->i_atime = inode->i_ctime = ts; in vfat_create() 868 struct timespec ts; in vfat_mkdir() local [all …]
|
D | fat.h | 251 extern int fat_alloc_new_dir(struct inode *dir, struct timespec *ts); 340 extern void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec *ts, 342 extern void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec *ts,
|
D | dir.c | 1092 int fat_alloc_new_dir(struct inode *dir, struct timespec *ts) in fat_alloc_new_dir() argument 1114 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 | 803 struct timestamp *ts = &pvoldesc->recordingDateAndTime; in udf_load_pvoldesc() local 805 le16_to_cpu(ts->year), ts->month, ts->day, ts->hour, in udf_load_pvoldesc() 806 ts->minute, le16_to_cpu(ts->typeAndTimezone)); in udf_load_pvoldesc() 2045 struct timestamp ts; in udf_fill_super() local 2046 udf_time_to_disk_stamp(&ts, sbi->s_record_time); in udf_fill_super() 2049 le16_to_cpu(ts.year), ts.month, ts.day, in udf_fill_super() 2050 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 | 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() 625 struct timespec ts, end_time, *to = NULL; in do_pselect() local 629 if (copy_from_user(&ts, tsp, sizeof(ts))) in do_pselect() 633 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in do_pselect() 952 struct timespec ts, end_time, *to = NULL; in SYSCALL_DEFINE5() local 956 if (copy_from_user(&ts, tsp, sizeof(ts))) in SYSCALL_DEFINE5() 960 if (poll_select_set_timeout(to, ts.tv_sec, ts.tv_nsec)) in SYSCALL_DEFINE5()
|
D | compat.c | 1316 struct timespec ts; in poll_select_copy_remaining() local 1328 ktime_get_ts(&ts); in poll_select_copy_remaining() 1329 ts = timespec_sub(*end_time, ts); in poll_select_copy_remaining() 1330 if (ts.tv_sec < 0) in poll_select_copy_remaining() 1331 ts.tv_sec = ts.tv_nsec = 0; in poll_select_copy_remaining() 1336 rtv.tv_sec = ts.tv_sec; in poll_select_copy_remaining() 1337 rtv.tv_usec = ts.tv_nsec / NSEC_PER_USEC; in poll_select_copy_remaining() 1344 rts.tv_sec = ts.tv_sec; in poll_select_copy_remaining() 1345 rts.tv_nsec = ts.tv_nsec; in poll_select_copy_remaining() 1563 struct compat_timespec ts; in do_compat_pselect() local [all …]
|
D | aio.c | 1125 const struct timespec *ts) in set_timeout() argument 1127 to->timer.expires = start_jiffies + timespec_to_jiffies(ts); in set_timeout() 1196 struct timespec ts; in read_events() local 1198 if (unlikely(copy_from_user(&ts, timeout, sizeof(ts)))) in read_events() 1201 set_timeout(start_jiffies, &to, &ts); in read_events()
|
D | eventpoll.c | 1441 struct timespec now, ts = { in ep_set_mstimeout() local 1447 return timespec_add_safe(now, ts); in ep_set_mstimeout()
|
/fs/cifs/ |
D | netmisc.c | 933 struct timespec ts; in cifs_NTtimeToUnix() local 940 ts.tv_nsec = do_div(t, 10000000) * 100; in cifs_NTtimeToUnix() 941 ts.tv_sec = t; in cifs_NTtimeToUnix() 942 return ts; in cifs_NTtimeToUnix() 958 struct timespec ts; in cnvrtDosUnixTm() local 1002 ts.tv_sec = sec + offset; in cnvrtDosUnixTm() 1006 ts.tv_nsec = 0; in cnvrtDosUnixTm() 1007 return ts; in cnvrtDosUnixTm()
|
D | cifssmb.c | 512 struct timespec ts, utc; in CIFSSMBNegotiate() local 514 ts = cnvrtDosUnixTm(rsp->SrvTime.Date, in CIFSSMBNegotiate() 517 (int)ts.tv_sec, (int)utc.tv_sec, in CIFSSMBNegotiate() 518 (int)(utc.tv_sec - ts.tv_sec)); in CIFSSMBNegotiate() 519 val = (int)(utc.tv_sec - ts.tv_sec); in CIFSSMBNegotiate() 4022 struct timespec ts; in SMBQueryInformation() local 4028 ts.tv_nsec = 0; in SMBQueryInformation() 4029 ts.tv_sec = time; in SMBQueryInformation() 4031 pFinfo->ChangeTime = cpu_to_le64(cifs_UnixTimeToNT(ts)); in SMBQueryInformation()
|
/fs/jbd2/ |
D | transaction.c | 126 unsigned long ts) in update_t_max_wait() argument 130 time_after(transaction->t_start, ts)) { in update_t_max_wait() 131 ts = jbd2_time_diff(ts, transaction->t_start); in update_t_max_wait() 133 if (ts > transaction->t_max_wait) in update_t_max_wait() 134 transaction->t_max_wait = ts; in update_t_max_wait() 154 unsigned long ts = jiffies; in start_this_handle() local 307 update_t_max_wait(transaction, ts); in start_this_handle()
|
/fs/lockd/ |
D | mon.c | 253 struct timespec ts; in nsm_init_private() local 256 ktime_get_ts(&ts); in nsm_init_private() 257 ns = timespec_to_ns(&ts); in nsm_init_private()
|
/fs/nfs/ |
D | file.c | 726 is_time_granular(struct timespec *ts) { in is_time_granular() argument 727 return ((ts->tv_sec == 0) && (ts->tv_nsec <= 1000)); in is_time_granular()
|
/fs/ceph/ |
D | mds_client.c | 816 struct ceph_mds_session *ts; in __open_export_target_sessions() local 828 ts = __ceph_lookup_mds_session(mdsc, target); in __open_export_target_sessions() 829 if (!ts) { in __open_export_target_sessions() 830 ts = register_session(mdsc, target); in __open_export_target_sessions() 831 if (IS_ERR(ts)) in __open_export_target_sessions() 839 i, ts, session_state_name(ts->s_state)); in __open_export_target_sessions() 840 ceph_put_mds_session(ts); in __open_export_target_sessions()
|
/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()
|