Lines Matching defs:sc_lock
139 struct mtx sc_lock; /* Spin lock for this chain. */
223 mtx_init(&sleepq_chains[i].sc_lock, "sleepq chain", NULL,
265 mtx_lock_spin(&sc->sc_lock);
281 mtx_assert(&sc->sc_lock, MA_OWNED);
297 mtx_unlock_spin(&sc->sc_lock);
316 mtx_assert(&sc->sc_lock, MA_OWNED);
403 mtx_assert(&sc->sc_lock, MA_OWNED);
441 mtx_assert(&sc->sc_lock, MA_OWNED);
458 mtx_unlock_spin(&sc->sc_lock);
473 mtx_lock_spin(&sc->sc_lock);
487 mtx_lock_spin(&sc->sc_lock);
510 mtx_assert(&sc->sc_lock, MA_OWNED);
516 mtx_assert(&sc->sc_lock, MA_OWNED);
533 MPASS(td->td_lock != &sc->sc_lock);
534 mtx_unlock_spin(&sc->sc_lock);
555 mtx_assert(&sc->sc_lock, MA_OWNED);
563 mtx_unlock_spin(&sc->sc_lock);
595 mtx_unlock_spin(&sc->sc_lock);
605 thread_lock_set(td, &sc->sc_lock);
752 mtx_assert(&sc->sc_lock, MA_OWNED);
759 * There is no race that will make td_lock equal to sc_lock because
760 * we hold sc_lock.
774 mtx_unlock_spin(&sc->sc_lock);
809 mtx_assert(&sc->sc_lock, MA_OWNED);
835 td->td_lock == &sc->sc_lock) {
875 mtx_lock_spin(&sc->sc_lock);
880 mtx_unlock_spin(&sc->sc_lock);
953 while (besttd->td_lock != &sc->sc_lock) {
1054 THREAD_LOCKPTR_ASSERT(td, &sc->sc_lock);
1089 mtx_lock_spin(&sc->sc_lock);
1097 mtx_unlock_spin(&sc->sc_lock);
1168 mtx_lock_spin(&sc->sc_lock);
1173 mtx_unlock_spin(&sc->sc_lock);