Lines Matching refs:mtx
156 lck_mtx_t *mtx)
178 if (mtx != NULL && chan != NULL && (thread_continue_t)continuation == THREAD_CONTINUE_NULL) {
181 wait_result = lck_mtx_sleep_deadline(mtx, (dropmutex) ? LCK_SLEEP_UNLOCK : 0,
184 wait_result = lck_mtx_sleep(mtx, (dropmutex) ? LCK_SLEEP_UNLOCK : 0,
190 if (mtx)
191 lck_mtx_unlock(mtx);
201 if (mtx && !dropmutex)
202 lck_mtx_lock(mtx);
211 if (mtx && !dropmutex)
212 lck_mtx_lock(mtx);
223 ut->uu_mtx = mtx;
230 if (mtx && !dropmutex)
231 lck_mtx_lock(mtx);
286 lck_mtx_t *mtx,
297 return _sleep((caddr_t)chan, pri, wmsg, abstime, continuation, mtx);
303 lck_mtx_t *mtx,
315 return _sleep((caddr_t)chan, pri, wmsg, abstime, (int (*)(int))0, mtx);
321 lck_mtx_t *mtx,
326 return _sleep((caddr_t)chan, pri, wmsg, abstime, (int (*)(int))0, mtx);