Home
last modified time | relevance | path

Searched refs:nbits (Results 1 – 8 of 8) sorted by relevance

/lib/
Dtest_bitmap.c37 const unsigned long *bmap, unsigned int nbits) in __check_eq_bitmap() argument
39 if (exp_nbits != nbits) { in __check_eq_bitmap()
41 srcfile, line, exp_nbits, nbits); in __check_eq_bitmap()
45 if (!bitmap_equal(exp_bmap, bmap, nbits)) { in __check_eq_bitmap()
48 exp_nbits, exp_bmap, nbits, bmap); in __check_eq_bitmap()
57 const unsigned long *bitmap, unsigned int nbits) in __check_eq_pbl() argument
59 snprintf(pbl_buffer, sizeof(pbl_buffer), "%*pbl", nbits, bitmap); in __check_eq_pbl()
173 unsigned nbits; in test_bitmap_u32_array_conversions() local
175 for (nbits = 0 ; nbits < 257 ; ++nbits) { in test_bitmap_u32_array_conversions()
176 const unsigned int used_u32s = DIV_ROUND_UP(nbits, 32); in test_bitmap_u32_array_conversions()
[all …]
Dfind_bit.c32 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 …]
Dbitmap.c86 unsigned shift, unsigned nbits) in __bitmap_shift_right() argument
88 unsigned k, lim = BITS_TO_LONGS(nbits); in __bitmap_shift_right()
90 unsigned long mask = BITMAP_LAST_WORD_MASK(nbits); in __bitmap_shift_right()
131 unsigned int shift, unsigned int nbits) in __bitmap_shift_left() argument
134 unsigned int lim = BITS_TO_LONGS(nbits); in __bitmap_shift_left()
364 int c, old_c, totaldigits, ndigits, nchunks, nbits; in __bitmap_parse() local
370 nchunks = nbits = totaldigits = c = 0; in __bitmap_parse()
422 nbits += (nchunks == 1) ? nbits_to_hold_value(chunk) : CHUNKSZ; in __bitmap_parse()
423 if (nbits > nmaskbits) in __bitmap_parse()
682 static int bitmap_pos_to_ord(const unsigned long *buf, unsigned int pos, unsigned int nbits) in bitmap_pos_to_ord() argument
[all …]
Dgenalloc.c186 int nbits = size >> pool->min_alloc_order; in gen_pool_add_virt() local
188 BITS_TO_LONGS(nbits) * sizeof(long); in gen_pool_add_virt()
295 int nbits, start_bit, end_bit, remain; in gen_pool_alloc_algo() local
304 nbits = (size + (1UL << order) - 1) >> order; in gen_pool_alloc_algo()
314 nbits, data, pool); in gen_pool_alloc_algo()
317 remain = bitmap_set_ll(chunk->bits, start_bit, nbits); in gen_pool_alloc_algo()
320 nbits - remain); in gen_pool_alloc_algo()
326 size = nbits << order; in gen_pool_alloc_algo()
378 int start_bit, nbits, remain; in gen_pool_free() local
384 nbits = (size + (1UL << order) - 1) >> order; in gen_pool_free()
[all …]
Dtest_printf.c377 const int nbits = 1 << 16; in large_bitmap() local
378 unsigned long *bits = kcalloc(BITS_TO_LONGS(nbits), sizeof(long), GFP_KERNEL); in large_bitmap()
384 test("1-20,60000-60014", "%*pbl", nbits, bits); in large_bitmap()
Dbch.c991 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/
Dmpicoder.c39 unsigned nbits, nlimbs; in mpi_read_raw_data() local
48 nbits = nbytes * 8; in mpi_read_raw_data()
49 if (nbits > MAX_EXTERN_MPI_BITS) { in mpi_read_raw_data()
50 pr_info("MPI: mpi too large (%u bits)\n", nbits); in mpi_read_raw_data()
54 nbits -= count_leading_zeros(buffer[0]) - (BITS_PER_LONG - 8); in mpi_read_raw_data()
60 val->nbits = nbits; in mpi_read_raw_data()
84 unsigned int nbits, nbytes; in mpi_read_from_buffer() local
89 nbits = buffer[0] << 8 | buffer[1]; in mpi_read_from_buffer()
91 if (nbits > MAX_EXTERN_MPI_BITS) { in mpi_read_from_buffer()
92 pr_info("MPI: mpi too large (%u bits)\n", nbits); in mpi_read_from_buffer()
[all …]
Dmpiutil.c52 a->nbits = 0; in mpi_alloc()