Home
last modified time | relevance | path

Searched refs:bus_mtx (Results 1 – 15 of 15) sorted by relevance

/freebsd/sys/dev/usb/controller/
H A Dusb_controller.c417 usb_pause_mtx(&bus->bus_mtx, USB_MS_TO_TICKS(usb_enum_nice_time)); in usb_bus_explore()
861 &bus->bus_mtx, device_get_nameunit(dev), USB_PRI_MED)) { in usb_attach_sub()
865 &bus->bus_mtx, device_get_nameunit(dev), USB_PRI_HIGHEST)) { in usb_attach_sub()
869 &bus->bus_mtx, device_get_nameunit(dev), USB_PRI_HIGH)) { in usb_attach_sub()
873 &bus->bus_mtx, device_get_nameunit(dev), USB_PRI_MED)) { in usb_attach_sub()
877 &bus->bus_mtx, device_get_nameunit(dev), USB_PRI_MED)) { in usb_attach_sub()
950 mtx_init(&bus->bus_mtx, device_get_nameunit(bus->parent), in usb_bus_mem_alloc_all()
957 &bus->bus_mtx, 0); in usb_bus_mem_alloc_all()
963 dmat, &bus->bus_mtx, NULL, bus->dma_bits, USB_BUS_DMA_TAG_MAX); in usb_bus_mem_alloc_all()
1008 mtx_destroy(&bus->bus_mtx); in usb_bus_mem_free_all()
H A Duhci.c301 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 100); in uhci_restart()
331 usb_pause_mtx(&sc->sc_bus.bus_mtx, in uhci_reset()
344 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 1000); in uhci_reset()
360 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 1000); in uhci_reset()
457 usb_callout_init_mtx(&sc->sc_root_intr, &sc->sc_bus.bus_mtx, 0); in uhci_init()
2338 usb_pause_mtx(&sc->sc_bus.bus_mtx, in uhci_portreset()
2347 mtx_unlock(&sc->sc_bus.bus_mtx); in uhci_portreset()
2355 mtx_lock(&sc->sc_bus.bus_mtx); in uhci_portreset()
2364 usb_pause_mtx(&sc->sc_bus.bus_mtx, in uhci_portreset()
2659 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 50); in uhci_roothub_exec()
[all …]
H A Ddwc_otg.c637 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 125); in dwc_otg_wakeup_peer()
646 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 100); in dwc_otg_wakeup_peer()
653 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 10); in dwc_otg_wakeup_peer()
660 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 250); in dwc_otg_wakeup_peer()
3874 &sc->sc_bus.bus_mtx, 0); in dwc_otg_init()
3889 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 32); in dwc_otg_init()
3895 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 128); in dwc_otg_init()
3978 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 100); in dwc_otg_init()
3984 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 100); in dwc_otg_init()
4655 usb_pause_mtx(&sc->sc_bus.bus_mtx, h in dwc_otg_roothub_exec()
[all...]
H A Dxhci_pci.c345 usb_callout_init_mtx(&sc->sc_callout, &sc->sc_bus.bus_mtx, 0); in xhci_pci_attach()
H A Datmegadci.c226 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 125); in atmegadci_wakeup_peer()
1243 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 100); in atmegadci_init()
1259 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 20); in atmegadci_init()
H A Dmusb_otg.c358 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 50); in musbotg_wakeup_host()
382 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 125); in musbotg_wakeup_peer()
3072 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 1000); in musbotg_init()
3088 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 100); in musbotg_init()
3112 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 10); in musbotg_init()
3892 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 5); in musbotg_roothub_exec()
H A Dehci.c293 usb_callout_init_mtx(&sc->sc_tmo_pcd, &sc->sc_bus.bus_mtx, 0); in ehci_init()
294 usb_callout_init_mtx(&sc->sc_tmo_poll, &sc->sc_bus.bus_mtx, 0); in ehci_init()
3166 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 50); in ehci_roothub_exec()
3172 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 250); in ehci_roothub_exec()
3328 usb_pause_mtx(&sc->sc_bus.bus_mtx, in ehci_roothub_exec()
3336 usb_pause_mtx(&sc->sc_bus.bus_mtx, in ehci_roothub_exec()
H A Davr32dci.c259 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 125); in avr32dci_wakeup_peer()
1210 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 20); in avr32dci_init()
H A Dohci.c409 usb_callout_init_mtx(&sc->sc_tmo_rhsc, &sc->sc_bus.bus_mtx, 0); in ohci_init()
2307 usb_pause_mtx(&sc->sc_bus.bus_mtx, in ohci_roothub_exec()
H A Duss820dci.c1404 usb_pause_mtx(&sc->sc_bus.bus_mtx, hz / 100); in uss820dci_init()
/freebsd/sys/dev/usb/
H A Dusb_core.h44 #define USB_BUS_LOCK(_b) USB_MTX_LOCK(&(_b)->bus_mtx)
45 #define USB_BUS_UNLOCK(_b) USB_MTX_UNLOCK(&(_b)->bus_mtx)
46 #define USB_BUS_LOCK_ASSERT(_b, _t) USB_MTX_ASSERT(&(_b)->bus_mtx, _t)
H A Dusb_bus.h94 struct mtx bus_mtx; member
H A Dusb_transfer.c1176 &udev->bus->bus_mtx, 0); in usbd_transfer_setup()
1384 usb_pause_mtx(&info->bus->bus_mtx, in usbd_transfer_unsetup_sub()
3470 while (mtx_owned(&bus->bus_mtx)) { in usbd_transfer_poll()
3471 mtx_unlock(&bus->bus_mtx); in usbd_transfer_poll()
3517 mtx_lock(&bus->bus_mtx); in usbd_transfer_poll()
H A Dusb_hub.c2287 if (mtx_owned(&bus->bus_mtx)) { in usb_needs_explore()
/freebsd/sys/dev/usb/controller/dwc3/
H A Ddwc3.c158 usb_callout_init_mtx(&sc->sc_callout, &sc->sc_bus.bus_mtx, 0); in snps_dwc3_attach_xhci()