Lines Matching refs:start
32 unsigned long start, unsigned long invert) in _find_next_bit() argument
36 if (unlikely(start >= nbits)) in _find_next_bit()
39 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit()
41 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit()
45 tmp &= BITMAP_FIRST_WORD_MASK(start); in _find_next_bit()
46 start = round_down(start, BITS_PER_LONG); in _find_next_bit()
49 start += BITS_PER_LONG; in _find_next_bit()
50 if (start >= nbits) in _find_next_bit()
53 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit()
55 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit()
59 return min(start + __ffs(tmp), nbits); in _find_next_bit()
167 unsigned long start, unsigned long invert) in _find_next_bit_le() argument
171 if (unlikely(start >= nbits)) in _find_next_bit_le()
174 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit_le()
176 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit_le()
180 tmp &= ext2_swab(BITMAP_FIRST_WORD_MASK(start)); in _find_next_bit_le()
181 start = round_down(start, BITS_PER_LONG); in _find_next_bit_le()
184 start += BITS_PER_LONG; in _find_next_bit_le()
185 if (start >= nbits) in _find_next_bit_le()
188 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit_le()
190 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit_le()
194 return min(start + __ffs(ext2_swab(tmp)), nbits); in _find_next_bit_le()