Lines Matching refs:nbits
40 unsigned nbits, nlimbs; in mpi_read_raw_data() local
49 nbits = nbytes * 8; in mpi_read_raw_data()
50 if (nbits > MAX_EXTERN_MPI_BITS) { in mpi_read_raw_data()
51 pr_info("MPI: mpi too large (%u bits)\n", nbits); in mpi_read_raw_data()
55 nbits -= count_leading_zeros(buffer[0]) - (BITS_PER_LONG - 8); in mpi_read_raw_data()
61 val->nbits = nbits; in mpi_read_raw_data()
85 unsigned int nbits, nbytes; in mpi_read_from_buffer() local
90 nbits = buffer[0] << 8 | buffer[1]; in mpi_read_from_buffer()
92 if (nbits > MAX_EXTERN_MPI_BITS) { in mpi_read_from_buffer()
93 pr_info("MPI: mpi too large (%u bits)\n", nbits); in mpi_read_from_buffer()
97 nbytes = DIV_ROUND_UP(nbits, 8); in mpi_read_from_buffer()
121 unsigned int nbits, nbytes, nlimbs; in mpi_fromstr() local
133 nbits = strlen(str); in mpi_fromstr()
134 if (nbits > MAX_EXTERN_SCAN_BYTES) { in mpi_fromstr()
138 nbits *= 4; in mpi_fromstr()
139 if ((nbits % 8)) in mpi_fromstr()
142 nbytes = (nbits+7) / 8; in mpi_fromstr()
440 unsigned int nbits, nlimbs; in mpi_read_raw_from_sgl() local
476 nbits = nbytes * 8; in mpi_read_raw_from_sgl()
477 if (nbits > MAX_EXTERN_MPI_BITS) { in mpi_read_raw_from_sgl()
479 pr_info("MPI: mpi too large (%u bits)\n", nbits); in mpi_read_raw_from_sgl()
484 nbits -= count_leading_zeros(*buff) - (BITS_PER_LONG - 8); in mpi_read_raw_from_sgl()
493 val->nbits = nbits; in mpi_read_raw_from_sgl()
557 unsigned int nbits = mpi_get_nbits(a); in mpi_print() local
621 unsigned int n = (nbits + 7)/8; in mpi_print()
642 unsigned int n = (nbits + 7)/8; in mpi_print()
655 s[0] = nbits >> 8; in mpi_print()
656 s[1] = nbits; in mpi_print()