Lines Matching refs:mtx
159 lck_mtx_t *mtx)
187 if (mtx != NULL && chan != NULL && (thread_continue_t)continuation == THREAD_CONTINUE_NULL) {
199 wait_result = lck_mtx_sleep_deadline(mtx, flags, chan, catch, abstime);
201 wait_result = lck_mtx_sleep(mtx, flags, chan, catch);
206 if (mtx)
207 lck_mtx_unlock(mtx);
218 if (mtx && !dropmutex) {
220 lck_mtx_lock_spin(mtx);
222 lck_mtx_lock(mtx);
232 if (mtx && !dropmutex) {
234 lck_mtx_lock_spin(mtx);
236 lck_mtx_lock(mtx);
248 ut->uu_mtx = mtx;
255 if (mtx && !dropmutex) {
257 lck_mtx_lock_spin(mtx);
259 lck_mtx_lock(mtx);
318 lck_mtx_t *mtx,
329 return _sleep((caddr_t)chan, pri, wmsg, abstime, continuation, mtx);
335 lck_mtx_t *mtx,
347 return _sleep((caddr_t)chan, pri, wmsg, abstime, (int (*)(int))0, mtx);
353 lck_mtx_t *mtx,
358 return _sleep((caddr_t)chan, pri, wmsg, abstime, (int (*)(int))0, mtx);