Searched refs:nbits (Results 1 – 6 of 6) sorted by relevance
/lib/ |
D | find_bit.c | 32 unsigned long nbits, unsigned long start, unsigned long invert) in _find_next_bit() argument 36 if (!nbits || start >= nbits) in _find_next_bit() 37 return nbits; in _find_next_bit() 47 if (start >= nbits) in _find_next_bit() 48 return nbits; in _find_next_bit() 53 return min(start + __ffs(tmp), nbits); in _find_next_bit() 150 unsigned long nbits, unsigned long start, unsigned long invert) in _find_next_bit_le() argument 154 if (!nbits || start >= nbits) in _find_next_bit_le() 155 return nbits; in _find_next_bit_le() 165 if (start >= nbits) in _find_next_bit_le() [all …]
|
D | bitmap.c | 85 unsigned shift, unsigned nbits) in __bitmap_shift_right() argument 87 unsigned k, lim = BITS_TO_LONGS(nbits); in __bitmap_shift_right() 89 unsigned long mask = BITMAP_LAST_WORD_MASK(nbits); in __bitmap_shift_right() 130 unsigned int shift, unsigned int nbits) in __bitmap_shift_left() argument 133 unsigned int lim = BITS_TO_LONGS(nbits); in __bitmap_shift_left() 363 int c, old_c, totaldigits, ndigits, nchunks, nbits; in __bitmap_parse() local 369 nchunks = nbits = totaldigits = c = 0; in __bitmap_parse() 421 nbits += (nchunks == 1) ? nbits_to_hold_value(chunk) : CHUNKSZ; in __bitmap_parse() 422 if (nbits > nmaskbits) in __bitmap_parse() 639 static int bitmap_pos_to_ord(const unsigned long *buf, unsigned int pos, unsigned int nbits) in bitmap_pos_to_ord() argument [all …]
|
D | genalloc.c | 188 unsigned long nbits = size >> pool->min_alloc_order; in gen_pool_add_virt() local 190 BITS_TO_LONGS(nbits) * sizeof(long); in gen_pool_add_virt() 278 unsigned long nbits, start_bit, end_bit, remain; in gen_pool_alloc() local 287 nbits = (size + (1UL << order) - 1) >> order; in gen_pool_alloc() 296 start_bit = pool->algo(chunk->bits, end_bit, start_bit, nbits, in gen_pool_alloc() 300 remain = bitmap_set_ll(chunk->bits, start_bit, nbits); in gen_pool_alloc() 303 nbits - remain); in gen_pool_alloc() 309 size = nbits << order; in gen_pool_alloc() 361 unsigned long start_bit, nbits, remain; in gen_pool_free() local 367 nbits = (size + (1UL << order) - 1) >> order; in gen_pool_free() [all …]
|
D | bch.c | 991 unsigned int nbits; in decode_bch() local 1034 nbits = (len*8)+bch->ecc_bits; in decode_bch() 1036 if (errloc[i] >= nbits) { in decode_bch() 1040 errloc[i] = nbits-1-errloc[i]; in decode_bch() 1169 unsigned int i, j, nbits, r, word, *roots; in compute_generator_polynomial() local 1211 nbits = (n > 32) ? 32 : n; in compute_generator_polynomial() 1212 for (j = 0, word = 0; j < nbits; j++) { in compute_generator_polynomial() 1217 n -= nbits; in compute_generator_polynomial()
|
/lib/mpi/ |
D | mpicoder.c | 36 unsigned nbits, nlimbs; in mpi_read_raw_data() local 45 nbits = nbytes * 8; in mpi_read_raw_data() 46 if (nbits > MAX_EXTERN_MPI_BITS) { in mpi_read_raw_data() 47 pr_info("MPI: mpi too large (%u bits)\n", nbits); in mpi_read_raw_data() 51 nbits -= count_leading_zeros(buffer[0]); in mpi_read_raw_data() 53 nbits = 0; in mpi_read_raw_data() 59 val->nbits = nbits; in mpi_read_raw_data() 84 unsigned nbits, nbytes, nlimbs, nread = 0; 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() [all …]
|
D | mpiutil.c | 52 a->nbits = 0; in mpi_alloc()
|