Lines Matching refs:idx
30 unsigned long idx, val, sz = (size); \
32 for (idx = 0; idx * BITS_PER_LONG < sz; idx++) { \
35 sz = min(idx * BITS_PER_LONG + __ffs(MUNGE(val)), sz); \
52 unsigned long mask, idx, tmp, sz = (size), __start = (start); \
58 idx = __start / BITS_PER_LONG; \
61 if ((idx + 1) * BITS_PER_LONG >= sz) \
63 idx++; \
66 sz = min(idx * BITS_PER_LONG + __ffs(MUNGE(tmp)), sz); \
73 unsigned long sz = (size), nr = (num), idx, w, tmp; \
75 for (idx = 0; (idx + 1) * BITS_PER_LONG <= sz; idx++) { \
76 if (idx * BITS_PER_LONG + nr >= sz) \
90 sz = min(idx * BITS_PER_LONG + fns(tmp, nr), sz); \
101 return FIND_FIRST_BIT(addr[idx], /* nop */, size); in _find_first_bit()
114 return FIND_FIRST_BIT(addr1[idx] & addr2[idx], /* nop */, size); in _find_first_and_bit()
125 return FIND_FIRST_BIT(~addr[idx], /* nop */, size); in _find_first_zero_bit()
133 return FIND_NEXT_BIT(addr[idx], /* nop */, nbits, start); in _find_next_bit()
140 return FIND_NTH_BIT(addr[idx], size, n); in __find_nth_bit()
147 return FIND_NTH_BIT(addr1[idx] & addr2[idx], size, n); in __find_nth_and_bit()
154 return FIND_NTH_BIT(addr1[idx] & ~addr2[idx], size, n); in __find_nth_andnot_bit()
163 return FIND_NTH_BIT(addr1[idx] & addr2[idx] & ~addr3[idx], size, n); in __find_nth_and_andnot_bit()
171 return FIND_NEXT_BIT(addr1[idx] & addr2[idx], /* nop */, nbits, start); in _find_next_and_bit()
180 return FIND_NEXT_BIT(addr1[idx] & ~addr2[idx], /* nop */, nbits, start); in _find_next_andnot_bit()
189 return FIND_NEXT_BIT(addr1[idx] | addr2[idx], /* nop */, nbits, start); in _find_next_or_bit()
198 return FIND_NEXT_BIT(~addr[idx], /* nop */, nbits, start); in _find_next_zero_bit()
208 unsigned long idx = (size-1) / BITS_PER_LONG; in _find_last_bit() local
211 val &= addr[idx]; in _find_last_bit()
213 return idx * BITS_PER_LONG + __fls(val); in _find_last_bit()
216 } while (idx--); in _find_last_bit()
245 return FIND_FIRST_BIT(~addr[idx], swab, size); in _find_first_zero_bit_le()
255 return FIND_NEXT_BIT(~addr[idx], swab, size, offset); in _find_next_zero_bit_le()
264 return FIND_NEXT_BIT(addr[idx], swab, size, offset); in _find_next_bit_le()