Home
last modified time | relevance | path

Searched refs:larval (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/crypto/
H A Dapi.c98 struct crypto_larval *larval = (void *)alg; in crypto_larval_destroy() local
101 if (!IS_ERR_OR_NULL(larval->adult)) in crypto_larval_destroy()
102 crypto_mod_put(larval->adult); in crypto_larval_destroy()
103 kfree(larval); in crypto_larval_destroy()
108 struct crypto_larval *larval; in crypto_larval_alloc() local
110 larval = kzalloc(sizeof(*larval), GFP_KERNEL); in crypto_larval_alloc()
111 if (!larval) in crypto_larval_alloc()
114 larval->mask = mask; in crypto_larval_alloc()
115 larval->alg.cra_flags = CRYPTO_ALG_LARVAL | type; in crypto_larval_alloc()
116 larval->alg.cra_priority = -1; in crypto_larval_alloc()
[all …]
H A Dalgapi.c251 struct crypto_larval *larval = (void *)q; in crypto_alg_finish_registration() local
262 if (larval->adult) in crypto_alg_finish_registration()
264 if ((q->cra_flags ^ alg->cra_flags) & larval->mask) in crypto_alg_finish_registration()
268 larval->adult = alg; in crypto_alg_finish_registration()
270 larval->adult = ERR_PTR(-EAGAIN); in crypto_alg_finish_registration()
290 struct crypto_larval *larval; in crypto_alloc_test_larval() local
297 larval = crypto_larval_alloc(alg->cra_name, in crypto_alloc_test_larval()
299 if (IS_ERR(larval)) in crypto_alloc_test_larval()
300 return larval; in crypto_alloc_test_larval()
302 larval->adult = crypto_mod_get(alg); in crypto_alloc_test_larval()
[all …]
H A Dalgboss.c38 struct crypto_larval *larval; member
67 complete_all(&param->larval->completion); in cryptomgr_probe()
68 crypto_alg_put(&param->larval->alg); in cryptomgr_probe()
73 static int cryptomgr_schedule_probe(struct crypto_larval *larval) in cryptomgr_schedule_probe() argument
77 const char *name = larval->alg.cra_name; in cryptomgr_schedule_probe()
148 param->type.data.type = larval->alg.cra_flags & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe()
149 param->type.data.mask = larval->mask & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe()
152 param->otype = larval->alg.cra_flags; in cryptomgr_schedule_probe()
153 param->omask = larval->mask; in cryptomgr_schedule_probe()
155 crypto_alg_get(&larval->alg); in cryptomgr_schedule_probe()
[all …]
H A Dinternal.h114 void crypto_wait_for_test(struct crypto_larval *larval);
209 static inline int crypto_is_test_larval(struct crypto_larval *larval) in crypto_is_test_larval() argument
211 return larval->alg.cra_driver_name[0]; in crypto_is_test_larval()
/openbmc/linux/drivers/crypto/ccree/
H A Dcc_hash.c172 const void *larval = cc_larval_digest(dev, ctx->hash_mode); in cc_init_req() local
174 memcpy(state->digest_buff, larval, ctx->inter_digestsize); in cc_init_req()