Lines Matching refs:crypto_drivers

137 static	struct cryptocap *crypto_drivers = NULL;  variable
291 crypto_drivers = malloc(crypto_drivers_num * in crypto_init()
293 if (crypto_drivers == NULL) { in crypto_init()
403 if (crypto_drivers != NULL) in crypto_destroy()
404 free(crypto_drivers, M_CRYPTO_DATA); in crypto_destroy()
442 if (crypto_drivers == NULL) in crypto_checkdriver()
444 return (hid >= crypto_drivers_num ? NULL : &crypto_drivers[hid]); in crypto_checkdriver()
492 cap = &crypto_drivers[hid]; in crypto_select_driver()
565 hid = cap - crypto_drivers; in crypto_newsession()
637 cap = &crypto_drivers[hid]; in crypto_freesession()
677 if (crypto_drivers[i].cc_dev == NULL && in crypto_get_driverid()
678 (crypto_drivers[i].cc_flags & CRYPTOCAP_F_CLEANUP) == 0) { in crypto_get_driverid()
700 bcopy(crypto_drivers, newdrv, in crypto_get_driverid()
705 free(crypto_drivers, M_CRYPTO_DATA); in crypto_get_driverid()
706 crypto_drivers = newdrv; in crypto_get_driverid()
710 crypto_drivers[i].cc_sessions = 1; /* Mark */ in crypto_get_driverid()
711 crypto_drivers[i].cc_dev = dev; in crypto_get_driverid()
712 crypto_drivers[i].cc_flags = flags; in crypto_get_driverid()
713 crypto_drivers[i].cc_session_size = sessionsize; in crypto_get_driverid()
736 device_t dev = crypto_drivers[i].cc_dev; in crypto_find_driver()
738 (crypto_drivers[i].cc_flags & CRYPTOCAP_F_CLEANUP)) in crypto_find_driver()
1085 cap = &crypto_drivers[hid]; in crypto_select_kdriver()
1149 krp->krp_hid = cap - crypto_drivers; in crypto_kinvoke()
1437 cap = &crypto_drivers[krp->krp_hid]; in crypto_kdone()
1461 const struct cryptocap *cap = &crypto_drivers[hid]; in crypto_getfeat()
1573 crypto_drivers[crypto_ses2hid(submit->crp_session)].cc_qblocked = 1; in crypto_proc()
1613 crypto_drivers[krp->krp_hid].cc_kqblocked = 1; in crypto_proc()
1735 const struct cryptocap *cap = &crypto_drivers[hid]; in db_show_drivers()