Searched refs:tv (Results 1 – 8 of 8) sorted by relevance
/fs/ |
D | utimes.c | 26 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local 29 if (get_user(tv[0].tv_sec, ×->actime) || in SYSCALL_DEFINE2() 30 get_user(tv[1].tv_sec, ×->modtime)) in SYSCALL_DEFINE2() 32 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2() 33 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2() 35 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2() 229 struct timespec64 tv[2]; in COMPAT_SYSCALL_DEFINE2() local 232 if (get_user(tv[0].tv_sec, &t->actime) || in COMPAT_SYSCALL_DEFINE2() 233 get_user(tv[1].tv_sec, &t->modtime)) in COMPAT_SYSCALL_DEFINE2() 235 tv[0].tv_nsec = 0; in COMPAT_SYSCALL_DEFINE2() [all …]
|
D | select.c | 52 static long __estimate_accuracy(struct timespec64 *tv) in __estimate_accuracy() argument 57 if (tv->tv_sec < 0) in __estimate_accuracy() 63 if (tv->tv_sec > MAX_SLACK / (NSEC_PER_SEC/divfactor)) in __estimate_accuracy() 66 slack = tv->tv_nsec / divfactor; in __estimate_accuracy() 67 slack += tv->tv_sec * (NSEC_PER_SEC/divfactor); in __estimate_accuracy() 75 u64 select_estimate_accuracy(struct timespec64 *tv) in select_estimate_accuracy() argument 88 now = timespec64_sub(*tv, now); in select_estimate_accuracy() 683 struct timeval tv; in SYSCALL_DEFINE5() local 687 if (copy_from_user(&tv, tvp, sizeof(tv))) in SYSCALL_DEFINE5() 692 tv.tv_sec + (tv.tv_usec / USEC_PER_SEC), in SYSCALL_DEFINE5() [all …]
|
/fs/xfs/ |
D | xfs_trans_inode.c | 71 struct timespec tv; in xfs_trans_ichgtime() local 76 tv = current_time(inode); in xfs_trans_ichgtime() 79 inode->i_mtime = tv; in xfs_trans_ichgtime() 81 inode->i_ctime = tv; in xfs_trans_ichgtime()
|
D | xfs_inode.c | 781 struct timespec tv; in xfs_ialloc() local 844 tv = current_time(inode); in xfs_ialloc() 845 inode->i_mtime = tv; in xfs_ialloc() 846 inode->i_atime = tv; in xfs_ialloc() 847 inode->i_ctime = tv; in xfs_ialloc() 858 ip->i_d.di_crtime.t_sec = (int32_t)tv.tv_sec; in xfs_ialloc() 859 ip->i_d.di_crtime.t_nsec = (int32_t)tv.tv_nsec; in xfs_ialloc()
|
/fs/adfs/ |
D | inode.c | 170 adfs_adfs2unix_time(struct timespec *tv, struct inode *inode) in adfs_adfs2unix_time() argument 198 *tv = ns_to_timespec(nsec); in adfs_adfs2unix_time() 202 *tv = current_time(inode); in adfs_adfs2unix_time() 206 tv->tv_sec = tv->tv_nsec = 0; in adfs_adfs2unix_time()
|
/fs/gfs2/ |
D | dir.c | 875 struct timespec tv = current_time(inode); in new_leaf() local 894 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in new_leaf() 895 leaf->lf_sec = cpu_to_be64(tv.tv_sec); in new_leaf() 1806 struct timespec tv; in gfs2_dir_add() local 1822 tv = current_time(&ip->i_inode); in gfs2_dir_add() 1826 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in gfs2_dir_add() 1827 leaf->lf_sec = cpu_to_be64(tv.tv_sec); in gfs2_dir_add() 1833 ip->i_inode.i_mtime = ip->i_inode.i_ctime = tv; in gfs2_dir_add() 1884 struct timespec tv = current_time(&dip->i_inode); in gfs2_dir_del() local 1910 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in gfs2_dir_del() [all …]
|
/fs/jffs2/ |
D | os-linux.h | 35 #define I_SEC(tv) ((tv).tv_sec) argument
|
/fs/nfsd/ |
D | nfs4xdr.c | 277 nfsd4_decode_time(struct nfsd4_compoundargs *argp, struct timespec *tv) in nfsd4_decode_time() argument 284 tv->tv_sec = sec; in nfsd4_decode_time() 285 tv->tv_nsec = be32_to_cpup(p++); in nfsd4_decode_time() 286 if (tv->tv_nsec >= (u32)1000000000) in nfsd4_decode_time()
|