Lines Matching refs:BITS_PER_LONG
43 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit()
45 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit()
50 start = round_down(start, BITS_PER_LONG); in _find_next_bit()
53 start += BITS_PER_LONG; in _find_next_bit()
57 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit()
59 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit()
106 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_bit()
108 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit()
124 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_zero_bit()
126 return min(idx * BITS_PER_LONG + ffz(addr[idx]), size); in find_first_zero_bit()
139 unsigned long idx = (size-1) / BITS_PER_LONG; in find_last_bit()
144 return idx * BITS_PER_LONG + __fls(val); in find_last_bit()
159 #if BITS_PER_LONG == 64 in ext2_swab()
161 #elif BITS_PER_LONG == 32 in ext2_swab()
164 #error BITS_PER_LONG not defined in ext2_swab()
178 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit_le()
180 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit_le()
185 start = round_down(start, BITS_PER_LONG); in _find_next_bit_le()
188 start += BITS_PER_LONG; in _find_next_bit_le()
192 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit_le()
194 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit_le()