Lines Matching refs:len
36 static int __init test_find_first_bit(void *bitmap, unsigned long len) in test_find_first_bit() argument
42 for (cnt = i = 0; i < len; cnt++) { in test_find_first_bit()
43 i = find_first_bit(bitmap, len); 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
61 for (cnt = i = 0; i < len; cnt++) { in test_find_first_and_bit()
62 i = find_first_and_bit(cp, bitmap2, 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
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()
99 static int __init test_find_last_bit(const void *bitmap, unsigned long len) in test_find_last_bit() argument
107 l = find_last_bit(bitmap, len); in test_find_last_bit()
108 if (l >= len) in test_find_last_bit()
110 len = l; in test_find_last_bit()
111 } while (len); in test_find_last_bit()
118 static int __init test_find_nth_bit(const unsigned long *bitmap, unsigned long len) in test_find_nth_bit() argument
120 unsigned long l, n, w = bitmap_weight(bitmap, len); in test_find_nth_bit()
125 l = find_nth_bit(bitmap, len, n); in test_find_nth_bit()
126 WARN_ON(l >= len); in test_find_nth_bit()
135 const void *bitmap2, unsigned long len) in test_find_next_and_bit() argument