Lines Matching refs:ctx

66 	struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
67 struct caam_rsa_key *key = &ctx->key;
78 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
79 struct caam_rsa_key *key = &ctx->key;
90 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
91 struct caam_rsa_key *key = &ctx->key;
107 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
108 struct caam_rsa_key *key = &ctx->key;
158 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
159 struct caam_rsa_key *key = &ctx->key;
253 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
254 struct device *dev = ctx->dev;
256 struct caam_rsa_key *key = &ctx->key;
327 dma_to_sec4_sg_one(edesc->sec4_sg, ctx->padding_dma, diff_size,
381 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
382 struct device *jrdev = ctx->dev;
409 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
410 struct caam_rsa_key *key = &ctx->key;
411 struct device *dev = ctx->dev;
454 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
455 struct caam_rsa_key *key = &ctx->key;
456 struct device *dev = ctx->dev;
501 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
502 struct caam_rsa_key *key = &ctx->key;
503 struct device *dev = ctx->dev;
578 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
579 struct caam_rsa_key *key = &ctx->key;
580 struct device *dev = ctx->dev;
674 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
675 struct caam_rsa_key *key = &ctx->key;
717 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
718 struct caam_rsa_key *key = &ctx->key;
719 struct device *jrdev = ctx->dev;
756 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
757 struct device *jrdev = ctx->dev;
785 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
786 struct device *jrdev = ctx->dev;
814 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
815 struct device *jrdev = ctx->dev;
843 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
844 struct caam_rsa_key *key = &ctx->key;
852 dev_err(ctx->dev, "Output buffer length less than parameter n\n");
946 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
948 struct caam_rsa_key *rsa_key = &ctx->key;
987 static void caam_rsa_set_priv_key_form(struct caam_rsa_ctx *ctx,
990 struct caam_rsa_key *rsa_key = &ctx->key;
1051 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
1053 struct caam_rsa_key *rsa_key = &ctx->key;
1091 caam_rsa_set_priv_key_form(ctx, &raw_key);
1102 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
1104 return ctx->key.n_sz;
1110 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
1114 ctx->dev = caam_jr_alloc();
1116 if (IS_ERR(ctx->dev)) {
1118 return PTR_ERR(ctx->dev);
1121 ctx->padding_dma = dma_map_single(ctx->dev, zero_buffer,
1124 if (dma_mapping_error(ctx->dev, ctx->padding_dma)) {
1125 dev_err(ctx->dev, "unable to map padding\n");
1126 caam_jr_free(ctx->dev);
1136 struct caam_rsa_ctx *ctx = akcipher_tfm_ctx_dma(tfm);
1137 struct caam_rsa_key *key = &ctx->key;
1139 dma_unmap_single(ctx->dev, ctx->padding_dma, CAAM_RSA_MAX_INPUT_SIZE -
1142 caam_jr_free(ctx->dev);