/drivers/crypto/caam/ |
D | caamhash.c | 102 struct device *jrdev; member 149 static inline int map_seq_out_ptr_ctx(u32 *desc, struct device *jrdev, in map_seq_out_ptr_ctx() argument 153 state->ctx_dma = dma_map_single(jrdev, state->caam_ctx, in map_seq_out_ptr_ctx() 155 if (dma_mapping_error(jrdev, state->ctx_dma)) { in map_seq_out_ptr_ctx() 156 dev_err(jrdev, "unable to map ctx\n"); in map_seq_out_ptr_ctx() 166 static inline dma_addr_t map_seq_out_ptr_result(u32 *desc, struct device *jrdev, in map_seq_out_ptr_result() argument 171 dst_dma = dma_map_single(jrdev, result, digestsize, DMA_FROM_DEVICE); in map_seq_out_ptr_result() 178 static inline dma_addr_t buf_map_to_sec4_sg(struct device *jrdev, in buf_map_to_sec4_sg() argument 184 buf_dma = dma_map_single(jrdev, buf, buflen, DMA_TO_DEVICE); in buf_map_to_sec4_sg() 191 static inline void src_map_to_sec4_sg(struct device *jrdev, in src_map_to_sec4_sg() argument [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 107 caam_jr_strstatus(jrdev, err); in rng_done() 113 dma_sync_single_for_cpu(jrdev, bd->addr, RN_BUF_SIZE, DMA_FROM_DEVICE); in rng_done() [all …]
|
D | error.c | 120 static void report_ccb_status(struct device *jrdev, const u32 status, in report_ccb_status() argument 159 dev_err(jrdev, "%08x: %s: %s %d: %s%s: %s%s\n", in report_ccb_status() 165 static void report_jump_status(struct device *jrdev, const u32 status, in report_jump_status() argument 168 dev_err(jrdev, "%08x: %s: %s() not implemented\n", in report_jump_status() 172 static void report_deco_status(struct device *jrdev, const u32 status, in report_deco_status() argument 197 dev_err(jrdev, "%08x: %s: %s %d: %s%s\n", in report_deco_status() 201 static void report_jr_status(struct device *jrdev, const u32 status, in report_jr_status() argument 204 dev_err(jrdev, "%08x: %s: %s() not implemented\n", in report_jr_status() 208 static void report_cond_code_status(struct device *jrdev, const u32 status, in report_cond_code_status() argument 211 dev_err(jrdev, "%08x: %s: %s() not implemented\n", in report_cond_code_status() [all …]
|
D | caamalg.c | 180 struct device *jrdev; member 260 struct device *jrdev = ctx->jrdev; in aead_null_set_sh_desc() local 327 ctx->sh_desc_enc_dma = dma_map_single(jrdev, desc, in aead_null_set_sh_desc() 330 if (dma_mapping_error(jrdev, ctx->sh_desc_enc_dma)) { in aead_null_set_sh_desc() 331 dev_err(jrdev, "unable to map shared descriptor\n"); in aead_null_set_sh_desc() 412 ctx->sh_desc_dec_dma = dma_map_single(jrdev, desc, in aead_null_set_sh_desc() 415 if (dma_mapping_error(jrdev, ctx->sh_desc_dec_dma)) { in aead_null_set_sh_desc() 416 dev_err(jrdev, "unable to map shared descriptor\n"); in aead_null_set_sh_desc() 435 struct device *jrdev = ctx->jrdev; in aead_set_sh_desc() local 523 ctx->sh_desc_enc_dma = dma_map_single(jrdev, desc, in aead_set_sh_desc() [all …]
|
D | key_gen.c | 44 int gen_split_key(struct device *jrdev, u8 *key_out, int split_key_len, in gen_split_key() argument 55 dev_err(jrdev, "unable to allocate key input memory\n"); in gen_split_key() 59 dma_addr_in = dma_map_single(jrdev, (void *)key_in, keylen, in gen_split_key() 61 if (dma_mapping_error(jrdev, dma_addr_in)) { in gen_split_key() 62 dev_err(jrdev, "unable to map key input memory\n"); in gen_split_key() 66 dma_addr_out = dma_map_single(jrdev, key_out, split_key_pad_len, in gen_split_key() 68 if (dma_mapping_error(jrdev, dma_addr_out)) { in gen_split_key() 69 dev_err(jrdev, "unable to map key output memory\n"); in gen_split_key() 103 ret = caam_jr_enqueue(jrdev, desc, split_key_done, &result); in gen_split_key() 115 dma_unmap_single(jrdev, dma_addr_out, split_key_pad_len, in gen_split_key() [all …]
|
D | jr.c | 96 struct device *jrdev; in caam_jr_remove() local 99 jrdev = &pdev->dev; in caam_jr_remove() 100 jrpriv = dev_get_drvdata(jrdev); in caam_jr_remove() 106 dev_err(jrdev, "Device is busy\n"); in caam_jr_remove() 116 ret = caam_jr_shutdown(jrdev); in caam_jr_remove() 118 dev_err(jrdev, "Failed to shut down job ring\n"); in caam_jr_remove() 473 struct device *jrdev; in caam_jr_probe() local 480 jrdev = &pdev->dev; in caam_jr_probe() 481 jrpriv = devm_kmalloc(jrdev, sizeof(*jrpriv), GFP_KERNEL); in caam_jr_probe() 485 dev_set_drvdata(jrdev, jrpriv); in caam_jr_probe() [all …]
|
D | error.h | 10 void caam_jr_strstatus(struct device *jrdev, u32 status);
|
D | key_gen.h | 15 int gen_split_key(struct device *jrdev, u8 *key_out, int split_key_len,
|