Lines Matching refs:old
5 static inline unsigned __bo_cas(volatile unsigned *p, unsigned old, unsigned new) in __bo_cas() argument
9 : "r"(old), "z"(p) in __bo_cas()
16 unsigned mask, old; in set_bit() local
22 do old = *a; in set_bit()
23 while (__bo_cas(a, old, old|mask) != old); in set_bit()
28 unsigned mask, old; in clear_bit() local
34 do old = *a; in clear_bit()
35 while (__bo_cas(a, old, old&~mask) != old); in clear_bit()
40 unsigned mask, old; in change_bit() local
46 do old = *a; 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
58 do old = *a; 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
72 do old = *a; 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
86 do old = *a; 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()