Lines Matching refs:crypto_drivers
129 static struct cryptocap **crypto_drivers = NULL; variable
316 crypto_drivers = malloc(crypto_drivers_size * in crypto_init()
459 if (crypto_drivers[i] != NULL) in crypto_destroy()
460 cap_rele(crypto_drivers[i]); in crypto_destroy()
462 free(crypto_drivers, M_CRYPTO_DATA); in crypto_destroy()
597 return (hid >= crypto_drivers_size ? NULL : crypto_drivers[hid]); in crypto_checkdriver()
619 cap = crypto_drivers[hid]; in crypto_select_driver()
1048 if (crypto_drivers[i] == NULL) in crypto_get_driverid()
1066 sizeof(*crypto_drivers), M_CRYPTO_DATA, M_WAITOK | M_ZERO); in crypto_get_driverid()
1069 memcpy(newdrv, crypto_drivers, in crypto_get_driverid()
1070 crypto_drivers_size * sizeof(*crypto_drivers)); in crypto_get_driverid()
1074 free(crypto_drivers, M_CRYPTO_DATA); in crypto_get_driverid()
1075 crypto_drivers = newdrv; in crypto_get_driverid()
1079 crypto_drivers[i] = cap; in crypto_get_driverid()
1103 if (crypto_drivers[i] == NULL) in crypto_find_driver()
1105 cap = crypto_drivers[i]; in crypto_find_driver()
1173 crypto_drivers[driverid] = NULL; in crypto_unregister_all()
1933 const struct cryptocap *cap = crypto_drivers[hid]; in db_show_drivers()