Lines Matching refs:jrdev

382 	struct device *jrdev = ctx->dev;  in akcipher_do_one_req()  local
388 ret = caam_jr_enqueue(jrdev, desc, req_ctx->akcipher_op_done, req); in akcipher_do_one_req()
394 rsa_pub_unmap(jrdev, req_ctx->edesc, req); in akcipher_do_one_req()
395 rsa_io_unmap(jrdev, req_ctx->edesc, req); in akcipher_do_one_req()
667 static int akcipher_enqueue_req(struct device *jrdev, in akcipher_enqueue_req() argument
668 void (*cbk)(struct device *jrdev, u32 *desc, in akcipher_enqueue_req() argument
672 struct caam_drv_private_jr *jrpriv = dev_get_drvdata(jrdev); in akcipher_enqueue_req()
691 ret = caam_jr_enqueue(jrdev, desc, cbk, req); in akcipher_enqueue_req()
696 rsa_priv_f1_unmap(jrdev, edesc, req); in akcipher_enqueue_req()
699 rsa_priv_f2_unmap(jrdev, edesc, req); in akcipher_enqueue_req()
702 rsa_priv_f3_unmap(jrdev, edesc, req); in akcipher_enqueue_req()
705 rsa_pub_unmap(jrdev, edesc, req); in akcipher_enqueue_req()
707 rsa_io_unmap(jrdev, edesc, req); in akcipher_enqueue_req()
719 struct device *jrdev = ctx->dev; in caam_rsa_enc() local
728 dev_err(jrdev, "Output buffer length less than parameter n\n"); in caam_rsa_enc()
745 return akcipher_enqueue_req(jrdev, rsa_pub_done, req); in caam_rsa_enc()
748 rsa_io_unmap(jrdev, edesc, req); in caam_rsa_enc()
757 struct device *jrdev = ctx->dev; in caam_rsa_dec_priv_f1() local
774 return akcipher_enqueue_req(jrdev, rsa_priv_f_done, req); in caam_rsa_dec_priv_f1()
777 rsa_io_unmap(jrdev, edesc, req); in caam_rsa_dec_priv_f1()
786 struct device *jrdev = ctx->dev; in caam_rsa_dec_priv_f2() local
803 return akcipher_enqueue_req(jrdev, rsa_priv_f_done, req); in caam_rsa_dec_priv_f2()
806 rsa_io_unmap(jrdev, edesc, req); in caam_rsa_dec_priv_f2()
815 struct device *jrdev = ctx->dev; in caam_rsa_dec_priv_f3() local
832 return akcipher_enqueue_req(jrdev, rsa_priv_f_done, req); in caam_rsa_dec_priv_f3()
835 rsa_io_unmap(jrdev, edesc, req); in caam_rsa_dec_priv_f3()