Lines Matching defs:nbits
28 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) argument
30 #define bitmap_size(nbits) (ALIGN(nbits, BITS_PER_LONG) / BITS_PER_BYTE) argument
32 static inline void bitmap_zero(unsigned long *dst, unsigned int nbits) in bitmap_zero()
41 static inline void bitmap_fill(unsigned long *dst, unsigned int nbits) in bitmap_fill()
51 static inline bool bitmap_empty(const unsigned long *src, unsigned int nbits) in bitmap_empty()
59 static inline bool bitmap_full(const unsigned long *src, unsigned int nbits) in bitmap_full()
67 static inline unsigned int bitmap_weight(const unsigned long *src, unsigned int nbits) in bitmap_weight()
75 const unsigned long *src2, unsigned int nbits) in bitmap_or()
83 static inline unsigned long *bitmap_alloc(unsigned int nbits, gfp_t flags __maybe_unused) in bitmap_alloc()
92 static inline unsigned long *bitmap_zalloc(int nbits) in bitmap_zalloc()
124 const unsigned long *src2, unsigned int nbits) in bitmap_and()
139 const unsigned long *src2, unsigned int nbits) in bitmap_equal()
151 unsigned int nbits) in bitmap_intersects()
159 static inline void bitmap_set(unsigned long *map, unsigned int start, unsigned int nbits) in bitmap_set()
175 unsigned int nbits) in bitmap_clear()