| /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_first_and_bit(void *bitmap, const void *bitmap2, unsigned long len) in test_find_first_and_bit() argument 58 bitmap_copy(cp, bitmap, BITMAP_LEN); in test_find_first_and_bit() 71 static int __init test_find_next_bit(const void *bitmap, unsigned long len) in test_find_next_bit() argument 78 i = find_next_bit(bitmap, BITMAP_LEN, i) + 1; in test_find_next_bit() 85 static int __init test_find_next_zero_bit(const void *bitmap, unsigned long len) in test_find_next_zero_bit() argument 92 i = find_next_zero_bit(bitmap, len, i) + 1; in test_find_next_zero_bit() [all …]
|
| D | idr.c | 386 struct ida_bitmap *bitmap, *alloc = NULL; in ida_alloc_range() local 397 bitmap = xas_find_marked(&xas, max / IDA_BITMAP_BITS, XA_FREE_MARK); in ida_alloc_range() 403 if (xa_is_value(bitmap)) { in ida_alloc_range() 404 unsigned long tmp = xa_to_value(bitmap); in ida_alloc_range() 416 bitmap = alloc; in ida_alloc_range() 417 if (!bitmap) in ida_alloc_range() 418 bitmap = kzalloc(sizeof(*bitmap), GFP_NOWAIT); in ida_alloc_range() 419 if (!bitmap) in ida_alloc_range() 421 bitmap->bitmap[0] = tmp; in ida_alloc_range() 422 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 | 338 unsigned int __bitmap_weight(const unsigned long *bitmap, unsigned int bits) in __bitmap_weight() argument 340 return BITMAP_WEIGHT(bitmap[idx], bits); in __bitmap_weight() 743 void bitmap_free(const unsigned long *bitmap) in bitmap_free() argument 745 kfree(bitmap); in bitmap_free() 751 unsigned long *bitmap = data; in devm_bitmap_free() local 753 bitmap_free(bitmap); in devm_bitmap_free() 759 unsigned long *bitmap; in devm_bitmap_alloc() local 762 bitmap = bitmap_alloc(nbits, flags); in devm_bitmap_alloc() 763 if (!bitmap) in devm_bitmap_alloc() 766 ret = devm_add_action_or_reset(dev, devm_bitmap_free, bitmap); in devm_bitmap_alloc() [all …]
|
| D | test_bitmap.c | 91 const unsigned long *bitmap, unsigned int nbits) in __check_eq_pbl() argument 93 snprintf(pbl_buffer, sizeof(pbl_buffer), "%*pbl", nbits, bitmap); in __check_eq_pbl() 189 #define expect_eq_bitmap(...) __expect_eq(bitmap, ##__VA_ARGS__) 1096 const unsigned long *bitmap; member 1208 n = bitmap_print_bitmask_to_buf(print_buf, t->bitmap, t->nbits, in test_bitmap_print_buf() 1213 n = bitmap_print_list_to_buf(print_buf, t->bitmap, t->nbits, in test_bitmap_print_buf() 1220 n = bitmap_print_list_to_buf(print_buf, t->bitmap, t->nbits, in test_bitmap_print_buf() 1234 DECLARE_BITMAP(bitmap, BITS_PER_LONG); in test_bitmap_const_eval() 1249 bitmap_clear(bitmap, 0, BITS_PER_LONG); in test_bitmap_const_eval() 1250 if (!test_bit(7, bitmap)) in test_bitmap_const_eval() [all …]
|
| D | bitmap-str.c | 220 static void bitmap_set_region(const struct region *r, unsigned long *bitmap) in bitmap_set_region() argument 225 bitmap_set(bitmap, start, min(r->end - start + 1, r->off)); in bitmap_set_region() 478 u32 *bitmap = (u32 *)maskp; in bitmap_parse() local 491 end = bitmap_get_x32_reverse(start, end, &bitmap[chunk ^ 1]); in bitmap_parse() 493 end = bitmap_get_x32_reverse(start, end, &bitmap[chunk]); in bitmap_parse()
|
| D | test_printf.c | 558 bitmap(void) in bitmap() function 776 bitmap(); in test_pointer()
|
| D | Makefile | 47 bust_spinlocks.o kasprintf.o bitmap.o scatterlist.o \ 52 generic-radix-tree.o bitmap-str.o
|
| D | vsprintf.c | 1195 char *bitmap_string(char *buf, char *end, const unsigned long *bitmap, in bitmap_string() argument 1203 if (check_pointer(&buf, end, bitmap, spec)) in bitmap_string() 1221 val = (bitmap[word] >> bit) & chunkmask; in bitmap_string() 1239 char *bitmap_list_string(char *buf, char *end, const unsigned long *bitmap, in bitmap_list_string() argument 1246 if (check_pointer(&buf, end, bitmap, spec)) in bitmap_list_string() 1249 for_each_set_bitrange(rbot, rtop, bitmap, nr_bits) { in bitmap_list_string()
|
| D | Kconfig.debug | 2479 Enable this option to test the bitmap functions at boot.
|
| /lib/pldmfw/ |
| D | pldmfw.c | 739 unsigned long *bitmap = data->matching_record->component_bitmap; in pldm_send_component_tables() local 747 if (!test_bit(index, bitmap)) in pldm_send_component_tables() 753 if (index == find_first_bit(bitmap, data->component_bitmap_len)) in pldm_send_component_tables() 755 if (index == find_last_bit(bitmap, data->component_bitmap_len)) in pldm_send_component_tables() 781 unsigned long *bitmap = data->matching_record->component_bitmap; in pldm_flash_components() local 789 if (!test_bit(index, bitmap)) in pldm_flash_components()
|
| /lib/fonts/ |
| D | Kconfig | 120 Terminus Font is a clean, fixed width bitmap font, designed
|