Lines Matching refs:gen_lock
194 mtx_init( &sc->gen_lock, "tws_gen_lock", NULL, MTX_DEF); in tws_attach()
201 mtx_lock(&sc->gen_lock); in tws_attach()
203 mtx_unlock(&sc->gen_lock); in tws_attach()
297 mtx_lock(&sc->gen_lock); in tws_attach()
299 mtx_unlock(&sc->gen_lock); in tws_attach()
337 mtx_destroy(&sc->gen_lock); in tws_attach()
354 mtx_lock(&sc->gen_lock); in tws_detach()
356 mtx_unlock(&sc->gen_lock); in tws_detach()
423 mtx_destroy(&sc->gen_lock); in tws_detach()
715 mtx_assert(&sc->gen_lock, MA_OWNED); in tws_send_event()
819 struct mtx *my_mutex = ((type == TWS_REQ_TYPE_SCSI_IO) ? &sc->q_lock : &sc->gen_lock); in tws_get_request()