Lines Matching refs:tv
120 static inline void host_clock_gettime(struct timespec *tv) in host_clock_gettime() argument
123 clock_gettime(CLOCK_MONOTONIC_RAW, tv); in host_clock_gettime()
125 clock_gettime(CLOCK_MONOTONIC, tv); in host_clock_gettime()
136 struct timespec tv; in get_host_us_time() local
138 host_clock_gettime(&tv); in get_host_us_time()
139 return (uint64_t)tv.tv_sec * 1e6 + tv.tv_nsec / 1000; in get_host_us_time()
154 struct timespec tv; in hwtimer_init() local
157 clock_gettime(CLOCK_REALTIME, &tv); in hwtimer_init()
158 realhosttime = (uint64_t)tv.tv_sec * 1e6 + tv.tv_nsec / 1000; in hwtimer_init()
388 struct timespec tv; in hwtimer_get_pseudohost_rtc_time() local
390 host_clock_gettime(&tv); in hwtimer_get_pseudohost_rtc_time()
392 uint64_t rt_us = (uint64_t)tv.tv_sec * 1000000ULL + tv.tv_nsec / 1000; in hwtimer_get_pseudohost_rtc_time()
393 uint32_t rt_ns = tv.tv_nsec % 1000; in hwtimer_get_pseudohost_rtc_time()