Searched refs:tv (Results 1 – 10 of 10) sorted by relevance
/fs/ |
D | utimes.c | 29 struct timespec tv[2]; in SYSCALL_DEFINE2() local 32 if (get_user(tv[0].tv_sec, ×->actime) || in SYSCALL_DEFINE2() 33 get_user(tv[1].tv_sec, ×->modtime)) in SYSCALL_DEFINE2() 35 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2() 36 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2() 38 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2()
|
D | compat_binfmt_elf.c | 52 struct timeval tv; in cputime_to_compat_timeval() local 53 cputime_to_timeval(cputime, &tv); in cputime_to_compat_timeval() 54 value->tv_sec = tv.tv_sec; in cputime_to_compat_timeval() 55 value->tv_usec = tv.tv_usec; in cputime_to_compat_timeval()
|
D | compat.c | 82 struct timespec tv[2]; in compat_sys_utime() local 85 if (get_user(tv[0].tv_sec, &t->actime) || in compat_sys_utime() 86 get_user(tv[1].tv_sec, &t->modtime)) in compat_sys_utime() 88 tv[0].tv_nsec = 0; in compat_sys_utime() 89 tv[1].tv_nsec = 0; in compat_sys_utime() 91 return do_utimes(AT_FDCWD, filename, t ? tv : NULL, 0); in compat_sys_utime() 96 struct timespec tv[2]; in compat_sys_utimensat() local 99 if (get_compat_timespec(&tv[0], &t[0]) || in compat_sys_utimensat() 100 get_compat_timespec(&tv[1], &t[1])) in compat_sys_utimensat() 103 if ((tv[0].tv_nsec == UTIME_OMIT || tv[0].tv_nsec == UTIME_NOW) in compat_sys_utimensat() [all …]
|
D | select.c | 44 static long __estimate_accuracy(struct timespec *tv) in __estimate_accuracy() argument 52 slack = tv->tv_nsec / divfactor; in __estimate_accuracy() 53 slack += tv->tv_sec * (NSEC_PER_SEC/divfactor); in __estimate_accuracy() 63 static long estimate_accuracy(struct timespec *tv) in estimate_accuracy() argument 76 now = timespec_sub(*tv, now); in estimate_accuracy() 564 struct timeval tv; in SYSCALL_DEFINE5() local 568 if (copy_from_user(&tv, tvp, sizeof(tv))) in SYSCALL_DEFINE5() 573 tv.tv_sec + (tv.tv_usec / USEC_PER_SEC), in SYSCALL_DEFINE5() 574 (tv.tv_usec % USEC_PER_SEC) * NSEC_PER_USEC)) in SYSCALL_DEFINE5()
|
D | exec.c | 1466 struct timeval tv; in format_corename() local 1467 do_gettimeofday(&tv); in format_corename() 1469 "%lu", tv.tv_sec); in format_corename()
|
/fs/adfs/ |
D | inode.c | 187 adfs_adfs2unix_time(struct timespec *tv, struct inode *inode) in adfs_adfs2unix_time() argument 212 tv->tv_sec = (((high % 100) << 8) + low) / 100 + (high / 100 << 8); in adfs_adfs2unix_time() 213 tv->tv_nsec = 0; in adfs_adfs2unix_time() 217 *tv = CURRENT_TIME_SEC; in adfs_adfs2unix_time() 221 tv->tv_sec = tv->tv_nsec = 0; in adfs_adfs2unix_time() 225 tv->tv_sec = 0x7ffffffd; in adfs_adfs2unix_time() 226 tv->tv_nsec = 0; in adfs_adfs2unix_time()
|
/fs/xfs/linux-2.6/ |
D | xfs_iops.c | 100 timespec_t tv; in xfs_ichgtime() local 103 tv = current_fs_time(inode->i_sb); in xfs_ichgtime() 106 !timespec_equal(&inode->i_mtime, &tv)) { in xfs_ichgtime() 107 inode->i_mtime = tv; in xfs_ichgtime() 108 ip->i_d.di_mtime.t_sec = (__int32_t)tv.tv_sec; in xfs_ichgtime() 109 ip->i_d.di_mtime.t_nsec = (__int32_t)tv.tv_nsec; in xfs_ichgtime() 113 !timespec_equal(&inode->i_ctime, &tv)) { in xfs_ichgtime() 114 inode->i_ctime = tv; in xfs_ichgtime() 115 ip->i_d.di_ctime.t_sec = (__int32_t)tv.tv_sec; in xfs_ichgtime() 116 ip->i_d.di_ctime.t_nsec = (__int32_t)tv.tv_nsec; in xfs_ichgtime()
|
/fs/jffs2/ |
D | os-linux.h | 35 #define I_SEC(tv) ((tv).tv_sec) argument
|
/fs/gfs2/ |
D | inode.c | 766 struct timespec tv = CURRENT_TIME; in init_dinode() local 782 di->di_atime = di->di_mtime = di->di_ctime = cpu_to_be64(tv.tv_sec); in init_dinode() 807 di->di_atime_nsec = cpu_to_be32(tv.tv_nsec); in init_dinode() 808 di->di_mtime_nsec = cpu_to_be32(tv.tv_nsec); in init_dinode() 809 di->di_ctime_nsec = cpu_to_be32(tv.tv_nsec); in init_dinode()
|
/fs/xfs/ |
D | xfs_inode.c | 996 timespec_t tv; in xfs_ialloc() local 1077 nanotime(&tv); in xfs_ialloc() 1078 ip->i_d.di_mtime.t_sec = (__int32_t)tv.tv_sec; in xfs_ialloc() 1079 ip->i_d.di_mtime.t_nsec = (__int32_t)tv.tv_nsec; in xfs_ialloc()
|