/Linux-v4.19/drivers/crypto/caam/ |
D | caamhash.c | 111 struct device *jrdev; member 169 static inline int map_seq_out_ptr_ctx(u32 *desc, struct device *jrdev, in map_seq_out_ptr_ctx() argument 173 state->ctx_dma = dma_map_single(jrdev, state->caam_ctx, in map_seq_out_ptr_ctx() 175 if (dma_mapping_error(jrdev, state->ctx_dma)) { in map_seq_out_ptr_ctx() 176 dev_err(jrdev, "unable to map ctx\n"); in map_seq_out_ptr_ctx() 187 static inline dma_addr_t map_seq_out_ptr_result(u32 *desc, struct device *jrdev, in map_seq_out_ptr_result() argument 192 dst_dma = dma_map_single(jrdev, result, digestsize, DMA_FROM_DEVICE); in map_seq_out_ptr_result() 199 static inline int buf_map_to_sec4_sg(struct device *jrdev, in buf_map_to_sec4_sg() argument 208 state->buf_dma = dma_map_single(jrdev, current_buf(state), buflen, in buf_map_to_sec4_sg() 210 if (dma_mapping_error(jrdev, state->buf_dma)) { in buf_map_to_sec4_sg() [all …]
|
D | caamrng.c | 71 struct device *jrdev; member 81 static inline void rng_unmap_buf(struct device *jrdev, struct buf_data *bd) in rng_unmap_buf() argument 84 dma_unmap_single(jrdev, bd->addr, RN_BUF_SIZE, in rng_unmap_buf() 90 struct device *jrdev = ctx->jrdev; in rng_unmap_ctx() local 93 dma_unmap_single(jrdev, ctx->sh_desc_dma, in rng_unmap_ctx() 95 rng_unmap_buf(jrdev, &ctx->bufs[0]); in rng_unmap_ctx() 96 rng_unmap_buf(jrdev, &ctx->bufs[1]); in rng_unmap_ctx() 99 static void rng_done(struct device *jrdev, u32 *desc, u32 err, void *context) in rng_done() argument 106 caam_jr_strstatus(jrdev, err); in rng_done() 112 dma_sync_single_for_cpu(jrdev, bd->addr, RN_BUF_SIZE, DMA_FROM_DEVICE); in rng_done() [all …]
|
D | error.c | 159 static void report_ccb_status(struct device *jrdev, const u32 status, in report_ccb_status() argument 197 dev_err(jrdev, "%08x: %s: %s %d: %s%s: %s%s\n", in report_ccb_status() 203 static void report_jump_status(struct device *jrdev, const u32 status, in report_jump_status() argument 206 dev_err(jrdev, "%08x: %s: %s() not implemented\n", in report_jump_status() 210 static void report_deco_status(struct device *jrdev, const u32 status, in report_deco_status() argument 235 dev_err(jrdev, "%08x: %s: %s %d: %s%s\n", in report_deco_status() 239 static void report_jr_status(struct device *jrdev, const u32 status, in report_jr_status() argument 242 dev_err(jrdev, "%08x: %s: %s() not implemented\n", in report_jr_status() 246 static void report_cond_code_status(struct device *jrdev, const u32 status, in report_cond_code_status() argument 249 dev_err(jrdev, "%08x: %s: %s() not implemented\n", in report_cond_code_status() [all …]
|
D | caamalg.c | 112 struct device *jrdev; member 121 struct device *jrdev = ctx->jrdev; in aead_null_set_sh_desc() local 122 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in aead_null_set_sh_desc() 143 dma_sync_single_for_device(jrdev, ctx->sh_desc_enc_dma, in aead_null_set_sh_desc() 162 dma_sync_single_for_device(jrdev, ctx->sh_desc_dec_dma, in aead_null_set_sh_desc() 174 struct device *jrdev = ctx->jrdev; in aead_set_sh_desc() local 175 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in aead_set_sh_desc() 243 dma_sync_single_for_device(jrdev, ctx->sh_desc_enc_dma, in aead_set_sh_desc() 275 dma_sync_single_for_device(jrdev, ctx->sh_desc_dec_dma, in aead_set_sh_desc() 309 dma_sync_single_for_device(jrdev, ctx->sh_desc_enc_dma, in aead_set_sh_desc() [all …]
|
D | key_gen.c | 45 int gen_split_key(struct device *jrdev, u8 *key_out, in gen_split_key() argument 59 dev_err(jrdev, "split keylen %d split keylen padded %d\n", in gen_split_key() 70 dev_err(jrdev, "unable to allocate key input memory\n"); in gen_split_key() 74 dma_addr_in = dma_map_single(jrdev, (void *)key_in, keylen, in gen_split_key() 76 if (dma_mapping_error(jrdev, dma_addr_in)) { in gen_split_key() 77 dev_err(jrdev, "unable to map key input memory\n"); in gen_split_key() 81 dma_addr_out = dma_map_single(jrdev, key_out, adata->keylen_pad, in gen_split_key() 83 if (dma_mapping_error(jrdev, dma_addr_out)) { in gen_split_key() 84 dev_err(jrdev, "unable to map key output memory\n"); in gen_split_key() 120 ret = caam_jr_enqueue(jrdev, desc, split_key_done, &result); in gen_split_key() [all …]
|
D | jr.c | 97 struct device *jrdev; in caam_jr_remove() local 100 jrdev = &pdev->dev; in caam_jr_remove() 101 jrpriv = dev_get_drvdata(jrdev); in caam_jr_remove() 107 dev_err(jrdev, "Device is busy\n"); in caam_jr_remove() 117 ret = caam_jr_shutdown(jrdev); in caam_jr_remove() 119 dev_err(jrdev, "Failed to shut down job ring\n"); in caam_jr_remove() 475 struct device *jrdev; in caam_jr_probe() local 482 jrdev = &pdev->dev; in caam_jr_probe() 483 jrpriv = devm_kmalloc(jrdev, sizeof(*jrpriv), GFP_KERNEL); in caam_jr_probe() 487 dev_set_drvdata(jrdev, jrpriv); in caam_jr_probe() [all …]
|
D | caamalg_qi.c | 50 struct device *jrdev; member 78 struct caam_drv_private *ctrlpriv = dev_get_drvdata(ctx->jrdev->parent); in aead_set_sh_desc() 202 struct device *jrdev = ctx->jrdev; in aead_setkey() local 203 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in aead_setkey() 211 dev_err(jrdev, "keylen %d enckeylen %d authkeylen %d\n", in aead_setkey() 233 dma_sync_single_for_device(jrdev, ctx->key_dma, in aead_setkey() 239 ret = gen_split_key(jrdev, ctx->key, &ctx->adata, keys.authkey, in aead_setkey() 247 dma_sync_single_for_device(jrdev, ctx->key_dma, ctx->adata.keylen_pad + in aead_setkey() 267 dev_err(jrdev, "driver enc context update failed\n"); in aead_setkey() 276 dev_err(jrdev, "driver dec context update failed\n"); in aead_setkey() [all …]
|
D | caampkc.c | 561 struct device *jrdev = ctx->dev; in caam_rsa_enc() local 570 dev_err(jrdev, "Output buffer length less than parameter n\n"); in caam_rsa_enc() 587 ret = caam_jr_enqueue(jrdev, edesc->hw_desc, rsa_pub_done, req); in caam_rsa_enc() 591 rsa_pub_unmap(jrdev, edesc, req); in caam_rsa_enc() 594 rsa_io_unmap(jrdev, edesc, req); in caam_rsa_enc() 603 struct device *jrdev = ctx->dev; in caam_rsa_dec_priv_f1() local 620 ret = caam_jr_enqueue(jrdev, edesc->hw_desc, rsa_priv_f1_done, req); in caam_rsa_dec_priv_f1() 624 rsa_priv_f1_unmap(jrdev, edesc, req); in caam_rsa_dec_priv_f1() 627 rsa_io_unmap(jrdev, edesc, req); in caam_rsa_dec_priv_f1() 636 struct device *jrdev = ctx->dev; in caam_rsa_dec_priv_f2() local [all …]
|
D | error.h | 11 void caam_jr_strstatus(struct device *jrdev, u32 status);
|
D | key_gen.h | 46 int gen_split_key(struct device *jrdev, u8 *key_out,
|