Home
last modified time | relevance | path

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

/linux-6.1.9/crypto/
Dapi.c96 struct crypto_larval *larval = (void *)alg; in crypto_larval_destroy() local
99 if (!IS_ERR_OR_NULL(larval->adult)) in crypto_larval_destroy()
100 crypto_mod_put(larval->adult); in crypto_larval_destroy()
101 kfree(larval); in crypto_larval_destroy()
106 struct crypto_larval *larval; in crypto_larval_alloc() local
108 larval = kzalloc(sizeof(*larval), GFP_KERNEL); in crypto_larval_alloc()
109 if (!larval) in crypto_larval_alloc()
112 larval->mask = mask; in crypto_larval_alloc()
113 larval->alg.cra_flags = CRYPTO_ALG_LARVAL | type; in crypto_larval_alloc()
114 larval->alg.cra_priority = -1; in crypto_larval_alloc()
[all …]
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 …]
Dalgapi.c227 struct crypto_larval *larval; in crypto_alloc_test_larval() local
232 larval = crypto_larval_alloc(alg->cra_name, in crypto_alloc_test_larval()
234 if (IS_ERR(larval)) in crypto_alloc_test_larval()
235 return larval; in crypto_alloc_test_larval()
237 larval->adult = crypto_mod_get(alg); in crypto_alloc_test_larval()
238 if (!larval->adult) { in crypto_alloc_test_larval()
239 kfree(larval); in crypto_alloc_test_larval()
243 refcount_set(&larval->alg.cra_refcnt, 1); in crypto_alloc_test_larval()
244 memcpy(larval->alg.cra_driver_name, alg->cra_driver_name, in crypto_alloc_test_larval()
246 larval->alg.cra_priority = alg->cra_priority; in crypto_alloc_test_larval()
[all …]
Dinternal.h77 void crypto_wait_for_test(struct crypto_larval *larval);
164 static inline int crypto_is_test_larval(struct crypto_larval *larval) in crypto_is_test_larval() argument
166 return larval->alg.cra_driver_name[0]; in crypto_is_test_larval()
/linux-6.1.9/drivers/crypto/ccree/
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()