Home
last modified time | relevance | path

Searched refs:jrdev (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.10/drivers/crypto/caam/
Dcaamhash.c102 struct device *jrdev; member
120 void (*ahash_op_done)(struct device *jrdev, u32 *desc, u32 err,
141 static inline int map_seq_out_ptr_ctx(u32 *desc, struct device *jrdev, in map_seq_out_ptr_ctx() argument
146 state->ctx_dma = dma_map_single(jrdev, state->caam_ctx, in map_seq_out_ptr_ctx()
148 if (dma_mapping_error(jrdev, state->ctx_dma)) { in map_seq_out_ptr_ctx()
149 dev_err(jrdev, "unable to map ctx\n"); in map_seq_out_ptr_ctx()
160 static inline int buf_map_to_sec4_sg(struct device *jrdev, in buf_map_to_sec4_sg() argument
169 state->buf_dma = dma_map_single(jrdev, state->buf, buflen, in buf_map_to_sec4_sg()
171 if (dma_mapping_error(jrdev, state->buf_dma)) { in buf_map_to_sec4_sg()
172 dev_err(jrdev, "unable to map buf\n"); in buf_map_to_sec4_sg()
[all …]
Djr.c67 struct device *jrdev = data; in caam_jr_crypto_engine_exit() local
68 struct caam_drv_private_jr *jrpriv = dev_get_drvdata(jrdev); in caam_jr_crypto_engine_exit()
132 struct device *jrdev; in caam_jr_remove() local
135 jrdev = &pdev->dev; in caam_jr_remove()
136 jrpriv = dev_get_drvdata(jrdev); in caam_jr_remove()
139 caam_rng_exit(jrdev->parent); in caam_jr_remove()
145 dev_err(jrdev, "Device is busy\n"); in caam_jr_remove()
158 ret = caam_jr_shutdown(jrdev); in caam_jr_remove()
160 dev_err(jrdev, "Failed to shut down job ring\n"); in caam_jr_remove()
510 struct device *jrdev; in caam_jr_probe() local
[all …]
Derror.c220 static int report_ccb_status(struct device *jrdev, const u32 status, in report_ccb_status() argument
260 dev_err_ratelimited(jrdev, "%08x: %s: %s %d: %s%s: %s%s\n", status, in report_ccb_status()
267 static int report_jump_status(struct device *jrdev, const u32 status, in report_jump_status() argument
270 dev_err(jrdev, "%08x: %s: %s() not implemented\n", in report_jump_status()
276 static int report_deco_status(struct device *jrdev, const u32 status, in report_deco_status() argument
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()
339 static int report_cond_code_status(struct device *jrdev, const u32 status, in report_cond_code_status() argument
342 dev_err(jrdev, "%08x: %s: %s() not implemented\n", in report_cond_code_status()
[all …]
Dcaamalg.c115 struct device *jrdev; member
135 struct device *jrdev = ctx->jrdev; in aead_null_set_sh_desc() local
136 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in aead_null_set_sh_desc()
157 dma_sync_single_for_device(jrdev, ctx->sh_desc_enc_dma, in aead_null_set_sh_desc()
176 dma_sync_single_for_device(jrdev, ctx->sh_desc_dec_dma, in aead_null_set_sh_desc()
188 struct device *jrdev = ctx->jrdev; in aead_set_sh_desc() local
189 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in aead_set_sh_desc()
259 dma_sync_single_for_device(jrdev, ctx->sh_desc_enc_dma, in aead_set_sh_desc()
281 dma_sync_single_for_device(jrdev, ctx->sh_desc_dec_dma, in aead_set_sh_desc()
305 dma_sync_single_for_device(jrdev, ctx->sh_desc_enc_dma, in aead_set_sh_desc()
[all …]
Dcaamrng.c37 struct device *jrdev; member
55 static void caam_rng_done(struct device *jrdev, u32 *desc, u32 err, in caam_rng_done() argument
61 *jctx->err = caam_jr_strstatus(jrdev, err); in caam_rng_done()
82 static int caam_rng_read_one(struct device *jrdev, in caam_rng_read_one() argument
96 dst_dma = dma_map_single(jrdev, dst, len, DMA_FROM_DEVICE); in caam_rng_read_one()
97 if (dma_mapping_error(jrdev, dst_dma)) { in caam_rng_read_one()
98 dev_err(jrdev, "unable to map destination memory\n"); in caam_rng_read_one()
103 err = caam_jr_enqueue(jrdev, in caam_rng_read_one()
111 dma_unmap_single(jrdev, dst_dma, len, DMA_FROM_DEVICE); in caam_rng_read_one()
128 len = caam_rng_read_one(ctx->jrdev, sg_virt(&sg[0]), in caam_rng_fill_async()
[all …]
Dkey_gen.c44 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()
Dcaampkc.c374 struct device *jrdev = ctx->dev; in akcipher_do_one_req() local
380 ret = caam_jr_enqueue(jrdev, desc, req_ctx->akcipher_op_done, req); in akcipher_do_one_req()
383 rsa_pub_unmap(jrdev, req_ctx->edesc, req); in akcipher_do_one_req()
384 rsa_io_unmap(jrdev, req_ctx->edesc, req); in akcipher_do_one_req()
656 static int akcipher_enqueue_req(struct device *jrdev, in akcipher_enqueue_req() argument
657 void (*cbk)(struct device *jrdev, u32 *desc, in akcipher_enqueue_req() argument
661 struct caam_drv_private_jr *jrpriv = dev_get_drvdata(jrdev); in akcipher_enqueue_req()
680 ret = caam_jr_enqueue(jrdev, desc, cbk, req); in akcipher_enqueue_req()
685 rsa_priv_f1_unmap(jrdev, edesc, req); in akcipher_enqueue_req()
688 rsa_priv_f2_unmap(jrdev, edesc, req); in akcipher_enqueue_req()
[all …]
Dcaamalg_qi.c60 struct device *jrdev; member
93 struct caam_drv_private *ctrlpriv = dev_get_drvdata(ctx->jrdev->parent); in aead_set_sh_desc()
199 struct device *jrdev = ctx->jrdev; in aead_setkey() local
200 struct caam_drv_private *ctrlpriv = dev_get_drvdata(jrdev->parent); in aead_setkey()
207 dev_dbg(jrdev, "keylen %d enckeylen %d authkeylen %d\n", in aead_setkey()
228 dma_sync_single_for_device(jrdev->parent, ctx->key_dma, in aead_setkey()
234 ret = gen_split_key(jrdev, ctx->key, &ctx->adata, keys.authkey, in aead_setkey()
242 dma_sync_single_for_device(jrdev->parent, ctx->key_dma, in aead_setkey()
262 dev_err(jrdev, "driver enc context update failed\n"); in aead_setkey()
271 dev_err(jrdev, "driver dec context update failed\n"); in aead_setkey()
[all …]
Derror.h17 #define caam_jr_strstatus(jrdev, status) caam_strstatus(jrdev, status, false) argument
Dkey_gen.h46 int gen_split_key(struct device *jrdev, u8 *key_out,
Dcaampkc.h117 void (*akcipher_op_done)(struct device *jrdev, u32 *desc, u32 err,