Lines Matching refs:BITS_PER_LONG
40 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit()
42 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit()
52 start = round_down(start, BITS_PER_LONG); in _find_next_bit()
55 start += BITS_PER_LONG; in _find_next_bit()
59 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit()
61 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit()
111 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_bit()
113 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit()
129 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_zero_bit()
131 return min(idx * BITS_PER_LONG + ffz(addr[idx]), size); in find_first_zero_bit()
144 unsigned long idx = (size-1) / BITS_PER_LONG; in find_last_bit()
149 return idx * BITS_PER_LONG + __fls(val); in find_last_bit()