Lines Matching refs:gen_lock
201 mtx_init( &sc->gen_lock, "tws_gen_lock", NULL, MTX_DEF); in tws_attach()
208 mtx_lock(&sc->gen_lock); in tws_attach()
210 mtx_unlock(&sc->gen_lock); in tws_attach()
306 mtx_lock(&sc->gen_lock); in tws_attach()
308 mtx_unlock(&sc->gen_lock); in tws_attach()
346 mtx_destroy(&sc->gen_lock); in tws_attach()
363 mtx_lock(&sc->gen_lock); in tws_detach()
365 mtx_unlock(&sc->gen_lock); in tws_detach()
432 mtx_destroy(&sc->gen_lock); in tws_detach()
730 mtx_assert(&sc->gen_lock, MA_OWNED); in tws_send_event()
836 struct mtx *my_mutex = ((type == TWS_REQ_TYPE_SCSI_IO) ? &sc->q_lock : &sc->gen_lock); in tws_get_request()