Searched refs:larval (Results 1 – 5 of 5) sorted by relevance
98 struct crypto_larval *larval = (void *)alg; in crypto_larval_destroy() local101 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() local110 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 …]
251 struct crypto_larval *larval = (void *)q; in crypto_alg_finish_registration() local262 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() local297 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 …]
38 struct crypto_larval *larval; member67 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() argument77 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 …]
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() argument211 return larval->alg.cra_driver_name[0]; in crypto_is_test_larval()
172 const void *larval = cc_larval_digest(dev, ctx->hash_mode); in cc_init_req() local174 memcpy(state->digest_buff, larval, ctx->inter_digestsize); in cc_init_req()