Lines Matching refs:larval
37 struct crypto_larval *larval = (void *)alg;
38 complete_all(&larval->completion);
184 struct crypto_larval *larval;
216 larval = crypto_larval_alloc(alg->cra_name,
218 if (IS_ERR(larval))
222 larval->adult = crypto_mod_get(alg);
223 if (!larval->adult)
226 atomic_set(&larval->alg.cra_refcnt, 1);
227 memcpy(larval->alg.cra_driver_name, alg->cra_driver_name,
229 larval->alg.cra_priority = alg->cra_priority;
232 list_add(&larval->alg.cra_list, &crypto_alg_list);
235 return larval;
238 kfree(larval);
240 larval = ERR_PTR(ret);
281 struct crypto_larval *larval = (void *)q;
286 * by the larval entry q.
292 if (larval->adult)
294 if ((q->cra_flags ^ alg->cra_flags) & larval->mask)
299 larval->adult = alg;
300 complete_all(&larval->completion);
335 static void crypto_wait_for_test(struct crypto_larval *larval)
339 err = crypto_probing_notify(CRYPTO_MSG_ALG_REGISTER, larval->adult);
343 crypto_alg_tested(larval->alg.cra_driver_name, 0);
346 err = wait_for_completion_interruptible(&larval->completion);
350 crypto_larval_kill(&larval->alg);
355 struct crypto_larval *larval;
363 larval = __crypto_register_alg(alg);
366 if (IS_ERR(larval))
367 return PTR_ERR(larval);
369 crypto_wait_for_test(larval);
488 struct crypto_larval *larval;
499 larval = __crypto_register_alg(&inst->alg);
500 if (IS_ERR(larval))
509 err = PTR_ERR(larval);
510 if (IS_ERR(larval))
513 crypto_wait_for_test(larval);