Searched refs:bitmap (Results 1 – 6 of 6) 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 | 177 __set_bit(id & IDR_MASK, p->bitmap); in idr_mark_full() 184 while (bitmap_full(p->bitmap, IDR_SIZE)) { in idr_mark_full() 188 __set_bit((id & IDR_MASK), p->bitmap); in idr_mark_full() 237 m = find_next_zero_bit(p->bitmap, IDR_SIZE, n); in sub_alloc() 332 bitmap_clear(new->bitmap, 0, IDR_SIZE); in idr_get_empty_slot() 342 if (bitmap_full(p->bitmap, IDR_SIZE)) in idr_get_empty_slot() 343 __set_bit(0, new->bitmap); in idr_get_empty_slot() 521 __clear_bit(n, p->bitmap); in sub_remove() 527 if (likely(p != NULL && test_bit(n, p->bitmap))) { in sub_remove() 528 __clear_bit(n, p->bitmap); in sub_remove() [all …]
|
D | bitmap.c | 238 int __bitmap_weight(const unsigned long *bitmap, unsigned int bits) in __bitmap_weight() argument 244 w += hweight_long(bitmap[k]); in __bitmap_weight() 247 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight() 947 static int __reg_op(unsigned long *bitmap, unsigned int pos, int order, int reg_op) in __reg_op() argument 979 if (bitmap[index + i] & mask) in __reg_op() 987 bitmap[index + i] |= mask; in __reg_op() 992 bitmap[index + i] &= ~mask; in __reg_op() 1013 int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order) in bitmap_find_free_region() argument 1018 if (!__reg_op(bitmap, pos, order, REG_OP_ISFREE)) in bitmap_find_free_region() 1020 __reg_op(bitmap, pos, order, REG_OP_ALLOC); in bitmap_find_free_region() [all …]
|
D | test_printf.c | 292 bitmap(void) in bitmap() function 333 bitmap(); in test_pointer()
|
D | vsprintf.c | 808 char *bitmap_string(char *buf, char *end, unsigned long *bitmap, in bitmap_string() argument 831 val = (bitmap[word] >> bit) & chunkmask; in bitmap_string() 849 char *bitmap_list_string(char *buf, char *end, unsigned long *bitmap, in bitmap_list_string() argument 860 rbot = cur = find_first_bit(bitmap, nr_bits); in bitmap_list_string() 863 cur = find_next_bit(bitmap, nr_bits, cur + 1); in bitmap_list_string()
|
D | Makefile | 38 bust_spinlocks.o kasprintf.o bitmap.o scatterlist.o \
|