Lines Matching refs:larval
267 struct crypto_larval *larval; in crypto_alloc_test_larval() local
274 larval = crypto_larval_alloc(alg->cra_name, in crypto_alloc_test_larval()
276 if (IS_ERR(larval)) in crypto_alloc_test_larval()
277 return larval; in crypto_alloc_test_larval()
279 larval->adult = crypto_mod_get(alg); in crypto_alloc_test_larval()
280 if (!larval->adult) { in crypto_alloc_test_larval()
281 kfree(larval); in crypto_alloc_test_larval()
285 refcount_set(&larval->alg.cra_refcnt, 1); in crypto_alloc_test_larval()
286 memcpy(larval->alg.cra_driver_name, alg->cra_driver_name, in crypto_alloc_test_larval()
288 larval->alg.cra_priority = alg->cra_priority; in crypto_alloc_test_larval()
290 return larval; in crypto_alloc_test_larval()
297 struct crypto_larval *larval; in __crypto_register_alg() local
326 larval = crypto_alloc_test_larval(alg); in __crypto_register_alg()
327 if (IS_ERR(larval)) in __crypto_register_alg()
332 if (larval) { in __crypto_register_alg()
336 list_add(&larval->alg.cra_list, &crypto_alg_list); in __crypto_register_alg()
343 return larval; in __crypto_register_alg()
346 larval = ERR_PTR(ret); in __crypto_register_alg()
415 struct crypto_larval *larval; in crypto_register_alg() local
425 larval = __crypto_register_alg(alg, &algs_to_put); in crypto_register_alg()
426 if (!IS_ERR_OR_NULL(larval)) { in crypto_register_alg()
429 larval->test_started = test_started; in crypto_register_alg()
431 crypto_schedule_test(larval); in crypto_register_alg()
435 if (IS_ERR(larval)) in crypto_register_alg()
436 return PTR_ERR(larval); in crypto_register_alg()
613 struct crypto_larval *larval; in crypto_register_instance() local
628 larval = ERR_PTR(-EAGAIN); in crypto_register_instance()
648 larval = __crypto_register_alg(&inst->alg, &algs_to_put); in crypto_register_instance()
649 if (IS_ERR(larval)) in crypto_register_instance()
651 else if (larval) { in crypto_register_instance()
652 larval->test_started = true; in crypto_register_instance()
653 crypto_schedule_test(larval); in crypto_register_instance()
662 if (IS_ERR(larval)) in crypto_register_instance()
663 return PTR_ERR(larval); in crypto_register_instance()
1026 struct crypto_larval *larval = NULL; in crypto_start_tests() local
1046 larval = l; in crypto_start_tests()
1047 crypto_schedule_test(larval); in crypto_start_tests()
1053 if (!larval) in crypto_start_tests()