Lines Matching refs:mask
149 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_test_and_clear_bit() local
152 old = atomic_and(ATOMIC_ELEM(target, bit), ~mask); in atomic_test_and_clear_bit()
154 return (old & mask) != 0; in atomic_test_and_clear_bit()
172 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_test_and_set_bit() local
175 old = atomic_or(ATOMIC_ELEM(target, bit), mask); in atomic_test_and_set_bit()
177 return (old & mask) != 0; in atomic_test_and_set_bit()
193 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_clear_bit() local
195 (void)atomic_and(ATOMIC_ELEM(target, bit), ~mask); in atomic_clear_bit()
211 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_set_bit() local
213 (void)atomic_or(ATOMIC_ELEM(target, bit), mask); in atomic_set_bit()
230 atomic_val_t mask = ATOMIC_MASK(bit); in atomic_set_bit_to() local
233 (void)atomic_or(ATOMIC_ELEM(target, bit), mask); in atomic_set_bit_to()
235 (void)atomic_and(ATOMIC_ELEM(target, bit), ~mask); in atomic_set_bit_to()