Home
last modified time | relevance | path

Searched refs:lzeros (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/lib/mpi/
Dmpicoder.c222 int i, lzeros = 0; in count_lzeros() local
227 lzeros += sizeof(mpi_limb_t); in count_lzeros()
229 lzeros += count_leading_zeros(alimb) / 8; in count_lzeros()
233 return lzeros; in count_lzeros()
262 int i, lzeros; in mpi_read_buffer() local
270 lzeros = count_lzeros(a); in mpi_read_buffer()
272 if (buf_len < n - lzeros) { in mpi_read_buffer()
273 *nbytes = n - lzeros; in mpi_read_buffer()
278 *nbytes = n - lzeros; in mpi_read_buffer()
280 for (i = a->nlimbs - 1 - lzeros / BYTES_PER_MPI_LIMB, in mpi_read_buffer()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/caam/
Dcaampkc.c201 int lzeros, ents; in caam_rsa_count_leading_zeros() local
212 lzeros = 0; in caam_rsa_count_leading_zeros()
216 while (len && !*buff && lzeros < nbytes) { in caam_rsa_count_leading_zeros()
217 lzeros++; in caam_rsa_count_leading_zeros()
229 nbytes -= lzeros; in caam_rsa_count_leading_zeros()
230 lzeros = 0; in caam_rsa_count_leading_zeros()
233 miter.consumed = lzeros; in caam_rsa_count_leading_zeros()
235 nbytes -= lzeros; in caam_rsa_count_leading_zeros()
256 int lzeros; in rsa_edesc_alloc() local
263 lzeros = caam_rsa_count_leading_zeros(req->src, req->src_len - in rsa_edesc_alloc()
[all …]