Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 10 of 10) sorted by relevance

/include/linux/
Dtime.h102 static inline bool timeval_valid(const struct timeval *tv) in timeval_valid() argument
105 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() argument
194 return ((s64) tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns()
195 tv->tv_usec * NSEC_PER_USEC; in timeval_to_ns()
Dtimekeeping.h12 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);
Dktime.h93 static inline ktime_t timeval_to_ktime(struct timeval tv) in timeval_to_ktime() argument
95 return ktime_set(tv.tv_sec, tv.tv_usec * NSEC_PER_USEC); in timeval_to_ktime()
Dpoll.h99 extern long select_estimate_accuracy(struct timespec *tv);
Dcompat.h417 asmlinkage long compat_sys_gettimeofday(struct compat_timeval __user *tv,
419 asmlinkage long compat_sys_settimeofday(struct compat_timeval __user *tv,
Dsyscalls.h212 asmlinkage long sys_gettimeofday(struct timeval __user *tv,
214 asmlinkage long sys_settimeofday(struct timeval __user *tv,
/include/linux/raid/
Dpq.h170 struct timeval tv; in raid6_jiffies() local
171 gettimeofday(&tv, NULL); in raid6_jiffies()
172 return tv.tv_sec*1000 + tv.tv_usec/1000; in raid6_jiffies()
/include/linux/ceph/
Ddecode.h138 const struct ceph_timespec *tv) in ceph_decode_timespec() argument
140 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() argument
146 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()
/include/media/
Dv4l2-common.h205 void v4l2_get_timestamp(struct timeval *tv);
/include/sound/
Dpcm.h1018 struct timespec *tv) in snd_pcm_gettime() argument
1022 ktime_get_ts(tv); in snd_pcm_gettime()
1025 getrawmonotonic(tv); in snd_pcm_gettime()
1028 getnstimeofday(tv); in snd_pcm_gettime()