Lines Matching refs:mask

116 	unsigned long mask;  in set_bit()  local
130 mask = 1UL << (nr & (BITS_PER_LONG - 1)); in set_bit()
131 __BITOPS_LOOP(addr, mask, __BITOPS_OR, __BITOPS_NO_BARRIER); in set_bit()
137 unsigned long mask; in clear_bit() local
151 mask = ~(1UL << (nr & (BITS_PER_LONG - 1))); in clear_bit()
152 __BITOPS_LOOP(addr, mask, __BITOPS_AND, __BITOPS_NO_BARRIER); in clear_bit()
158 unsigned long mask; in change_bit() local
172 mask = 1UL << (nr & (BITS_PER_LONG - 1)); in change_bit()
173 __BITOPS_LOOP(addr, mask, __BITOPS_XOR, __BITOPS_NO_BARRIER); in change_bit()
180 unsigned long old, mask; in test_and_set_bit() local
182 mask = 1UL << (nr & (BITS_PER_LONG - 1)); in test_and_set_bit()
183 old = __BITOPS_LOOP(addr, mask, __BITOPS_OR, __BITOPS_BARRIER); in test_and_set_bit()
184 return (old & mask) != 0; in test_and_set_bit()
191 unsigned long old, mask; in test_and_clear_bit() local
193 mask = ~(1UL << (nr & (BITS_PER_LONG - 1))); in test_and_clear_bit()
194 old = __BITOPS_LOOP(addr, mask, __BITOPS_AND, __BITOPS_BARRIER); in test_and_clear_bit()
195 return (old & ~mask) != 0; in test_and_clear_bit()
202 unsigned long old, mask; in test_and_change_bit() local
204 mask = 1UL << (nr & (BITS_PER_LONG - 1)); in test_and_change_bit()
205 old = __BITOPS_LOOP(addr, mask, __BITOPS_XOR, __BITOPS_BARRIER); in test_and_change_bit()
206 return (old & mask) != 0; in test_and_change_bit()
403 unsigned long mask = 2 * BITS_PER_LONG - 1; in ffs() local
406 return (1 + (__flogr(-val & val) ^ (BITS_PER_LONG - 1))) & mask; in ffs()
433 unsigned long mask = 2 * BITS_PER_LONG - 1; in fls64() local
435 return (1 + (__flogr(word) ^ (BITS_PER_LONG - 1))) & mask; in fls64()