Lines Matching refs:current_thread
238 irq_time = current_thread()->machine.int_time_mt; in hw_spin_should_keep_spinning()
695 thread_t thread = current_thread();
709 thread_t thread = current_thread();
726 thread_t thread = current_thread();
742 thread_t thread = current_thread();
768 thread_t thread = current_thread();
781 thread_t thread = current_thread();
792 current_thread(), lock); in __hw_lock_unlock_unowned_panic()
805 if (HW_LOCK_STATE_TO_THREAD(lock->lock_data) != current_thread() && in hw_lock_unlock_internal()
837 thread = current_thread(); in hw_lock_assert()
972 __lck_require_preemption_disabled(lock, current_thread());
1044 __lck_require_preemption_disabled(lock, current_thread()); in hw_unlock_bit_nopreempt()
1391 thread_set_pending_block_hint(current_thread(), kThreadWaitSleepWithInheritor);
1730 thread_set_pending_block_hint(current_thread(), kThreadWaitSleepWithInheritor);
2036 … close a gate already closed gate %p holder %p current_thread %p", gate, holder, current_thread()); in gate_already_owned_panic()
2045 thread_t thread = current_thread(); in gate_try_close()
2060 state = GATE_THREAD_TO_STATE(current_thread()); in gate_try_close()
2065 if (holder == current_thread()) { in gate_try_close()
2080 thread_t thread = current_thread(); in gate_close()
2131 …panic("Trying to open a gate %p owned by %p from current_thread %p", gate, holder, current_thread(… in gate_not_owned_panic()
2133 …("Trying to handoff a gate %p owned by %p from current_thread %p", gate, holder, current_thread()); in gate_not_owned_panic()
2143 thread_t thread = current_thread(); in gate_open()
2242 thread_t thread = current_thread(); in gate_handoff()
2259 if (holder != current_thread()) { in gate_handoff()
2316 panic("Trying to wait on a not closed gate %p from current_thread %p", gate, current_thread()); in gate_not_closed_panic()
2318 panic("Trying to steal a not closed gate %p from current_thread %p", gate, current_thread()); in gate_not_closed_panic()
2327 thread_t thread = current_thread(); in gate_steal()
2396 holder == current_thread())) { // thread was woken up and it is the new holder in gate_wait_turnstile()
2485 assert(holder != current_thread());
2512 if (holder == current_thread()) {
2568 assert(holder == current_thread()); in gate_assert()
2670 …gate_alloc_init(). gate_free() should be used instead, gate %p thread %p", gate, current_thread()); in gate_destroy_panic()
2687 …ee a gate that was not allocated by gate_alloc_init(), gate %p thread %p", gate, current_thread()); in gate_free_panic()