/lib/ |
D | find_bit_benchmark.c | 29 static DECLARE_BITMAP(bitmap, BITMAP_LEN) __initdata; 36 static int __init test_find_first_bit(void *bitmap, unsigned long len) in test_find_first_bit() argument 43 i = find_first_bit(bitmap, len); in test_find_first_bit() 44 __clear_bit(i, bitmap); in test_find_first_bit() 52 static int __init test_find_next_bit(const void *bitmap, unsigned long len) in test_find_next_bit() argument 59 i = find_next_bit(bitmap, BITMAP_LEN, i) + 1; in test_find_next_bit() 66 static int __init test_find_next_zero_bit(const void *bitmap, unsigned long len) in test_find_next_zero_bit() argument 73 i = find_next_zero_bit(bitmap, len, i) + 1; in test_find_next_zero_bit() 80 static int __init test_find_last_bit(const void *bitmap, unsigned long len) in test_find_last_bit() argument 88 l = find_last_bit(bitmap, len); in test_find_last_bit() [all …]
|
D | idr.c | 385 struct ida_bitmap *bitmap, *alloc = NULL; in ida_alloc_range() local 396 bitmap = xas_find_marked(&xas, max / IDA_BITMAP_BITS, XA_FREE_MARK); in ida_alloc_range() 402 if (xa_is_value(bitmap)) { in ida_alloc_range() 403 unsigned long tmp = xa_to_value(bitmap); in ida_alloc_range() 415 bitmap = alloc; in ida_alloc_range() 416 if (!bitmap) in ida_alloc_range() 417 bitmap = kzalloc(sizeof(*bitmap), GFP_NOWAIT); in ida_alloc_range() 418 if (!bitmap) in ida_alloc_range() 420 bitmap->bitmap[0] = tmp; in ida_alloc_range() 421 xas_store(&xas, bitmap); in ida_alloc_range() [all …]
|
D | memweight.c | 15 const unsigned char *bitmap = ptr; in memweight() local 17 for (; bytes > 0 && ((unsigned long)bitmap) % sizeof(long); in memweight() 18 bytes--, bitmap++) in memweight() 19 ret += hweight8(*bitmap); in memweight() 24 ret += bitmap_weight((unsigned long *)bitmap, in memweight() 27 bitmap += longs * sizeof(long); in memweight() 34 for (; bytes > 0; bytes--, bitmap++) in memweight() 35 ret += hweight8(*bitmap); in memweight()
|
D | bitmap.c | 255 int __bitmap_weight(const unsigned long *bitmap, unsigned int bits) in __bitmap_weight() argument 261 w += hweight_long(bitmap[k]); in __bitmap_weight() 264 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight() 515 unsigned long *bitmap, int nbits) in bitmap_set_region() argument 523 bitmap_set(bitmap, start, min(r->end - start + 1, r->off)); in bitmap_set_region() 1032 static int __reg_op(unsigned long *bitmap, unsigned int pos, int order, int reg_op) in __reg_op() argument 1064 if (bitmap[index + i] & mask) in __reg_op() 1072 bitmap[index + i] |= mask; in __reg_op() 1077 bitmap[index + i] &= ~mask; in __reg_op() 1098 int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order) in bitmap_find_free_region() argument [all …]
|
D | test_bitmap.c | 55 const unsigned long *bitmap, unsigned int nbits) in __check_eq_pbl() argument 57 snprintf(pbl_buffer, sizeof(pbl_buffer), "%*pbl", nbits, bitmap); in __check_eq_pbl() 108 #define expect_eq_bitmap(...) __expect_eq(bitmap, ##__VA_ARGS__)
|
D | test_printf.c | 520 bitmap(void) in bitmap() function 615 bitmap(); in test_pointer()
|
D | vsprintf.c | 1133 char *bitmap_string(char *buf, char *end, unsigned long *bitmap, in bitmap_string() argument 1141 if (check_pointer(&buf, end, bitmap, spec)) in bitmap_string() 1159 val = (bitmap[word] >> bit) & chunkmask; in bitmap_string() 1177 char *bitmap_list_string(char *buf, char *end, unsigned long *bitmap, in bitmap_list_string() argument 1185 if (check_pointer(&buf, end, bitmap, spec)) in bitmap_list_string() 1188 rbot = cur = find_first_bit(bitmap, nr_bits); in bitmap_list_string() 1191 cur = find_next_bit(bitmap, nr_bits, cur + 1); in bitmap_list_string()
|
D | Makefile | 44 bust_spinlocks.o kasprintf.o bitmap.o scatterlist.o \
|
D | Kconfig.debug | 1804 Enable this option to test the bitmap functions at boot.
|
/lib/fonts/ |
D | Kconfig | 117 Terminus Font is a clean, fixed width bitmap font, designed
|