Lines Matching defs:lck
402 lck_spin_t *lck,
414 lck_spin_unlock(lck);
417 lck_spin_lock(lck);
421 lck_spin_unlock(lck);
432 lck_spin_t *lck,
445 lck_spin_unlock(lck);
448 lck_spin_lock(lck);
452 lck_spin_unlock(lck);
463 lck_mtx_t *lck,
471 (int)lck, (int)lck_sleep_action, (int)event, (int)interruptible, 0);
478 lck_mtx_unlock(lck);
481 lck_mtx_lock(lck);
485 lck_mtx_unlock(lck);
498 lck_mtx_t *lck,
507 (int)lck, (int)lck_sleep_action, (int)event, (int)interruptible, 0);
514 lck_mtx_unlock(lck);
517 lck_mtx_lock(lck);
521 lck_mtx_unlock(lck);
538 lck_mtx_t *lck,
553 if (lck->lck_mtx_tag != LCK_MTX_TAG_INDIRECT)
554 mutex = lck;
556 mutex = &lck->lck_mtx_ptr->lck_mtx;
558 KERNEL_DEBUG(MACHDBG_CODE(DBG_MACH_LOCKS, LCK_MTX_LCK_WAIT_CODE) | DBG_FUNC_START, (int)lck, (int)holder, 0, 0, 0);
574 holder->sched_pri, priority, (int)holder, (int)lck, 0);
593 assert_wait((event_t)(((unsigned int*)lck)+((sizeof(lck_mtx_t)-1)/sizeof(unsigned int))), THREAD_UNINT);
605 if (lck->lck_mtx_tag != LCK_MTX_TAG_INDIRECT) {
606 LOCKSTAT_RECORD(LS_LCK_MTX_LOCK_BLOCK, lck,
609 LOCKSTAT_RECORD(LS_LCK_MTX_EXT_LOCK_BLOCK, lck,
628 lck_mtx_t *lck)
633 if (lck->lck_mtx_tag != LCK_MTX_TAG_INDIRECT)
634 mutex = lck;
636 mutex = &lck->lck_mtx_ptr->lck_mtx;
655 thread->sched_pri, priority, 0, (int)lck, 0);
677 lck_mtx_t *lck,
683 if (lck->lck_mtx_tag != LCK_MTX_TAG_INDIRECT)
684 mutex = lck;
686 mutex = &lck->lck_mtx_ptr->lck_mtx;
689 KERNEL_DEBUG(MACHDBG_CODE(DBG_MACH_LOCKS, LCK_MTX_UNLCK_WAKEUP_CODE) | DBG_FUNC_START, (int)lck, (int)holder, 0, 0, 0);
704 thread->sched_pri, DEPRESSPRI, 0, (int)lck, 0);
714 0, (int)lck, 0);
724 thread_wakeup_one((event_t)(((unsigned int*)lck)+(sizeof(lck_mtx_t)-1)/sizeof(unsigned int)));
731 lck_mtx_t *lck)
733 assert(lck->lck_mtx_waiters > 0);
734 thread_wakeup_one((event_t)(((unsigned int*)lck)+(sizeof(lck_mtx_t)-1)/sizeof(unsigned int)));
736 KERNEL_DEBUG(MACHDBG_CODE(DBG_MACH_LOCKS, LCK_MTX_UNLCK_WAKEUP_CODE) | DBG_FUNC_NONE, (int)lck, 0, 0, 1, 0);
742 LOCKSTAT_RECORD(LS_LCK_MTX_UNLOCK_RELEASE, lck, 0);
791 lck_mtx_t *lck;
797 lck = (lck_mtx_t *) mutex;
798 if (lck->lck_mtx_tag == LCK_MTX_TAG_INDIRECT)
799 lck = &lck->lck_mtx_ptr->lck_mtx;
801 if (! lck->lck_mtx_waiters) {
817 lck_rw_t *lck,
830 lck_rw_type = lck_rw_done(lck);
834 lck_rw_lock(lck, lck_rw_type);
836 lck_rw_lock_exclusive(lck);
838 lck_rw_lock_shared(lck);
843 (void)lck_rw_done(lck);
854 lck_rw_t *lck,
868 lck_rw_type = lck_rw_done(lck);
872 lck_rw_lock(lck, lck_rw_type);
874 lck_rw_lock_exclusive(lck);
876 lck_rw_lock_shared(lck);
881 (void)lck_rw_done(lck);