Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/crypto/
Dapi.c50 static inline int crypto_is_test_larval(struct crypto_larval *larval) in crypto_is_test_larval() argument
52 return larval->alg.cra_driver_name[0]; in crypto_is_test_larval()
97 struct crypto_larval *larval = (void *)alg; in crypto_larval_destroy() local
100 if (!IS_ERR_OR_NULL(larval->adult)) in crypto_larval_destroy()
101 crypto_mod_put(larval->adult); in crypto_larval_destroy()
102 kfree(larval); in crypto_larval_destroy()
107 struct crypto_larval *larval; in crypto_larval_alloc() local
109 larval = kzalloc(sizeof(*larval), GFP_KERNEL); in crypto_larval_alloc()
110 if (!larval) in crypto_larval_alloc()
113 larval->mask = mask; in crypto_larval_alloc()
[all …]
Dalgboss.c45 struct crypto_larval *larval; member
74 complete_all(&param->larval->completion); in cryptomgr_probe()
75 crypto_alg_put(&param->larval->alg); in cryptomgr_probe()
80 static int cryptomgr_schedule_probe(struct crypto_larval *larval) in cryptomgr_schedule_probe() argument
84 const char *name = larval->alg.cra_name; in cryptomgr_schedule_probe()
167 param->type.data.type = larval->alg.cra_flags & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe()
168 param->type.data.mask = larval->mask & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe()
171 param->otype = larval->alg.cra_flags; in cryptomgr_schedule_probe()
172 param->omask = larval->mask; in cryptomgr_schedule_probe()
174 crypto_alg_get(&larval->alg); in cryptomgr_schedule_probe()
[all …]
Dalgapi.c222 struct crypto_larval *larval; in __crypto_register_alg() local
253 larval = crypto_larval_alloc(alg->cra_name, in __crypto_register_alg()
255 if (IS_ERR(larval)) in __crypto_register_alg()
259 larval->adult = crypto_mod_get(alg); in __crypto_register_alg()
260 if (!larval->adult) in __crypto_register_alg()
263 refcount_set(&larval->alg.cra_refcnt, 1); in __crypto_register_alg()
264 memcpy(larval->alg.cra_driver_name, alg->cra_driver_name, in __crypto_register_alg()
266 larval->alg.cra_priority = alg->cra_priority; in __crypto_register_alg()
269 list_add(&larval->alg.cra_list, &crypto_alg_list); in __crypto_register_alg()
274 return larval; in __crypto_register_alg()
[all …]
/kernel/linux/linux-5.10/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()