Lines Matching refs:gen_lock
196 mtx_init( &sc->gen_lock, "tws_gen_lock", NULL, MTX_DEF); in tws_attach()
203 mtx_lock(&sc->gen_lock); in tws_attach()
205 mtx_unlock(&sc->gen_lock); in tws_attach()
299 mtx_lock(&sc->gen_lock); in tws_attach()
301 mtx_unlock(&sc->gen_lock); in tws_attach()
339 mtx_destroy(&sc->gen_lock); in tws_attach()
356 mtx_lock(&sc->gen_lock); in tws_detach()
358 mtx_unlock(&sc->gen_lock); in tws_detach()
425 mtx_destroy(&sc->gen_lock); in tws_detach()
718 mtx_assert(&sc->gen_lock, MA_OWNED); in tws_send_event()
822 struct mtx *my_mutex = ((type == TWS_REQ_TYPE_SCSI_IO) ? &sc->q_lock : &sc->gen_lock); in tws_get_request()