Lines Matching refs:bit

433 	unsigned long bit = find_next_and_bit(addr1, addr2, size, offset);  in find_next_and_bit_wrap()  local
435 if (bit < size || offset == 0) in find_next_and_bit_wrap()
436 return bit; in find_next_and_bit_wrap()
438 bit = find_first_and_bit(addr1, addr2, offset); in find_next_and_bit_wrap()
439 return bit < offset ? bit : size; in find_next_and_bit_wrap()
455 unsigned long bit = find_next_bit(addr, size, offset); in find_next_bit_wrap() local
457 if (bit < size || offset == 0) in find_next_bit_wrap()
458 return bit; in find_next_bit_wrap()
460 bit = find_first_bit(addr, offset); in find_next_bit_wrap()
461 return bit < offset ? bit : size; in find_next_bit_wrap()
472 unsigned long bit; in __for_each_wrap() local
477 bit = find_next_bit(bitmap, size, n); in __for_each_wrap()
478 if (bit < size) in __for_each_wrap()
479 return bit; in __for_each_wrap()
486 bit = find_next_bit(bitmap, start, n); in __for_each_wrap()
487 return bit < start ? bit : size; in __for_each_wrap()
585 #define for_each_set_bit(bit, addr, size) \ argument
586 for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++)
588 #define for_each_and_bit(bit, addr1, addr2, size) \ argument
589 for ((bit) = 0; \
590 (bit) = find_next_and_bit((addr1), (addr2), (size), (bit)), (bit) < (size);\
591 (bit)++)
593 #define for_each_andnot_bit(bit, addr1, addr2, size) \ argument
594 for ((bit) = 0; \
595 (bit) = find_next_andnot_bit((addr1), (addr2), (size), (bit)), (bit) < (size);\
596 (bit)++)
598 #define for_each_or_bit(bit, addr1, addr2, size) \ argument
599 for ((bit) = 0; \
600 (bit) = find_next_or_bit((addr1), (addr2), (size), (bit)), (bit) < (size);\
601 (bit)++)
604 #define for_each_set_bit_from(bit, addr, size) \ argument
605 for (; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++)
607 #define for_each_clear_bit(bit, addr, size) \ argument
608 for ((bit) = 0; \
609 (bit) = find_next_zero_bit((addr), (size), (bit)), (bit) < (size); \
610 (bit)++)
613 #define for_each_clear_bit_from(bit, addr, size) \ argument
614 for (; (bit) = find_next_zero_bit((addr), (size), (bit)), (bit) < (size); (bit)++)
680 #define for_each_set_bit_wrap(bit, addr, size, start) \ argument
681 for ((bit) = find_next_bit_wrap((addr), (size), (start)); \
682 (bit) < (size); \
683 (bit) = __for_each_wrap((addr), (size), (start), (bit) + 1))