Lines Matching refs:pcb_mtx
414 mtx_assert(&pcb->pcb_mtx, MA_OWNED); in ng_btsocket_hci_raw_send_sync_ngmsg()
430 error = msleep(&pcb->msg, &pcb->pcb_mtx, PZERO|PCATCH, "hcictl", in ng_btsocket_hci_raw_send_sync_ngmsg()
458 mtx_assert(&pcb->pcb_mtx, MA_OWNED); in ng_btsocket_hci_raw_savctl()
501 mtx_lock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_data_input()
545 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_data_input()
566 mtx_lock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_msg_input()
572 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_msg_input()
578 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_msg_input()
680 mtx_assert(&pcb->pcb_mtx, MA_OWNED); in ng_btsocket_hci_raw_filter()
948 mtx_init(&pcb->pcb_mtx, "btsocks_hci_raw_pcb_mtx", NULL, MTX_DEF); in ng_btsocket_hci_raw_attach()
982 mtx_lock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_bind()
984 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_bind()
1014 mtx_lock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_connect()
1017 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_connect()
1023 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_connect()
1046 mtx_lock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1050 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1056 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1163 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1170 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1180 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1184 error = msleep(&pcb->msg, &pcb->pcb_mtx, in ng_btsocket_hci_raw_control()
1190 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1197 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1226 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1233 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1243 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1247 error = msleep(&pcb->msg, &pcb->pcb_mtx, in ng_btsocket_hci_raw_control()
1253 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1260 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1355 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1362 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1372 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1376 error = msleep(&pcb->msg, &pcb->pcb_mtx, in ng_btsocket_hci_raw_control()
1382 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1389 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1425 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_control()
1449 mtx_lock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_ctloutput()
1503 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_ctloutput()
1523 mtx_lock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_detach()
1527 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_detach()
1530 mtx_destroy(&pcb->pcb_mtx); in ng_btsocket_hci_raw_detach()
1552 mtx_lock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_disconnect()
1554 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_disconnect()
1622 mtx_lock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_send()
1626 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_send()
1632 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_send()
1642 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_send()
1653 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_send()
1684 mtx_lock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_sockaddr()
1686 mtx_unlock(&pcb->pcb_mtx); in ng_btsocket_hci_raw_sockaddr()