Lines Matching refs:opsize

97 	u8 opsize;  in starfive_rsa_montgomery_form()  local
99 opsize = (bit_len - 1) >> 5; in starfive_rsa_montgomery_form()
104 for (loop = 0; loop <= opsize; loop++) in starfive_rsa_montgomery_form()
105 writel(mod[opsize - loop], cryp->base + STARFIVE_PKA_CANR_OFFSET + loop * 4); in starfive_rsa_montgomery_form()
110 rctx->csr.pka.opsize = opsize; in starfive_rsa_montgomery_form()
111 rctx->csr.pka.exposize = opsize; in starfive_rsa_montgomery_form()
123 for (loop = 0; loop <= opsize; loop++) in starfive_rsa_montgomery_form()
124 writel(in[opsize - loop], cryp->base + STARFIVE_PKA_CAAR_OFFSET + loop * 4); in starfive_rsa_montgomery_form()
128 for (loop = 1; loop <= opsize; loop++) in starfive_rsa_montgomery_form()
133 rctx->csr.pka.opsize = opsize; in starfive_rsa_montgomery_form()
134 rctx->csr.pka.exposize = opsize; in starfive_rsa_montgomery_form()
147 rctx->csr.pka.opsize = opsize; in starfive_rsa_montgomery_form()
148 rctx->csr.pka.exposize = opsize; in starfive_rsa_montgomery_form()
164 for (loop = count + 1; loop <= opsize; loop++) in starfive_rsa_montgomery_form()
169 rctx->csr.pka.opsize = opsize; in starfive_rsa_montgomery_form()
170 rctx->csr.pka.exposize = opsize; in starfive_rsa_montgomery_form()
182 for (loop = 0; loop <= opsize; loop++) { in starfive_rsa_montgomery_form()
184 out[opsize - loop] = temp; in starfive_rsa_montgomery_form()
198 int opsize, mlen, loop; in starfive_rsa_cpu_start() local
201 opsize = (key_sz - 1) >> 2; in starfive_rsa_cpu_start()
214 for (loop = 0; loop <= opsize; loop++) in starfive_rsa_cpu_start()
215 writel(mta[opsize - loop], in starfive_rsa_cpu_start()
223 rctx->csr.pka.opsize = opsize; in starfive_rsa_cpu_start()
224 rctx->csr.pka.exposize = opsize; in starfive_rsa_cpu_start()
239 rctx->csr.pka.opsize = opsize; in starfive_rsa_cpu_start()
240 rctx->csr.pka.exposize = opsize; in starfive_rsa_cpu_start()
253 for (loop = 0; loop <= opsize; loop++) { in starfive_rsa_cpu_start()
255 result[opsize - loop] = temp; in starfive_rsa_cpu_start()