Searched refs:gen_lock (Results 1 – 8 of 8) sorted by relevance
| /freebsd-12.1/sys/dev/twa/ |
| H A D | tw_cl.h | 189 TW_LOCK_HANDLE *gen_lock;/* ptr to general purpose lock */ member 262 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_insert_head() 265 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_insert_head() 276 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_insert_tail() 279 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_insert_tail() 291 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_remove_head() 299 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_remove_head() 311 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_remove_item() 314 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_remove_item()
|
| H A D | tw_cl_init.c | 323 ctlr->gen_lock = &(ctlr->gen_lock_handle); in tw_cl_init_ctlr() 324 tw_osl_init_lock(ctlr_handle, "tw_cl_gen_lock", ctlr->gen_lock); in tw_cl_init_ctlr() 589 tw_osl_destroy_lock(ctlr_handle, ctlr->gen_lock); in tw_cl_shutdown_ctlr()
|
| H A D | tw_cl_misc.c | 501 tw_osl_get_lock(ctlr_handle, ctlr->gen_lock); in tw_cl_create_event() 521 tw_osl_free_lock(ctlr_handle, ctlr->gen_lock); in tw_cl_create_event()
|
| H A D | tw_cl_io.c | 387 tw_osl_get_lock(ctlr_handle, ctlr->gen_lock); in tw_cl_ioctl() 698 tw_osl_free_lock(ctlr_handle, ctlr->gen_lock); in tw_cl_ioctl()
|
| /freebsd-12.1/sys/dev/tws/ |
| H A D | tws.c | 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() [all …]
|
| H A D | tws_user.c | 168 mtx_lock(&sc->gen_lock); in tws_passthru() 169 error = mtx_sleep(req, &sc->gen_lock, 0, "tws_passthru", TWS_IOCTL_TIMEOUT*hz); in tws_passthru() 170 mtx_unlock(&sc->gen_lock); in tws_passthru() 308 mtx_lock(&sc->gen_lock); in tws_ioctl_aen() 371 mtx_unlock(&sc->gen_lock); in tws_ioctl_aen() 384 mtx_assert(&sc->gen_lock, MA_OWNED); in tws_circular_aenq_insert()
|
| H A D | tws_cam.c | 435 mtx_lock(&sc->gen_lock); in tws_aen_complete() 438 mtx_unlock(&sc->gen_lock); in tws_aen_complete() 1163 mtx_lock(&sc->gen_lock); in tws_timeout() 1165 mtx_unlock(&sc->gen_lock); in tws_timeout() 1170 mtx_unlock(&sc->gen_lock); in tws_timeout() 1193 mtx_unlock(&sc->gen_lock); in tws_timeout() 1203 mtx_lock(&sc->gen_lock); in tws_reset() 1205 mtx_unlock(&sc->gen_lock); in tws_reset() 1222 mtx_unlock(&sc->gen_lock); in tws_reset() 1281 mtx_sleep(sc, &sc->gen_lock, 0, "tws_reinit", 5*hz); in tws_reinit()
|
| H A D | tws.h | 249 struct mtx gen_lock; /* general driver lock */ member
|