Lines Matching refs:tv
50 static long __estimate_accuracy(struct timespec *tv) in __estimate_accuracy() argument
55 if (tv->tv_sec < 0) in __estimate_accuracy()
61 if (tv->tv_sec > MAX_SLACK / (NSEC_PER_SEC/divfactor)) in __estimate_accuracy()
64 slack = tv->tv_nsec / divfactor; in __estimate_accuracy()
65 slack += tv->tv_sec * (NSEC_PER_SEC/divfactor); in __estimate_accuracy()
73 long select_estimate_accuracy(struct timespec *tv) in select_estimate_accuracy() argument
86 now = timespec_sub(*tv, now); in select_estimate_accuracy()
626 struct timeval tv; in SYSCALL_DEFINE5() local
630 if (copy_from_user(&tv, tvp, sizeof(tv))) in SYSCALL_DEFINE5()
635 tv.tv_sec + (tv.tv_usec / USEC_PER_SEC), in SYSCALL_DEFINE5()
636 (tv.tv_usec % USEC_PER_SEC) * NSEC_PER_USEC)) in SYSCALL_DEFINE5()