Searched refs:bitmap (Results 1 – 4 of 4) sorted by relevance
/lib/ |
D | memweight.c | 14 const unsigned char *bitmap = ptr; in memweight() local 16 for (; bytes > 0 && ((unsigned long)bitmap) % sizeof(long); in memweight() 17 bytes--, bitmap++) in memweight() 18 ret += hweight8(*bitmap); in memweight() 23 ret += bitmap_weight((unsigned long *)bitmap, in memweight() 26 bitmap += longs * sizeof(long); in memweight() 33 for (; bytes > 0; bytes--, bitmap++) in memweight() 34 ret += hweight8(*bitmap); in memweight()
|
D | idr.c | 184 __set_bit(id & IDR_MASK, p->bitmap); in idr_mark_full() 191 while (bitmap_full(p->bitmap, IDR_SIZE)) { in idr_mark_full() 195 __set_bit((id & IDR_MASK), p->bitmap); in idr_mark_full() 245 m = find_next_zero_bit(p->bitmap, IDR_SIZE, n); in sub_alloc() 340 bitmap_clear(new->bitmap, 0, IDR_SIZE); in idr_get_empty_slot() 350 if (bitmap_full(p->bitmap, IDR_SIZE)) in idr_get_empty_slot() 351 __set_bit(0, new->bitmap); in idr_get_empty_slot() 545 __clear_bit(n, p->bitmap); in sub_remove() 551 if (likely(p != NULL && test_bit(n, p->bitmap))) { in sub_remove() 552 __clear_bit(n, p->bitmap); in sub_remove() [all …]
|
D | bitmap.c | 43 int __bitmap_empty(const unsigned long *bitmap, int bits) in __bitmap_empty() argument 47 if (bitmap[k]) in __bitmap_empty() 51 if (bitmap[k] & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_empty() 58 int __bitmap_full(const unsigned long *bitmap, int bits) in __bitmap_full() argument 62 if (~bitmap[k]) in __bitmap_full() 66 if (~bitmap[k] & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_full() 262 int __bitmap_weight(const unsigned long *bitmap, int bits) in __bitmap_weight() argument 267 w += hweight_long(bitmap[k]); in __bitmap_weight() 270 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight() 1049 static int __reg_op(unsigned long *bitmap, int pos, int order, int reg_op) in __reg_op() argument [all …]
|
D | Makefile | 25 bust_spinlocks.o hexdump.o kasprintf.o bitmap.o scatterlist.o \
|