/linux-6.3-rc2/drivers/crypto/caam/ |
A D | blob_gen.c | 34 struct device jrdev; member 67 struct device *jrdev = &priv->jrdev; in caam_process_blob() local 92 if (dma_mapping_error(jrdev, dma_in)) { in caam_process_blob() 100 if (dma_mapping_error(jrdev, dma_out)) { in caam_process_blob() 109 dev_warn(jrdev, in caam_process_blob() 162 struct device *jrdev; in caam_blob_gen_init() local 170 jrdev = caam_jr_alloc(); in caam_blob_gen_init() 171 if (IS_ERR(jrdev)) { in caam_blob_gen_init() 179 caam_jr_free(jrdev); in caam_blob_gen_init() 183 return container_of(jrdev, struct caam_blob_priv, jrdev); in caam_blob_gen_init() [all …]
|
A D | caamhash.c | 206 struct device *jrdev = ctx->jrdev; in ahash_set_sh_desc() local 262 struct device *jrdev = ctx->jrdev; in axcbc_set_sh_desc() local 314 struct device *jrdev = ctx->jrdev; in acmac_set_sh_desc() local 364 struct device *jrdev = ctx->jrdev; in hash_digest_key() local 427 struct device *jrdev = ctx->jrdev; in ahash_setkey() local 496 struct device *jrdev = ctx->jrdev; in axcbc_setkey() local 768 struct device *jrdev = ctx->jrdev; in ahash_do_one_req() local 828 struct device *jrdev = ctx->jrdev; in ahash_update_ctx() local 953 struct device *jrdev = ctx->jrdev; in ahash_final_ctx() local 1014 struct device *jrdev = ctx->jrdev; in ahash_finup_ctx() local [all …]
|
A D | caamprng.c | 82 struct device *jrdev; in caam_prng_generate() local 95 jrdev = caam_jr_alloc(); in caam_prng_generate() 96 ret = PTR_ERR_OR_ZERO(jrdev); in caam_prng_generate() 117 ret = caam_jr_enqueue(jrdev, in caam_prng_generate() 133 caam_jr_free(jrdev); in caam_prng_generate() 149 struct device *jrdev; in caam_prng_seed() local 158 jrdev = caam_jr_alloc(); in caam_prng_seed() 159 ret = PTR_ERR_OR_ZERO(jrdev); in caam_prng_seed() 167 caam_jr_free(jrdev); in caam_prng_seed() 172 ret = caam_jr_enqueue(jrdev, in caam_prng_seed() [all …]
|
A D | jr.c | 68 struct device *jrdev = data; in caam_jr_crypto_engine_exit() local 133 struct device *jrdev; in caam_jr_remove() local 136 jrdev = &pdev->dev; in caam_jr_remove() 137 jrpriv = dev_get_drvdata(jrdev); in caam_jr_remove() 140 caam_rng_exit(jrdev->parent); in caam_jr_remove() 159 ret = caam_jr_shutdown(jrdev); in caam_jr_remove() 511 struct device *jrdev; in caam_jr_probe() local 519 jrdev = &pdev->dev; in caam_jr_probe() 546 error = dma_set_mask_and_coherent(jrdev, caam_get_dma_mask(jrdev)); in caam_jr_probe() 563 jrdev); in caam_jr_probe() [all …]
|
A D | error.c | 220 static int report_ccb_status(struct device *jrdev, const u32 status, in report_ccb_status() argument 270 dev_err(jrdev, "%08x: %s: %s() not implemented\n", in report_jump_status() 301 dev_err(jrdev, "%08x: %s: %s %d: %s%s\n", in report_deco_status() 330 static int report_jr_status(struct device *jrdev, const u32 status, in report_jr_status() argument 333 dev_err(jrdev, "%08x: %s: %s() not implemented\n", in report_jr_status() 342 dev_err(jrdev, "%08x: %s: %s() not implemented\n", in report_cond_code_status() 348 int caam_strstatus(struct device *jrdev, u32 status, bool qi_v2) in caam_strstatus() argument 351 int (*report_ssed)(struct device *jrdev, const u32 status, in caam_strstatus() 380 return status_src[ssrc].report_ssed(jrdev, status, error); in caam_strstatus() 383 dev_err(jrdev, "%d: %s\n", ssrc, error); in caam_strstatus() [all …]
|
A D | caamalg.c | 141 struct device *jrdev = ctx->jrdev; in aead_null_set_sh_desc() local 194 struct device *jrdev = ctx->jrdev; in aead_set_sh_desc() local 332 struct device *jrdev = ctx->jrdev; in gcm_set_sh_desc() local 397 struct device *jrdev = ctx->jrdev; in rfc4106_set_sh_desc() local 465 struct device *jrdev = ctx->jrdev; in rfc4543_set_sh_desc() local 531 struct device *jrdev = ctx->jrdev; in chachapoly_set_sh_desc() local 585 struct device *jrdev = ctx->jrdev; in aead_setkey() local 666 struct device *jrdev = ctx->jrdev; in gcm_setkey() local 687 struct device *jrdev = ctx->jrdev; in rfc4106_setkey() local 713 struct device *jrdev = ctx->jrdev; in rfc4543_setkey() local [all …]
|
A D | caamrng.c | 39 struct device *jrdev; member 63 *jctx->err = caam_jr_strstatus(jrdev, err); in caam_rng_done() 84 static int caam_rng_read_one(struct device *jrdev, in caam_rng_read_one() argument 99 if (dma_mapping_error(jrdev, dst_dma)) { in caam_rng_read_one() 100 dev_err(jrdev, "unable to map destination memory\n"); in caam_rng_read_one() 105 err = caam_jr_enqueue(jrdev, in caam_rng_read_one() 130 len = caam_rng_read_one(ctx->jrdev, sg_virt(&sg[0]), in caam_rng_fill_async() 155 return caam_rng_read_one(ctx->jrdev, dst, max, in caam_read() 171 caam_jr_free(ctx->jrdev); in caam_cleanup() 197 ctx->jrdev = caam_jr_alloc(); in caam_init() [all …]
|
A D | key_gen.c | 44 int gen_split_key(struct device *jrdev, u8 *key_out, in gen_split_key() argument 59 dev_dbg(jrdev, "split keylen %d split keylen padded %d\n", in gen_split_key() 69 dev_err(jrdev, "unable to allocate key input memory\n"); in gen_split_key() 75 dma_addr = dma_map_single(jrdev, key_out, local_max, DMA_BIDIRECTIONAL); in gen_split_key() 76 if (dma_mapping_error(jrdev, dma_addr)) { in gen_split_key() 77 dev_err(jrdev, "unable to map key memory\n"); in gen_split_key() 110 ret = caam_jr_enqueue(jrdev, desc, split_key_done, &result); in gen_split_key() 121 dma_unmap_single(jrdev, dma_addr, local_max, DMA_BIDIRECTIONAL); in gen_split_key()
|
A D | caampkc.c | 376 struct device *jrdev = ctx->dev; in akcipher_do_one_req() local 699 rsa_pub_unmap(jrdev, edesc, req); in akcipher_enqueue_req() 701 rsa_io_unmap(jrdev, edesc, req); in akcipher_enqueue_req() 713 struct device *jrdev = ctx->dev; in caam_rsa_enc() local 742 rsa_io_unmap(jrdev, edesc, req); in caam_rsa_enc() 751 struct device *jrdev = ctx->dev; in caam_rsa_dec_priv_f1() local 771 rsa_io_unmap(jrdev, edesc, req); in caam_rsa_dec_priv_f1() 780 struct device *jrdev = ctx->dev; in caam_rsa_dec_priv_f2() local 800 rsa_io_unmap(jrdev, edesc, req); in caam_rsa_dec_priv_f2() 809 struct device *jrdev = ctx->dev; in caam_rsa_dec_priv_f3() local [all …]
|
A D | caamalg_qi.c | 65 struct device *jrdev; member 204 struct device *jrdev = ctx->jrdev; in aead_setkey() local 367 struct device *jrdev = ctx->jrdev; in gcm_setkey() local 471 struct device *jrdev = ctx->jrdev; in rfc4106_setkey() local 577 struct device *jrdev = ctx->jrdev; in rfc4543_setkey() local 629 struct device *jrdev = ctx->jrdev; in skcipher_setkey() local 740 struct device *jrdev = ctx->jrdev; in xts_skcipher_setkey() local 2472 if (IS_ERR(ctx->jrdev)) { in caam_init_common() 2477 dev = ctx->jrdev->parent; in caam_init_common() 2488 caam_jr_free(ctx->jrdev); in caam_init_common() [all …]
|
A D | error.h | 17 #define caam_jr_strstatus(jrdev, status) caam_strstatus(jrdev, status, false) argument
|
A D | key_gen.h | 46 int gen_split_key(struct device *jrdev, u8 *key_out,
|
A D | caampkc.h | 117 void (*akcipher_op_done)(struct device *jrdev, u32 *desc, u32 err,
|