Lines Matching refs:up_mtx
70 USB_MTX_LOCK(up->up_mtx);
80 * to the "up_mtx" mutex. That means any attempt to queue a
148 (void)cv_wait(&up->up_cv, up->up_mtx);
153 USB_MTX_UNLOCK(up->up_mtx);
211 up->up_mtx = p_mtx;
246 if (up->up_mtx == NULL)
255 up->up_mtx = NULL;
361 * Allow calls when up_mtx is NULL, before the USB process
364 if (up->up_mtx != NULL) {
365 mtx_assert(up->up_mtx, MA_OWNED);
375 * having "up->up_mtx" locked.
388 mtx_assert(up->up_mtx, MA_OWNED);
409 (void)cv_wait(&up->up_drain, up->up_mtx);
426 if (up->up_mtx == NULL) {
431 if (up->up_mtx != &Giant) {
432 mtx_assert(up->up_mtx, MA_NOTOWNED);
435 USB_MTX_LOCK(up->up_mtx);
450 (void)cv_wait(&up->up_cv, up->up_mtx);
460 USB_MTX_UNLOCK(up->up_mtx);
469 * having "up->up_mtx" locked.
475 if (up->up_mtx == NULL)
481 mtx_assert(up->up_mtx, MA_OWNED);