Searched refs:larval (Results 1 - 9 of 9) sorted by relevance
/kernel/linux/linux-5.10/crypto/ |
H A D | api.c | 50 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() 129 struct crypto_larval *larval; crypto_larval_add() local 156 struct crypto_larval *larval = (void *)alg; crypto_larval_kill() local 168 struct crypto_larval *larval = (void *)alg; crypto_larval_wait() local 264 struct crypto_alg *larval; crypto_alg_mod_lookup() local [all...] |
H A D | algboss.c | 45 struct crypto_larval *larval; member 74 complete_all(¶m->larval->completion); in cryptomgr_probe() 75 crypto_alg_put(¶m->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 in cryptomgr_schedule_probe() [all...] |
H A D | algapi.c | 234 struct crypto_larval *larval; in __crypto_register_alg() local 266 larval = crypto_larval_alloc(alg->cra_name, in __crypto_register_alg() 268 if (IS_ERR(larval)) in __crypto_register_alg() 272 larval->adult = crypto_mod_get(alg); in __crypto_register_alg() 273 if (!larval->adult) in __crypto_register_alg() 276 refcount_set(&larval->alg.cra_refcnt, 1); in __crypto_register_alg() 277 memcpy(larval->alg.cra_driver_name, alg->cra_driver_name, in __crypto_register_alg() 279 larval->alg.cra_priority = alg->cra_priority; in __crypto_register_alg() 282 list_add(&larval->alg.cra_list, &crypto_alg_list); in __crypto_register_alg() 287 return larval; in __crypto_register_alg() 349 struct crypto_larval *larval = (void *)q; crypto_alg_tested() local 405 crypto_wait_for_test(struct crypto_larval *larval) crypto_wait_for_test() argument 427 struct crypto_larval *larval; crypto_register_alg() local 618 struct crypto_larval *larval; crypto_register_instance() local [all...] |
/kernel/linux/linux-6.6/crypto/ |
H A D | api.c | 98 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 in crypto_larval_alloc() 130 struct crypto_larval *larval; crypto_larval_add() local 157 struct crypto_larval *larval = (void *)alg; crypto_larval_kill() local 167 crypto_wait_for_test(struct crypto_larval *larval) crypto_wait_for_test() argument 182 crypto_start_test(struct crypto_larval *larval) crypto_start_test() argument 204 struct crypto_larval *larval = (void *)alg; crypto_larval_wait() local 318 struct crypto_alg *larval; crypto_alg_mod_lookup() local [all...] |
H A D | algapi.c | 251 struct crypto_larval *larval = (void *)q; in crypto_alg_finish_registration() local 256 * by the larval entry q. in crypto_alg_finish_registration() 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() 320 struct crypto_larval *larval; __crypto_register_alg() local 455 struct crypto_larval *larval; crypto_register_alg() local 653 struct crypto_larval *larval; crypto_register_instance() local 1063 struct crypto_larval *larval = NULL; crypto_start_tests() local [all...] |
H A D | algboss.c | 38 struct crypto_larval *larval; member 67 complete_all(¶m->larval->completion); in cryptomgr_probe() 68 crypto_alg_put(¶m->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 in cryptomgr_schedule_probe() [all...] |
H A D | internal.h | 114 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()
|
/kernel/linux/linux-5.10/drivers/crypto/ccree/ |
H A D | cc_hash.c | 45 * larval hashes must be stored in hi/lo order 172 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()
|
/kernel/linux/linux-6.6/drivers/crypto/ccree/ |
H A D | cc_hash.c | 45 * larval hashes must be stored in hi/lo order 172 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()
|
Completed in 11 milliseconds