Lines Matching full:pka
99 rctx->csr.pka.v = 0; in starfive_rsa_montgomery_form()
101 writel(rctx->csr.pka.v, cryp->base + STARFIVE_PKA_CACR_OFFSET); in starfive_rsa_montgomery_form()
107 rctx->csr.pka.v = 0; in starfive_rsa_montgomery_form()
108 rctx->csr.pka.cln_done = 1; in starfive_rsa_montgomery_form()
109 rctx->csr.pka.opsize = opsize; in starfive_rsa_montgomery_form()
110 rctx->csr.pka.exposize = opsize; in starfive_rsa_montgomery_form()
111 rctx->csr.pka.cmd = CRYPTO_CMD_PRE; in starfive_rsa_montgomery_form()
112 rctx->csr.pka.start = 1; in starfive_rsa_montgomery_form()
113 rctx->csr.pka.not_r2 = 1; in starfive_rsa_montgomery_form()
114 rctx->csr.pka.ie = 1; in starfive_rsa_montgomery_form()
117 writel(rctx->csr.pka.v, cryp->base + STARFIVE_PKA_CACR_OFFSET); in starfive_rsa_montgomery_form()
130 rctx->csr.pka.v = 0; in starfive_rsa_montgomery_form()
131 rctx->csr.pka.cln_done = 1; in starfive_rsa_montgomery_form()
132 rctx->csr.pka.opsize = opsize; in starfive_rsa_montgomery_form()
133 rctx->csr.pka.exposize = opsize; in starfive_rsa_montgomery_form()
134 rctx->csr.pka.cmd = CRYPTO_CMD_AERN; in starfive_rsa_montgomery_form()
135 rctx->csr.pka.start = 1; in starfive_rsa_montgomery_form()
136 rctx->csr.pka.ie = 1; in starfive_rsa_montgomery_form()
139 writel(rctx->csr.pka.v, cryp->base + STARFIVE_PKA_CACR_OFFSET); in starfive_rsa_montgomery_form()
144 rctx->csr.pka.v = 0; in starfive_rsa_montgomery_form()
145 rctx->csr.pka.cln_done = 1; in starfive_rsa_montgomery_form()
146 rctx->csr.pka.opsize = opsize; in starfive_rsa_montgomery_form()
147 rctx->csr.pka.exposize = opsize; in starfive_rsa_montgomery_form()
148 rctx->csr.pka.cmd = CRYPTO_CMD_PRE; in starfive_rsa_montgomery_form()
149 rctx->csr.pka.start = 1; in starfive_rsa_montgomery_form()
150 rctx->csr.pka.pre_expf = 1; in starfive_rsa_montgomery_form()
151 rctx->csr.pka.ie = 1; in starfive_rsa_montgomery_form()
154 writel(rctx->csr.pka.v, cryp->base + STARFIVE_PKA_CACR_OFFSET); in starfive_rsa_montgomery_form()
166 rctx->csr.pka.v = 0; in starfive_rsa_montgomery_form()
167 rctx->csr.pka.cln_done = 1; in starfive_rsa_montgomery_form()
168 rctx->csr.pka.opsize = opsize; in starfive_rsa_montgomery_form()
169 rctx->csr.pka.exposize = opsize; in starfive_rsa_montgomery_form()
170 rctx->csr.pka.cmd = CRYPTO_CMD_ARN; in starfive_rsa_montgomery_form()
171 rctx->csr.pka.start = 1; in starfive_rsa_montgomery_form()
172 rctx->csr.pka.ie = 1; in starfive_rsa_montgomery_form()
175 writel(rctx->csr.pka.v, cryp->base + STARFIVE_PKA_CACR_OFFSET); in starfive_rsa_montgomery_form()
220 rctx->csr.pka.v = 0; in starfive_rsa_cpu_start()
221 rctx->csr.pka.cln_done = 1; in starfive_rsa_cpu_start()
222 rctx->csr.pka.opsize = opsize; in starfive_rsa_cpu_start()
223 rctx->csr.pka.exposize = opsize; in starfive_rsa_cpu_start()
224 rctx->csr.pka.cmd = CRYPTO_CMD_AARN; in starfive_rsa_cpu_start()
225 rctx->csr.pka.start = 1; in starfive_rsa_cpu_start()
226 rctx->csr.pka.ie = 1; in starfive_rsa_cpu_start()
229 writel(rctx->csr.pka.v, cryp->base + STARFIVE_PKA_CACR_OFFSET); in starfive_rsa_cpu_start()
236 rctx->csr.pka.v = 0; in starfive_rsa_cpu_start()
237 rctx->csr.pka.cln_done = 1; in starfive_rsa_cpu_start()
238 rctx->csr.pka.opsize = opsize; in starfive_rsa_cpu_start()
239 rctx->csr.pka.exposize = opsize; in starfive_rsa_cpu_start()
240 rctx->csr.pka.cmd = CRYPTO_CMD_AERN; in starfive_rsa_cpu_start()
241 rctx->csr.pka.start = 1; in starfive_rsa_cpu_start()
242 rctx->csr.pka.ie = 1; in starfive_rsa_cpu_start()
245 writel(rctx->csr.pka.v, cryp->base + STARFIVE_PKA_CACR_OFFSET); in starfive_rsa_cpu_start()