Lines Matching refs:nbits

48 bitmap_zero(unsigned long *bitmap, size_t nbits)  in bitmap_zero()  argument
51 size_t n = howmany(nbits, bpl); in bitmap_zero()
63 bitmap_empty(const unsigned long *bitmap, size_t nbits) in bitmap_empty() argument
67 for (; nbits >= bpl; nbits -= bpl) { in bitmap_empty()
72 if (nbits) { in bitmap_empty()
73 if (*bitmap & ~(~0UL << nbits)) in bitmap_empty()
86 bitmap_weight(const unsigned long *bitmap, size_t nbits) in bitmap_weight() argument
91 for (; nbits >= bpl; nbits -= bpl) in bitmap_weight()
93 if (nbits) in bitmap_weight()
94 weight += popcountl(*bitmap & ~(~0UL << nbits)); in bitmap_weight()
106 bitmap_set(unsigned long *bitmap, size_t startbit, size_t nbits) in bitmap_set() argument
115 if (nbits <= bpl - initial) { in bitmap_set()
117 *p |= ~(~0ULL << nbits) << initial; in bitmap_set()
122 nbits -= bpl - initial; in bitmap_set()
126 for (; nbits >= bpl; nbits -= bpl) in bitmap_set()
130 if (nbits) in bitmap_set()
131 *p |= ~(~0ULL << nbits); in bitmap_set()
141 bitmap_clear(unsigned long *bitmap, size_t startbit, size_t nbits) in bitmap_clear() argument
150 if (nbits <= bpl - initial) { in bitmap_clear()
152 *p &= ~(~(~0ULL << nbits) << initial); in bitmap_clear()
157 nbits -= bpl - initial; in bitmap_clear()
161 for (; nbits >= bpl; nbits -= bpl) in bitmap_clear()
165 if (nbits) in bitmap_clear()
166 *p &= ~0ULL << nbits; in bitmap_clear()
176 bitmap_copy(unsigned long *dst, const unsigned long *src, size_t nbits) in bitmap_copy() argument
179 size_t n = howmany(nbits, bpl); in bitmap_copy()
191 bitmap_complement(unsigned long *dst, const unsigned long *src, size_t nbits) in bitmap_complement() argument
194 size_t n = howmany(nbits, bpl); in bitmap_complement()
209 const unsigned long *src2, size_t nbits) in bitmap_and() argument
212 size_t n = howmany(nbits, bpl); in bitmap_and()
227 const unsigned long *src2, size_t nbits) in bitmap_andnot() argument
230 size_t n = howmany(nbits, bpl); in bitmap_andnot()
245 const unsigned long *src2, size_t nbits) in bitmap_or() argument
248 size_t n = howmany(nbits, bpl); in bitmap_or()
255 bitmap_zalloc(size_t nbits, gfp_t gfp) in bitmap_zalloc() argument
258 size_t n = howmany(nbits, bpl); in bitmap_zalloc()