Searched refs:larval (Results 1 – 5 of 5) sorted by relevance
54 static inline int crypto_is_test_larval(struct crypto_larval *larval) in crypto_is_test_larval() argument56 return larval->alg.cra_driver_name[0]; in crypto_is_test_larval()101 struct crypto_larval *larval = (void *)alg; in crypto_larval_destroy() local104 if (larval->adult) in crypto_larval_destroy()105 crypto_mod_put(larval->adult); in crypto_larval_destroy()106 kfree(larval); in crypto_larval_destroy()111 struct crypto_larval *larval; in crypto_larval_alloc() local113 larval = kzalloc(sizeof(*larval), GFP_KERNEL); in crypto_larval_alloc()114 if (!larval) in crypto_larval_alloc()117 larval->mask = mask; in crypto_larval_alloc()[all …]
50 struct crypto_larval *larval; member89 complete_all(¶m->larval->completion); in cryptomgr_probe()90 crypto_alg_put(¶m->larval->alg); in cryptomgr_probe()95 static int cryptomgr_schedule_probe(struct crypto_larval *larval) in cryptomgr_schedule_probe() argument99 const char *name = larval->alg.cra_name; in cryptomgr_schedule_probe()183 param->type.data.type = larval->alg.cra_flags & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe()184 param->type.data.mask = larval->mask & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe()187 param->otype = larval->alg.cra_flags; in cryptomgr_schedule_probe()188 param->omask = larval->mask; in cryptomgr_schedule_probe()190 crypto_alg_get(&larval->alg); in cryptomgr_schedule_probe()[all …]
179 struct crypto_larval *larval; in __crypto_register_alg() local210 larval = crypto_larval_alloc(alg->cra_name, in __crypto_register_alg()212 if (IS_ERR(larval)) in __crypto_register_alg()216 larval->adult = crypto_mod_get(alg); in __crypto_register_alg()217 if (!larval->adult) in __crypto_register_alg()220 atomic_set(&larval->alg.cra_refcnt, 1); in __crypto_register_alg()221 memcpy(larval->alg.cra_driver_name, alg->cra_driver_name, in __crypto_register_alg()223 larval->alg.cra_priority = alg->cra_priority; in __crypto_register_alg()226 list_add(&larval->alg.cra_list, &crypto_alg_list); in __crypto_register_alg()229 return larval; in __crypto_register_alg()[all …]
409 struct crypto_alg *larval; in crypto_nivaead_default() local413 larval = crypto_larval_lookup(alg->cra_driver_name, in crypto_nivaead_default()416 err = PTR_ERR(larval); in crypto_nivaead_default()417 if (IS_ERR(larval)) in crypto_nivaead_default()421 if (!crypto_is_larval(larval)) in crypto_nivaead_default()463 crypto_larval_kill(larval); in crypto_nivaead_default()465 crypto_mod_put(larval); in crypto_nivaead_default()
544 struct crypto_alg *larval; in crypto_givcipher_default() local548 larval = crypto_larval_lookup(alg->cra_driver_name, in crypto_givcipher_default()552 err = PTR_ERR(larval); in crypto_givcipher_default()553 if (IS_ERR(larval)) in crypto_givcipher_default()557 if (!crypto_is_larval(larval)) in crypto_givcipher_default()606 crypto_larval_kill(larval); in crypto_givcipher_default()608 crypto_mod_put(larval); in crypto_givcipher_default()