Lines Matching refs:bitmap
48 bitmap_zero(unsigned long *bitmap, size_t nbits) in bitmap_zero() argument
50 const size_t bpl = NBBY * sizeof(*bitmap); in bitmap_zero()
53 memset(bitmap, 0, n * sizeof(*bitmap)); in bitmap_zero()
63 bitmap_empty(const unsigned long *bitmap, size_t nbits) in bitmap_empty() argument
65 const size_t bpl = NBBY * sizeof(*bitmap); in bitmap_empty()
68 if (*bitmap++) 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
88 const size_t bpl = NBBY * sizeof(*bitmap); in bitmap_weight()
92 weight += popcountl(*bitmap++); 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
108 const size_t bpl = NBBY * sizeof(*bitmap); in bitmap_set()
109 unsigned long *p = bitmap + startbit/bpl; in bitmap_set()
141 bitmap_clear(unsigned long *bitmap, size_t startbit, size_t nbits) in bitmap_clear() argument
143 const size_t bpl = NBBY * sizeof(*bitmap); in bitmap_clear()
144 unsigned long *p = bitmap + startbit/bpl; in bitmap_clear()
264 bitmap_free(unsigned long *bitmap) in bitmap_free() argument
267 kfree(bitmap); in bitmap_free()