Lines Matching refs:larval
275 struct crypto_larval *larval; in crypto_alloc_test_larval() local
281 larval = crypto_larval_alloc(alg->cra_name, in crypto_alloc_test_larval()
283 if (IS_ERR(larval)) in crypto_alloc_test_larval()
284 return larval; in crypto_alloc_test_larval()
286 larval->adult = crypto_mod_get(alg); in crypto_alloc_test_larval()
287 if (!larval->adult) { in crypto_alloc_test_larval()
288 kfree(larval); in crypto_alloc_test_larval()
292 refcount_set(&larval->alg.cra_refcnt, 1); in crypto_alloc_test_larval()
293 memcpy(larval->alg.cra_driver_name, alg->cra_driver_name, in crypto_alloc_test_larval()
295 larval->alg.cra_priority = alg->cra_priority; in crypto_alloc_test_larval()
297 return larval; in crypto_alloc_test_larval()
304 struct crypto_larval *larval; in __crypto_register_alg() local
333 larval = crypto_alloc_test_larval(alg); in __crypto_register_alg()
334 if (IS_ERR(larval)) in __crypto_register_alg()
339 if (larval) { in __crypto_register_alg()
343 list_add(&larval->alg.cra_list, &crypto_alg_list); in __crypto_register_alg()
350 return larval; in __crypto_register_alg()
353 larval = ERR_PTR(ret); in __crypto_register_alg()
431 struct crypto_larval *larval; in crypto_register_alg() local
455 larval = __crypto_register_alg(alg, &algs_to_put); in crypto_register_alg()
456 if (!IS_ERR_OR_NULL(larval)) { in crypto_register_alg()
458 larval->test_started = test_started; in crypto_register_alg()
462 if (IS_ERR(larval)) { in crypto_register_alg()
464 return PTR_ERR(larval); in crypto_register_alg()
468 crypto_schedule_test(larval); in crypto_register_alg()
648 struct crypto_larval *larval; in crypto_register_instance() local
664 larval = ERR_PTR(-EAGAIN); in crypto_register_instance()
684 larval = __crypto_register_alg(&inst->alg, &algs_to_put); in crypto_register_instance()
685 if (IS_ERR(larval)) in crypto_register_instance()
687 else if (larval) in crypto_register_instance()
688 larval->test_started = true; in crypto_register_instance()
696 if (IS_ERR(larval)) in crypto_register_instance()
697 return PTR_ERR(larval); in crypto_register_instance()
699 if (larval) in crypto_register_instance()
700 crypto_schedule_test(larval); in crypto_register_instance()
1067 struct crypto_larval *larval = NULL; in crypto_start_tests() local
1087 larval = l; in crypto_start_tests()
1093 if (!larval) in crypto_start_tests()
1096 crypto_schedule_test(larval); in crypto_start_tests()