Lines Matching refs:mask

122 	unsigned long mask;  in set_bit()  local
136 mask = 1UL << (nr & (BITS_PER_LONG - 1)); in set_bit()
137 __BITOPS_LOOP(addr, mask, __BITOPS_OR, __BITOPS_NO_BARRIER); in set_bit()
143 unsigned long mask; in clear_bit() local
157 mask = ~(1UL << (nr & (BITS_PER_LONG - 1))); in clear_bit()
158 __BITOPS_LOOP(addr, mask, __BITOPS_AND, __BITOPS_NO_BARRIER); in clear_bit()
164 unsigned long mask; in change_bit() local
178 mask = 1UL << (nr & (BITS_PER_LONG - 1)); in change_bit()
179 __BITOPS_LOOP(addr, mask, __BITOPS_XOR, __BITOPS_NO_BARRIER); in change_bit()
186 unsigned long old, mask; in test_and_set_bit() local
188 mask = 1UL << (nr & (BITS_PER_LONG - 1)); in test_and_set_bit()
189 old = __BITOPS_LOOP(addr, mask, __BITOPS_OR, __BITOPS_BARRIER); in test_and_set_bit()
190 return (old & mask) != 0; in test_and_set_bit()
197 unsigned long old, mask; in test_and_clear_bit() local
199 mask = ~(1UL << (nr & (BITS_PER_LONG - 1))); in test_and_clear_bit()
200 old = __BITOPS_LOOP(addr, mask, __BITOPS_AND, __BITOPS_BARRIER); in test_and_clear_bit()
201 return (old & ~mask) != 0; in test_and_clear_bit()
208 unsigned long old, mask; in test_and_change_bit() local
210 mask = 1UL << (nr & (BITS_PER_LONG - 1)); in test_and_change_bit()
211 old = __BITOPS_LOOP(addr, mask, __BITOPS_XOR, __BITOPS_BARRIER); in test_and_change_bit()
212 return (old & mask) != 0; in test_and_change_bit()
389 unsigned long mask = 2 * BITS_PER_LONG - 1; in ffs() local
392 return (1 + (__flogr(-val & val) ^ (BITS_PER_LONG - 1))) & mask; in ffs()
419 unsigned long mask = 2 * BITS_PER_LONG - 1; in fls64() local
421 return (1 + (__flogr(word) ^ (BITS_PER_LONG - 1))) & mask; in fls64()