Lines Matching refs:gen_lock
199 mtx_init( &sc->gen_lock, "tws_gen_lock", NULL, MTX_DEF);
206 mtx_lock(&sc->gen_lock);
208 mtx_unlock(&sc->gen_lock);
304 mtx_lock(&sc->gen_lock);
306 mtx_unlock(&sc->gen_lock);
344 mtx_destroy(&sc->gen_lock);
361 mtx_lock(&sc->gen_lock);
363 mtx_unlock(&sc->gen_lock);
430 mtx_destroy(&sc->gen_lock);
744 mtx_assert(&sc->gen_lock, MA_OWNED);
850 struct mtx *my_mutex = ((type == TWS_REQ_TYPE_SCSI_IO) ? &sc->q_lock : &sc->gen_lock);