Lines Matching refs:old
57 unsigned old, new;
60 old = atomic_read(&rc->rc_count);
61 if (old == 0)
63 new = old + 1;
64 } while (atomic_cmpxchg(&rc->rc_count, old, new) != old);
66 return old;
72 unsigned old, new;
75 old = atomic_read(&rc->rc_count);
76 KASSERT(old);
77 new = old - 1;
78 } while (atomic_cmpxchg(&rc->rc_count, old, new) != old);
80 return old == 1;
94 unsigned old, new;
97 old = atomic_read(&rc->rc_count);
98 KASSERT(old);
99 if (old == 1) {
106 new = old - 1;
107 } while (atomic_cmpxchg(&rc->rc_count, old, new) != old);
109 KASSERT(old != 1);