Lines Matching refs:holder

76 	lock->holder = -1;  in recursive_lock_init_etc()
107 lock->holder = thread; in recursive_lock_lock()
134 lock->holder = thread; in recursive_lock_trylock()
151 lock->holder = -1; in recursive_lock_unlock()
172 from->holder = -1; in recursive_lock_switch_lock()
187 from->holder = thread; in recursive_lock_switch_lock()
193 to->holder = thread; in recursive_lock_switch_lock()
223 to->holder = thread; in recursive_lock_switch_from_mutex()
248 to->holder = thread; in recursive_lock_switch_from_read_lock()
279 kprintf(" holder: %" B_PRId32 "\n", lock->lock.holder); in dump_recursive_lock_info()
281 kprintf(" holder: %" B_PRId32 "\n", lock->holder); in dump_recursive_lock_info()
333 if (waiter == NULL || lock->holder >= 0) in rw_lock_unblock()
346 lock->holder = waiter->thread->id; in rw_lock_unblock()
384 lock->holder = -1; in rw_lock_init()
402 lock->holder = -1; in rw_lock_init_etc()
425 && thread_get_current_thread_id() != lock->holder) { in rw_lock_destroy()
457 if (lock->holder == thread_get_current_thread_id()) in _rw_lock_is_read_locked()
524 if (lock->holder == thread_get_current_thread_id()) { in _rw_lock_read_lock()
585 if (lock->holder == thread_get_current_thread_id()) { in _rw_lock_read_lock_with_timeout()
686 if (lock->holder == thread_get_current_thread_id()) { in _rw_lock_read_unlock()
724 if (lock->holder == thread) { in rw_lock_write_lock()
736 lock->holder = thread; in rw_lock_write_lock()
748 lock->holder = thread; in rw_lock_write_lock()
761 if (thread_get_current_thread_id() != lock->holder) { in _rw_lock_write_unlock()
775 lock->holder = -1; in _rw_lock_write_unlock()
824 kprintf(" holder: %" B_PRId32 "\n", lock->holder); in dump_rw_lock_info()
860 lock->holder = -1; in mutex_init_etc()
881 if (lock->holder != -1 && thread_get_current_thread_id() != lock->holder) { in mutex_destroy()
883 "by the caller", lock, lock->holder); in mutex_destroy()
903 lock->holder = 0; in mutex_destroy()
949 if (thread_get_current_thread_id() != lock->holder) in mutex_transfer_lock()
951 lock->holder = thread; in mutex_transfer_lock()
997 if (lock->holder < 0) { in _mutex_lock()
998 lock->holder = thread_get_current_thread_id(); in _mutex_lock()
1000 } else if (lock->holder == thread_get_current_thread_id()) { in _mutex_lock()
1002 lock->holder); in _mutex_lock()
1003 } else if (lock->holder == 0) { in _mutex_lock()
1032 ASSERT(lock->holder == waiter.thread->id); in _mutex_lock()
1048 if (thread_get_current_thread_id() != lock->holder) { in _mutex_unlock()
1051 thread_get_current_thread_id(), lock, lock->holder); in _mutex_unlock()
1068 lock->holder = waiter->thread->id; in _mutex_unlock()
1076 lock->holder = -1; in _mutex_unlock()
1099 if (lock->holder < 0) { in _mutex_lock_with_timeout()
1100 lock->holder = thread_get_current_thread_id(); in _mutex_lock_with_timeout()
1102 } else if (lock->holder == thread_get_current_thread_id()) { in _mutex_lock_with_timeout()
1104 lock->holder); in _mutex_lock_with_timeout()
1105 } else if (lock->holder == 0) { in _mutex_lock_with_timeout()
1135 ASSERT(lock->holder == waiter.thread->id); in _mutex_lock_with_timeout()
1175 ASSERT(lock->holder == waiter.thread->id); in _mutex_lock_with_timeout()
1192 if (lock->holder < 0) { in mutex_trylock()
1193 lock->holder = thread_get_current_thread_id(); in mutex_trylock()
1195 } else if (lock->holder == 0) { in mutex_trylock()
1260 kprintf(" holder: %" B_PRId32 "\n", lock->holder); in dump_mutex_info()