Lines Matching defs:tim
220 * Same as cv_wait except the thread will unblock at 'tim'
223 * Returns the amount of time left from the original 'tim' value
227 cv_timedwait(kcondvar_t *cvp, kmutex_t *mp, clock_t tim)
232 if (tim <= now)
235 hrtim = TICK_TO_NSEC(tim - now);
261 cv_timedwait_hires(kcondvar_t *cvp, kmutex_t *mp, hrtime_t tim,
275 if (tim <= limit)
279 tim, res, flag);
364 cv_timedwait_sig_hires(kcondvar_t *cvp, kmutex_t *mp, hrtime_t tim,
386 return (cv_timedwait_hires(cvp, mp, tim, res, flag));
390 * If tim is less than or equal to current hrtime, then the timeout
397 if (tim <= limit) {
410 tim, res, flag);
475 cv_timedwait_sig(kcondvar_t *cvp, kmutex_t *mp, clock_t tim)
479 hrtim = TICK_TO_NSEC(tim - ddi_get_lbolt());
485 * If tim == -1, waits without timeout using cv_wait_sig_swap().
488 cv_timedwait_sig_hrtime(kcondvar_t *cvp, kmutex_t *mp, hrtime_t tim)
490 if (tim == -1) {
493 return (cv_timedwait_sig_hires(cvp, mp, tim, 1,
661 clock_t tim;
680 tim = ddi_get_lbolt() + MSEC_TO_TICK(wakeup_time);
683 tim - ddi_get_lbolt());