Lines Matching refs:sc_lock
95 kmutex_t sc_lock;
132 KASSERT(mutex_owned(&sc->sc_lock));
148 KASSERT(mutex_owned(&sc->sc_lock));
162 KASSERT(mutex_owned(&sc->sc_lock));
178 callout_halt(&task->task_restart_ch, &sc->sc_lock);
187 callout_halt(&task->task_restart_ch, &sc->sc_lock);
188 if (!sdmmc_del_task(sc->sc_sf->sc, &task->task, &sc->sc_lock))
207 mutex_exit(&sc->sc_lock);
217 mutex_enter(&sc->sc_lock);
275 mutex_init(&sc->sc_lock, MUTEX_DEFAULT, IPL_SDMMC);
373 mutex_enter(&sc->sc_lock);
378 cv_wait(&sc->sc_cv, &sc->sc_lock);
379 mutex_exit(&sc->sc_lock);
390 mutex_destroy(&sc->sc_lock);
407 mutex_enter(&sc->sc_lock);
422 out: mutex_exit(&sc->sc_lock);
435 mutex_enter(&sc->sc_lock);
439 mutex_exit(&sc->sc_lock);
484 mutex_enter(&sc->sc_lock);
493 mutex_exit(&sc->sc_lock);
504 mutex_enter(&sc->sc_lock);
507 mutex_exit(&sc->sc_lock);
541 mutex_enter(&sc->sc_lock);
547 mutex_exit(&sc->sc_lock);
562 mutex_enter(&sc->sc_lock);
580 out: mutex_exit(&sc->sc_lock);
594 mutex_enter(&sc->sc_lock);
603 mutex_exit(&sc->sc_lock);
628 mutex_enter(&sc->sc_lock);
653 cv_wait(&sc->sc_cv, &sc->sc_lock);
657 out: mutex_exit(&sc->sc_lock);