Lines Matching refs:mask
16 int mask; in set_bit() local
21 mask = 1 << (nr & 0x1f); in set_bit()
23 *a |= mask; in set_bit()
34 int mask; in clear_bit() local
39 mask = 1 << (nr & 0x1f); in clear_bit()
41 *a &= ~mask; in clear_bit()
47 int mask; in change_bit() local
52 mask = 1 << (nr & 0x1f); in change_bit()
54 *a ^= mask; in change_bit()
60 int mask, retval; in test_and_set_bit() local
65 mask = 1 << (nr & 0x1f); in test_and_set_bit()
67 retval = (mask & *a) != 0; in test_and_set_bit()
68 *a |= mask; in test_and_set_bit()
76 int mask, retval; in test_and_clear_bit() local
81 mask = 1 << (nr & 0x1f); in test_and_clear_bit()
83 retval = (mask & *a) != 0; in test_and_clear_bit()
84 *a &= ~mask; in test_and_clear_bit()
92 int mask, retval; in test_and_change_bit() local
97 mask = 1 << (nr & 0x1f); in test_and_change_bit()
99 retval = (mask & *a) != 0; in test_and_change_bit()
100 *a ^= mask; in test_and_change_bit()