Lines Matching refs:tv
52 static long __estimate_accuracy(struct timespec64 *tv) in __estimate_accuracy() argument
57 if (tv->tv_sec < 0) in __estimate_accuracy()
63 if (tv->tv_sec > MAX_SLACK / (NSEC_PER_SEC/divfactor)) in __estimate_accuracy()
66 slack = tv->tv_nsec / divfactor; in __estimate_accuracy()
67 slack += tv->tv_sec * (NSEC_PER_SEC/divfactor); in __estimate_accuracy()
75 u64 select_estimate_accuracy(struct timespec64 *tv) in select_estimate_accuracy() argument
88 now = timespec64_sub(*tv, now); in select_estimate_accuracy()
704 struct timeval tv; in kern_select() local
708 if (copy_from_user(&tv, tvp, sizeof(tv))) in kern_select()
713 tv.tv_sec + (tv.tv_usec / USEC_PER_SEC), in kern_select()
714 (tv.tv_usec % USEC_PER_SEC) * NSEC_PER_USEC)) in kern_select()
1250 struct old_timeval32 tv; in do_compat_select() local
1254 if (copy_from_user(&tv, tvp, sizeof(tv))) in do_compat_select()
1259 tv.tv_sec + (tv.tv_usec / USEC_PER_SEC), in do_compat_select()
1260 (tv.tv_usec % USEC_PER_SEC) * NSEC_PER_USEC)) in do_compat_select()