Home
last modified time | relevance | path

Searched refs:crypto_drivers_mtx (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/opencrypto/
H A Dcrypto.c104 static struct mtx crypto_drivers_mtx; /* lock on driver table */ variable
105 #define CRYPTO_DRIVER_LOCK() mtx_lock(&crypto_drivers_mtx)
106 #define CRYPTO_DRIVER_UNLOCK() mtx_unlock(&crypto_drivers_mtx)
107 #define CRYPTO_DRIVER_ASSERT() mtx_assert(&crypto_drivers_mtx, MA_OWNED)
299 mtx_init(&crypto_drivers_mtx, "crypto driver table", NULL, MTX_DEF); in crypto_init()
373 mtx_assert(&crypto_drivers_mtx, MA_OWNED); in crypto_terminate()
378 mtx_sleep(td, &crypto_drivers_mtx, PWAIT, "crypto_destroy", 0); in crypto_terminate()
465 mtx_destroy(&crypto_drivers_mtx); in crypto_destroy()
1173 mtx_sleep(cap, &crypto_drivers_mtx, 0, "cryunreg", 0); in crypto_unregister_all()