Lines Matching refs:bitmap

37 static DECLARE_BITMAP(bitmap, BITMAP_LEN) __initdata;
44 static int __init test_find_first_bit(void *bitmap, unsigned long len) in test_find_first_bit() argument
51 i = find_first_bit(bitmap, len); in test_find_first_bit()
52 __clear_bit(i, bitmap); in test_find_first_bit()
60 static int __init test_find_next_bit(const void *bitmap, unsigned long len) in test_find_next_bit() argument
67 i = find_next_bit(bitmap, BITMAP_LEN, i) + 1; in test_find_next_bit()
74 static int __init test_find_next_zero_bit(const void *bitmap, unsigned long len) in test_find_next_zero_bit() argument
81 i = find_next_zero_bit(bitmap, len, i) + 1; in test_find_next_zero_bit()
88 static int __init test_find_last_bit(const void *bitmap, unsigned long len) in test_find_last_bit() argument
96 l = find_last_bit(bitmap, len); in test_find_last_bit()
107 static int __init test_find_next_and_bit(const void *bitmap, in test_find_next_and_bit() argument
115 i = find_next_and_bit(bitmap, bitmap2, BITMAP_LEN, i+1); in test_find_next_and_bit()
129 get_random_bytes(bitmap, sizeof(bitmap)); in find_bit_test()
132 test_find_next_bit(bitmap, BITMAP_LEN); in find_bit_test()
133 test_find_next_zero_bit(bitmap, BITMAP_LEN); in find_bit_test()
134 test_find_last_bit(bitmap, BITMAP_LEN); in find_bit_test()
140 test_find_first_bit(bitmap, BITMAP_LEN / 10); in find_bit_test()
141 test_find_next_and_bit(bitmap, bitmap2, BITMAP_LEN); in find_bit_test()
145 bitmap_zero(bitmap, BITMAP_LEN); in find_bit_test()
149 __set_bit(prandom_u32() % BITMAP_LEN, bitmap); in find_bit_test()
153 test_find_next_bit(bitmap, BITMAP_LEN); in find_bit_test()
154 test_find_next_zero_bit(bitmap, BITMAP_LEN); in find_bit_test()
155 test_find_last_bit(bitmap, BITMAP_LEN); in find_bit_test()
156 test_find_first_bit(bitmap, BITMAP_LEN); in find_bit_test()
157 test_find_next_and_bit(bitmap, bitmap2, BITMAP_LEN); in find_bit_test()