Lines Matching refs:cryptodev_mtx
103 kmutex_t cryptodev_mtx; variable
249 mutex_enter(&cryptodev_mtx); in cryptof_ioctl()
251 mutex_exit(&cryptodev_mtx); in cryptof_ioctl()
258 mutex_enter(&cryptodev_mtx); in cryptof_ioctl()
271 mutex_exit(&cryptodev_mtx); in cryptof_ioctl()
296 mutex_enter(&cryptodev_mtx); in cryptof_ioctl()
298 mutex_exit(&cryptodev_mtx); in cryptof_ioctl()
310 mutex_enter(&cryptodev_mtx); in cryptof_ioctl()
315 mutex_exit(&cryptodev_mtx); in cryptof_ioctl()
319 mutex_exit(&cryptodev_mtx); in cryptof_ioctl()
323 mutex_enter(&cryptodev_mtx); in cryptof_ioctl()
325 mutex_exit(&cryptodev_mtx); in cryptof_ioctl()
342 mutex_enter(&cryptodev_mtx); in cryptof_ioctl()
346 mutex_exit(&cryptodev_mtx); in cryptof_ioctl()
355 mutex_enter(&cryptodev_mtx); in cryptof_ioctl()
357 mutex_exit(&cryptodev_mtx); in cryptof_ioctl()
382 mutex_enter(&cryptodev_mtx); in cryptof_ioctl()
384 mutex_exit(&cryptodev_mtx); in cryptof_ioctl()
407 mutex_enter(&cryptodev_mtx); in cryptof_ioctl()
409 mutex_exit(&cryptodev_mtx); in cryptof_ioctl()
652 mutex_enter(&cryptodev_mtx); in cryptodev_op()
656 cv_wait(&crp->crp_cv, &cryptodev_mtx); /* XXX cv_wait_sig? */ in cryptodev_op()
658 mutex_exit(&cryptodev_mtx); in cryptodev_op()
716 mutex_enter(&cryptodev_mtx); in cryptodev_cb()
720 mutex_exit(&cryptodev_mtx); in cryptodev_cb()
728 mutex_enter(&cryptodev_mtx); in cryptodev_mcb()
732 mutex_exit(&cryptodev_mtx); in cryptodev_mcb()
739 mutex_enter(&cryptodev_mtx); in cryptodevkey_cb()
742 mutex_exit(&cryptodev_mtx); in cryptodevkey_cb()
749 mutex_enter(&cryptodev_mtx); in cryptodevkey_mcb()
753 mutex_exit(&cryptodev_mtx); in cryptodevkey_mcb()
848 mutex_enter(&cryptodev_mtx); in cryptodev_key()
850 cv_wait(&krp->krp_cv, &cryptodev_mtx); /* XXX cv_wait_sig? */ in cryptodev_key()
852 mutex_exit(&cryptodev_mtx); in cryptodev_key()
898 mutex_enter(&cryptodev_mtx); in cryptof_close()
901 mutex_exit(&cryptodev_mtx); in cryptof_close()
903 mutex_enter(&cryptodev_mtx); in cryptof_close()
908 mutex_exit(&cryptodev_mtx); in cryptof_close()
926 KASSERT(mutex_owned(&cryptodev_mtx)); in csefind()
941 KASSERT(mutex_owned(&cryptodev_mtx)); in csedelete()
954 mutex_enter(&cryptodev_mtx); in cseadd()
959 mutex_exit(&cryptodev_mtx); in cseadd()
1023 mutex_enter(&cryptodev_mtx); in cryptoopen()
1035 mutex_exit(&cryptodev_mtx); in cryptoopen()
1086 mutex_enter(&cryptodev_mtx); in cryptodev_mop()
1091 mutex_exit(&cryptodev_mtx); in cryptodev_mop()
1094 mutex_exit(&cryptodev_mtx); in cryptodev_mop()
1716 mutex_enter(&cryptodev_mtx); in cryptodev_msessionfin()
1722 mutex_exit(&cryptodev_mtx); in cryptodev_msessionfin()
1724 mutex_enter(&cryptodev_mtx); in cryptodev_msessionfin()
1726 mutex_exit(&cryptodev_mtx); in cryptodev_msessionfin()
1757 mutex_enter(&cryptodev_mtx); in cryptodev_getmstatus()
1785 mutex_exit(&cryptodev_mtx); in cryptodev_getmstatus()
1889 mutex_enter(&cryptodev_mtx); in cryptodev_getstatus()
1925 mutex_exit(&cryptodev_mtx); in cryptodev_getstatus()
1959 mutex_exit(&cryptodev_mtx); in cryptodev_getstatus()
1976 mutex_exit(&cryptodev_mtx); in cryptodev_getstatus()
1987 mutex_enter(&cryptodev_mtx); in cryptof_stat()
1994 mutex_exit(&cryptodev_mtx); in cryptof_stat()
2010 mutex_enter(&cryptodev_mtx); in cryptof_poll()
2018 mutex_exit(&cryptodev_mtx); in cryptof_poll()
2032 mutex_init(&cryptodev_mtx, MUTEX_DEFAULT, IPL_NONE); in cryptoattach()
2068 mutex_destroy(&cryptodev_mtx); in crypto_detach()