Lines Matching refs:larval
261 struct crypto_larval *larval; in crypto_alloc_test_larval() local
268 larval = crypto_larval_alloc(alg->cra_name, in crypto_alloc_test_larval()
270 if (IS_ERR(larval)) in crypto_alloc_test_larval()
271 return larval; in crypto_alloc_test_larval()
273 larval->adult = crypto_mod_get(alg); in crypto_alloc_test_larval()
274 if (!larval->adult) { in crypto_alloc_test_larval()
275 kfree(larval); in crypto_alloc_test_larval()
279 refcount_set(&larval->alg.cra_refcnt, 1); in crypto_alloc_test_larval()
280 memcpy(larval->alg.cra_driver_name, alg->cra_driver_name, in crypto_alloc_test_larval()
282 larval->alg.cra_priority = alg->cra_priority; in crypto_alloc_test_larval()
284 return larval; in crypto_alloc_test_larval()
291 struct crypto_larval *larval; in __crypto_register_alg() local
320 larval = crypto_alloc_test_larval(alg); in __crypto_register_alg()
321 if (IS_ERR(larval)) in __crypto_register_alg()
326 if (larval) { in __crypto_register_alg()
330 list_add(&larval->alg.cra_list, &crypto_alg_list); in __crypto_register_alg()
337 return larval; in __crypto_register_alg()
340 larval = ERR_PTR(ret); in __crypto_register_alg()
409 struct crypto_larval *larval; in crypto_register_alg() local
420 larval = __crypto_register_alg(alg, &algs_to_put); in crypto_register_alg()
421 if (!IS_ERR_OR_NULL(larval)) { in crypto_register_alg()
423 larval->test_started = test_started; in crypto_register_alg()
427 if (IS_ERR(larval)) in crypto_register_alg()
428 return PTR_ERR(larval); in crypto_register_alg()
431 crypto_schedule_test(larval); in crypto_register_alg()
609 struct crypto_larval *larval; in crypto_register_instance() local
624 larval = ERR_PTR(-EAGAIN); in crypto_register_instance()
644 larval = __crypto_register_alg(&inst->alg, &algs_to_put); in crypto_register_instance()
645 if (IS_ERR(larval)) in crypto_register_instance()
647 else if (larval) in crypto_register_instance()
648 larval->test_started = true; in crypto_register_instance()
656 if (IS_ERR(larval)) in crypto_register_instance()
657 return PTR_ERR(larval); in crypto_register_instance()
659 if (larval) in crypto_register_instance()
660 crypto_schedule_test(larval); in crypto_register_instance()
1027 struct crypto_larval *larval = NULL; in crypto_start_tests() local
1047 larval = l; in crypto_start_tests()
1053 if (!larval) in crypto_start_tests()
1056 crypto_schedule_test(larval); in crypto_start_tests()