Searched refs:gen_lock (Results 1 – 8 of 8) sorted by relevance
| /freebsd-13.1/sys/dev/twa/ |
| H A D | tw_cl.h | 181 TW_LOCK_HANDLE *gen_lock;/* ptr to general purpose lock */ member 247 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_insert_head() 250 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_insert_head() 259 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_insert_tail() 262 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_insert_tail() 272 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_remove_head() 280 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_remove_head() 290 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_remove_item() 293 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_remove_item()
|
| H A D | tw_cl_init.c | 313 ctlr->gen_lock = &(ctlr->gen_lock_handle); in tw_cl_init_ctlr() 314 tw_osl_init_lock(ctlr_handle, "tw_cl_gen_lock", ctlr->gen_lock); in tw_cl_init_ctlr() 577 tw_osl_destroy_lock(ctlr_handle, ctlr->gen_lock); in tw_cl_shutdown_ctlr()
|
| H A D | tw_cl_misc.c | 479 tw_osl_get_lock(ctlr_handle, ctlr->gen_lock); in tw_cl_create_event() 499 tw_osl_free_lock(ctlr_handle, ctlr->gen_lock); in tw_cl_create_event()
|
| H A D | tw_cl_io.c | 377 tw_osl_get_lock(ctlr_handle, ctlr->gen_lock); in tw_cl_ioctl() 682 tw_osl_free_lock(ctlr_handle, ctlr->gen_lock); in tw_cl_ioctl()
|
| /freebsd-13.1/sys/dev/tws/ |
| H A D | tws_user.c | 165 mtx_lock(&sc->gen_lock); in tws_passthru() 166 error = mtx_sleep(req, &sc->gen_lock, 0, "tws_passthru", TWS_IOCTL_TIMEOUT*hz); in tws_passthru() 167 mtx_unlock(&sc->gen_lock); in tws_passthru() 305 mtx_lock(&sc->gen_lock); in tws_ioctl_aen() 366 mtx_unlock(&sc->gen_lock); in tws_ioctl_aen() 379 mtx_assert(&sc->gen_lock, MA_OWNED); in tws_circular_aenq_insert()
|
| H A D | tws.c | 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() [all …]
|
| H A D | tws_cam.c | 416 mtx_lock(&sc->gen_lock); in tws_aen_complete() 419 mtx_unlock(&sc->gen_lock); in tws_aen_complete() 1129 mtx_lock(&sc->gen_lock); in tws_timeout() 1131 mtx_unlock(&sc->gen_lock); in tws_timeout() 1136 mtx_unlock(&sc->gen_lock); in tws_timeout() 1159 mtx_unlock(&sc->gen_lock); in tws_timeout() 1169 mtx_lock(&sc->gen_lock); in tws_reset() 1171 mtx_unlock(&sc->gen_lock); in tws_reset() 1188 mtx_unlock(&sc->gen_lock); in tws_reset() 1246 mtx_sleep(sc, &sc->gen_lock, 0, "tws_reinit", 5*hz); in tws_reinit()
|
| H A D | tws.h | 244 struct mtx gen_lock; /* general driver lock */ member
|