Lines Matching refs:crypto_drivers
136 static struct cryptocap **crypto_drivers = NULL; variable
341 crypto_drivers = malloc(crypto_drivers_size * in crypto_init()
485 if (crypto_drivers[i] != NULL) in crypto_destroy()
486 cap_rele(crypto_drivers[i]); in crypto_destroy()
488 free(crypto_drivers, M_CRYPTO_DATA); in crypto_destroy()
619 return (hid >= crypto_drivers_size ? NULL : crypto_drivers[hid]); in crypto_checkdriver()
641 cap = crypto_drivers[hid]; in crypto_select_driver()
1060 if (crypto_drivers[i] == NULL) in crypto_get_driverid()
1078 sizeof(*crypto_drivers), M_CRYPTO_DATA, M_WAITOK | M_ZERO); in crypto_get_driverid()
1081 memcpy(newdrv, crypto_drivers, in crypto_get_driverid()
1082 crypto_drivers_size * sizeof(*crypto_drivers)); in crypto_get_driverid()
1086 free(crypto_drivers, M_CRYPTO_DATA); in crypto_get_driverid()
1087 crypto_drivers = newdrv; in crypto_get_driverid()
1091 crypto_drivers[i] = cap; in crypto_get_driverid()
1115 if (crypto_drivers[i] == NULL) in crypto_find_driver()
1117 cap = crypto_drivers[i]; in crypto_find_driver()
1222 crypto_drivers[driverid] = NULL; in crypto_unregister_all()
1588 cap = crypto_drivers[hid]; in crypto_select_kdriver()
1958 const struct cryptocap *cap = crypto_drivers[hid]; in crypto_getfeat()
2215 const struct cryptocap *cap = crypto_drivers[hid]; in db_show_drivers()