Lines Matching refs:addr2
13 unsigned long _find_next_and_bit(const unsigned long *addr1, const unsigned long *addr2,
15 unsigned long _find_next_andnot_bit(const unsigned long *addr1, const unsigned long *addr2,
17 unsigned long _find_next_or_bit(const unsigned long *addr1, const unsigned long *addr2,
23 unsigned long __find_nth_and_bit(const unsigned long *addr1, const unsigned long *addr2,
25 unsigned long __find_nth_andnot_bit(const unsigned long *addr1, const unsigned long *addr2,
27 unsigned long __find_nth_and_andnot_bit(const unsigned long *addr1, const unsigned long *addr2,
31 const unsigned long *addr2, unsigned long size);
84 const unsigned long *addr2, unsigned long size, in find_next_and_bit() argument
93 val = *addr1 & *addr2 & GENMASK(size - 1, offset); in find_next_and_bit()
97 return _find_next_and_bit(addr1, addr2, size, offset); in find_next_and_bit()
115 const unsigned long *addr2, unsigned long size, in find_next_andnot_bit() argument
124 val = *addr1 & ~*addr2 & GENMASK(size - 1, offset); in find_next_andnot_bit()
128 return _find_next_andnot_bit(addr1, addr2, size, offset); in find_next_andnot_bit()
145 const unsigned long *addr2, unsigned long size, in find_next_or_bit() argument
154 val = (*addr1 | *addr2) & GENMASK(size - 1, offset); in find_next_or_bit()
158 return _find_next_or_bit(addr1, addr2, size, offset); in find_next_or_bit()
251 unsigned long find_nth_and_bit(const unsigned long *addr1, const unsigned long *addr2, in find_nth_and_bit() argument
258 unsigned long val = *addr1 & *addr2 & GENMASK(size - 1, 0); in find_nth_and_bit()
263 return __find_nth_and_bit(addr1, addr2, size, n); in find_nth_and_bit()
278 unsigned long find_nth_andnot_bit(const unsigned long *addr1, const unsigned long *addr2, in find_nth_andnot_bit() argument
285 unsigned long val = *addr1 & (~*addr2) & GENMASK(size - 1, 0); in find_nth_andnot_bit()
290 return __find_nth_andnot_bit(addr1, addr2, size, n); in find_nth_andnot_bit()
307 const unsigned long *addr2, in find_nth_and_andnot_bit() argument
315 unsigned long val = *addr1 & *addr2 & (~*addr3) & GENMASK(size - 1, 0); in find_nth_and_andnot_bit()
320 return __find_nth_and_andnot_bit(addr1, addr2, addr3, size, n); in find_nth_and_andnot_bit()
335 const unsigned long *addr2, in find_first_and_bit() argument
339 unsigned long val = *addr1 & *addr2 & GENMASK(size - 1, 0); in find_first_and_bit()
344 return _find_first_and_bit(addr1, addr2, size); in find_first_and_bit()
403 const unsigned long *addr2, in find_next_and_bit_wrap() argument
406 unsigned long bit = find_next_and_bit(addr1, addr2, size, offset); in find_next_and_bit_wrap()
411 bit = find_first_and_bit(addr1, addr2, offset); in find_next_and_bit_wrap()
561 #define for_each_and_bit(bit, addr1, addr2, size) \ argument
563 (bit) = find_next_and_bit((addr1), (addr2), (size), (bit)), (bit) < (size);\
566 #define for_each_andnot_bit(bit, addr1, addr2, size) \ argument
568 (bit) = find_next_andnot_bit((addr1), (addr2), (size), (bit)), (bit) < (size);\
571 #define for_each_or_bit(bit, addr1, addr2, size) \ argument
573 (bit) = find_next_or_bit((addr1), (addr2), (size), (bit)), (bit) < (size);\