Lines Matching defs:backoff

254 /* "tunables" for per-platform backoff constants. */
266 /* calculate the backoff interval */
268 default_lock_backoff(uint_t backoff)
270 uint_t cap; /* backoff cap calculated */
272 if (backoff == 0) {
273 backoff = mutex_backoff_base;
275 return (backoff);
285 * cap-factor). Maximum backoff is set to this value, and
286 * actual backoff is a random number from 0 to the current max.
293 /* calculate new backoff value */
294 backoff <<= mutex_backoff_shift; /* increase backoff */
295 if (backoff > cap) {
297 backoff = mutex_backoff_base;
299 backoff = cap;
302 return (backoff);
309 default_lock_delay(uint_t backoff)
312 uint_t cur_backoff; /* calculated backoff */
316 * Modify backoff by a random amount to avoid lockstep, and to
317 * make it probable that some thread gets a small backoff, and
321 cur_backoff = (uint_t)(rnd % (backoff - mutex_backoff_base + 1)) +
351 uint_t backoff = 0; /* current backoff */
384 backoff = mutex_lock_backoff(0); /* set base backoff */
386 mutex_lock_delay(backoff); /* backoff delay */
395 /* increase backoff only on failed attempt. */
396 backoff = mutex_lock_backoff(backoff);
401 backoff = mutex_lock_backoff(backoff);
406 backoff = mutex_lock_backoff(0);
450 /* reset backoff after turnstile */
451 backoff = mutex_lock_backoff(0);
650 uint_t backoff = 0; /* current backoff */
667 backoff = mutex_lock_backoff(0);
670 backoff = mutex_lock_backoff(backoff);
672 mutex_lock_delay(backoff);
684 uint_t backoff = 0; /* current backoff */
708 backoff = mutex_lock_backoff(0);
711 backoff = mutex_lock_backoff(backoff);
713 mutex_lock_delay(backoff);