Home
last modified time | relevance | path

Searched refs:sc_mtx (Results 1 - 14 of 14) sorted by relevance

/third_party/FreeBSD/sys/dev/usb/net/
H A Dif_cdcereg.h95 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 Dif_axgereg.h167 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 Dif_urndisreg.h52 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 Dif_axereg.h354 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 Dif_axge.c303 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 Dif_axe.c588 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 Dif_urndis.c213 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 Dif_cdce.c481 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 Dusb_serial.h175 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 Du3g.c97 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 Dusb_serial.c215 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 Duhid.c75 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 Dusb_hub.c80 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 Dumass.c399 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()

Completed in 21 milliseconds