Home
last modified time | relevance | path

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

/include/linux/
Dktime.h55 } tv; member
112 static inline ktime_t timeval_to_ktime(struct timeval tv) in timeval_to_ktime() argument
114 return ktime_set(tv.tv_sec, tv.tv_usec * NSEC_PER_USEC); in timeval_to_ktime()
146 return (ktime_t) { .tv = { .sec = secs, .nsec = nsecs } }; in ktime_set()
161 if (res.tv.nsec < 0) in ktime_sub()
162 res.tv.nsec += NSEC_PER_SEC; in ktime_sub()
187 if (res.tv.nsec >= NSEC_PER_SEC) in ktime_add()
219 return (ktime_t) { .tv = { .sec = (s32)ts.tv_sec, in timespec_to_ktime()
229 static inline ktime_t timeval_to_ktime(const struct timeval tv) in timeval_to_ktime() argument
231 return (ktime_t) { .tv = { .sec = (s32)tv.tv_sec, in timeval_to_ktime()
[all …]
Dtime.h156 extern void do_gettimeofday(struct timeval *tv);
157 extern int do_settimeofday(const struct timespec *tv);
158 extern int do_sys_settimeofday(const struct timespec *tv,
167 extern int __getnstimeofday(struct timespec *tv);
168 extern void getnstimeofday(struct timespec *tv);
234 static inline s64 timeval_to_ns(const struct timeval *tv) in timeval_to_ns() argument
236 return ((s64) tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns()
237 tv->tv_usec * NSEC_PER_USEC; in timeval_to_ns()
Dpoll.h99 extern long select_estimate_accuracy(struct timespec *tv);
Dcompat.h400 asmlinkage long compat_sys_gettimeofday(struct compat_timeval __user *tv,
402 asmlinkage long compat_sys_settimeofday(struct compat_timeval __user *tv,
Dsyscalls.h217 asmlinkage long sys_gettimeofday(struct timeval __user *tv,
219 asmlinkage long sys_settimeofday(struct timeval __user *tv,
/include/linux/raid/
Dpq.h164 struct timeval tv; in raid6_jiffies() local
165 gettimeofday(&tv, NULL); in raid6_jiffies()
166 return tv.tv_sec*1000 + tv.tv_usec/1000; in raid6_jiffies()
/include/linux/ceph/
Ddecode.h155 const struct ceph_timespec *tv) in ceph_decode_timespec() argument
157 ts->tv_sec = (__kernel_time_t)le32_to_cpu(tv->tv_sec); in ceph_decode_timespec()
158 ts->tv_nsec = (long)le32_to_cpu(tv->tv_nsec); in ceph_decode_timespec()
160 static inline void ceph_encode_timespec(struct ceph_timespec *tv, in ceph_encode_timespec() argument
168 tv->tv_sec = cpu_to_le32((u32)ts->tv_sec); in ceph_encode_timespec()
169 tv->tv_nsec = cpu_to_le32((u32)ts->tv_nsec); in ceph_encode_timespec()
/include/media/
Dv4l2-common.h227 void v4l2_get_timestamp(struct timeval *tv);
/include/sound/
Dpcm.h930 struct timespec *tv) in snd_pcm_gettime() argument
933 do_posix_clock_monotonic_gettime(tv); in snd_pcm_gettime()
935 getnstimeofday(tv); in snd_pcm_gettime()