Lines Matching refs:tv
53 static long __estimate_accuracy(struct timespec64 *tv) in __estimate_accuracy() argument
58 if (tv->tv_sec < 0) in __estimate_accuracy()
64 if (tv->tv_sec > MAX_SLACK / (NSEC_PER_SEC/divfactor)) in __estimate_accuracy()
67 slack = tv->tv_nsec / divfactor; in __estimate_accuracy()
68 slack += tv->tv_sec * (NSEC_PER_SEC/divfactor); in __estimate_accuracy()
76 u64 select_estimate_accuracy(struct timespec64 *tv) in select_estimate_accuracy() argument
86 now = timespec64_sub(*tv, now); in select_estimate_accuracy()
704 struct __kernel_old_timeval tv; in kern_select() local
708 if (copy_from_user(&tv, tvp, sizeof(tv))) in kern_select()
719 if (tv.tv_sec < 0 || tv.tv_usec < 0) in kern_select()
724 tv.tv_sec + (tv.tv_usec / USEC_PER_SEC), in kern_select()
725 (tv.tv_usec % USEC_PER_SEC) * NSEC_PER_USEC)) in kern_select()
1261 struct old_timeval32 tv; in do_compat_select() local
1265 if (copy_from_user(&tv, tvp, sizeof(tv))) in do_compat_select()
1270 tv.tv_sec + (tv.tv_usec / USEC_PER_SEC), in do_compat_select()
1271 (tv.tv_usec % USEC_PER_SEC) * NSEC_PER_USEC)) in do_compat_select()