Lines Matching defs:crypto_drivers
84 * crypto_drivers table with crypto_get_driverid() and then registering
87 /* Don't directly access crypto_drivers[i], use crypto_checkdriver(i). */
95 #define crypto_drivers (crypto_drv.list)
570 crypto_drivers = kmem_zalloc(CRYPTO_DRIVERS_INITIAL *
644 * prohibit touch crypto_drivers[] and each element after here.
668 if (crypto_drivers != NULL)
669 kmem_free(crypto_drivers,
819 hid = cap - crypto_drivers;
840 DPRINTF("crypto_drivers[%d].cc_newsession() failed. error=%d\n",
933 memcpy(newdrv, crypto_drivers,
935 kmem_free(crypto_drivers,
939 crypto_drivers = newdrv;
963 KASSERT(crypto_drivers != NULL);
968 cap = &crypto_drivers[hid];
976 * - crypto_drivers[] may not be allocated
977 * - crypto_drivers[hid] may not be initialized
985 if (crypto_drivers == NULL)
988 return (hid >= crypto_drivers_num ? NULL : &crypto_drivers[hid]);
994 * - crypto_drivers[] may not be allocated
995 * - crypto_drivers[hid] may not be initialized
1003 if (crypto_drivers == NULL || hid >= crypto_drivers_num)
1006 struct cryptocap *cap = &crypto_drivers[hid];