/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 | 349 unsigned int __bitmap_weight(const unsigned long *bitmap, unsigned int bits) in __bitmap_weight() argument 351 return BITMAP_WEIGHT(bitmap[idx], bits); in __bitmap_weight() 653 static void bitmap_set_region(const struct region *r, unsigned long *bitmap) in bitmap_set_region() argument 658 bitmap_set(bitmap, start, min(r->end - start + 1, r->off)); in bitmap_set_region() 911 u32 *bitmap = (u32 *)maskp; in bitmap_parse() local 924 end = bitmap_get_x32_reverse(start, end, &bitmap[chunk ^ 1]); in bitmap_parse() 926 end = bitmap_get_x32_reverse(start, end, &bitmap[chunk]); in bitmap_parse() 1247 static int __reg_op(unsigned long *bitmap, unsigned int pos, int order, int reg_op) in __reg_op() argument 1279 if (bitmap[index + i] & mask) in __reg_op() 1287 bitmap[index + i] |= mask; in __reg_op() [all …]
|
D | test_bitmap.c | 92 const unsigned long *bitmap, unsigned int nbits) in __check_eq_pbl() argument 94 snprintf(pbl_buffer, sizeof(pbl_buffer), "%*pbl", nbits, bitmap); in __check_eq_pbl() 189 #define expect_eq_bitmap(...) __expect_eq(bitmap, ##__VA_ARGS__) 1032 const unsigned long *bitmap; member 1144 n = bitmap_print_bitmask_to_buf(print_buf, t->bitmap, t->nbits, in test_bitmap_print_buf() 1149 n = bitmap_print_list_to_buf(print_buf, t->bitmap, t->nbits, in test_bitmap_print_buf() 1156 n = bitmap_print_list_to_buf(print_buf, t->bitmap, t->nbits, in test_bitmap_print_buf() 1170 DECLARE_BITMAP(bitmap, BITS_PER_LONG); in test_bitmap_const_eval() 1192 bitmap_clear(bitmap, 0, BITS_PER_LONG); in test_bitmap_const_eval() 1193 if (!test_bit(7, bitmap)) in test_bitmap_const_eval() [all …]
|
D | test_printf.c | 558 bitmap(void) in bitmap() function 802 bitmap(); in test_pointer()
|
D | vsprintf.c | 1194 char *bitmap_string(char *buf, char *end, const unsigned long *bitmap, in bitmap_string() argument 1202 if (check_pointer(&buf, end, bitmap, spec)) in bitmap_string() 1220 val = (bitmap[word] >> bit) & chunkmask; in bitmap_string() 1238 char *bitmap_list_string(char *buf, char *end, const unsigned long *bitmap, in bitmap_list_string() argument 1245 if (check_pointer(&buf, end, bitmap, spec)) in bitmap_list_string() 1248 for_each_set_bitrange(rbot, rtop, bitmap, nr_bits) { in bitmap_list_string()
|
D | Makefile | 46 bust_spinlocks.o kasprintf.o bitmap.o scatterlist.o \
|
D | Kconfig.debug | 2379 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 | 117 Terminus Font is a clean, fixed width bitmap font, designed
|