Home
last modified time | relevance | path

Searched refs:gen_lock (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/dev/tws/
H A Dtws_user.c163 mtx_lock(&sc->gen_lock); in tws_passthru()
164 error = mtx_sleep(req, &sc->gen_lock, 0, "tws_passthru", TWS_IOCTL_TIMEOUT*hz); in tws_passthru()
165 mtx_unlock(&sc->gen_lock); in tws_passthru()
303 mtx_lock(&sc->gen_lock); in tws_ioctl_aen()
364 mtx_unlock(&sc->gen_lock); in tws_ioctl_aen()
377 mtx_assert(&sc->gen_lock, MA_OWNED); in tws_circular_aenq_insert()
H A Dtws.c194 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()
[all …]
H A Dtws_cam.c414 mtx_lock(&sc->gen_lock); in tws_aen_complete()
417 mtx_unlock(&sc->gen_lock); in tws_aen_complete()
1125 mtx_lock(&sc->gen_lock); in tws_timeout()
1127 mtx_unlock(&sc->gen_lock); in tws_timeout()
1132 mtx_unlock(&sc->gen_lock); in tws_timeout()
1155 mtx_unlock(&sc->gen_lock); in tws_timeout()
1165 mtx_lock(&sc->gen_lock); in tws_reset()
1167 mtx_unlock(&sc->gen_lock); in tws_reset()
1184 mtx_unlock(&sc->gen_lock); in tws_reset()
1242 mtx_sleep(sc, &sc->gen_lock, 0, "tws_reinit", 5*hz); in tws_reinit()
H A Dtws.h242 struct mtx gen_lock; /* general driver lock */ member