Lines Matching defs:bitmap
3 * Test cases for bitmap API.
8 #include <linux/bitmap.h>
92 const unsigned long *bitmap, unsigned int nbits)
94 snprintf(pbl_buffer, sizeof(pbl_buffer), "%*pbl", nbits, bitmap);
189 #define expect_eq_bitmap(...) __expect_eq(bitmap, ##__VA_ARGS__)
726 /* set bitmap to test case */
1032 const unsigned long *bitmap;
1144 n = bitmap_print_bitmask_to_buf(print_buf, t->bitmap, t->nbits,
1149 n = bitmap_print_list_to_buf(print_buf, t->bitmap, t->nbits,
1156 n = bitmap_print_list_to_buf(print_buf, t->bitmap, t->nbits,
1170 DECLARE_BITMAP(bitmap, BITS_PER_LONG);
1185 * Equals to `unsigned long bitmap[1] = { GENMASK(6, 5), }`.
1187 * the same time stops treating @bitmap and @bitopvar as compile-time
1192 bitmap_clear(bitmap, 0, BITS_PER_LONG);
1193 if (!test_bit(7, bitmap))
1194 bitmap_set(bitmap, 5, 2);
1206 res = bitmap_weight(bitmap, 20);