Lines Matching defs:old
214 uintptr_t old = lp->rw_wwwh;
217 return ((old & RW_LOCKED) && !(old & RW_WRITE_LOCKED));
220 return ((old & RW_OWNER) == (uintptr_t)curthread);
238 uintptr_t old, new, lock_value, lock_busy, lock_wait;
255 if (((old = lp->rw_wwwh) & lock_busy) == 0) {
256 if (casip(&lp->rw_wwwh, old, old + lock_value) != old) {
273 if ((old & RW_DOUBLE_LOCK) == RW_DOUBLE_LOCK) {
278 if ((old & RW_OWNER) == (uintptr_t)curthread) {
286 if (((old = lp->rw_wwwh) & lock_busy) == 0)
288 new = old | lock_wait;
289 } while (old != new && casip(&lp->rw_wwwh, old, new) != old);
291 if ((old & lock_busy) == 0) {
320 (old & RW_WRITE_LOCKED) ? 1 : 0,
321 old >> RW_HOLD_COUNT_SHIFT);
369 uintptr_t old, new, lock_value;
377 old = lp->rw_wwwh;
378 if (old & RW_WRITE_LOCKED) {
379 if ((old & RW_OWNER) != (uintptr_t)curthread) {
386 if ((old & RW_LOCKED) == 0) {
398 old = lp->rw_wwwh;
399 new = old - lock_value;
401 if (casip(&lp->rw_wwwh, old, new) != old) {
422 if ((old & RW_WRITE_LOCKED) &&
474 uintptr_t old;
481 if ((old = lp->rw_wwwh) & RW_WRITE_CLAIMED) {
485 if (casip(&lp->rw_wwwh, old, old + RW_READ_LOCK) == old)
540 uintptr_t old, new;
545 if (((old = lp->rw_wwwh) & ~RW_HAS_WAITERS) != RW_READ_LOCK)
547 new = old + RW_WRITE_LOCK(curthread) - RW_READ_LOCK;
548 } while (casip(&lp->rw_wwwh, old, new) != old);
583 uintptr_t old = ((rwlock_impl_t *)rwlp)->rw_wwwh;
585 ASSERT(old & RW_LOCKED);
586 return ((old & RW_LOCKED) && !(old & RW_WRITE_LOCKED));
601 uintptr_t old = ((rwlock_impl_t *)rwlp)->rw_wwwh;
603 return ((old & RW_WRITE_LOCKED) ? (kthread_t *)(old & RW_OWNER) : NULL);