Searched refs:tv (Results 1 – 10 of 10) sorted by relevance
102 static inline bool timeval_valid(const struct timeval *tv) in timeval_valid() argument105 if (tv->tv_sec < 0) in timeval_valid()109 if (tv->tv_usec < 0 || tv->tv_usec >= USEC_PER_SEC) in timeval_valid()192 static inline s64 timeval_to_ns(const struct timeval *tv) in timeval_to_ns() argument194 return ((s64) tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns()195 tv->tv_usec * NSEC_PER_USEC; in timeval_to_ns()
12 extern void do_gettimeofday(struct timeval *tv);13 extern int do_settimeofday(const struct timespec *tv);14 extern int do_sys_settimeofday(const struct timespec *tv,32 extern int __getnstimeofday64(struct timespec64 *tv);33 extern void getnstimeofday64(struct timespec64 *tv);
93 static inline ktime_t timeval_to_ktime(struct timeval tv) in timeval_to_ktime() argument95 return ktime_set(tv.tv_sec, tv.tv_usec * NSEC_PER_USEC); in timeval_to_ktime()
99 extern long select_estimate_accuracy(struct timespec *tv);
417 asmlinkage long compat_sys_gettimeofday(struct compat_timeval __user *tv,419 asmlinkage long compat_sys_settimeofday(struct compat_timeval __user *tv,
212 asmlinkage long sys_gettimeofday(struct timeval __user *tv,214 asmlinkage long sys_settimeofday(struct timeval __user *tv,
170 struct timeval tv; in raid6_jiffies() local171 gettimeofday(&tv, NULL); in raid6_jiffies()172 return tv.tv_sec*1000 + tv.tv_usec/1000; in raid6_jiffies()
138 const struct ceph_timespec *tv) in ceph_decode_timespec() argument140 ts->tv_sec = (__kernel_time_t)le32_to_cpu(tv->tv_sec); in ceph_decode_timespec()141 ts->tv_nsec = (long)le32_to_cpu(tv->tv_nsec); in ceph_decode_timespec()143 static inline void ceph_encode_timespec(struct ceph_timespec *tv, in ceph_encode_timespec() argument146 tv->tv_sec = cpu_to_le32((u32)ts->tv_sec); in ceph_encode_timespec()147 tv->tv_nsec = cpu_to_le32((u32)ts->tv_nsec); in ceph_encode_timespec()
205 void v4l2_get_timestamp(struct timeval *tv);
1018 struct timespec *tv) in snd_pcm_gettime() argument1022 ktime_get_ts(tv); in snd_pcm_gettime()1025 getrawmonotonic(tv); in snd_pcm_gettime()1028 getnstimeofday(tv); in snd_pcm_gettime()