Lines Matching defs:lock
69 #include <sys/lock.h>
179 #define PCM_ALIVE(x) ((x) != NULL && (x)->lock != NULL && \
379 * so that the macro versions of pcm_{,un}lock can dereference them.
404 struct mtx *lock;
417 #define PCM_LOCKOWNED(d) mtx_owned((d)->lock)
418 #define PCM_LOCK(d) mtx_lock((d)->lock)
419 #define PCM_UNLOCK(d) mtx_unlock((d)->lock)
420 #define PCM_TRYLOCK(d) mtx_trylock((d)->lock)
421 #define PCM_LOCKASSERT(d) mtx_assert((d)->lock, MA_OWNED)
422 #define PCM_UNLOCKASSERT(d) mtx_assert((d)->lock, MA_NOTOWNED)
438 cv_wait(&(x)->cv, (x)->lock); \
501 panic("%s(%d): [GIANT ENTER] PCM lock owned!", \
515 panic("%s(%d): [GIANT EXIT] PCM lock owned!", \
541 cv_wait(&(x)->cv, (x)->lock); \