Lines Matching refs:BITS_PER_LONG
39 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit()
41 tmp &= addr2[start / BITS_PER_LONG]; 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()
53 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit()
55 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit()
102 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_bit()
104 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit()
120 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_zero_bit()
122 return min(idx * BITS_PER_LONG + ffz(addr[idx]), size); in find_first_zero_bit()
135 unsigned long idx = (size-1) / BITS_PER_LONG; in find_last_bit()
140 return idx * BITS_PER_LONG + __fls(val); in find_last_bit()
155 #if BITS_PER_LONG == 64 in ext2_swab()
157 #elif BITS_PER_LONG == 32 in ext2_swab()
160 #error BITS_PER_LONG not defined in ext2_swab()
174 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit_le()
176 tmp &= addr2[start / BITS_PER_LONG]; 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()
188 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit_le()
190 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit_le()