Lines Matching defs:lock
72 #include <sys/lock.h>
186 #define PCM_ALIVE(x) ((x) != NULL && (x)->lock != NULL && \
386 * so that the macro versions of pcm_{,un}lock can dereference them.
411 struct mtx *lock;
424 #define PCM_LOCKOWNED(d) mtx_owned((d)->lock)
425 #define PCM_LOCK(d) mtx_lock((d)->lock)
426 #define PCM_UNLOCK(d) mtx_unlock((d)->lock)
427 #define PCM_TRYLOCK(d) mtx_trylock((d)->lock)
428 #define PCM_LOCKASSERT(d) mtx_assert((d)->lock, MA_OWNED)
429 #define PCM_UNLOCKASSERT(d) mtx_assert((d)->lock, MA_NOTOWNED)
445 cv_wait(&(x)->cv, (x)->lock); \
508 panic("%s(%d): [GIANT ENTER] PCM lock owned!", \
522 panic("%s(%d): [GIANT EXIT] PCM lock owned!", \
548 cv_wait(&(x)->cv, (x)->lock); \