Searched refs:nbits (Results 1 - 58 of 58) sorted by relevance

/linux-4.1.27/include/linux/
H A Dbitmap.h28 * Note that nbits should be always a compile time evaluable constant.
31 * bitmap_zero(dst, nbits) *dst = 0UL
32 * bitmap_fill(dst, nbits) *dst = ~0UL
33 * bitmap_copy(dst, src, nbits) *dst = *src
34 * bitmap_and(dst, src1, src2, nbits) *dst = *src1 & *src2
35 * bitmap_or(dst, src1, src2, nbits) *dst = *src1 | *src2
36 * bitmap_xor(dst, src1, src2, nbits) *dst = *src1 ^ *src2
37 * bitmap_andnot(dst, src1, src2, nbits) *dst = *src1 & ~(*src2)
38 * bitmap_complement(dst, src, nbits) *dst = ~(*src)
39 * bitmap_equal(src1, src2, nbits) Are *src1 and *src2 equal?
40 * bitmap_intersects(src1, src2, nbits) Do *src1 and *src2 overlap?
41 * bitmap_subset(src1, src2, nbits) Is *src1 a subset of *src2?
42 * bitmap_empty(src, nbits) Are all bits zero in *src?
43 * bitmap_full(src, nbits) Are all bits set in *src?
44 * bitmap_weight(src, nbits) Hamming Weight: number set bits
45 * bitmap_set(dst, pos, nbits) Set specified bit area
46 * bitmap_clear(dst, pos, nbits) Clear specified bit area
49 * bitmap_shift_right(dst, src, n, nbits) *dst = *src >> n
50 * bitmap_shift_left(dst, src, n, nbits) *dst = *src << n
51 * bitmap_remap(dst, src, old, new, nbits) *dst = map(old, new)(src)
52 * bitmap_bitremap(oldbit, old, new, nbits) newbit = map(old, new)(oldbit)
53 * bitmap_onto(dst, orig, relmap, nbits) *dst = orig relative to relmap
54 * bitmap_fold(dst, orig, sz, nbits) dst bits = orig bits mod sz
55 * bitmap_parse(buf, buflen, dst, nbits) Parse bitmap dst from kernel buf
56 * bitmap_parse_user(ubuf, ulen, dst, nbits) Parse bitmap dst from user buf
57 * bitmap_parselist(buf, dst, nbits) Parse bitmap dst from kernel buf
58 * bitmap_parselist_user(buf, dst, nbits) Parse bitmap dst from user buf
74 * find_first_zero_bit(addr, nbits) Position first zero bit in *addr
75 * find_first_bit(addr, nbits) Position first set bit in *addr
76 * find_next_zero_bit(addr, nbits, bit) Position next zero bit in *addr >= bit
77 * find_next_bit(addr, nbits, bit) Position next set bit in *addr >= bit
90 extern int __bitmap_empty(const unsigned long *bitmap, unsigned int nbits);
91 extern int __bitmap_full(const unsigned long *bitmap, unsigned int nbits);
93 const unsigned long *bitmap2, unsigned int nbits);
95 unsigned int nbits);
97 unsigned int shift, unsigned int nbits);
99 unsigned int shift, unsigned int nbits);
101 const unsigned long *bitmap2, unsigned int nbits);
103 const unsigned long *bitmap2, unsigned int nbits);
105 const unsigned long *bitmap2, unsigned int nbits);
107 const unsigned long *bitmap2, unsigned int nbits);
109 const unsigned long *bitmap2, unsigned int nbits);
111 const unsigned long *bitmap2, unsigned int nbits);
112 extern int __bitmap_weight(const unsigned long *bitmap, unsigned int nbits);
148 unsigned long *dst, int nbits);
150 unsigned long *dst, int nbits);
154 unsigned long *dst, int nbits);
156 const unsigned long *old, const unsigned long *new, unsigned int nbits);
162 unsigned int sz, unsigned int nbits);
167 extern void bitmap_copy_le(unsigned long *dst, const unsigned long *src, unsigned int nbits);
171 extern unsigned int bitmap_ord_to_pos(const unsigned long *bitmap, unsigned int ord, unsigned int nbits);
176 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1)))
178 #define small_const_nbits(nbits) \
179 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG)
181 static inline void bitmap_zero(unsigned long *dst, unsigned int nbits) bitmap_zero() argument
183 if (small_const_nbits(nbits)) bitmap_zero()
186 unsigned int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long); bitmap_zero()
191 static inline void bitmap_fill(unsigned long *dst, unsigned int nbits) bitmap_fill() argument
193 unsigned int nlongs = BITS_TO_LONGS(nbits); bitmap_fill()
194 if (!small_const_nbits(nbits)) { bitmap_fill()
198 dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits); bitmap_fill()
202 unsigned int nbits) bitmap_copy()
204 if (small_const_nbits(nbits)) bitmap_copy()
207 unsigned int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long); bitmap_copy()
213 const unsigned long *src2, unsigned int nbits) bitmap_and()
215 if (small_const_nbits(nbits)) bitmap_and()
216 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0; bitmap_and()
217 return __bitmap_and(dst, src1, src2, nbits); bitmap_and()
221 const unsigned long *src2, unsigned int nbits) bitmap_or()
223 if (small_const_nbits(nbits)) bitmap_or()
226 __bitmap_or(dst, src1, src2, nbits); bitmap_or()
230 const unsigned long *src2, unsigned int nbits) bitmap_xor()
232 if (small_const_nbits(nbits)) bitmap_xor()
235 __bitmap_xor(dst, src1, src2, nbits); bitmap_xor()
239 const unsigned long *src2, unsigned int nbits) bitmap_andnot()
241 if (small_const_nbits(nbits)) bitmap_andnot()
242 return (*dst = *src1 & ~(*src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; bitmap_andnot()
243 return __bitmap_andnot(dst, src1, src2, nbits); bitmap_andnot()
247 unsigned int nbits) bitmap_complement()
249 if (small_const_nbits(nbits)) bitmap_complement()
252 __bitmap_complement(dst, src, nbits); bitmap_complement()
256 const unsigned long *src2, unsigned int nbits) bitmap_equal()
258 if (small_const_nbits(nbits)) bitmap_equal()
259 return ! ((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); bitmap_equal()
261 return __bitmap_equal(src1, src2, nbits); bitmap_equal()
265 const unsigned long *src2, unsigned int nbits) bitmap_intersects()
267 if (small_const_nbits(nbits)) bitmap_intersects()
268 return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0; bitmap_intersects()
270 return __bitmap_intersects(src1, src2, nbits); bitmap_intersects()
274 const unsigned long *src2, unsigned int nbits) bitmap_subset()
276 if (small_const_nbits(nbits)) bitmap_subset()
277 return ! ((*src1 & ~(*src2)) & BITMAP_LAST_WORD_MASK(nbits)); bitmap_subset()
279 return __bitmap_subset(src1, src2, nbits); bitmap_subset()
282 static inline int bitmap_empty(const unsigned long *src, unsigned nbits) bitmap_empty() argument
284 if (small_const_nbits(nbits)) bitmap_empty()
285 return ! (*src & BITMAP_LAST_WORD_MASK(nbits)); bitmap_empty()
287 return find_first_bit(src, nbits) == nbits; bitmap_empty()
290 static inline int bitmap_full(const unsigned long *src, unsigned int nbits) bitmap_full() argument
292 if (small_const_nbits(nbits)) bitmap_full()
293 return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits)); bitmap_full()
295 return find_first_zero_bit(src, nbits) == nbits; bitmap_full()
298 static inline int bitmap_weight(const unsigned long *src, unsigned int nbits) bitmap_weight() argument
300 if (small_const_nbits(nbits)) bitmap_weight()
301 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); bitmap_weight()
302 return __bitmap_weight(src, nbits); bitmap_weight()
306 unsigned int shift, int nbits) bitmap_shift_right()
308 if (small_const_nbits(nbits)) bitmap_shift_right()
309 *dst = (*src & BITMAP_LAST_WORD_MASK(nbits)) >> shift; bitmap_shift_right()
311 __bitmap_shift_right(dst, src, shift, nbits); bitmap_shift_right()
315 unsigned int shift, unsigned int nbits) bitmap_shift_left()
317 if (small_const_nbits(nbits)) bitmap_shift_left()
318 *dst = (*src << shift) & BITMAP_LAST_WORD_MASK(nbits); bitmap_shift_left()
320 __bitmap_shift_left(dst, src, shift, nbits); bitmap_shift_left()
201 bitmap_copy(unsigned long *dst, const unsigned long *src, unsigned int nbits) bitmap_copy() argument
212 bitmap_and(unsigned long *dst, const unsigned long *src1, const unsigned long *src2, unsigned int nbits) bitmap_and() argument
220 bitmap_or(unsigned long *dst, const unsigned long *src1, const unsigned long *src2, unsigned int nbits) bitmap_or() argument
229 bitmap_xor(unsigned long *dst, const unsigned long *src1, const unsigned long *src2, unsigned int nbits) bitmap_xor() argument
238 bitmap_andnot(unsigned long *dst, const unsigned long *src1, const unsigned long *src2, unsigned int nbits) bitmap_andnot() argument
246 bitmap_complement(unsigned long *dst, const unsigned long *src, unsigned int nbits) bitmap_complement() argument
255 bitmap_equal(const unsigned long *src1, const unsigned long *src2, unsigned int nbits) bitmap_equal() argument
264 bitmap_intersects(const unsigned long *src1, const unsigned long *src2, unsigned int nbits) bitmap_intersects() argument
273 bitmap_subset(const unsigned long *src1, const unsigned long *src2, unsigned int nbits) bitmap_subset() argument
305 bitmap_shift_right(unsigned long *dst, const unsigned long *src, unsigned int shift, int nbits) bitmap_shift_right() argument
314 bitmap_shift_left(unsigned long *dst, const unsigned long *src, unsigned int shift, unsigned int nbits) bitmap_shift_left() argument
H A Dnodemask.h128 static inline void __nodes_setall(nodemask_t *dstp, unsigned int nbits) __nodes_setall() argument
130 bitmap_fill(dstp->bits, nbits); __nodes_setall()
134 static inline void __nodes_clear(nodemask_t *dstp, unsigned int nbits) __nodes_clear() argument
136 bitmap_zero(dstp->bits, nbits); __nodes_clear()
152 const nodemask_t *src2p, unsigned int nbits) __nodes_and()
154 bitmap_and(dstp->bits, src1p->bits, src2p->bits, nbits); __nodes_and()
160 const nodemask_t *src2p, unsigned int nbits) __nodes_or()
162 bitmap_or(dstp->bits, src1p->bits, src2p->bits, nbits); __nodes_or()
168 const nodemask_t *src2p, unsigned int nbits) __nodes_xor()
170 bitmap_xor(dstp->bits, src1p->bits, src2p->bits, nbits); __nodes_xor()
176 const nodemask_t *src2p, unsigned int nbits) __nodes_andnot()
178 bitmap_andnot(dstp->bits, src1p->bits, src2p->bits, nbits); __nodes_andnot()
184 const nodemask_t *srcp, unsigned int nbits) __nodes_complement()
186 bitmap_complement(dstp->bits, srcp->bits, nbits); __nodes_complement()
192 const nodemask_t *src2p, unsigned int nbits) __nodes_equal()
194 return bitmap_equal(src1p->bits, src2p->bits, nbits); __nodes_equal()
200 const nodemask_t *src2p, unsigned int nbits) __nodes_intersects()
202 return bitmap_intersects(src1p->bits, src2p->bits, nbits); __nodes_intersects()
208 const nodemask_t *src2p, unsigned int nbits) __nodes_subset()
210 return bitmap_subset(src1p->bits, src2p->bits, nbits); __nodes_subset()
214 static inline int __nodes_empty(const nodemask_t *srcp, unsigned int nbits) __nodes_empty() argument
216 return bitmap_empty(srcp->bits, nbits); __nodes_empty()
220 static inline int __nodes_full(const nodemask_t *srcp, unsigned int nbits) __nodes_full() argument
222 return bitmap_full(srcp->bits, nbits); __nodes_full()
226 static inline int __nodes_weight(const nodemask_t *srcp, unsigned int nbits) __nodes_weight() argument
228 return bitmap_weight(srcp->bits, nbits); __nodes_weight()
234 const nodemask_t *srcp, int n, int nbits) __nodes_shift_right()
236 bitmap_shift_right(dstp->bits, srcp->bits, n, nbits); __nodes_shift_right()
242 const nodemask_t *srcp, int n, int nbits) __nodes_shift_left()
244 bitmap_shift_left(dstp->bits, srcp->bits, n, nbits); __nodes_shift_left()
315 nodemask_t *dstp, int nbits) __nodemask_parse_user()
317 return bitmap_parse_user(buf, len, dstp->bits, nbits); __nodemask_parse_user()
321 static inline int __nodelist_parse(const char *buf, nodemask_t *dstp, int nbits) __nodelist_parse() argument
323 return bitmap_parselist(buf, dstp->bits, nbits); __nodelist_parse()
329 const nodemask_t *oldp, const nodemask_t *newp, int nbits) __node_remap()
331 return bitmap_bitremap(oldbit, oldp->bits, newp->bits, nbits); __node_remap()
337 const nodemask_t *oldp, const nodemask_t *newp, int nbits) __nodes_remap()
339 bitmap_remap(dstp->bits, srcp->bits, oldp->bits, newp->bits, nbits); __nodes_remap()
345 const nodemask_t *relmapp, int nbits) __nodes_onto()
347 bitmap_onto(dstp->bits, origp->bits, relmapp->bits, nbits); __nodes_onto()
353 int sz, int nbits) __nodes_fold()
355 bitmap_fold(dstp->bits, origp->bits, sz, nbits); __nodes_fold()
151 __nodes_and(nodemask_t *dstp, const nodemask_t *src1p, const nodemask_t *src2p, unsigned int nbits) __nodes_and() argument
159 __nodes_or(nodemask_t *dstp, const nodemask_t *src1p, const nodemask_t *src2p, unsigned int nbits) __nodes_or() argument
167 __nodes_xor(nodemask_t *dstp, const nodemask_t *src1p, const nodemask_t *src2p, unsigned int nbits) __nodes_xor() argument
175 __nodes_andnot(nodemask_t *dstp, const nodemask_t *src1p, const nodemask_t *src2p, unsigned int nbits) __nodes_andnot() argument
183 __nodes_complement(nodemask_t *dstp, const nodemask_t *srcp, unsigned int nbits) __nodes_complement() argument
191 __nodes_equal(const nodemask_t *src1p, const nodemask_t *src2p, unsigned int nbits) __nodes_equal() argument
199 __nodes_intersects(const nodemask_t *src1p, const nodemask_t *src2p, unsigned int nbits) __nodes_intersects() argument
207 __nodes_subset(const nodemask_t *src1p, const nodemask_t *src2p, unsigned int nbits) __nodes_subset() argument
233 __nodes_shift_right(nodemask_t *dstp, const nodemask_t *srcp, int n, int nbits) __nodes_shift_right() argument
241 __nodes_shift_left(nodemask_t *dstp, const nodemask_t *srcp, int n, int nbits) __nodes_shift_left() argument
314 __nodemask_parse_user(const char __user *buf, int len, nodemask_t *dstp, int nbits) __nodemask_parse_user() argument
328 __node_remap(int oldbit, const nodemask_t *oldp, const nodemask_t *newp, int nbits) __node_remap() argument
336 __nodes_remap(nodemask_t *dstp, const nodemask_t *srcp, const nodemask_t *oldp, const nodemask_t *newp, int nbits) __nodes_remap() argument
344 __nodes_onto(nodemask_t *dstp, const nodemask_t *origp, const nodemask_t *relmapp, int nbits) __nodes_onto() argument
352 __nodes_fold(nodemask_t *dstp, const nodemask_t *origp, int sz, int nbits) __nodes_fold() argument
H A Dmpi.h50 int nbits; /* the real number of valid bits (info only) */ member in struct:gcry_mpi
78 MPI do_encode_md(const void *sha_buffer, unsigned nbits);
H A Disdn.h378 int nbits; /* Number of used bits in streambyte */ member in struct:__anon11860
379 unsigned char key; /* Bitmask in stream eg. 11 (nbits=2) */
/linux-4.1.27/tools/perf/util/include/linux/
H A Dbitmap.h14 #define BITMAP_LAST_WORD_MASK(nbits) \
16 ((nbits) % BITS_PER_LONG) ? \
17 (1UL<<((nbits) % BITS_PER_LONG))-1 : ~0UL \
20 #define small_const_nbits(nbits) \
21 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG)
23 static inline void bitmap_zero(unsigned long *dst, int nbits) bitmap_zero() argument
25 if (small_const_nbits(nbits)) bitmap_zero()
28 int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long); bitmap_zero()
33 static inline int bitmap_weight(const unsigned long *src, int nbits) bitmap_weight() argument
35 if (small_const_nbits(nbits)) bitmap_weight()
36 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); bitmap_weight()
37 return __bitmap_weight(src, nbits); bitmap_weight()
41 const unsigned long *src2, int nbits) bitmap_or()
43 if (small_const_nbits(nbits)) bitmap_or()
46 __bitmap_or(dst, src1, src2, nbits); bitmap_or()
40 bitmap_or(unsigned long *dst, const unsigned long *src1, const unsigned long *src2, int nbits) bitmap_or() argument
/linux-4.1.27/lib/mpi/
H A Dmpicoder.c36 unsigned nbits, nlimbs; mpi_read_raw_data() local
45 nbits = nbytes * 8; mpi_read_raw_data()
46 if (nbits > MAX_EXTERN_MPI_BITS) { mpi_read_raw_data()
47 pr_info("MPI: mpi too large (%u bits)\n", nbits); mpi_read_raw_data()
51 nbits -= count_leading_zeros(buffer[0]); mpi_read_raw_data()
53 nbits = 0; mpi_read_raw_data()
59 val->nbits = nbits; mpi_read_raw_data()
84 unsigned nbits, nbytes, nlimbs, nread = 0; mpi_read_from_buffer() local
90 nbits = buffer[0] << 8 | buffer[1]; mpi_read_from_buffer()
92 if (nbits > MAX_EXTERN_MPI_BITS) { mpi_read_from_buffer()
93 pr_info("MPI: mpi too large (%u bits)\n", nbits); mpi_read_from_buffer()
99 nbytes = DIV_ROUND_UP(nbits, 8); mpi_read_from_buffer()
106 val->nbits = nbits; mpi_read_from_buffer()
H A Dmpiutil.c52 a->nbits = 0; mpi_alloc()
/linux-4.1.27/lib/
H A Dfind_bit.c32 unsigned long nbits, unsigned long start, unsigned long invert) _find_next_bit()
36 if (!nbits || start >= nbits) _find_next_bit()
37 return nbits; _find_next_bit()
47 if (start >= nbits) _find_next_bit()
48 return nbits; _find_next_bit()
53 return min(start + __ffs(tmp), nbits); _find_next_bit()
150 unsigned long nbits, unsigned long start, unsigned long invert) _find_next_bit_le()
154 if (!nbits || start >= nbits) _find_next_bit_le()
155 return nbits; _find_next_bit_le()
165 if (start >= nbits) _find_next_bit_le()
166 return nbits; _find_next_bit_le()
171 return min(start + __ffs(ext2_swab(tmp)), nbits); _find_next_bit_le()
31 _find_next_bit(const unsigned long *addr, unsigned long nbits, unsigned long start, unsigned long invert) _find_next_bit() argument
149 _find_next_bit_le(const unsigned long *addr, unsigned long nbits, unsigned long start, unsigned long invert) _find_next_bit_le() argument
H A Dbitmap.c77 * @nbits : bitmap size, in bits
84 unsigned shift, unsigned nbits) __bitmap_shift_right()
86 unsigned k, lim = BITS_TO_LONGS(nbits); __bitmap_shift_right()
88 unsigned long mask = BITMAP_LAST_WORD_MASK(nbits); __bitmap_shift_right()
121 * @nbits : bitmap size, in bits
129 unsigned int shift, unsigned int nbits) __bitmap_shift_left()
132 unsigned int lim = BITS_TO_LONGS(nbits); __bitmap_shift_left()
362 int c, old_c, totaldigits, ndigits, nchunks, nbits; __bitmap_parse() local
368 nchunks = nbits = totaldigits = c = 0; __bitmap_parse()
419 nbits += (nchunks == 1) ? nbits_to_hold_value(chunk) : CHUNKSZ; __bitmap_parse()
420 if (nbits > nmaskbits) __bitmap_parse()
613 * @pos: a bit position in @buf (0 <= @pos < @nbits)
614 * @nbits: number of valid bit positions in @buf
616 * Map the bit at position @pos in @buf (of length @nbits) to the
628 static int bitmap_pos_to_ord(const unsigned long *buf, unsigned int pos, unsigned int nbits) bitmap_pos_to_ord() argument
630 if (pos >= nbits || !test_bit(pos, buf)) bitmap_pos_to_ord()
640 * @nbits: number of valid bit positions in @buf
644 * >= weight(buf), returns @nbits.
648 * and all other @ord values returns @nbits. When @ord value 3
652 * The bit positions 0 through @nbits-1 are valid positions in @buf.
654 unsigned int bitmap_ord_to_pos(const unsigned long *buf, unsigned int ord, unsigned int nbits) bitmap_ord_to_pos() argument
658 for (pos = find_first_bit(buf, nbits); bitmap_ord_to_pos()
659 pos < nbits && ord; bitmap_ord_to_pos()
660 pos = find_next_bit(buf, nbits, pos + 1)) bitmap_ord_to_pos()
672 * @nbits: number of bits in each of these bitmaps
700 unsigned int nbits) bitmap_remap()
706 bitmap_zero(dst, nbits); bitmap_remap()
708 w = bitmap_weight(new, nbits); for_each_set_bit()
709 for_each_set_bit(oldbit, src, nbits) { for_each_set_bit()
710 int n = bitmap_pos_to_ord(old, oldbit, nbits); for_each_set_bit()
715 set_bit(bitmap_ord_to_pos(new, n % w, nbits), dst); for_each_set_bit()
892 * @nbits: number of bits in each of these bitmaps
899 unsigned int sz, unsigned int nbits) bitmap_fold()
905 bitmap_zero(dst, nbits); bitmap_fold()
907 for_each_set_bit(oldbit, orig, nbits) bitmap_fold()
1056 * @nbits: number of bits in the bitmap
1058 * Require nbits % BITS_PER_LONG == 0.
1061 void bitmap_copy_le(unsigned long *dst, const unsigned long *src, unsigned int nbits) bitmap_copy_le() argument
1065 for (i = 0; i < nbits/BITS_PER_LONG; i++) { bitmap_copy_le()
83 __bitmap_shift_right(unsigned long *dst, const unsigned long *src, unsigned shift, unsigned nbits) __bitmap_shift_right() argument
128 __bitmap_shift_left(unsigned long *dst, const unsigned long *src, unsigned int shift, unsigned int nbits) __bitmap_shift_left() argument
698 bitmap_remap(unsigned long *dst, const unsigned long *src, const unsigned long *old, const unsigned long *new, unsigned int nbits) bitmap_remap() argument
898 bitmap_fold(unsigned long *dst, const unsigned long *orig, unsigned int sz, unsigned int nbits) bitmap_fold() argument
H A Dgenalloc.c185 int nbits = size >> pool->min_alloc_order; gen_pool_add_virt() local
187 BITS_TO_LONGS(nbits) * sizeof(long); gen_pool_add_virt()
275 int nbits, start_bit = 0, end_bit, remain; gen_pool_alloc() local
284 nbits = (size + (1UL << order) - 1) >> order; gen_pool_alloc()
292 start_bit = pool->algo(chunk->bits, end_bit, start_bit, nbits, gen_pool_alloc()
296 remain = bitmap_set_ll(chunk->bits, start_bit, nbits); gen_pool_alloc()
299 nbits - remain); gen_pool_alloc()
305 size = nbits << order; gen_pool_alloc()
357 int start_bit, nbits, remain; gen_pool_free() local
363 nbits = (size + (1UL << order) - 1) >> order; gen_pool_free()
369 remain = bitmap_clear_ll(chunk->bits, start_bit, nbits); gen_pool_free()
371 size = nbits << order; gen_pool_free()
H A Dbch.c991 unsigned int nbits; decode_bch() local
1034 nbits = (len*8)+bch->ecc_bits; decode_bch()
1036 if (errloc[i] >= nbits) { decode_bch()
1040 errloc[i] = nbits-1-errloc[i]; decode_bch()
1169 unsigned int i, j, nbits, r, word, *roots; compute_generator_polynomial() local
1211 nbits = (n > 32) ? 32 : n; compute_generator_polynomial()
1212 for (j = 0, word = 0; j < nbits; j++) { compute_generator_polynomial()
1217 n -= nbits; compute_generator_polynomial()
/linux-4.1.27/fs/omfs/
H A Dbitmap.c12 int nbits = sb->s_blocksize * 8; omfs_count_free() local
15 sum += nbits - bitmap_weight(sbi->s_imap[i], nbits); omfs_count_free()
25 static int count_run(unsigned long **addr, int nbits, count_run() argument
32 x = find_next_bit(*addr, nbits, bit); count_run()
35 if (x < nbits || count > max) count_run()
48 int nbits, int bit, int count, int set) set_run()
61 if (bit >= nbits) { set_run()
47 set_run(struct super_block *sb, int map, int nbits, int bit, int count, int set) set_run() argument
/linux-4.1.27/drivers/isdn/i4l/
H A Disdn_audio.c304 while (s->nleft < s->nbits) { isdn_audio_get_bits()
310 s->nleft -= s->nbits; isdn_audio_get_bits()
311 return (s->word >> s->nleft) & bitmask[s->nbits]; isdn_audio_get_bits()
315 isdn_audio_put_bits(int data, int nbits, adpcm_state *s, isdn_audio_put_bits() argument
318 s->word = (s->word << nbits) | (data & bitmask[nbits]); isdn_audio_put_bits()
319 s->nleft += nbits; isdn_audio_put_bits()
329 isdn_audio_adpcm_init(adpcm_state *s, int nbits) isdn_audio_adpcm_init() argument
338 s->nbits = nbits; isdn_audio_adpcm_init()
366 int nbits = s->nbits; isdn_audio_adpcm2xlaw() local
373 if (nbits == 4 && e == 0) isdn_audio_adpcm2xlaw()
375 sign = (e >> (nbits - 1)) ? -1 : 1; isdn_audio_adpcm2xlaw()
376 e &= bitmask[nbits - 1]; isdn_audio_adpcm2xlaw()
386 d = (d * Mx[nbits - 2][e] + 0x2000) >> 14; isdn_audio_adpcm2xlaw()
401 int nbits = s->nbits; isdn_audio_xlaw2adpcm() local
406 nmax = 1 << (nbits - 1); isdn_audio_xlaw2adpcm()
422 if (nbits == 4 && ((e & 0x0f) == 0)) isdn_audio_xlaw2adpcm()
424 isdn_audio_put_bits(e, nbits, s, &out, &olen); isdn_audio_xlaw2adpcm()
425 sign = (e >> (nbits - 1)) ? -1 : 1; isdn_audio_xlaw2adpcm()
426 e &= bitmask[nbits - 1]; isdn_audio_xlaw2adpcm()
431 d = (d * Mx[nbits - 2][e] + 0x2000) >> 14; isdn_audio_xlaw2adpcm()
H A Disdn_audio.h18 int nbits; member in struct:adpcm_state
H A Disdn_v110.c98 v->nbits = 0; isdn_v110_open()
100 v->nbits++; isdn_v110_open()
102 v->nbytes = 8 / v->nbits; isdn_v110_open()
304 v110_buf[i] |= (v->decodebuf[(i * v->nbytes) + j] & v->key) << (8 - ((j + 1) * v->nbits)); isdn_v110_decode()
305 v110_buf[i] = FlipBits(v110_buf[i], v->nbits); isdn_v110_decode()
497 sval1 = 8 - v->nbits; isdn_v110_encode()
500 v110buf[i] = FlipBits(v110buf[i], v->nbits); isdn_v110_encode()
503 *rbuf++ = ~v->key | (((v110buf[i] << (j * v->nbits)) & sval2) >> sval1); isdn_v110_encode()
/linux-4.1.27/drivers/regulator/
H A Dda903x.c313 #define DA903x_LDO(_pmic, _id, min, max, step, vreg, shift, nbits, ereg, ebit) \
328 .vol_nbits = (nbits), \
333 #define DA903x_DVC(_pmic, _id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \
348 .vol_nbits = (nbits), \
355 #define DA9034_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \
356 DA903x_LDO(DA9034, _id, min, max, step, vreg, shift, nbits, ereg, ebit)
358 #define DA9030_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \
359 DA903x_LDO(DA9030, _id, min, max, step, vreg, shift, nbits, ereg, ebit)
361 #define DA9030_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \
362 DA903x_DVC(DA9030, _id, min, max, step, vreg, nbits, ureg, ubit, \
365 #define DA9034_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \
366 DA903x_DVC(DA9034, _id, min, max, step, vreg, nbits, ureg, ubit, \
369 #define DA9035_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \
370 DA903x_DVC(DA9035, _id, min, max, step, vreg, nbits, ureg, ubit, \
H A Dtps6586x-regulator.c112 #define TPS6586X_REGULATOR(_id, _ops, _pin_name, vdata, vreg, shift, nbits, \
126 .vsel_mask = ((1 << (nbits)) - 1) << (shift), \
136 uv_step, vreg, shift, nbits, ereg0, \
151 .vsel_mask = ((1 << (nbits)) - 1) << (shift), \
160 #define TPS6586X_LDO(_id, _pname, vdata, vreg, shift, nbits, \
163 TPS6586X_REGULATOR(_id, rw, _pname, vdata, vreg, shift, nbits, \
168 shift, nbits, ereg0, ebit0, ereg1, ebit1) \
171 min_uv, uv_step, vreg, shift, nbits, \
175 #define TPS6586X_FIXED_LDO(_id, _pname, vdata, vreg, shift, nbits, \
178 TPS6586X_REGULATOR(_id, ro, _pname, vdata, vreg, shift, nbits, \
183 nbits, ereg0, ebit0, ereg1, ebit1, goreg, gobit) \
186 min_uv, uv_step, vreg, shift, nbits, \
/linux-4.1.27/arch/ia64/mm/
H A Dtlb.c241 unsigned long end, unsigned long nbits) ia64_global_tlb_purge()
264 ia64_ptcga(start, (nbits << 2)); ia64_global_tlb_purge()
266 start += (1UL << nbits); ia64_global_tlb_purge()
306 unsigned long nbits; flush_tlb_range() local
315 nbits = ia64_fls(size + 0xfff); flush_tlb_range()
316 while (unlikely (((1UL << nbits) & purge.mask) == 0) && flush_tlb_range()
317 (nbits < purge.max_bits)) flush_tlb_range()
318 ++nbits; flush_tlb_range()
319 if (nbits > purge.max_bits) flush_tlb_range()
320 nbits = purge.max_bits; flush_tlb_range()
321 start &= ~((1UL << nbits) - 1); flush_tlb_range()
326 platform_global_tlb_purge(mm, start, end, nbits); flush_tlb_range()
332 ia64_ptcl(start, (nbits<<2)); flush_tlb_range()
333 start += (1UL << nbits); flush_tlb_range()
240 ia64_global_tlb_purge(struct mm_struct *mm, unsigned long start, unsigned long end, unsigned long nbits) ia64_global_tlb_purge() argument
/linux-4.1.27/arch/parisc/include/asm/
H A Dirq.h40 extern int txn_alloc_irq(unsigned int nbits);
/linux-4.1.27/drivers/net/wireless/brcm80211/include/
H A Dbrcmu_utils.h55 #define NBITVAL(nbits) (1 << (nbits))
56 #define MAXBITVAL(nbits) ((1 << (nbits)) - 1)
57 #define NBITMASK(nbits) MAXBITVAL(nbits)
/linux-4.1.27/drivers/net/ethernet/tehuti/
H A Dtehuti.h128 #define BITS_MASK(nbits) ((1<<nbits)-1)
129 #define GET_BITS_SHIFT(x, nbits, nshift) (((x)>>nshift)&BITS_MASK(nbits))
130 #define BITS_SHIFT_MASK(nbits, nshift) (BITS_MASK(nbits)<<nshift)
131 #define BITS_SHIFT_VAL(x, nbits, nshift) (((x)&BITS_MASK(nbits))<<nshift)
132 #define BITS_SHIFT_CLEAR(x, nbits, nshift) \
133 ((x)&(~BITS_SHIFT_MASK(nbits, nshift)))
/linux-4.1.27/arch/ia64/sn/kernel/sn2/
H A Dsn2_smp.c146 * @nbits: specifies number of bytes to purge per instruction (num = 1<<(nbits & 0xfc))
165 unsigned long end, unsigned long nbits) sn2_global_tlb_purge()
198 ia64_ptcl(start, nbits << 2);
199 start += (1UL << nbits);
230 (nbits << SH1_PTC_0_PS_SHFT) |
237 (nbits << SH2_PTC_PS_SHFT) |
276 ia64_ptcga(start, nbits << 2);
297 start += (1UL << nbits);
164 sn2_global_tlb_purge(struct mm_struct *mm, unsigned long start, unsigned long end, unsigned long nbits) sn2_global_tlb_purge() argument
/linux-4.1.27/drivers/media/usb/pwc/
H A Dpwc-dec23.c310 pdec->nbits = 7; /* More bits, mean more bits to encode the stream, but better quality */ pwc_dec23_init()
312 pdec->nbits = 8; pwc_dec23_init()
314 pdec->nbits = 6; pwc_dec23_init()
324 pdec->nbits = 7; pwc_dec23_init()
326 pdec->nbits = 8; pwc_dec23_init()
328 pdec->nbits = 6; pwc_dec23_init()
336 shift = 8 - pdec->nbits; pwc_dec23_init()
508 __get_nbits(pdec, pdec->nbits, primary_color); decode_block()
554 unsigned int nbits, col1; decode_block() local
562 nbits = ptable8004[offset1 * 2]; decode_block()
565 __get_nbits(pdec, nbits+1, col1); decode_block()
568 mask = pdec->table_bitpowermask[nbits][col1]; decode_block()
H A Dpwc-dec23.h37 unsigned int nbitsmask, nbits; /* Number of bits of a color in the compressed stream */ member in struct:pwc_dec23_private
/linux-4.1.27/arch/c6x/platforms/
H A Ddscr.c74 u8 nbits; /* number of bits per device */ member in struct:devstate_ctl_reg
92 u8 nbits; /* number of bits per device */ member in struct:devstate_stat_reg
212 ctl_shift = ctl->shift + ctl->nbits * (id - ctl->start_id); dscr_set_devstate()
213 ctl_mask = ((1 << ctl->nbits) - 1) << ctl_shift; dscr_set_devstate()
241 ctl_shift = stat->shift + stat->nbits * (id - stat->start_id); dscr_set_devstate()
251 val &= ((1 << stat->nbits) - 1); dscr_set_devstate()
459 * start_id num_ids reg enable disable start_bit nbits
467 * nbits is the number of bits per device control
494 r->nbits = be32_to_cpup(p++); dscr_parse_devstate_ctl_regs()
515 * start_id num_ids reg enable disable start_bit nbits
523 * nbits is the number of bits per device status
548 r->nbits = be32_to_cpup(p++); dscr_parse_devstate_stat_regs()
/linux-4.1.27/sound/mips/
H A Dad1843.c45 char nbits; member in struct:ad1843_bitfield
192 return w >> field->lo_bit & ((1 << field->nbits) - 1); ad1843_read_bits()
206 mask = ((1 << field->nbits) - 1) << field->lo_bit; ad1843_write_bits()
243 mask = (1 << fp->nbits) - 1; ad1843_read_multi()
280 m = ((1 << fp->nbits) - 1) << fp->lo_bit; ad1843_write_multi()
299 ret = (1 << gp->lfield->nbits); ad1843_get_gain_max()
314 unsigned short mask = (1 << gp->lfield->nbits) - 1; ad1843_get_gain()
340 unsigned short mask = (1 << gp->lfield->nbits) - 1; ad1843_set_gain()
/linux-4.1.27/net/sunrpc/
H A Dauth.c46 unsigned int nbits; param_set_hashtbl_sz() local
54 nbits = fls(num); param_set_hashtbl_sz()
55 if (num > (1U << nbits)) param_set_hashtbl_sz()
56 nbits++; param_set_hashtbl_sz()
57 if (nbits > MAX_HASHTABLE_BITS || nbits < 2) param_set_hashtbl_sz()
59 *(unsigned int *)kp->arg = nbits; param_set_hashtbl_sz()
67 unsigned int nbits; param_get_hashtbl_sz() local
69 nbits = *(unsigned int *)kp->arg; param_get_hashtbl_sz()
70 return sprintf(buffer, "%u", 1U << nbits); param_get_hashtbl_sz()
/linux-4.1.27/arch/tile/include/asm/
H A Dsmp.h128 int nbits) __cpulist_parse_crop()
130 return bitmap_parselist_crop(buf, cpumask_bits(dstp), nbits); __cpulist_parse_crop()
127 __cpulist_parse_crop(const char *buf, struct cpumask *dstp, int nbits) __cpulist_parse_crop() argument
/linux-4.1.27/drivers/mtd/nand/gpmi-nand/
H A Dgpmi-lib.c1363 * @nbits: number of bits to copy
1374 size_t nbits) gpmi_copy_bits()
1381 if (!nbits) gpmi_copy_bits()
1400 if (nbits >= (8 - src_bit_off)) { gpmi_copy_bits()
1403 src_buffer &= GENMASK(nbits - 1, 0); gpmi_copy_bits()
1404 bits_in_src_buffer += nbits; gpmi_copy_bits()
1406 nbits -= bits_in_src_buffer; gpmi_copy_bits()
1411 nbytes = nbits / 8; gpmi_copy_bits()
1462 * nbits is the number of remaining bits. It should not exceed 8 as gpmi_copy_bits()
1465 nbits %= 8; gpmi_copy_bits()
1471 if (!nbits && !bits_in_src_buffer) gpmi_copy_bits()
1475 if (nbits) gpmi_copy_bits()
1476 src_buffer |= (*src & GENMASK(nbits - 1, 0)) << gpmi_copy_bits()
1478 bits_in_src_buffer += nbits; gpmi_copy_bits()
1372 gpmi_copy_bits(u8 *dst, size_t dst_bit_off, const u8 *src, size_t src_bit_off, size_t nbits) gpmi_copy_bits() argument
H A Dgpmi-nand.h297 size_t nbits);
/linux-4.1.27/drivers/crypto/
H A Dimg-hash.c460 unsigned long long nbits; img_hash_hw_init() local
467 nbits = (u64)hdev->req->nbytes << 3; img_hash_hw_init()
468 u = nbits >> 32; img_hash_hw_init()
469 l = nbits; img_hash_hw_init()
477 dev_dbg(hdev->dev, "hw initialized, nbits: %llx\n", nbits); img_hash_hw_init()
/linux-4.1.27/arch/parisc/math-emu/
H A Ddriver.c82 extern void printbinary(unsigned long x, int nbits); handle_fpe()
/linux-4.1.27/arch/ia64/kernel/
H A Dptrace.c49 #define MASK(nbits) ((1UL << (nbits)) - 1) /* mask with NBITS bits set */
79 unsigned long nbits = (last - first + 1); \ ia64_get_scratch_nat_bits()
80 unsigned long mask = MASK(nbits) << first; \ ia64_get_scratch_nat_bits()
118 unsigned long nbits = (last - first + 1); \ ia64_put_scratch_nat_bits()
119 unsigned long mask = MASK(nbits) << first; \ ia64_put_scratch_nat_bits()
256 long num_regs, nbits; get_rnat() local
264 nbits = ia64_rse_num_regs(urnat_addr - 63, urbs_end); get_rnat()
266 nbits = 63; get_rnat()
267 mask = MASK(nbits); get_rnat()
315 long num_regs, nbits; put_rnat() local
334 nbits = 63; put_rnat()
338 nbits = ia64_rse_num_regs(urnat_addr - 63, urbs_kargs); put_rnat()
340 mask = MASK(nbits); put_rnat()
/linux-4.1.27/drivers/isdn/gigaset/
H A Disocdata.c70 "%s: acquired iso write semaphore, data[write]=%02x, nbits=%d", isowbuf_startwrite()
88 * - nbits is number of bits to append (0..24)
90 * If more than nbits bits are set in data, the extraneous bits are set in the
91 * buffer too, but the write position is only advanced by nbits.
93 static inline void isowbuf_putbits(struct isowbuf_t *iwb, u32 data, int nbits) isowbuf_putbits() argument
98 nbits += iwb->wbits; isowbuf_putbits()
99 while (nbits >= 8) { isowbuf_putbits()
103 nbits -= 8; isowbuf_putbits()
105 iwb->wbits = nbits; isowbuf_putbits()
/linux-4.1.27/arch/x86/kernel/
H A Daperture_64.c125 int nbits; read_agp() local
145 nbits = hweight16(apsize); read_agp()
146 *order = 7 - nbits; read_agp()
/linux-4.1.27/drivers/char/
H A Drandom.c597 static void credit_entropy_bits(struct entropy_store *r, int nbits) credit_entropy_bits() argument
601 int nfrac = nbits << ENTROPY_SHIFT; credit_entropy_bits()
603 if (!nbits) credit_entropy_bits()
631 * turns no matter how large nbits is. credit_entropy_bits()
657 r->entropy_total += nbits; credit_entropy_bits()
668 trace_credit_entropy_bits(r->name, nbits, credit_entropy_bits()
705 static void credit_entropy_bits_safe(struct entropy_store *r, int nbits) credit_entropy_bits_safe() argument
710 nbits = min(nbits, nbits_max); credit_entropy_bits_safe()
711 nbits = max(nbits, -nbits_max); credit_entropy_bits_safe()
713 credit_entropy_bits(r, nbits); credit_entropy_bits_safe()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Dalloc.c80 u32 start, u32 nbits, find_aligned_range()
88 while ((start < nbits) && (test_bit(start, bitmap) || find_aligned_range()
92 if (start >= nbits) find_aligned_range()
96 if (end > nbits) find_aligned_range()
79 find_aligned_range(unsigned long *bitmap, u32 start, u32 nbits, int len, int align, u32 skip_mask) find_aligned_range() argument
/linux-4.1.27/drivers/mfd/
H A Dtwl4030-irq.c93 #define SIH_INITIALIZER(modname, nbits) \
96 .bits = nbits, \
97 .bytes_ixr = DIV_ROUND_UP(nbits, 8), \
99 .bytes_edr = DIV_ROUND_UP((2*(nbits)), 8), \
/linux-4.1.27/arch/x86/include/asm/uv/
H A Duv_bau.h717 int nbits) bau_uvhubs_clear()
719 bitmap_zero(&dstp->bits[0], nbits); bau_uvhubs_clear()
727 static inline void bau_cpubits_clear(struct bau_local_cpumask *dstp, int nbits) bau_cpubits_clear() argument
729 bitmap_zero(&dstp->bits, nbits); bau_cpubits_clear()
716 bau_uvhubs_clear(struct pnmask *dstp, int nbits) bau_uvhubs_clear() argument
/linux-4.1.27/sound/oss/
H A Dsb.h67 unsigned int nbits:4; member in struct:mixer_def
H A Dsb_mixer.c240 mask = (1 << (*devc->iomap)[dev][chn].nbits) - 1; oss_change_bits()
243 shift = (*devc->iomap)[dev][chn].bitoffs - (*devc->iomap)[dev][LEFT_CHN].nbits + 1; oss_change_bits()
H A Dad1848_mixer.h63 unsigned int nbits:3; /* number of bits in register for volume */ member in struct:mixer_def
H A Dad1848.c424 if (devc->mix_devices[i][j].nbits == 0) /* Inexistent channel */ ad1848_set_recmask()
473 mask = (1 << devc->mix_devices[dev][chn].nbits) - 1; oss_change_bits()
546 if (devc->mix_devices[dev][LEFT_CHN].nbits == 0) ad1848_mixer_set()
554 if (devc->mix_devices[dev][RIGHT_CHN].nbits == 0) /* Mono control */ ad1848_mixer_set()
573 if (devc->mix_devices[dev][RIGHT_CHN].nbits == 0) ad1848_mixer_set()
/linux-4.1.27/fs/xfs/
H A Dxfs_buf_item.c192 uint nbits) xfs_buf_item_copy_iovec()
197 nbits * XFS_BLF_CHUNK); xfs_buf_item_copy_iovec()
225 uint nbits; xfs_buf_item_format_segment() local
265 nbits = 1; xfs_buf_item_format_segment()
284 first_bit, nbits); xfs_buf_item_format_segment()
290 first_bit, nbits); xfs_buf_item_format_segment()
294 nbits = 1; xfs_buf_item_format_segment()
297 nbits++; xfs_buf_item_format_segment()
186 xfs_buf_item_copy_iovec( struct xfs_log_vec *lv, struct xfs_log_iovec **vecp, struct xfs_buf *bp, uint offset, int first_bit, uint nbits) xfs_buf_item_copy_iovec() argument
H A Dxfs_log_recover.c1713 int nbits = 0; xlog_recover_do_inode_buffer() local
1743 bit += nbits; xlog_recover_do_inode_buffer()
1754 nbits = xfs_contig_bits(buf_f->blf_data_map, xlog_recover_do_inode_buffer()
1756 ASSERT(nbits > 0); xlog_recover_do_inode_buffer()
1758 reg_buf_bytes = nbits << XFS_BLF_SHIFT; xlog_recover_do_inode_buffer()
2172 int nbits; xlog_recover_do_reg_buffer() local
2184 nbits = xfs_contig_bits(buf_f->blf_data_map, xlog_recover_do_reg_buffer()
2186 ASSERT(nbits > 0); xlog_recover_do_reg_buffer()
2190 ((uint)bit << XFS_BLF_SHIFT) + (nbits << XFS_BLF_SHIFT)); xlog_recover_do_reg_buffer()
2197 * the log. Hence we need to trim nbits back to the length of xlog_recover_do_reg_buffer()
2200 if (item->ri_buf[i].i_len < (nbits << XFS_BLF_SHIFT)) xlog_recover_do_reg_buffer()
2201 nbits = item->ri_buf[i].i_len >> XFS_BLF_SHIFT; xlog_recover_do_reg_buffer()
2232 nbits<<XFS_BLF_SHIFT); /* length */ xlog_recover_do_reg_buffer()
2235 bit += nbits; xlog_recover_do_reg_buffer()
/linux-4.1.27/arch/parisc/kernel/
H A Dtraps.c49 static int printbinary(char *buf, unsigned long x, int nbits) printbinary() argument
51 unsigned long mask = 1UL << (nbits - 1); printbinary()
58 return nbits; printbinary()
/linux-4.1.27/drivers/gpio/
H A Dgpio-grgpio.c385 err = of_property_read_u32(np, "nbits", &prop); grgpio_probe()
389 "No or invalid nbits property: assume %d\n", gc->ngpio); grgpio_probe()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/phy/
H A Dphy_cmn.c2796 u8 nbits = 0; wlc_phy_nbits() local
2799 while ((abs_val >> nbits) > 0) wlc_phy_nbits()
2800 nbits++; wlc_phy_nbits()
2802 return nbits; wlc_phy_nbits()
/linux-4.1.27/fs/xfs/libxfs/
H A Dxfs_btree.h320 int nbits, /* number of bits to inspect */
H A Dxfs_btree.c667 int nbits, /* number of bits to inspect */ xfs_btree_offsets()
687 for (i = nbits - 1, imask = 1LL << i; ; i--, imask >>= 1) { xfs_btree_offsets()
1397 int nbits; xfs_btree_log_block() local
1409 nbits = XFS_BB_NUM_BITS_CRC; xfs_btree_log_block()
1411 nbits = XFS_BB_NUM_BITS; xfs_btree_log_block()
1416 nbits, &first, &last); xfs_btree_log_block()
664 xfs_btree_offsets( __int64_t fields, const short *offsets, int nbits, int *first, int *last) xfs_btree_offsets() argument
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/
H A Dcxgb2.c1172 static void bit_bang(struct adapter *adapter, int bitdata, int nbits) bit_bang() argument
1183 for (i = (nbits - 1); i > -1; i--) { bit_bang()
/linux-4.1.27/sound/soc/
H A Dsoc-ops.c842 unsigned long mask = (1UL<<mc->nbits)-1; snd_soc_get_xr_sx()
891 unsigned long mask = (1UL<<mc->nbits)-1; snd_soc_put_xr_sx()
/linux-4.1.27/fs/jfs/
H A Djfs_dmap.c428 int word, nbits, nwords; dbUpdatePMap() local
489 rbits -= nbits, dbitno += nbits) { dbUpdatePMap()
494 nbits = min(rbits, DBWORD - wbitno); dbUpdatePMap()
497 if (nbits < DBWORD) { dbUpdatePMap()
502 (ONES << (DBWORD - nbits) >> wbitno); dbUpdatePMap()
517 nbits = nwords << L2DBWORD; dbUpdatePMap()
/linux-4.1.27/drivers/input/touchscreen/
H A Dcyttsp4_core.c154 static int cyttsp4_bits_2_bytes(unsigned int nbits, size_t *max) cyttsp4_bits_2_bytes() argument
156 *max = 1UL << nbits; cyttsp4_bits_2_bytes()
157 return (nbits + 7) / 8; cyttsp4_bits_2_bytes()
/linux-4.1.27/include/sound/
H A Dsoc.h292 {.regbase = xregbase, .regcount = xregcount, .nbits = xnbits, \
1193 unsigned int regbase, regcount, nbits, invert; member in struct:soc_mreg_control
/linux-4.1.27/fs/btrfs/
H A Dscrub.c2647 int nbits; scrub_free_parity() local
2649 nbits = bitmap_weight(sparity->ebitmap, sparity->nsectors); scrub_free_parity()
2650 if (nbits) { scrub_free_parity()
2652 sctx->stat.read_errors += nbits; scrub_free_parity()
2653 sctx->stat.uncorrectable_errors += nbits; scrub_free_parity()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
H A Dxmit.c1041 u32 nbits, nsymbits, duration, nsymbols; ath_pkt_duration() local
1046 nbits = (pktlen << 3) + OFDM_PLCP_BITS; ath_pkt_duration()
1048 nsymbols = (nbits + nsymbits - 1) / nsymbits; ath_pkt_duration()
/linux-4.1.27/drivers/infiniband/hw/qib/
H A Dqib_iba7322.c186 #define SYM_FIELD_ACROSS(value, regname, fldname, nbits) \
187 (((value) >> SYM_LSB(regname, fldname)) & MASK_ACROSS(0, nbits))

Completed in 1826 milliseconds