/third_party/FreeBSD/sys/dev/usb/net/ |
H A D | if_cdcereg.h | 95 struct mtx sc_mtx; member 139 #define CDCE_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 140 #define CDCE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 141 #define CDCE_LOCK_ASSERT(_sc, t) mtx_assert(&(_sc)->sc_mtx, t)
|
H A D | if_axgereg.h | 167 struct mtx sc_mtx; member 194 #define AXGE_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 195 #define AXGE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 196 #define AXGE_LOCK_ASSERT(_sc, t) mtx_assert(&(_sc)->sc_mtx, t)
|
H A D | if_urndisreg.h | 52 struct mtx sc_mtx; member 65 #define URNDIS_LOCK(sc) mtx_lock(&(sc)->sc_mtx) 66 #define URNDIS_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) 67 #define URNDIS_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->sc_mtx, (what))
|
H A D | if_axereg.h | 354 struct mtx sc_mtx; member 383 #define AXE_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 384 #define AXE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 385 #define AXE_LOCK_ASSERT(_sc, t) mtx_assert(&(_sc)->sc_mtx, t)
|
H A D | if_axge.c | 303 err = usbd_req_set_config(sc->sc_ue.ue_udev, &sc->sc_mtx, in axge_reset() 358 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), NULL, MTX_RECURSE); in axge_attach() 362 axge_config, AXGE_N_TRANSFER, sc, &sc->sc_mtx); in axge_attach() 370 ue->ue_mtx = &sc->sc_mtx; in axge_attach() 392 mtx_destroy(&sc->sc_mtx); in axge_detach()
|
H A D | if_axe.c | 588 err = usbd_req_set_config(sc->sc_ue.ue_udev, &sc->sc_mtx, in axe_reset() 703 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), NULL, MTX_RECURSE); in axe_attach() 707 axe_config, AXE_N_TRANSFER, sc, &sc->sc_mtx); in axe_attach() 716 ue->ue_mtx = &sc->sc_mtx; in axe_attach() 738 mtx_destroy(&sc->sc_mtx); in axe_detach()
|
H A D | if_urndis.c | 213 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), NULL, MTX_RECURSE); in urndis_attach() 225 URNDIS_N_TRANSFER, sc, &sc->sc_mtx); in urndis_attach() 282 ue->ue_mtx = &sc->sc_mtx; in urndis_attach() 324 mtx_destroy(&sc->sc_mtx); in urndis_detach() 416 &sc->sc_mtx, &req, buf, (rt & UT_READ) ? in urndis_ctrl_msg()
|
H A D | if_cdce.c | 481 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), NULL, MTX_DEF); in cdce_attach() 556 pcfg, CDCE_N_TRANSFER, sc, &sc->sc_mtx); in cdce_attach() 620 ue->ue_mtx = &sc->sc_mtx; in cdce_attach() 644 mtx_destroy(&sc->sc_mtx); in cdce_detach() 1063 mtx_lock(&sc->sc_mtx); in cdce_handle_request() 1066 mtx_unlock(&sc->sc_mtx); in cdce_handle_request()
|
/third_party/FreeBSD/sys/dev/usb/serial/ |
H A D | usb_serial.h | 175 struct mtx *sc_mtx; member 209 #define UCOM_MTX_ASSERT(sc, what) USB_MTX_ASSERT((sc)->sc_mtx, what) 210 #define UCOM_MTX_LOCK(sc) USB_MTX_LOCK((sc)->sc_mtx) 211 #define UCOM_MTX_UNLOCK(sc) USB_MTX_UNLOCK((sc)->sc_mtx)
|
H A D | u3g.c | 97 struct mtx sc_mtx; member 692 mtx_init(&sc->sc_mtx, "u3g", NULL, MTX_DEF); in u3g_attach() 726 &sc->sc_ucom[nports], &sc->sc_mtx); in u3g_attach() 750 sc->sc_numports, sc, &u3g_callback, &sc->sc_mtx); in u3g_attach() 782 mtx_destroy(&sc->sc_mtx); in u3g_detach() 792 mtx_destroy(&sc->sc_mtx); in u3g_free_softc()
|
H A D | usb_serial.c | 215 sc[subunit].sc_mtx = umtx; in ucom_attach() 397 * "sc_mtx" mutex. It is safe to update fields in the message in ucom_queue_command() 509 usb_pause_mtx(sc->sc_mtx, hz / 10); in ucom_cfg_open()
|
/third_party/FreeBSD/sys/dev/usb/input/ |
H A D | uhid.c | 75 struct mtx sc_mtx; member 521 mtx_lock(&sc->sc_mtx); in uhid_open() 523 mtx_unlock(&sc->sc_mtx); in uhid_open() 596 mtx_lock(&sc->sc_mtx); in uhid_ioctl() 598 mtx_unlock(&sc->sc_mtx); in uhid_ioctl() 600 mtx_lock(&sc->sc_mtx); in uhid_ioctl() 602 mtx_unlock(&sc->sc_mtx); in uhid_ioctl() 745 mtx_init(&sc->sc_mtx, "uhid lock", NULL, MTX_DEF | MTX_RECURSE); in uhid_attach() 754 UHID_N_TRANSFER, sc, &sc->sc_mtx); in uhid_attach() 856 error = usb_fifo_attach(uaa->device, sc, &sc->sc_mtx, in uhid_attach() [all...] |
/third_party/FreeBSD/sys/dev/usb/ |
H A D | usb_hub.c | 80 struct mtx sc_mtx; /* our mutex */ member 236 USB_MTX_LOCK(&sc->sc_mtx); in uhub_reset_tt_proc() 240 USB_MTX_UNLOCK(&sc->sc_mtx); in uhub_reset_tt_proc() 1282 mtx_init(&sc->sc_mtx, "USB HUB mutex", NULL, MTX_DEF); in uhub_attach() 1461 uhub_config, UHUB_N_TRANSFER, sc, &sc->sc_mtx); in uhub_attach() 1585 USB_MTX_LOCK(&sc->sc_mtx); in uhub_attach() 1587 USB_MTX_UNLOCK(&sc->sc_mtx); in uhub_attach() 1603 mtx_destroy(&sc->sc_mtx); in uhub_attach() 1670 mtx_destroy(&sc->sc_mtx); in uhub_detach()
|
/third_party/FreeBSD/sys/dev/usb/storage/ |
H A D | umass.c | 399 struct mtx sc_mtx; member 945 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), in umass_attach() 1017 UMASS_T_BBB_MAX, sc, &sc->sc_mtx); in umass_attach() 1025 UMASS_T_CBI_MAX, sc, &sc->sc_mtx); in umass_attach() 1118 mtx_lock(&sc->sc_mtx); in umass_detach() 1139 mtx_unlock(&sc->sc_mtx); in umass_detach() 1141 mtx_destroy(&sc->sc_mtx); in umass_detach() 1197 mtx_assert(&sc->sc_mtx, MA_OWNED); in umass_cancel_ccb()
|