larval 193 crypto/algapi.c struct crypto_larval *larval; larval 224 crypto/algapi.c larval = crypto_larval_alloc(alg->cra_name, larval 226 crypto/algapi.c if (IS_ERR(larval)) larval 230 crypto/algapi.c larval->adult = crypto_mod_get(alg); larval 231 crypto/algapi.c if (!larval->adult) larval 234 crypto/algapi.c refcount_set(&larval->alg.cra_refcnt, 1); larval 235 crypto/algapi.c memcpy(larval->alg.cra_driver_name, alg->cra_driver_name, larval 237 crypto/algapi.c larval->alg.cra_priority = alg->cra_priority; larval 240 crypto/algapi.c list_add(&larval->alg.cra_list, &crypto_alg_list); larval 245 crypto/algapi.c return larval; larval 248 crypto/algapi.c kfree(larval); larval 250 crypto/algapi.c larval = ERR_PTR(ret); larval 307 crypto/algapi.c struct crypto_larval *larval = (void *)q; larval 318 crypto/algapi.c if (larval->adult) larval 320 crypto/algapi.c if ((q->cra_flags ^ alg->cra_flags) & larval->mask) larval 324 crypto/algapi.c larval->adult = alg; larval 326 crypto/algapi.c larval->adult = ERR_PTR(-EAGAIN); larval 363 crypto/algapi.c static void crypto_wait_for_test(struct crypto_larval *larval) larval 367 crypto/algapi.c err = crypto_probing_notify(CRYPTO_MSG_ALG_REGISTER, larval->adult); larval 371 crypto/algapi.c crypto_alg_tested(larval->alg.cra_driver_name, 0); larval 374 crypto/algapi.c err = wait_for_completion_killable(&larval->completion); larval 377 crypto/algapi.c crypto_notify(CRYPTO_MSG_ALG_LOADED, larval); larval 380 crypto/algapi.c crypto_larval_kill(&larval->alg); larval 385 crypto/algapi.c struct crypto_larval *larval; larval 394 crypto/algapi.c larval = __crypto_register_alg(alg); larval 397 crypto/algapi.c if (IS_ERR(larval)) larval 398 crypto/algapi.c return PTR_ERR(larval); larval 400 crypto/algapi.c crypto_wait_for_test(larval); larval 581 crypto/algapi.c struct crypto_larval *larval; larval 593 crypto/algapi.c larval = __crypto_register_alg(&inst->alg); larval 594 crypto/algapi.c if (IS_ERR(larval)) larval 603 crypto/algapi.c err = PTR_ERR(larval); larval 604 crypto/algapi.c if (IS_ERR(larval)) larval 607 crypto/algapi.c crypto_wait_for_test(larval); larval 45 crypto/algboss.c struct crypto_larval *larval; larval 84 crypto/algboss.c complete_all(¶m->larval->completion); larval 85 crypto/algboss.c crypto_alg_put(¶m->larval->alg); larval 90 crypto/algboss.c static int cryptomgr_schedule_probe(struct crypto_larval *larval) larval 94 crypto/algboss.c const char *name = larval->alg.cra_name; larval 177 crypto/algboss.c param->type.data.type = larval->alg.cra_flags & ~CRYPTO_ALG_TESTED; larval 178 crypto/algboss.c param->type.data.mask = larval->mask & ~CRYPTO_ALG_TESTED; larval 181 crypto/algboss.c param->otype = larval->alg.cra_flags; larval 182 crypto/algboss.c param->omask = larval->mask; larval 184 crypto/algboss.c crypto_alg_get(&larval->alg); larval 185 crypto/algboss.c param->larval = larval; larval 191 crypto/algboss.c wait_for_completion_interruptible(&larval->completion); larval 196 crypto/algboss.c crypto_alg_put(&larval->alg); larval 50 crypto/api.c static inline int crypto_is_test_larval(struct crypto_larval *larval) larval 52 crypto/api.c return larval->alg.cra_driver_name[0]; larval 97 crypto/api.c struct crypto_larval *larval = (void *)alg; larval 100 crypto/api.c if (!IS_ERR_OR_NULL(larval->adult)) larval 101 crypto/api.c crypto_mod_put(larval->adult); larval 102 crypto/api.c kfree(larval); larval 107 crypto/api.c struct crypto_larval *larval; larval 109 crypto/api.c larval = kzalloc(sizeof(*larval), GFP_KERNEL); larval 110 crypto/api.c if (!larval) larval 113 crypto/api.c larval->mask = mask; larval 114 crypto/api.c larval->alg.cra_flags = CRYPTO_ALG_LARVAL | type; larval 115 crypto/api.c larval->alg.cra_priority = -1; larval 116 crypto/api.c larval->alg.cra_destroy = crypto_larval_destroy; larval 118 crypto/api.c strlcpy(larval->alg.cra_name, name, CRYPTO_MAX_ALG_NAME); larval 119 crypto/api.c init_completion(&larval->completion); larval 121 crypto/api.c return larval; larval 129 crypto/api.c struct crypto_larval *larval; larval 131 crypto/api.c larval = crypto_larval_alloc(name, type, mask); larval 132 crypto/api.c if (IS_ERR(larval)) larval 133 crypto/api.c return ERR_CAST(larval); larval 135 crypto/api.c refcount_set(&larval->alg.cra_refcnt, 2); larval 140 crypto/api.c alg = &larval->alg; larval 145 crypto/api.c if (alg != &larval->alg) { larval 146 crypto/api.c kfree(larval); larval 156 crypto/api.c struct crypto_larval *larval = (void *)alg; larval 161 crypto/api.c complete_all(&larval->completion); larval 168 crypto/api.c struct crypto_larval *larval = (void *)alg; larval 172 crypto/api.c &larval->completion, 60 * HZ); larval 174 crypto/api.c alg = larval->adult; larval 183 crypto/api.c else if (crypto_is_test_larval(larval) && larval 188 crypto/api.c crypto_mod_put(&larval->alg); larval 264 crypto/api.c struct crypto_alg *larval; larval 277 crypto/api.c larval = crypto_larval_lookup(name, type, mask); larval 278 crypto/api.c if (IS_ERR(larval) || !crypto_is_larval(larval)) larval 279 crypto/api.c return larval; larval 281 crypto/api.c ok = crypto_probing_notify(CRYPTO_MSG_ALG_REQUEST, larval); larval 284 crypto/api.c alg = crypto_larval_wait(larval); larval 286 crypto/api.c crypto_mod_put(larval); larval 289 crypto/api.c crypto_larval_kill(larval); larval 165 drivers/crypto/ccree/cc_hash.c const void *larval = cc_larval_digest(dev, ctx->hash_mode); larval 167 drivers/crypto/ccree/cc_hash.c memcpy(state->digest_buff, larval, ctx->inter_digestsize);