Lines Matching refs:priv_mtx
319 f->priv_mtx = mtx; in usb_fifo_alloc()
532 mtx_lock(f->priv_mtx); in usb_fifo_free()
540 mtx_unlock(f->priv_mtx); in usb_fifo_free()
643 mtx_lock(f->priv_mtx); in usb_fifo_open()
671 mtx_unlock(f->priv_mtx); in usb_fifo_open()
712 mtx_lock(f->priv_mtx); in usb_fifo_close()
746 err = cv_timedwait(&f->cv_io, f->priv_mtx, in usb_fifo_close()
769 mtx_unlock(f->priv_mtx); in usb_fifo_close()
1064 mtx_lock(f->priv_mtx); in usb_poll()
1095 mtx_unlock(f->priv_mtx); in usb_poll()
1101 mtx_lock(f->priv_mtx); in usb_poll()
1139 mtx_unlock(f->priv_mtx); in usb_poll()
1170 mtx_lock(f->priv_mtx); in usb_read()
1246 mtx_unlock(f->priv_mtx); in usb_read()
1280 mtx_lock(f->priv_mtx); in usb_write()
1369 mtx_unlock(f->priv_mtx); in usb_write()
1381 mtx_assert(f->priv_mtx, MA_OWNED); in usb_fifo_wait()
1389 err = cv_wait(&f->cv_io, f->priv_mtx); in usb_fifo_wait()
1478 struct mtx *priv_mtx, struct usb_fifo_methods *pm, in usb_fifo_attach() argument
1496 if (priv_mtx == NULL) in usb_fifo_attach()
1497 priv_mtx = &Giant; in usb_fifo_attach()
1516 f_tx = usb_fifo_alloc(priv_mtx); in usb_fifo_attach()
1517 f_rx = usb_fifo_alloc(priv_mtx); in usb_fifo_attach()
1613 mtx_lock(f->priv_mtx); in usb_fifo_alloc_buffer()
1622 mtx_unlock(f->priv_mtx); in usb_fifo_alloc_buffer()
1638 mtx_lock(f->priv_mtx); in usb_fifo_free_buffer()
1650 mtx_unlock(f->priv_mtx); in usb_fifo_free_buffer()