Lines Matching refs:up_mtx
71 mtx_lock(up->up_mtx); in usb_process_thread()
149 (void)cv_wait(&up->up_cv, up->up_mtx); in usb_process_thread()
154 mtx_unlock(up->up_mtx); in usb_process_thread()
212 up->up_mtx = p_mtx; in usb_proc_create()
247 if (up->up_mtx == NULL) in usb_proc_free()
256 up->up_mtx = NULL; in usb_proc_free()
365 if (up->up_mtx != NULL) { in usb_proc_is_gone()
366 mtx_assert(up->up_mtx, MA_OWNED); in usb_proc_is_gone()
389 mtx_assert(up->up_mtx, MA_OWNED); in usb_proc_mwait()
410 (void)cv_wait(&up->up_drain, up->up_mtx); in usb_proc_mwait()
427 if (up->up_mtx == NULL) { in usb_proc_drain()
432 if (up->up_mtx != &Giant) { in usb_proc_drain()
433 mtx_assert(up->up_mtx, MA_NOTOWNED); in usb_proc_drain()
436 mtx_lock(up->up_mtx); in usb_proc_drain()
451 (void)cv_wait(&up->up_cv, up->up_mtx); in usb_proc_drain()
461 mtx_unlock(up->up_mtx); in usb_proc_drain()
476 if (up->up_mtx == NULL) in usb_proc_rewakeup()
482 mtx_assert(up->up_mtx, MA_OWNED); in usb_proc_rewakeup()