Home
last modified time | relevance | path

Searched refs:nbits (Results 1 – 9 of 9) 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()
174 const int nbits; member
239 err = bitmap_parselist(ptest.in, bmap, ptest.nbits); in test_bitmap_parselist()
249 && !__bitmap_equal(bmap, ptest.expected, ptest.nbits)) { in test_bitmap_parselist()
[all …]
Dfind_bit.c32 unsigned long nbits, unsigned long start, unsigned long invert) in _find_next_bit() argument
36 if (unlikely(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 (unlikely(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.c87 unsigned shift, unsigned nbits) in __bitmap_shift_right() argument
89 unsigned k, lim = BITS_TO_LONGS(nbits); in __bitmap_shift_right()
91 unsigned long mask = BITMAP_LAST_WORD_MASK(nbits); in __bitmap_shift_right()
132 unsigned int shift, unsigned int nbits) in __bitmap_shift_left() argument
135 unsigned int lim = BITS_TO_LONGS(nbits); in __bitmap_shift_left()
365 int c, old_c, totaldigits, ndigits, nchunks, nbits; in __bitmap_parse() local
371 nchunks = nbits = totaldigits = c = 0; in __bitmap_parse()
423 nbits += (nchunks == 1) ? nbits_to_hold_value(chunk) : CHUNKSZ; in __bitmap_parse()
424 if (nbits > nmaskbits) in __bitmap_parse()
677 static int bitmap_pos_to_ord(const unsigned long *buf, unsigned int pos, unsigned int nbits) in bitmap_pos_to_ord() argument
[all …]
Dgenalloc.c187 int nbits = size >> pool->min_alloc_order; in gen_pool_add_virt() local
189 BITS_TO_LONGS(nbits) * sizeof(long); in gen_pool_add_virt()
296 int nbits, start_bit, end_bit, remain; in gen_pool_alloc_algo() local
305 nbits = (size + (1UL << order) - 1) >> order; in gen_pool_alloc_algo()
315 nbits, data, pool, chunk->start_addr); in gen_pool_alloc_algo()
318 remain = bitmap_set_ll(chunk->bits, start_bit, nbits); in gen_pool_alloc_algo()
321 nbits - remain); in gen_pool_alloc_algo()
327 size = nbits << order; in gen_pool_alloc_algo()
379 int start_bit, nbits, remain; in gen_pool_free() local
385 nbits = (size + (1UL << order) - 1) >> order; in gen_pool_free()
[all …]
Dtest_printf.c409 const int nbits = 1 << 16; in large_bitmap() local
410 unsigned long *bits = kcalloc(BITS_TO_LONGS(nbits), sizeof(long), GFP_KERNEL); in large_bitmap()
416 test("1-20,60000-60014", "%*pbl", nbits, bits); in large_bitmap()
Dprime_numbers.c8 #define bitmap_size(nbits) (BITS_TO_LONGS(nbits) * sizeof(unsigned long)) argument
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()