Lines Matching refs:backoff

269 default_lock_backoff(uint_t backoff)  in default_lock_backoff()  argument
273 if (backoff == 0) { in default_lock_backoff()
274 backoff = mutex_backoff_base; in default_lock_backoff()
276 return (backoff); in default_lock_backoff()
295 backoff <<= mutex_backoff_shift; /* increase backoff */ in default_lock_backoff()
296 if (backoff > cap) { in default_lock_backoff()
298 backoff = mutex_backoff_base; in default_lock_backoff()
300 backoff = cap; in default_lock_backoff()
303 return (backoff); in default_lock_backoff()
310 default_lock_delay(uint_t backoff) in default_lock_delay() argument
322 cur_backoff = (uint_t)(rnd % (backoff - mutex_backoff_base + 1)) + in default_lock_delay()
352 uint_t backoff = 0; /* current backoff */ in mutex_vector_enter() local
385 backoff = mutex_lock_backoff(0); /* set base backoff */ in mutex_vector_enter()
387 mutex_lock_delay(backoff); /* backoff delay */ in mutex_vector_enter()
397 backoff = mutex_lock_backoff(backoff); in mutex_vector_enter()
402 backoff = mutex_lock_backoff(backoff); in mutex_vector_enter()
407 backoff = mutex_lock_backoff(0); in mutex_vector_enter()
452 backoff = mutex_lock_backoff(0); in mutex_vector_enter()
651 uint_t backoff = 0; /* current backoff */ in lock_set_spin() local
668 backoff = mutex_lock_backoff(0); in lock_set_spin()
671 backoff = mutex_lock_backoff(backoff); in lock_set_spin()
673 mutex_lock_delay(backoff); in lock_set_spin()
685 uint_t backoff = 0; /* current backoff */ in lock_set_spl_spin() local
709 backoff = mutex_lock_backoff(0); in lock_set_spl_spin()
712 backoff = mutex_lock_backoff(backoff); in lock_set_spl_spin()
714 mutex_lock_delay(backoff); in lock_set_spl_spin()