Lines Matching defs:opts
204 __mtx_lock_flags(volatile uintptr_t *c, int opts, const char *file, int line)
221 WITNESS_CHECKORDER(&m->lock_object, (opts & ~MTX_RECURSE) |
224 __mtx_lock(m, curthread, opts, file, line);
225 LOCK_LOG_LOCK("LOCK", &m->lock_object, opts, m->mtx_recurse, file,
227 WITNESS_LOCK(&m->lock_object, (opts & ~MTX_RECURSE) | LOP_EXCLUSIVE,
233 __mtx_unlock_flags(volatile uintptr_t *c, int opts, const char *file, int line)
247 WITNESS_UNLOCK(&m->lock_object, opts | LOP_EXCLUSIVE, file, line);
248 LOCK_LOG_LOCK("UNLOCK", &m->lock_object, opts, m->mtx_recurse, file,
254 __mtx_unlock(m, curthread, opts, file, line);
259 __mtx_lock_spin_flags(volatile uintptr_t *c, int opts, const char *file,
276 (opts & MTX_RECURSE) != 0,
279 opts &= ~MTX_RECURSE;
280 WITNESS_CHECKORDER(&m->lock_object, opts | LOP_NEWORDER | LOP_EXCLUSIVE,
282 __mtx_lock_spin(m, curthread, opts, file, line);
283 LOCK_LOG_LOCK("LOCK", &m->lock_object, opts, m->mtx_recurse, file,
285 WITNESS_LOCK(&m->lock_object, opts | LOP_EXCLUSIVE, file, line);
289 __mtx_unlock_spin_flags(volatile uintptr_t *c, int opts, const char *file,
304 WITNESS_UNLOCK(&m->lock_object, opts | LOP_EXCLUSIVE, file, line);
305 LOCK_LOG_LOCK("UNLOCK", &m->lock_object, opts, m->mtx_recurse, file,
318 _mtx_trylock_flags_(volatile uintptr_t *c, int opts, const char *file, int line)
342 (opts & MTX_RECURSE) != 0)) {
348 opts &= ~MTX_RECURSE;
350 LOCK_LOG_TRY("LOCK", &m->lock_object, opts, rval, file, line);
352 WITNESS_LOCK(&m->lock_object, opts | LOP_EXCLUSIVE | LOP_TRYLOCK,
371 __mtx_lock_sleep(volatile uintptr_t *c, uintptr_t tid, int opts,
401 (opts & MTX_RECURSE) != 0,
404 opts &= ~MTX_RECURSE;
407 if (LOCK_LOG_TEST(&m->lock_object, opts))
411 opts &= ~MTX_RECURSE;
418 if (LOCK_LOG_TEST(&m->lock_object, opts))
579 _mtx_lock_spin_cookie(volatile uintptr_t *c, uintptr_t tid, int opts,
597 if (LOCK_LOG_TEST(&m->lock_object, opts))
630 if (LOCK_LOG_TEST(&m->lock_object, opts))
645 thread_lock_flags_(struct thread *td, int opts, const char *file, int line)
681 opts | LOP_NEWORDER | LOP_EXCLUSIVE, file, line, NULL);
718 LOCK_LOG_LOCK("LOCK", &m->lock_object, opts, m->mtx_recurse, file,
720 WITNESS_LOCK(&m->lock_object, opts | LOP_EXCLUSIVE, file, line);
764 __mtx_unlock_sleep(volatile uintptr_t *c, int opts, const char *file, int line)
777 if (LOCK_LOG_TEST(&m->lock_object, opts))
788 if (LOCK_LOG_TEST(&m->lock_object, opts))
893 * `opts' with options contained in `opts' and name `name.' The optional
898 _mtx_init(volatile uintptr_t *c, const char *name, const char *type, int opts)
906 MPASS((opts & ~(MTX_SPIN | MTX_QUIET | MTX_RECURSE |
918 if (opts & MTX_SPIN)
923 if (opts & MTX_QUIET)
925 if (opts & MTX_RECURSE)
927 if ((opts & MTX_NOWITNESS) == 0)
929 if (opts & MTX_DUPOK)
931 if (opts & MTX_NOPROFILE)