Lines Matching refs:opsize

79 	u8 opsize;  in starfive_rsa_montgomery_form()  local
81 opsize = (bit_len - 1) >> 5; in starfive_rsa_montgomery_form()
86 for (loop = 0; loop <= opsize; loop++) in starfive_rsa_montgomery_form()
87 writel(mod[opsize - loop], cryp->base + STARFIVE_PKA_CANR_OFFSET + loop * 4); in starfive_rsa_montgomery_form()
92 rctx->csr.pka.opsize = opsize; in starfive_rsa_montgomery_form()
93 rctx->csr.pka.exposize = opsize; in starfive_rsa_montgomery_form()
104 for (loop = 0; loop <= opsize; loop++) in starfive_rsa_montgomery_form()
105 writel(in[opsize - loop], cryp->base + STARFIVE_PKA_CAAR_OFFSET + loop * 4); in starfive_rsa_montgomery_form()
109 for (loop = 1; loop <= opsize; loop++) in starfive_rsa_montgomery_form()
114 rctx->csr.pka.opsize = opsize; in starfive_rsa_montgomery_form()
115 rctx->csr.pka.exposize = opsize; in starfive_rsa_montgomery_form()
127 rctx->csr.pka.opsize = opsize; in starfive_rsa_montgomery_form()
128 rctx->csr.pka.exposize = opsize; in starfive_rsa_montgomery_form()
143 for (loop = count + 1; loop <= opsize; loop++) in starfive_rsa_montgomery_form()
148 rctx->csr.pka.opsize = opsize; in starfive_rsa_montgomery_form()
149 rctx->csr.pka.exposize = opsize; in starfive_rsa_montgomery_form()
160 for (loop = 0; loop <= opsize; loop++) { in starfive_rsa_montgomery_form()
162 out[opsize - loop] = temp; in starfive_rsa_montgomery_form()
176 int opsize, mlen, loop; in starfive_rsa_cpu_start() local
179 opsize = (key_sz - 1) >> 2; in starfive_rsa_cpu_start()
192 for (loop = 0; loop <= opsize; loop++) in starfive_rsa_cpu_start()
193 writel(mta[opsize - loop], in starfive_rsa_cpu_start()
201 rctx->csr.pka.opsize = opsize; in starfive_rsa_cpu_start()
202 rctx->csr.pka.exposize = opsize; in starfive_rsa_cpu_start()
216 rctx->csr.pka.opsize = opsize; in starfive_rsa_cpu_start()
217 rctx->csr.pka.exposize = opsize; in starfive_rsa_cpu_start()
229 for (loop = 0; loop <= opsize; loop++) { in starfive_rsa_cpu_start()
231 result[opsize - loop] = temp; in starfive_rsa_cpu_start()