Lines Matching refs:mask
16 unsigned mask, old; in set_bit() local
20 mask = 1U << (nr & 0x1f); in set_bit()
23 while (__bo_cas(a, old, old|mask) != old); in set_bit()
28 unsigned mask, old; in clear_bit() local
32 mask = 1U << (nr & 0x1f); in clear_bit()
35 while (__bo_cas(a, old, old&~mask) != old); in clear_bit()
40 unsigned mask, old; in change_bit() local
44 mask = 1U << (nr & 0x1f); in change_bit()
47 while (__bo_cas(a, old, old^mask) != old); in change_bit()
52 unsigned mask, old; in test_and_set_bit() local
56 mask = 1U << (nr & 0x1f); in test_and_set_bit()
59 while (__bo_cas(a, old, old|mask) != old); in test_and_set_bit()
61 return !!(old & mask); in test_and_set_bit()
66 unsigned mask, old; in test_and_clear_bit() local
70 mask = 1U << (nr & 0x1f); in test_and_clear_bit()
73 while (__bo_cas(a, old, old&~mask) != old); in test_and_clear_bit()
75 return !!(old & mask); in test_and_clear_bit()
80 unsigned mask, old; in test_and_change_bit() local
84 mask = 1U << (nr & 0x1f); in test_and_change_bit()
87 while (__bo_cas(a, old, old^mask) != old); in test_and_change_bit()
89 return !!(old & mask); in test_and_change_bit()