Lines Matching refs:priv_mtx

388 	f->priv_mtx = mtx;  in usb_fifo_alloc()
600 mtx_lock(f->priv_mtx); in usb_fifo_free()
608 mtx_unlock(f->priv_mtx); in usb_fifo_free()
716 mtx_lock(f->priv_mtx); in usb_fifo_open()
744 mtx_unlock(f->priv_mtx); in usb_fifo_open()
785 mtx_lock(f->priv_mtx); in usb_fifo_close()
834 err = cv_timedwait_sig(&f->cv_io, f->priv_mtx, in usb_fifo_close()
857 mtx_unlock(f->priv_mtx); in usb_fifo_close()
1155 USB_MTX_ASSERT(f->priv_mtx, MA_OWNED); in usb_filter_write()
1196 USB_MTX_ASSERT(f->priv_mtx, MA_OWNED); in usb_filter_read()
1283 mtx_lock(f->priv_mtx); in usb_kqfilter()
1285 mtx_unlock(f->priv_mtx); in usb_kqfilter()
1315 mtx_lock(f->priv_mtx); in usb_poll()
1347 mtx_unlock(f->priv_mtx); in usb_poll()
1353 mtx_lock(f->priv_mtx); in usb_poll()
1390 mtx_unlock(f->priv_mtx); in usb_poll()
1422 mtx_lock(f->priv_mtx); in usb_read()
1503 mtx_unlock(f->priv_mtx); in usb_read()
1539 mtx_lock(f->priv_mtx); in usb_write()
1638 mtx_unlock(f->priv_mtx); in usb_write()
1699 mtx_unlock(f->priv_mtx); in usb_fifo_uiomove()
1707 mtx_lock(f->priv_mtx); in usb_fifo_uiomove()
1717 USB_MTX_ASSERT(f->priv_mtx, MA_OWNED); in usb_fifo_wait()
1725 err = cv_wait_sig(&f->cv_io, f->priv_mtx); in usb_fifo_wait()
1826 struct mtx *priv_mtx, struct usb_fifo_methods *pm, in usb_fifo_attach() argument
1844 if (priv_mtx == NULL) in usb_fifo_attach()
1845 priv_mtx = &Giant; in usb_fifo_attach()
1864 f_tx = usb_fifo_alloc(priv_mtx); in usb_fifo_attach()
1865 f_rx = usb_fifo_alloc(priv_mtx); in usb_fifo_attach()
1961 mtx_lock(f->priv_mtx); in usb_fifo_alloc_buffer()
1970 mtx_unlock(f->priv_mtx); in usb_fifo_alloc_buffer()
1986 mtx_lock(f->priv_mtx); in usb_fifo_free_buffer()
1998 mtx_unlock(f->priv_mtx); in usb_fifo_free_buffer()