Searched refs:tv (Results 1 – 10 of 10) sorted by relevance
/fs/ |
D | utimes.c | 206 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local 209 if (get_user(tv[0].tv_sec, ×->actime) || in SYSCALL_DEFINE2() 210 get_user(tv[1].tv_sec, ×->modtime)) in SYSCALL_DEFINE2() 212 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2() 213 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2() 215 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2() 228 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local 231 if (get_user(tv[0].tv_sec, &t->actime) || in SYSCALL_DEFINE2() 232 get_user(tv[1].tv_sec, &t->modtime)) in SYSCALL_DEFINE2() 234 tv[0].tv_nsec = 0; in 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() 704 struct timeval tv; in kern_select() local 708 if (copy_from_user(&tv, tvp, sizeof(tv))) in kern_select() 713 tv.tv_sec + (tv.tv_usec / USEC_PER_SEC), in kern_select() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_trans_inode.c | 58 struct timespec64 tv; in xfs_trans_ichgtime() local 63 tv = current_time(inode); in xfs_trans_ichgtime() 66 inode->i_mtime = tv; in xfs_trans_ichgtime() 68 inode->i_ctime = tv; in xfs_trans_ichgtime() 70 ip->i_d.di_crtime.t_sec = (int32_t)tv.tv_sec; in xfs_trans_ichgtime() 71 ip->i_d.di_crtime.t_nsec = (int32_t)tv.tv_nsec; in xfs_trans_ichgtime()
|
/fs/adfs/ |
D | inode.c | 167 adfs_adfs2unix_time(struct timespec64 *tv, struct inode *inode) in adfs_adfs2unix_time() argument 195 *tv = ns_to_timespec64(nsec); in adfs_adfs2unix_time() 199 *tv = current_time(inode); in adfs_adfs2unix_time() 203 tv->tv_sec = tv->tv_nsec = 0; in adfs_adfs2unix_time()
|
/fs/gfs2/ |
D | dir.c | 874 struct timespec64 tv = current_time(inode); in new_leaf() local 893 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in new_leaf() 894 leaf->lf_sec = cpu_to_be64(tv.tv_sec); in new_leaf() 1802 struct timespec64 tv; in gfs2_dir_add() local 1818 tv = current_time(&ip->i_inode); in gfs2_dir_add() 1822 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in gfs2_dir_add() 1823 leaf->lf_sec = cpu_to_be64(tv.tv_sec); in gfs2_dir_add() 1829 ip->i_inode.i_mtime = ip->i_inode.i_ctime = tv; in gfs2_dir_add() 1880 struct timespec64 tv = current_time(&dip->i_inode); in gfs2_dir_del() local 1906 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in gfs2_dir_del() [all …]
|
D | log.c | 695 struct timespec64 tv; in gfs2_write_log_header() local 714 ktime_get_coarse_real_ts64(&tv); in gfs2_write_log_header() 715 lh->lh_nsec = cpu_to_be32(tv.tv_nsec); in gfs2_write_log_header() 716 lh->lh_sec = cpu_to_be64(tv.tv_sec); in gfs2_write_log_header()
|
/fs/jffs2/ |
D | os-linux.h | 37 #define I_SEC(tv) JFFS2_CLAMP_TIME((tv).tv_sec) argument
|
/fs/dlm/ |
D | lowcomms.c | 1038 struct timeval tv = { .tv_sec = 5, .tv_usec = 0 }; in sctp_connect_to_sock() local 1090 kernel_setsockopt(sock, SOL_SOCKET, SO_SNDTIMEO_OLD, (char *)&tv, in sctp_connect_to_sock() 1091 sizeof(tv)); in sctp_connect_to_sock() 1094 memset(&tv, 0, sizeof(tv)); in sctp_connect_to_sock() 1095 kernel_setsockopt(sock, SOL_SOCKET, SO_SNDTIMEO_OLD, (char *)&tv, in sctp_connect_to_sock() 1096 sizeof(tv)); in sctp_connect_to_sock()
|
/fs/xfs/ |
D | xfs_inode.c | 758 struct timespec64 tv; in xfs_ialloc() local 834 tv = current_time(inode); in xfs_ialloc() 835 inode->i_mtime = tv; in xfs_ialloc() 836 inode->i_atime = tv; in xfs_ialloc() 837 inode->i_ctime = tv; in xfs_ialloc() 848 ip->i_d.di_crtime.t_sec = (int32_t)tv.tv_sec; in xfs_ialloc() 849 ip->i_d.di_crtime.t_nsec = (int32_t)tv.tv_nsec; in xfs_ialloc()
|
/fs/nfsd/ |
D | nfs4xdr.c | 281 nfsd4_decode_time(struct nfsd4_compoundargs *argp, struct timespec64 *tv) in nfsd4_decode_time() argument 286 p = xdr_decode_hyper(p, &tv->tv_sec); in nfsd4_decode_time() 287 tv->tv_nsec = be32_to_cpup(p++); in nfsd4_decode_time() 288 if (tv->tv_nsec >= (u32)1000000000) in nfsd4_decode_time()
|