Lines Matching refs:bitmap
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()
99 static int __init test_find_next_and_bit(const void *bitmap, in test_find_next_and_bit() argument
107 i = find_next_and_bit(bitmap, bitmap2, BITMAP_LEN, i + 1); in test_find_next_and_bit()
120 get_random_bytes(bitmap, sizeof(bitmap)); in find_bit_test()
123 test_find_next_bit(bitmap, BITMAP_LEN); in find_bit_test()
124 test_find_next_zero_bit(bitmap, BITMAP_LEN); in find_bit_test()
125 test_find_last_bit(bitmap, BITMAP_LEN); in find_bit_test()
131 test_find_first_bit(bitmap, BITMAP_LEN / 10); in find_bit_test()
132 test_find_next_and_bit(bitmap, bitmap2, BITMAP_LEN); in find_bit_test()
136 bitmap_zero(bitmap, BITMAP_LEN); in find_bit_test()
140 __set_bit(prandom_u32() % BITMAP_LEN, bitmap); in find_bit_test()
144 test_find_next_bit(bitmap, BITMAP_LEN); in find_bit_test()
145 test_find_next_zero_bit(bitmap, BITMAP_LEN); in find_bit_test()
146 test_find_last_bit(bitmap, BITMAP_LEN); in find_bit_test()
147 test_find_first_bit(bitmap, BITMAP_LEN); in find_bit_test()
148 test_find_next_and_bit(bitmap, bitmap2, BITMAP_LEN); in find_bit_test()