Home
last modified time | relevance | path

Searched refs:ub_lock (Results 1 – 5 of 5) sorted by relevance

/netbsd-src/sys/dev/usb/
H A Dusbdi.c498 err = cv_wait_sig(&xfer->ux_cv, pipe->up_dev->ud_bus->ub_lock); in usbd_transfer()
500 cv_wait(&xfer->ux_cv, pipe->up_dev->ud_bus->ub_lock); in usbd_transfer()
639 mutex_enter(xfer->ux_bus->ub_lock); in usbd_free_xfer()
641 callout_halt(&xfer->ux_callout, xfer->ux_bus->ub_lock); in usbd_free_xfer()
643 USB_TASKQ_HC, xfer->ux_bus->ub_lock); in usbd_free_xfer()
644 mutex_exit(xfer->ux_bus->ub_lock); in usbd_free_xfer()
1036 KASSERT(mutex_owned(pipe->up_dev->ud_bus->ub_lock)); in usbd_ar_pipe()
1075 pipe->up_dev->ud_bus->ub_lock); in usbd_ar_pipe()
1091 cv_wait(&pipe->up_callingcv, pipe->up_dev->ud_bus->ub_lock); in usbd_ar_pipe()
1094 KASSERT(mutex_owned(pipe->up_dev->ud_bus->ub_lock)); in usbd_ar_pipe()
[all …]
H A Dusb.c332 sc->sc_bus->ub_methods->ubm_getlock(sc->sc_bus, &sc->sc_bus->ub_lock); in usb_attach()
333 KASSERT(sc->sc_bus->ub_lock != NULL); in usb_attach()
737 mutex_enter(bus->ub_lock); in usb_event_thread()
740 mutex_exit(bus->ub_lock); in usb_event_thread()
745 mutex_enter(bus->ub_lock); in usb_event_thread()
749 kpause("usbpoll", true, hz, bus->ub_lock); in usb_event_thread()
756 bus->ub_lock, usb_noexplore ? 0 : hz * 60); in usb_event_thread()
764 mutex_exit(bus->ub_lock); in usb_event_thread()
1181 KASSERT(mutex_owned(bus->ub_lock)); in usb_discover()
1197 mutex_exit(sc->sc_bus->ub_lock); in usb_discover()
[all …]
H A Dusb_subr.c449 mutex_enter(iface->ui_dev->ud_bus->ub_lock); in usbd_iface_locked()
451 mutex_exit(iface->ui_dev->ud_bus->ub_lock); in usbd_iface_locked()
460 mutex_enter(iface->ui_dev->ud_bus->ub_lock); in usbd_iface_exlock()
464 mutex_exit(iface->ui_dev->ud_bus->ub_lock); in usbd_iface_exlock()
472 mutex_enter(iface->ui_dev->ud_bus->ub_lock); in usbd_iface_lock()
481 mutex_exit(iface->ui_dev->ud_bus->ub_lock); in usbd_iface_lock()
490 mutex_enter(iface->ui_dev->ud_bus->ub_lock); in usbd_iface_unlock()
494 mutex_exit(iface->ui_dev->ud_bus->ub_lock); in usbd_iface_unlock()
502 mutex_enter(iface->ui_dev->ud_bus->ub_lock); in usbd_iface_piperef()
510 mutex_exit(iface->ui_dev->ud_bus->ub_lock); in usbd_iface_piperef()
[all …]
H A Dusbroothub.c369 KASSERT(bus->ub_usepolling || mutex_owned(bus->ub_lock)); in roothub_ctrl_start()
558 mutex_exit(bus->ub_lock); in roothub_ctrl_start()
563 mutex_enter(bus->ub_lock); in roothub_ctrl_start()
590 KASSERT(mutex_owned(bus->ub_lock)); in roothub_ctrl_abort()
600 cv_wait(&bus->ub_rhxfercv, bus->ub_lock); in roothub_ctrl_abort()
H A Dusbdivar.h182 kmutex_t *ub_lock; member
406 #define usbd_lock_pipe(p) mutex_enter((p)->up_dev->ud_bus->ub_lock)
407 #define usbd_unlock_pipe(p) mutex_exit((p)->up_dev->ud_bus->ub_lock)