Lines Matching defs:crypto_locks
62 * crypto_locks protects the global array of minor structures.
63 * crypto_locks is an array of locks indexed by the cpuid. A reader needs
72 * The locking order is crypto_locks followed by cm_lock.
170 static kcf_lock_withpad_t *crypto_locks;
174 mutex_enter(&crypto_locks[i].kl_lock);
178 mutex_exit(&crypto_locks[i].kl_lock);
377 crypto_locks = kmem_zalloc(max_ncpus * sizeof (kcf_lock_withpad_t),
380 mutex_init(&crypto_locks[i].kl_lock, NULL, MUTEX_DRIVER, NULL);
401 mp = &crypto_locks[CPU_SEQID];
424 mutex_destroy(&crypto_locks[i].kl_lock);
425 kmem_free(crypto_locks, max_ncpus * sizeof (kcf_lock_withpad_t));
426 crypto_locks = NULL;
454 mp = &crypto_locks[CPU_SEQID];
539 mp = &crypto_locks[CPU_SEQID];
626 mp = &crypto_locks[CPU_SEQID];