Lines Matching refs:priv_mtx
319 f->priv_mtx = mtx; in usb_fifo_alloc()
534 mtx_lock(f->priv_mtx); in usb_fifo_free()
542 mtx_unlock(f->priv_mtx); in usb_fifo_free()
645 mtx_lock(f->priv_mtx); in usb_fifo_open()
673 mtx_unlock(f->priv_mtx); in usb_fifo_open()
714 mtx_lock(f->priv_mtx); in usb_fifo_close()
750 err = cv_timedwait(&f->cv_io, f->priv_mtx, in usb_fifo_close()
773 mtx_unlock(f->priv_mtx); in usb_fifo_close()
1070 mtx_lock(f->priv_mtx); in usb_poll()
1101 mtx_unlock(f->priv_mtx); in usb_poll()
1108 mtx_lock(f->priv_mtx); in usb_poll()
1146 mtx_unlock(f->priv_mtx); in usb_poll()
1177 mtx_lock(f->priv_mtx); in usb_read()
1256 mtx_unlock(f->priv_mtx); in usb_read()
1290 mtx_lock(f->priv_mtx); in usb_write()
1380 mtx_unlock(f->priv_mtx); in usb_write()
1392 mtx_assert(f->priv_mtx, MA_OWNED); in usb_fifo_wait()
1400 err = cv_wait(&f->cv_io, f->priv_mtx); in usb_fifo_wait()
1489 struct mtx *priv_mtx, struct usb_fifo_methods *pm, in usb_fifo_attach() argument
1507 if (priv_mtx == NULL) in usb_fifo_attach()
1508 priv_mtx = &Giant; in usb_fifo_attach()
1528 f_tx = usb_fifo_alloc(priv_mtx); in usb_fifo_attach()
1529 f_rx = usb_fifo_alloc(priv_mtx); in usb_fifo_attach()