Lines Matching refs:mask
33 unsigned int mask = 1UL << (nr & 31); in test_and_clear_bit() local
35 return (__atomic32_fetch_and(~mask, ptr) & mask) != 0; in test_and_clear_bit()
41 unsigned int mask = 1UL << (nr & 31); in test_and_set_bit() local
43 return (__atomic32_fetch_or(mask, ptr) & mask) != 0; in test_and_set_bit()
49 unsigned int mask = 1UL << (nr & 31); in test_and_change_bit() local
51 return (__atomic32_fetch_xor(mask, ptr) & mask) != 0; in test_and_change_bit()
72 int mask; in __clear_bit() local
75 mask = 1 << (nr & 31); in __clear_bit()
76 *a &= ~mask; in __clear_bit()
82 int mask; in __set_bit() local
85 mask = 1 << (nr & 31); in __set_bit()
86 *a |= mask; in __set_bit()
92 int mask; in __change_bit() local
95 mask = 1 << (nr & 31); in __change_bit()
96 *a ^= mask; in __change_bit()
102 int mask, retval; in __test_and_clear_bit() local
105 mask = 1 << (nr & 31); in __test_and_clear_bit()
106 retval = (mask & *a) != 0; in __test_and_clear_bit()
107 *a &= ~mask; in __test_and_clear_bit()
114 int mask, retval; in __test_and_set_bit() local
117 mask = 1 << (nr & 31); in __test_and_set_bit()
118 retval = (mask & *a) != 0; in __test_and_set_bit()
119 *a |= mask; in __test_and_set_bit()
126 int mask, retval; in __test_and_change_bit() local
129 mask = 1 << (nr & 31); in __test_and_change_bit()
130 retval = (mask & *a) != 0; in __test_and_change_bit()
131 *a ^= mask; in __test_and_change_bit()
147 int mask; in __test_bit() local
150 mask = 1 << (nr & 0x1f); in __test_bit()
151 return ((mask & *a) != 0); in __test_bit()