Lines Matching defs:curthread
285 uintptr_t owner, incr, need_wait, set_wait, curthread, next;
296 curthread = (uintptr_t)l;
299 RW_ASSERT(rw, curthread != 0);
323 incr = curthread | RW_WRITE_LOCKED;
353 if (__predict_false(RW_OWNER(rw) == curthread)) {
410 if (op == RW_READER || (rw->rw_owner & RW_THREAD) == curthread)
426 RW_ASSERT(rw, (op != RW_READER && RW_OWNER(rw) == curthread) ||
439 uintptr_t curthread, owner, decr, newown, next;
445 curthread = (uintptr_t)l;
446 RW_ASSERT(rw, curthread != 0);
457 RW_ASSERT(rw, RW_OWNER(rw) == curthread);
458 decr = curthread | RW_WRITE_LOCKED;
552 uintptr_t curthread, owner, incr, need_wait, next;
556 curthread = (uintptr_t)l;
558 RW_ASSERT(rw, curthread != 0);
565 incr = curthread | RW_WRITE_LOCKED;
581 RW_ASSERT(rw, (op != RW_READER && RW_OWNER(rw) == curthread) ||
596 uintptr_t owner, newown, next, curthread __diagused;
602 curthread = (uintptr_t)l;
603 RW_ASSERT(rw, curthread != 0);
605 RW_ASSERT(rw, RW_OWNER(rw) == curthread);
694 uintptr_t owner, curthread, newown, next;
698 curthread = (uintptr_t)l;
699 RW_ASSERT(rw, curthread != 0);
703 newown = curthread | RW_WRITE_LOCKED | (owner & ~RW_THREAD);
720 RW_ASSERT(rw, RW_OWNER(rw) == curthread);