Lines Matching refs:crypto_drivers
129 static struct cryptocap **crypto_drivers = NULL; variable
309 crypto_drivers = malloc(crypto_drivers_size * in crypto_init()
452 if (crypto_drivers[i] != NULL) in crypto_destroy()
453 cap_rele(crypto_drivers[i]); in crypto_destroy()
455 free(crypto_drivers, M_CRYPTO_DATA); in crypto_destroy()
590 return (hid >= crypto_drivers_size ? NULL : crypto_drivers[hid]); in crypto_checkdriver()
612 cap = crypto_drivers[hid]; in crypto_select_driver()
1041 if (crypto_drivers[i] == NULL) in crypto_get_driverid()
1059 sizeof(*crypto_drivers), M_CRYPTO_DATA, M_WAITOK | M_ZERO); in crypto_get_driverid()
1062 memcpy(newdrv, crypto_drivers, in crypto_get_driverid()
1063 crypto_drivers_size * sizeof(*crypto_drivers)); in crypto_get_driverid()
1067 free(crypto_drivers, M_CRYPTO_DATA); in crypto_get_driverid()
1068 crypto_drivers = newdrv; in crypto_get_driverid()
1072 crypto_drivers[i] = cap; in crypto_get_driverid()
1096 if (crypto_drivers[i] == NULL) in crypto_find_driver()
1098 cap = crypto_drivers[i]; in crypto_find_driver()
1166 crypto_drivers[driverid] = NULL; in crypto_unregister_all()
1920 const struct cryptocap *cap = crypto_drivers[hid]; in db_show_drivers()