Lines Matching full:old
60 u64 old, new, actual; in bmp_test_and_clear_bit() local
63 old = bmp->bits[idx]; in bmp_test_and_clear_bit()
65 if (!(old & val)) in bmp_test_and_clear_bit()
68 new = old & ~val; in bmp_test_and_clear_bit()
69 actual = cmpxchg(&bmp->bits[idx], old, new); in bmp_test_and_clear_bit()
71 if (actual == old) in bmp_test_and_clear_bit()
84 u64 old, new, actual; in bmp_test_and_set_bit() local
87 old = bmp->bits[idx]; in bmp_test_and_set_bit()
89 if ((old & val)) in bmp_test_and_set_bit()
92 new = old | val; in bmp_test_and_set_bit()
93 actual = cmpxchg(&bmp->bits[idx], old, new); in bmp_test_and_set_bit()
95 if (actual == old) in bmp_test_and_set_bit()
108 u64 old, new, actual; in bmp_clear_bit() local
111 old = bmp->bits[idx]; in bmp_clear_bit()
112 new = old & ~val; in bmp_clear_bit()
113 actual = cmpxchg(&bmp->bits[idx], old, new); in bmp_clear_bit()
115 } while (actual != old && can_loop); in bmp_clear_bit()
123 u64 old, new, actual; in bmp_set_bit() local
126 old = bmp->bits[idx]; in bmp_set_bit()
127 new = old | val; in bmp_set_bit()
128 actual = cmpxchg(&bmp->bits[idx], old, new); in bmp_set_bit()
130 } while (actual != old && can_loop); in bmp_set_bit()