/third_party/FreeBSD/sys/dev/usb/net/ |
D | if_cdcereg.h | 97 struct mtx sc_mtx; member 141 #define CDCE_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 142 #define CDCE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 143 #define CDCE_LOCK_ASSERT(_sc, t) mtx_assert(&(_sc)->sc_mtx, t)
|
D | if_axgereg.h | 165 struct mtx sc_mtx; member 192 #define AXGE_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 193 #define AXGE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 194 #define AXGE_LOCK_ASSERT(_sc, t) mtx_assert(&(_sc)->sc_mtx, t)
|
D | if_urndisreg.h | 53 struct mtx sc_mtx; member 66 #define URNDIS_LOCK(sc) mtx_lock(&(sc)->sc_mtx) 67 #define URNDIS_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) 68 #define URNDIS_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->sc_mtx, (what))
|
D | if_axereg.h | 356 struct mtx sc_mtx; member 385 #define AXE_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 386 #define AXE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 387 #define AXE_LOCK_ASSERT(_sc, t) mtx_assert(&(_sc)->sc_mtx, t)
|
D | if_axge.c | 304 err = usbd_req_set_config(sc->sc_ue.ue_udev, &sc->sc_mtx, in axge_reset() 359 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), NULL, MTX_RECURSE); in axge_attach() 363 axge_config, AXGE_N_TRANSFER, sc, &sc->sc_mtx); in axge_attach() 371 ue->ue_mtx = &sc->sc_mtx; in axge_attach() 393 mtx_destroy(&sc->sc_mtx); in axge_detach()
|
D | if_cdce.c | 482 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), NULL, MTX_DEF); in cdce_attach() 557 pcfg, CDCE_N_TRANSFER, sc, &sc->sc_mtx); in cdce_attach() 621 ue->ue_mtx = &sc->sc_mtx; in cdce_attach() 645 mtx_destroy(&sc->sc_mtx); in cdce_detach() 1064 mtx_lock(&sc->sc_mtx); in cdce_handle_request() 1067 mtx_unlock(&sc->sc_mtx); in cdce_handle_request()
|
D | if_axe.c | 590 err = usbd_req_set_config(sc->sc_ue.ue_udev, &sc->sc_mtx, in axe_reset() 705 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), NULL, MTX_RECURSE); in axe_attach() 709 axe_config, AXE_N_TRANSFER, sc, &sc->sc_mtx); in axe_attach() 718 ue->ue_mtx = &sc->sc_mtx; in axe_attach() 740 mtx_destroy(&sc->sc_mtx); in axe_detach()
|
D | if_urndis.c | 214 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), NULL, MTX_RECURSE); in urndis_attach() 226 URNDIS_N_TRANSFER, sc, &sc->sc_mtx); in urndis_attach() 283 ue->ue_mtx = &sc->sc_mtx; in urndis_attach() 325 mtx_destroy(&sc->sc_mtx); in urndis_detach() 417 &sc->sc_mtx, &req, buf, (rt & UT_READ) ? in urndis_ctrl_msg()
|
/third_party/FreeBSD/sys/dev/usb/input/ |
D | uhid.c | 77 struct mtx sc_mtx; member 523 mtx_lock(&sc->sc_mtx); in uhid_open() 525 mtx_unlock(&sc->sc_mtx); in uhid_open() 598 mtx_lock(&sc->sc_mtx); in uhid_ioctl() 600 mtx_unlock(&sc->sc_mtx); in uhid_ioctl() 602 mtx_lock(&sc->sc_mtx); in uhid_ioctl() 604 mtx_unlock(&sc->sc_mtx); in uhid_ioctl() 747 mtx_init(&sc->sc_mtx, "uhid lock", NULL, MTX_DEF | MTX_RECURSE); in uhid_attach() 756 UHID_N_TRANSFER, sc, &sc->sc_mtx); in uhid_attach() 858 error = usb_fifo_attach(uaa->device, sc, &sc->sc_mtx, in uhid_attach() [all …]
|
/third_party/FreeBSD/sys/dev/usb/serial/ |
D | usb_serial.h | 176 struct mtx *sc_mtx; member 210 #define UCOM_MTX_ASSERT(sc, what) mtx_assert((sc)->sc_mtx, what) 211 #define UCOM_MTX_LOCK(sc) mtx_lock((sc)->sc_mtx) 212 #define UCOM_MTX_UNLOCK(sc) mtx_unlock((sc)->sc_mtx)
|
D | u3g.c | 99 struct mtx sc_mtx; member 694 mtx_init(&sc->sc_mtx, "u3g", NULL, MTX_DEF); in u3g_attach() 728 &sc->sc_ucom[nports], &sc->sc_mtx); in u3g_attach() 752 sc->sc_numports, sc, &u3g_callback, &sc->sc_mtx); in u3g_attach() 784 mtx_destroy(&sc->sc_mtx); in u3g_detach() 794 mtx_destroy(&sc->sc_mtx); in u3g_free_softc()
|
D | usb_serial.c | 217 sc[subunit].sc_mtx = umtx; in ucom_attach() 511 usb_pause_mtx(sc->sc_mtx, hz / 10); in ucom_cfg_open()
|
/third_party/FreeBSD/sys/dev/usb/ |
D | usb_hub.c | 81 struct mtx sc_mtx; /* our mutex */ member 237 USB_MTX_LOCK(&sc->sc_mtx); in uhub_reset_tt_proc() 241 USB_MTX_UNLOCK(&sc->sc_mtx); in uhub_reset_tt_proc() 1283 mtx_init(&sc->sc_mtx, "USB HUB mutex", NULL, MTX_DEF); in uhub_attach() 1462 uhub_config, UHUB_N_TRANSFER, sc, &sc->sc_mtx); in uhub_attach() 1586 USB_MTX_LOCK(&sc->sc_mtx); in uhub_attach() 1588 USB_MTX_UNLOCK(&sc->sc_mtx); in uhub_attach() 1604 mtx_destroy(&sc->sc_mtx); in uhub_attach() 1671 mtx_destroy(&sc->sc_mtx); in uhub_detach()
|
/third_party/FreeBSD/sys/dev/usb/storage/ |
D | umass.c | 403 struct mtx sc_mtx; member 949 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), in umass_attach() 1021 UMASS_T_BBB_MAX, sc, &sc->sc_mtx); in umass_attach() 1029 UMASS_T_CBI_MAX, sc, &sc->sc_mtx); in umass_attach() 1122 mtx_lock(&sc->sc_mtx); in umass_detach() 1143 mtx_unlock(&sc->sc_mtx); in umass_detach() 1145 mtx_destroy(&sc->sc_mtx); in umass_detach() 1201 mtx_assert(&sc->sc_mtx, MA_OWNED); in umass_cancel_ccb()
|