lib/libc/gen/sem.c
315
_umtx_wait_uint(volatile unsigned *mtx, unsigned id, const struct timespec *abstime)
lib/libc/gen/sem.c
330
return _umtx_op(__DEVOLATILE(void *, mtx),
lib/libc/gen/sem.c
336
_umtx_wake(volatile void *mtx)
lib/libc/gen/sem.c
338
return _umtx_op(__DEVOLATILE(void *, mtx), UMTX_OP_WAKE_PRIVATE,
lib/libc/rpc/clnt_dg.c
103
mutex_t mtx;
lib/libc/rpc/clnt_dg.c
135
mutex_init(&elem->mtx, NULL);
lib/libc/rpc/clnt_dg.c
144
mutex_unlock(&elem->mtx);
lib/libc/rpc/clnt_dg.c
345
mutex_lock(&elem->mtx);
lib/libc/rpc/clnt_dg.c
625
mutex_lock(&elem->mtx);
lib/libc/rpc/clnt_dg.c
653
mutex_lock(&elem->mtx);
lib/libc/rpc/clnt_dg.c
790
mutex_lock(&elem->mtx);
lib/libc/rpc/clnt_vc.c
132
mutex_t mtx;
lib/libc/rpc/clnt_vc.c
164
mutex_init(&elem->mtx, NULL);
lib/libc/rpc/clnt_vc.c
173
mutex_unlock(&elem->mtx);
lib/libc/rpc/clnt_vc.c
334
mutex_lock(&elem->mtx);
lib/libc/rpc/clnt_vc.c
482
mutex_lock(&elem->mtx);
lib/libc/rpc/clnt_vc.c
529
mutex_lock(&elem->mtx);
lib/libc/rpc/clnt_vc.c
641
mutex_lock(&elem->mtx);
lib/libstdthreads/cnd.c
75
cnd_timedwait(cnd_t *restrict cond, mtx_t *restrict mtx,
lib/libstdthreads/cnd.c
79
switch (pthread_cond_timedwait(cond, mtx, ts)) {
lib/libstdthreads/cnd.c
90
cnd_wait(cnd_t *cond, mtx_t *mtx)
lib/libstdthreads/cnd.c
93
if (pthread_cond_wait(cond, mtx) != 0)
lib/libstdthreads/mtx.c
109
mtx_unlock(mtx_t *mtx)
lib/libstdthreads/mtx.c
112
if (pthread_mutex_unlock(mtx) != 0)
lib/libstdthreads/mtx.c
36
mtx_destroy(mtx_t *mtx)
lib/libstdthreads/mtx.c
39
(void)pthread_mutex_destroy(mtx);
lib/libstdthreads/mtx.c
43
mtx_init(mtx_t *mtx, int type)
lib/libstdthreads/mtx.c
65
pthread_mutex_init(mtx, &attr) != 0)
lib/libstdthreads/mtx.c
72
mtx_lock(mtx_t *mtx)
lib/libstdthreads/mtx.c
75
if (pthread_mutex_lock(mtx) != 0)
lib/libstdthreads/mtx.c
81
mtx_timedlock(mtx_t *restrict mtx, const struct timespec *restrict ts)
lib/libstdthreads/mtx.c
84
switch (pthread_mutex_timedlock(mtx, ts)) {
lib/libstdthreads/mtx.c
95
mtx_trylock(mtx_t *mtx)
lib/libstdthreads/mtx.c
98
switch (pthread_mutex_trylock(mtx)) {
lib/libthr/thread/thr_umtx.c
105
_umtx_op_err(mtx, UMTX_OP_MUTEX_WAIT, 0, 0, 0);
lib/libthr/thread/thr_umtx.c
110
__thr_umutex_timedlock(struct umutex *mtx, uint32_t id,
lib/libthr/thread/thr_umtx.c
130
if ((mtx->m_flags & (UMUTEX_PRIO_PROTECT |
lib/libthr/thread/thr_umtx.c
133
owner = mtx->m_owner;
lib/libthr/thread/thr_umtx.c
135
atomic_cmpset_acq_32(&mtx->m_owner, owner,
lib/libthr/thread/thr_umtx.c
139
atomic_cmpset_acq_32(&mtx->m_owner, owner,
lib/libthr/thread/thr_umtx.c
145
ret = _umtx_op_err(mtx, UMTX_OP_MUTEX_WAIT, 0,
lib/libthr/thread/thr_umtx.c
148
ret = _umtx_op_err(mtx, UMTX_OP_MUTEX_LOCK, 0,
lib/libthr/thread/thr_umtx.c
161
__thr_umutex_unlock(struct umutex *mtx)
lib/libthr/thread/thr_umtx.c
164
return (_umtx_op_err(mtx, UMTX_OP_MUTEX_UNLOCK, 0, 0, 0));
lib/libthr/thread/thr_umtx.c
168
__thr_umutex_trylock(struct umutex *mtx)
lib/libthr/thread/thr_umtx.c
171
return (_umtx_op_err(mtx, UMTX_OP_MUTEX_TRYLOCK, 0, 0, 0));
lib/libthr/thread/thr_umtx.c
175
__thr_umutex_set_ceiling(struct umutex *mtx, uint32_t ceiling,
lib/libthr/thread/thr_umtx.c
179
return (_umtx_op_err(mtx, UMTX_OP_SET_CEILING, ceiling, oldceiling, 0));
lib/libthr/thread/thr_umtx.c
183
_thr_umtx_wait(volatile long *mtx, long id, const struct timespec *timeout)
lib/libthr/thread/thr_umtx.c
189
return (_umtx_op_err(__DEVOLATILE(void *, mtx), UMTX_OP_WAIT, id, 0,
lib/libthr/thread/thr_umtx.c
194
_thr_umtx_wait_uint(volatile u_int *mtx, u_int id,
lib/libthr/thread/thr_umtx.c
201
return (_umtx_op_err(__DEVOLATILE(void *, mtx), shared ?
lib/libthr/thread/thr_umtx.c
207
_thr_umtx_timedwait_uint(volatile u_int *mtx, u_int id, int clockid,
lib/libthr/thread/thr_umtx.c
224
return (_umtx_op_err(__DEVOLATILE(void *, mtx), shared ?
lib/libthr/thread/thr_umtx.c
230
_thr_umtx_wake(volatile void *mtx, int nr_wakeup, int shared)
lib/libthr/thread/thr_umtx.c
233
return (_umtx_op_err(__DEVOLATILE(void *, mtx), shared ?
lib/libthr/thread/thr_umtx.c
34
_thr_umutex_init(struct umutex *mtx)
lib/libthr/thread/thr_umtx.c
38
*mtx = default_mtx;
lib/libthr/thread/thr_umtx.c
50
__thr_umutex_lock(struct umutex *mtx, uint32_t id)
lib/libthr/thread/thr_umtx.c
54
if ((mtx->m_flags & (UMUTEX_PRIO_PROTECT | UMUTEX_PRIO_INHERIT)) != 0)
lib/libthr/thread/thr_umtx.c
55
return (_umtx_op_err(mtx, UMTX_OP_MUTEX_LOCK, 0, 0, 0));
lib/libthr/thread/thr_umtx.c
58
owner = mtx->m_owner;
lib/libthr/thread/thr_umtx.c
60
atomic_cmpset_acq_32(&mtx->m_owner, owner, id | owner))
lib/libthr/thread/thr_umtx.c
63
atomic_cmpset_acq_32(&mtx->m_owner, owner,
lib/libthr/thread/thr_umtx.c
70
_umtx_op_err(mtx, UMTX_OP_MUTEX_WAIT, 0, 0, 0);
lib/libthr/thread/thr_umtx.c
77
__thr_umutex_lock_spin(struct umutex *mtx, uint32_t id)
lib/libthr/thread/thr_umtx.c
83
return (__thr_umutex_lock(mtx, id));
lib/libthr/thread/thr_umtx.c
84
if ((mtx->m_flags & (UMUTEX_PRIO_PROTECT | UMUTEX_PRIO_INHERIT)) != 0)
lib/libthr/thread/thr_umtx.c
85
return (_umtx_op_err(mtx, UMTX_OP_MUTEX_LOCK, 0, 0, 0));
lib/libthr/thread/thr_umtx.c
90
owner = mtx->m_owner;
lib/libthr/thread/thr_umtx.c
92
atomic_cmpset_acq_32(&mtx->m_owner, owner,
lib/libthr/thread/thr_umtx.c
96
atomic_cmpset_acq_32(&mtx->m_owner, owner,
lib/libthr/thread/thr_umtx.h
100
if (atomic_cmpset_acq_32(&mtx->m_owner, UMUTEX_UNOWNED, id) != 0)
lib/libthr/thread/thr_umtx.h
102
if ((uint32_t)mtx->m_owner == UMUTEX_CONTESTED &&
lib/libthr/thread/thr_umtx.h
103
__predict_true((mtx->m_flags & (UMUTEX_PRIO_PROTECT |
lib/libthr/thread/thr_umtx.h
105
atomic_cmpset_acq_32(&mtx->m_owner, UMUTEX_CONTESTED,
lib/libthr/thread/thr_umtx.h
108
if (__predict_false((uint32_t)mtx->m_owner == UMUTEX_RB_OWNERDEAD) &&
lib/libthr/thread/thr_umtx.h
109
atomic_cmpset_acq_32(&mtx->m_owner, UMUTEX_RB_OWNERDEAD,
lib/libthr/thread/thr_umtx.h
112
if (__predict_false((uint32_t)mtx->m_owner == UMUTEX_RB_NOTRECOV))
lib/libthr/thread/thr_umtx.h
118
_thr_umutex_lock(struct umutex *mtx, uint32_t id)
lib/libthr/thread/thr_umtx.h
121
if (_thr_umutex_trylock2(mtx, id) == 0)
lib/libthr/thread/thr_umtx.h
123
return (__thr_umutex_lock(mtx, id));
lib/libthr/thread/thr_umtx.h
127
_thr_umutex_lock_spin(struct umutex *mtx, uint32_t id)
lib/libthr/thread/thr_umtx.h
130
if (_thr_umutex_trylock2(mtx, id) == 0)
lib/libthr/thread/thr_umtx.h
132
return (__thr_umutex_lock_spin(mtx, id));
lib/libthr/thread/thr_umtx.h
136
_thr_umutex_timedlock(struct umutex *mtx, uint32_t id,
lib/libthr/thread/thr_umtx.h
140
if (_thr_umutex_trylock2(mtx, id) == 0)
lib/libthr/thread/thr_umtx.h
142
return (__thr_umutex_timedlock(mtx, id, timeout));
lib/libthr/thread/thr_umtx.h
146
_thr_umutex_unlock2(struct umutex *mtx, uint32_t id, int *defer)
lib/libthr/thread/thr_umtx.h
151
flags = mtx->m_flags;
lib/libthr/thread/thr_umtx.h
155
if (atomic_cmpset_rel_32(&mtx->m_owner, id, noncst ?
lib/libthr/thread/thr_umtx.h
158
return (__thr_umutex_unlock(mtx));
lib/libthr/thread/thr_umtx.h
162
owner = mtx->m_owner;
lib/libthr/thread/thr_umtx.h
165
} while (__predict_false(!atomic_cmpset_rel_32(&mtx->m_owner, owner,
lib/libthr/thread/thr_umtx.h
169
(void)_umtx_op_err(mtx, UMTX_OP_MUTEX_WAKE2,
lib/libthr/thread/thr_umtx.h
178
_thr_umutex_unlock(struct umutex *mtx, uint32_t id)
lib/libthr/thread/thr_umtx.h
181
return (_thr_umutex_unlock2(mtx, id, NULL));
lib/libthr/thread/thr_umtx.h
42
int __thr_umutex_lock(struct umutex *mtx, uint32_t id) __hidden;
lib/libthr/thread/thr_umtx.h
43
int __thr_umutex_lock_spin(struct umutex *mtx, uint32_t id) __hidden;
lib/libthr/thread/thr_umtx.h
44
int __thr_umutex_timedlock(struct umutex *mtx, uint32_t id,
lib/libthr/thread/thr_umtx.h
46
int __thr_umutex_unlock(struct umutex *mtx) __hidden;
lib/libthr/thread/thr_umtx.h
47
int __thr_umutex_trylock(struct umutex *mtx) __hidden;
lib/libthr/thread/thr_umtx.h
48
int __thr_umutex_set_ceiling(struct umutex *mtx, uint32_t ceiling,
lib/libthr/thread/thr_umtx.h
51
void _thr_umutex_init(struct umutex *mtx) __hidden;
lib/libthr/thread/thr_umtx.h
54
int _thr_umtx_wait(volatile long *mtx, long exp,
lib/libthr/thread/thr_umtx.h
56
int _thr_umtx_wait_uint(volatile u_int *mtx, u_int exp,
lib/libthr/thread/thr_umtx.h
58
int _thr_umtx_timedwait_uint(volatile u_int *mtx, u_int exp, int clockid,
lib/libthr/thread/thr_umtx.h
60
int _thr_umtx_wake(volatile void *mtx, int count, int shared) __hidden;
lib/libthr/thread/thr_umtx.h
80
_thr_umutex_trylock(struct umutex *mtx, uint32_t id)
lib/libthr/thread/thr_umtx.h
83
if (atomic_cmpset_acq_32(&mtx->m_owner, UMUTEX_UNOWNED, id))
lib/libthr/thread/thr_umtx.h
85
if (__predict_false((uint32_t)mtx->m_owner == UMUTEX_RB_OWNERDEAD) &&
lib/libthr/thread/thr_umtx.h
86
atomic_cmpset_acq_32(&mtx->m_owner, UMUTEX_RB_OWNERDEAD,
lib/libthr/thread/thr_umtx.h
89
if (__predict_false((uint32_t)mtx->m_owner == UMUTEX_RB_NOTRECOV))
lib/libthr/thread/thr_umtx.h
91
if ((mtx->m_flags & UMUTEX_PRIO_PROTECT) == 0)
lib/libthr/thread/thr_umtx.h
93
return (__thr_umutex_trylock(mtx));
lib/libthr/thread/thr_umtx.h
97
_thr_umutex_trylock2(struct umutex *mtx, uint32_t id)
libexec/rtld-elf/rtld-libc/rtld_libc.h
41
#define _pthread_mutex_lock(mtx) (void)0
libexec/rtld-elf/rtld-libc/rtld_libc.h
42
#define _pthread_mutex_unlock(mtx) (void)0
libexec/rtld-elf/rtld-libc/rtld_libc.h
43
#define _pthread_mutex_destroy(mtx) (void)0
sbin/ipf/libipf/mutex_emul.c
101
mtx->eMm_owner, mtx, mtx->eMm_held);
sbin/ipf/libipf/mutex_emul.c
104
if (mtx->eMm_owner != NULL)
sbin/ipf/libipf/mutex_emul.c
105
free(mtx->eMm_owner);
sbin/ipf/libipf/mutex_emul.c
106
memset(mtx, 0xa5, sizeof(*mtx));
sbin/ipf/libipf/mutex_emul.c
19
eMmutex_enter(eMmutex_t *mtx, char *file, int line)
sbin/ipf/libipf/mutex_emul.c
23
mtx->eMm_owner);
sbin/ipf/libipf/mutex_emul.c
24
if (mtx->eMm_magic != EMM_MAGIC) {
sbin/ipf/libipf/mutex_emul.c
26
mtx->eMm_owner, mtx, mtx->eMm_magic);
sbin/ipf/libipf/mutex_emul.c
29
if (mtx->eMm_held != 0) {
sbin/ipf/libipf/mutex_emul.c
31
mtx->eMm_owner, mtx, mtx->eMm_held);
sbin/ipf/libipf/mutex_emul.c
34
mtx->eMm_held++;
sbin/ipf/libipf/mutex_emul.c
35
mtx->eMm_heldin = file;
sbin/ipf/libipf/mutex_emul.c
36
mtx->eMm_heldat = line;
sbin/ipf/libipf/mutex_emul.c
41
eMmutex_exit(eMmutex_t *mtx, char *file, int line)
sbin/ipf/libipf/mutex_emul.c
45
mtx->eMm_owner);
sbin/ipf/libipf/mutex_emul.c
46
if (mtx->eMm_magic != EMM_MAGIC) {
sbin/ipf/libipf/mutex_emul.c
48
mtx->eMm_owner, mtx, mtx->eMm_magic);
sbin/ipf/libipf/mutex_emul.c
51
if (mtx->eMm_held != 1) {
sbin/ipf/libipf/mutex_emul.c
53
mtx->eMm_owner, mtx, mtx->eMm_held);
sbin/ipf/libipf/mutex_emul.c
56
mtx->eMm_held--;
sbin/ipf/libipf/mutex_emul.c
57
mtx->eMm_heldin = NULL;
sbin/ipf/libipf/mutex_emul.c
58
mtx->eMm_heldat = 0;
sbin/ipf/libipf/mutex_emul.c
63
eMmutex_init(eMmutex_t *mtx, char *who, char *file, int line)
sbin/ipf/libipf/mutex_emul.c
69
file, line, mtx, who);
sbin/ipf/libipf/mutex_emul.c
70
if (mtx->eMm_magic == EMM_MAGIC) { /* safe bet ? */
sbin/ipf/libipf/mutex_emul.c
73
mtx->eMm_owner, mtx, mtx->eMm_magic);
sbin/ipf/libipf/mutex_emul.c
76
mtx->eMm_magic = EMM_MAGIC;
sbin/ipf/libipf/mutex_emul.c
77
mtx->eMm_held = 0;
sbin/ipf/libipf/mutex_emul.c
79
mtx->eMm_owner = strdup(who);
sbin/ipf/libipf/mutex_emul.c
81
mtx->eMm_owner = NULL;
sbin/ipf/libipf/mutex_emul.c
87
eMmutex_destroy(eMmutex_t *mtx, char *file, int line)
sbin/ipf/libipf/mutex_emul.c
92
mtx, mtx->eMm_owner);
sbin/ipf/libipf/mutex_emul.c
93
if (mtx->eMm_magic != EMM_MAGIC) {
sbin/ipf/libipf/mutex_emul.c
95
mtx->eMm_owner, mtx, mtx->eMm_magic);
sbin/ipf/libipf/mutex_emul.c
98
if (mtx->eMm_held != 0) {
stand/kshim/bsd_kernel.c
1110
static struct mtx usb_proc_mtx;
stand/kshim/bsd_kernel.c
261
struct mtx Giant;
stand/kshim/bsd_kernel.c
271
mtx_init(struct mtx *mtx, const char *name, const char *type, int opt)
stand/kshim/bsd_kernel.c
273
mtx->owned = 0;
stand/kshim/bsd_kernel.c
274
mtx->parent = mtx;
stand/kshim/bsd_kernel.c
278
mtx_lock(struct mtx *mtx)
stand/kshim/bsd_kernel.c
280
mtx = mtx->parent;
stand/kshim/bsd_kernel.c
281
mtx->owned++;
stand/kshim/bsd_kernel.c
285
mtx_unlock(struct mtx *mtx)
stand/kshim/bsd_kernel.c
287
mtx = mtx->parent;
stand/kshim/bsd_kernel.c
288
mtx->owned--;
stand/kshim/bsd_kernel.c
292
mtx_owned(struct mtx *mtx)
stand/kshim/bsd_kernel.c
294
mtx = mtx->parent;
stand/kshim/bsd_kernel.c
295
return (mtx->owned != 0);
stand/kshim/bsd_kernel.c
299
mtx_destroy(struct mtx *mtx)
stand/kshim/bsd_kernel.c
355
cv_wait(struct cv *cv, struct mtx *mtx)
stand/kshim/bsd_kernel.c
357
cv_timedwait(cv, mtx, -1);
stand/kshim/bsd_kernel.c
361
cv_timedwait(struct cv *cv, struct mtx *mtx, int timo)
stand/kshim/bsd_kernel.c
378
mtx_unlock(mtx);
stand/kshim/bsd_kernel.c
390
mtx_lock(mtx);
stand/kshim/bsd_kernel.c
422
static struct mtx mtx_callout;
stand/kshim/bsd_kernel.c
438
mtx_lock(c->mtx);
stand/kshim/bsd_kernel.c
451
mtx_unlock(c->mtx);
stand/kshim/bsd_kernel.c
485
callout_init_mtx(struct callout *c, struct mtx *mtx, int flags)
stand/kshim/bsd_kernel.c
489
if (mtx == NULL)
stand/kshim/bsd_kernel.c
490
mtx = &Giant;
stand/kshim/bsd_kernel.c
492
c->mtx = mtx;
stand/kshim/bsd_kernel.c
529
if (c->mtx == NULL)
stand/kshim/bsd_kernel.c
532
mtx_lock(c->mtx);
stand/kshim/bsd_kernel.c
534
mtx_unlock(c->mtx);
stand/kshim/bsd_kernel.h
299
struct mtx *parent;
stand/kshim/bsd_kernel.h
303
void mtx_init(struct mtx *, const char *, const char *, int);
stand/kshim/bsd_kernel.h
304
void mtx_lock(struct mtx *);
stand/kshim/bsd_kernel.h
305
void mtx_unlock(struct mtx *);
stand/kshim/bsd_kernel.h
308
int mtx_owned(struct mtx *);
stand/kshim/bsd_kernel.h
309
void mtx_destroy(struct mtx *);
stand/kshim/bsd_kernel.h
311
extern struct mtx Giant;
stand/kshim/bsd_kernel.h
335
void cv_wait(struct cv *, struct mtx *);
stand/kshim/bsd_kernel.h
336
int cv_timedwait(struct cv *, struct mtx *, int);
stand/kshim/bsd_kernel.h
350
struct mtx *mtx;
stand/kshim/bsd_kernel.h
355
void callout_init_mtx(struct callout *, struct mtx *, int);
stand/usb/usb_busdma_loader.c
280
mtx_assert(pc->tag_parent->mtx, MA_OWNED);
stand/usb/usb_busdma_loader.c
353
struct mtx *mtx, usb_dma_callback_t *func,
stand/usb/usb_busdma_loader.c
361
(mtx == NULL)) {
stand/usb/usb_busdma_loader.c
369
udpt->mtx = mtx;
sys/amd64/amd64/machdep.c
220
struct mtx icu_lock;
sys/amd64/amd64/machdep.c
224
struct mtx dt_lock; /* lock for GDT and LDT */
sys/amd64/amd64/pmap.c
560
struct mtx pvc_lock;
sys/amd64/amd64/pmap.c
590
static struct mtx qframe_mtx;
sys/amd64/amd64/pmap.c
653
static struct mtx invl_gen_mtx;
sys/amd64/include/pmap.h
323
struct mtx pm_mtx;
sys/amd64/include/proc.h
104
extern struct mtx dt_lock;
sys/amd64/pci/pci_cfgreg.c
75
static struct mtx pcicfg_mtx;
sys/amd64/pt/pt.c
118
struct mtx lock; /* Lock for fields below. */
sys/amd64/sgx/sgx.c
1157
mtx_init(&sc->mtx, "SGX driver", NULL, MTX_DEF);
sys/amd64/sgx/sgx.c
1182
mtx_lock(&sc->mtx);
sys/amd64/sgx/sgx.c
1184
mtx_unlock(&sc->mtx);
sys/amd64/sgx/sgx.c
1188
mtx_unlock(&sc->mtx);
sys/amd64/sgx/sgx.c
1196
mtx_destroy(&sc->mtx);
sys/amd64/sgx/sgx.c
385
mtx_lock(&sc->mtx);
sys/amd64/sgx/sgx.c
387
mtx_unlock(&sc->mtx);
sys/amd64/sgx/sgx.c
728
mtx_lock(&sc->mtx);
sys/amd64/sgx/sgx.c
730
mtx_unlock(&sc->mtx);
sys/amd64/sgx/sgx.c
744
mtx_unlock(&sc->mtx);
sys/amd64/sgx/sgx.c
755
mtx_unlock(&sc->mtx);
sys/amd64/sgx/sgxvar.h
75
struct mtx mtx_encls;
sys/amd64/sgx/sgxvar.h
76
struct mtx mtx;
sys/amd64/vmm/io/vatpic.c
54
#define VATPIC_LOCK(vatpic) mtx_lock_spin(&((vatpic)->mtx))
sys/amd64/vmm/io/vatpic.c
55
#define VATPIC_UNLOCK(vatpic) mtx_unlock_spin(&((vatpic)->mtx))
sys/amd64/vmm/io/vatpic.c
56
#define VATPIC_LOCKED(vatpic) mtx_owned(&((vatpic)->mtx))
sys/amd64/vmm/io/vatpic.c
802
mtx_init(&vatpic->mtx, "vatpic lock", NULL, MTX_SPIN);
sys/amd64/vmm/io/vatpic.c
810
mtx_destroy(&vatpic->mtx);
sys/amd64/vmm/io/vatpic.c
88
struct mtx mtx;
sys/amd64/vmm/io/vatpit.c
450
mtx_init(&vatpit->mtx, "vatpit lock", NULL, MTX_SPIN);
sys/amd64/vmm/io/vatpit.c
472
mtx_destroy(&vatpit->mtx);
sys/amd64/vmm/io/vatpit.c
52
#define VATPIT_LOCK(vatpit) mtx_lock_spin(&((vatpit)->mtx))
sys/amd64/vmm/io/vatpit.c
53
#define VATPIT_UNLOCK(vatpit) mtx_unlock_spin(&((vatpit)->mtx))
sys/amd64/vmm/io/vatpit.c
54
#define VATPIT_LOCKED(vatpit) mtx_owned(&((vatpit)->mtx))
sys/amd64/vmm/io/vatpit.c
98
struct mtx mtx;
sys/amd64/vmm/io/vhpet.c
714
mtx_init(&vhpet->mtx, "vhpet lock", NULL, MTX_DEF);
sys/amd64/vmm/io/vhpet.c
754
mtx_destroy(&vhpet->mtx);
sys/amd64/vmm/io/vhpet.c
77
struct mtx mtx;
sys/amd64/vmm/io/vhpet.c
96
#define VHPET_LOCK(vhp) mtx_lock(&((vhp)->mtx))
sys/amd64/vmm/io/vhpet.c
97
#define VHPET_UNLOCK(vhp) mtx_unlock(&((vhp)->mtx))
sys/amd64/vmm/io/vioapic.c
505
mtx_init(&vioapic->mtx, "vioapic lock", NULL, MTX_SPIN);
sys/amd64/vmm/io/vioapic.c
518
mtx_destroy(&vioapic->mtx);
sys/amd64/vmm/io/vioapic.c
60
struct mtx mtx;
sys/amd64/vmm/io/vioapic.c
69
#define VIOAPIC_LOCK(vioapic) mtx_lock_spin(&((vioapic)->mtx))
sys/amd64/vmm/io/vioapic.c
70
#define VIOAPIC_UNLOCK(vioapic) mtx_unlock_spin(&((vioapic)->mtx))
sys/amd64/vmm/io/vioapic.c
71
#define VIOAPIC_LOCKED(vioapic) mtx_owned(&((vioapic)->mtx))
sys/amd64/vmm/io/vlapic_priv.h
158
struct mtx timer_mtx;
sys/amd64/vmm/io/vrtc.c
1020
mtx_destroy(&vrtc->mtx);
sys/amd64/vmm/io/vrtc.c
78
struct mtx mtx;
sys/amd64/vmm/io/vrtc.c
86
#define VRTC_LOCK(vrtc) mtx_lock(&((vrtc)->mtx))
sys/amd64/vmm/io/vrtc.c
87
#define VRTC_UNLOCK(vrtc) mtx_unlock(&((vrtc)->mtx))
sys/amd64/vmm/io/vrtc.c
88
#define VRTC_LOCKED(vrtc) mtx_owned(&((vrtc)->mtx))
sys/amd64/vmm/io/vrtc.c
988
mtx_init(&vrtc->mtx, "vrtc lock", NULL, MTX_DEF);
sys/amd64/vmm/vmm.c
811
msleep_spin(vcpu, &vcpu->mtx, wmesg, hz);
sys/amd64/vmm/vmm.c
985
msleep_spin(vcpu, &vcpu->mtx, "vmsusp", hz);
sys/arm/allwinner/a10/a10_intc.c
104
struct mtx mtx;
sys/arm/allwinner/a10/a10_intc.c
119
mtx_lock_spin(&sc->mtx);
sys/arm/allwinner/a10/a10_intc.c
122
mtx_unlock_spin(&sc->mtx);
sys/arm/allwinner/a10/a10_intc.c
133
mtx_lock_spin(&sc->mtx);
sys/arm/allwinner/a10/a10_intc.c
141
mtx_unlock_spin(&sc->mtx);
sys/arm/allwinner/a10/a10_intc.c
152
mtx_lock_spin(&sc->mtx);
sys/arm/allwinner/a10/a10_intc.c
160
mtx_unlock_spin(&sc->mtx);
sys/arm/allwinner/a10/a10_intc.c
339
mtx_init(&sc->mtx, "A10 AINTC lock", "", MTX_SPIN);
sys/arm/allwinner/a10_codec.c
162
struct mtx lock;
sys/arm/allwinner/a10_dmac.c
73
struct mtx sc_mtx;
sys/arm/allwinner/a31_dmac.c
145
struct mtx mtx;
sys/arm/allwinner/a31_dmac.c
199
mtx_init(&sc->mtx, "a31 dmac", NULL, MTX_SPIN);
sys/arm/allwinner/a31_dmac.c
277
mtx_destroy(&sc->mtx);
sys/arm/allwinner/a31_dmac.c
457
mtx_lock_spin(&sc->mtx);
sys/arm/allwinner/a31_dmac.c
470
mtx_unlock_spin(&sc->mtx);
sys/arm/allwinner/a31_dmac.c
487
mtx_lock_spin(&sc->mtx);
sys/arm/allwinner/a31_dmac.c
497
mtx_unlock_spin(&sc->mtx);
sys/arm/allwinner/a33_codec.c
146
struct mtx mtx;
sys/arm/allwinner/a33_codec.c
152
#define CODEC_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/arm/allwinner/a33_codec.c
153
#define CODEC_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/arm/allwinner/a33_codec.c
187
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm/allwinner/a33_codec.c
303
mtx_destroy(&sc->mtx);
sys/arm/allwinner/a64/sun50i_a64_acodec.c
127
struct mtx mtx;
sys/arm/allwinner/a64/sun50i_a64_acodec.c
131
#define A64CODEC_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/arm/allwinner/a64/sun50i_a64_acodec.c
132
#define A64CODEC_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/arm/allwinner/a64/sun50i_a64_acodec.c
231
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm/allwinner/a64/sun50i_a64_acodec.c
310
mtx_destroy(&sc->mtx);
sys/arm/allwinner/aw_gpio.c
369
struct mtx sc_mtx;
sys/arm/allwinner/aw_i2s.c
226
struct mtx mtx;
sys/arm/allwinner/aw_i2s.c
235
#define I2S_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/arm/allwinner/aw_i2s.c
236
#define I2S_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/arm/allwinner/aw_i2s.c
352
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm/allwinner/aw_i2s.c
412
mtx_destroy(&i2s->mtx);
sys/arm/allwinner/aw_mmc.c
169
struct mtx aw_mtx;
sys/arm/allwinner/aw_reset.c
131
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm/allwinner/aw_reset.c
58
struct mtx mtx;
sys/arm/allwinner/aw_reset.c
77
mtx_lock(&sc->mtx);
sys/arm/allwinner/aw_reset.c
84
mtx_unlock(&sc->mtx);
sys/arm/allwinner/aw_reset.c
97
mtx_lock(&sc->mtx);
sys/arm/allwinner/aw_reset.c
99
mtx_unlock(&sc->mtx);
sys/arm/allwinner/aw_rsb.c
137
struct mtx mtx;
sys/arm/allwinner/aw_rsb.c
149
#define RSB_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/arm/allwinner/aw_rsb.c
150
#define RSB_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/arm/allwinner/aw_rsb.c
151
#define RSB_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED)
sys/arm/allwinner/aw_rsb.c
333
mtx_sleep(sc, &sc->mtx, 0, "i2cbuswait", 0);
sys/arm/allwinner/aw_rsb.c
420
mtx_init(&sc->mtx, device_get_nameunit(dev), "rsb", MTX_DEF);
sys/arm/allwinner/aw_rsb.c
465
mtx_destroy(&sc->mtx);
sys/arm/allwinner/aw_sid.c
275
struct mtx prctl_mtx;
sys/arm/allwinner/aw_wdog.c
108
struct mtx mtx;
sys/arm/allwinner/aw_wdog.c
224
mtx_init(&sc->mtx, "AW Watchdog", "aw_wdog", MTX_DEF);
sys/arm/allwinner/aw_wdog.c
243
mtx_lock(&sc->mtx);
sys/arm/allwinner/aw_wdog.c
271
mtx_unlock(&sc->mtx);
sys/arm/allwinner/aw_wdog.c
279
mtx_unlock(&sc->mtx);
sys/arm/allwinner/axp209.c
1313
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm/allwinner/axp209.c
603
struct mtx mtx;
sys/arm/allwinner/axp209.c
632
#define AXP_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/arm/allwinner/axp209.c
633
#define AXP_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/arm/allwinner/axp81x.c
1474
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm/allwinner/axp81x.c
685
struct mtx mtx;
sys/arm/allwinner/axp81x.c
706
#define AXP_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/arm/allwinner/axp81x.c
707
#define AXP_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/arm/allwinner/if_awg.c
1940
mtx_init(&sc->mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, MTX_DEF);
sys/arm/allwinner/if_awg.c
1941
callout_init_mtx(&sc->stat_ch, &sc->mtx, 0);
sys/arm/allwinner/if_awg.c
195
struct mtx mtx;
sys/arm/allwinner/if_awg.c
74
#define AWG_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/arm/allwinner/if_awg.c
75
#define AWG_UNLOCK(sc) mtx_unlock(&(sc)->mtx);
sys/arm/allwinner/if_awg.c
76
#define AWG_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED)
sys/arm/allwinner/if_awg.c
77
#define AWG_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED)
sys/arm/allwinner/if_emac.c
97
struct mtx emac_mtx;
sys/arm/annapurna/alpine/alpine_pci_msix.c
94
struct mtx msi_mtx;
sys/arm/annapurna/alpine/alpine_serdes.c
50
struct mtx lock;
sys/arm/arm/gic.h
55
struct mtx mutex;
sys/arm/arm/mp_machdep.c
64
struct mtx ap_boot_mtx;
sys/arm/arm/pmap-v6.c
260
static struct mtx allpmaps_lock;
sys/arm/arm/pmap-v6.c
319
static struct mtx PMAP2mutex;
sys/arm/broadcom/bcm2835/bcm2835_audio.c
136
struct mtx lock;
sys/arm/broadcom/bcm2835/bcm2835_bscvar.h
38
struct mtx sc_mtx;
sys/arm/broadcom/bcm2835/bcm2835_dma.c
142
struct mtx sc_mtx;
sys/arm/broadcom/bcm2835/bcm2835_ft5406.c
111
struct mtx sc_mtx;
sys/arm/broadcom/bcm2835/bcm2835_gpio.c
114
struct mtx sc_mtx;
sys/arm/broadcom/bcm2835/bcm2835_mbox.c
79
struct mtx lock;
sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
582
mtx_assert(&slot->mtx, MA_OWNED);
sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
640
mtx_assert(&slot->mtx, MA_OWNED);
sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
674
mtx_lock(&slot->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
720
mtx_unlock(&slot->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
730
mtx_assert(&slot->mtx, MA_OWNED);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
1013
mtx_lock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
1029
mtx_unlock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
1039
mtx_lock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
1080
mtx_unlock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
1089
mtx_lock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
1146
mtx_unlock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
1156
mtx_lock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
1209
mtx_unlock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
1221
mtx_lock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
1241
mtx_unlock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
211
struct mtx mtx;
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
404
mtx_init(&sc->mtx, "BCM SDHOST mtx", "bcm_sdhost",
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
511
mtx_assert(&sc->mtx, MA_OWNED);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
561
mtx_lock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
642
mtx_unlock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
672
mtx_assert(&sc->mtx, MA_OWNED);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
803
mtx_unlock(&slot->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
805
mtx_lock(&slot->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
815
mtx_lock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
858
mtx_unlock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
869
mtx_lock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
916
mtx_unlock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
927
mtx_lock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
999
mtx_unlock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_spivar.h
35
struct mtx sc_mtx;
sys/arm/broadcom/bcm2835/bcm2835_wdog.c
144
mtx_init(&sc->mtx, "BCM2835 Watchdog", "bcmwd", MTX_DEF);
sys/arm/broadcom/bcm2835/bcm2835_wdog.c
167
mtx_lock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_wdog.c
183
mtx_unlock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_wdog.c
205
mtx_unlock(&sc->mtx);
sys/arm/broadcom/bcm2835/bcm2835_wdog.c
80
struct mtx mtx;
sys/arm/broadcom/bcm2835/bcm2836.c
151
struct mtx bls_mtx;
sys/arm/broadcom/bcm2835/bcm2838_pci.c
126
struct mtx config_mtx;
sys/arm/broadcom/bcm2835/bcm2838_pci.c
127
struct mtx msi_mtx;
sys/arm/broadcom/bcm2835/raspberrypi_virtgpio.c
68
struct mtx sc_mtx;
sys/arm/freescale/imx/imx6_ipu.c
373
struct mtx sc_mtx;
sys/arm/freescale/imx/imx6_ssi.c
176
struct mtx lock;
sys/arm/freescale/imx/imx_gpio.c
117
struct mtx sc_mtx;
sys/arm/freescale/imx/imx_spi.c
124
struct mtx mtx;
sys/arm/freescale/imx/imx_spi.c
305
mtx_lock(&sc->mtx);
sys/arm/freescale/imx/imx_spi.c
324
mtx_unlock(&sc->mtx);
sys/arm/freescale/imx/imx_spi.c
368
mtx_unlock(&sc->mtx);
sys/arm/freescale/imx/imx_spi.c
399
err = msleep(sc, &sc->mtx, 0, "imxspi", 10 * hz);
sys/arm/freescale/imx/imx_spi.c
424
mtx_lock(&sc->mtx);
sys/arm/freescale/imx/imx_spi.c
451
mtx_unlock(&sc->mtx);
sys/arm/freescale/imx/imx_spi.c
488
mtx_destroy(&sc->mtx);
sys/arm/freescale/imx/imx_spi.c
503
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm/freescale/imx/imx_wdog.c
55
struct mtx sc_mtx;
sys/arm/freescale/vybrid/vf_gpio.c
91
struct mtx sc_mtx;
sys/arm/freescale/vybrid/vf_sai.c
141
struct mtx lock;
sys/arm/freescale/vybrid/vf_uart.c
119
static int vf_uart_getc(struct uart_bas *bas, struct mtx *);
sys/arm/freescale/vybrid/vf_uart.c
176
vf_uart_getc(struct uart_bas *bas, struct mtx *hwmtx)
sys/arm/include/pcpu.h
53
struct mtx pc_cmap_lock; \
sys/arm/include/pl310.h
148
struct mtx sc_mtx;
sys/arm/include/pmap.h
102
struct mtx pm_mtx;
sys/arm/mv/a37x0_iic.c
60
struct mtx sc_mtx;
sys/arm/mv/a37x0_spi.c
47
struct mtx sc_mtx;
sys/arm/mv/armada/thermal.c
111
struct mtx temp_upd_mtx;
sys/arm/mv/armada/wdt.c
97
struct mtx wdt_mtx;
sys/arm/mv/armada38x/armada38x_rtc.c
104
struct mtx mutex;
sys/arm/mv/clk/a37x0_periph_clk_driver.c
196
mtx_lock(&sc->mtx);
sys/arm/mv/clk/a37x0_periph_clk_driver.c
205
mtx_unlock(&sc->mtx);
sys/arm/mv/clk/a37x0_periph_clk_driver.c
70
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm/mv/clk/armada38x_coreclk.c
120
mtx_lock(&sc->mtx);
sys/arm/mv/clk/armada38x_coreclk.c
129
mtx_unlock(&sc->mtx);
sys/arm/mv/clk/armada38x_coreclk.c
177
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm/mv/clk/armada38x_coreclk.c
60
struct mtx mtx;
sys/arm/mv/clk/armada38x_gateclk.c
280
mtx_lock(&sc->mtx);
sys/arm/mv/clk/armada38x_gateclk.c
288
mtx_unlock(&sc->mtx);
sys/arm/mv/clk/armada38x_gateclk.c
346
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm/mv/clk/armada38x_gateclk.c
60
struct mtx mtx;
sys/arm/mv/clk/periph.h
281
struct mtx mtx;
sys/arm/mv/gpio.c
85
struct mtx mutex;
sys/arm/mv/mpic.c
116
struct mtx mtx;
sys/arm/mv/mpic.c
233
mtx_init(&sc->mtx, "MPIC lock", NULL, MTX_SPIN);
sys/arm/mv/mv_ap806_sei.c
53
#define MV_AP806_SEI_LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/arm/mv/mv_ap806_sei.c
54
#define MV_AP806_SEI_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/arm/mv/mv_ap806_sei.c
55
#define MV_AP806_SEI_LOCK_INIT(_sc) mtx_init(&_sc->mtx, \
sys/arm/mv/mv_ap806_sei.c
57
#define MV_AP806_SEI_LOCK_DESTROY(_sc) mtx_destroy(&_sc->mtx);
sys/arm/mv/mv_ap806_sei.c
58
#define MV_AP806_SEI_ASSERT_LOCKED(_sc) mtx_assert(&_sc->mtx, MA_OWNED);
sys/arm/mv/mv_ap806_sei.c
59
#define MV_AP806_SEI_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->mtx, MA_NOTOWNED);
sys/arm/mv/mv_ap806_sei.c
90
struct mtx mtx;
sys/arm/mv/mv_cp110_clock.c
126
struct mtx mtx;
sys/arm/mv/mv_cp110_clock.c
205
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm/mv/mv_cp110_clock.c
328
mtx_lock(&sc->mtx);
sys/arm/mv/mv_cp110_clock.c
337
mtx_unlock(&sc->mtx);
sys/arm/mv/mv_pci.c
311
struct mtx sc_msi_mtx;
sys/arm/mv/mv_pci.c
422
static struct mtx pcicfg_mtx;
sys/arm/mv/mv_spi.c
52
struct mtx sc_mtx;
sys/arm/mv/mv_thermal.c
263
mtx_lock(&(sc)->mtx);
sys/arm/mv/mv_thermal.c
272
mtx_unlock(&(sc)->mtx);
sys/arm/mv/mv_thermal.c
306
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm/mv/mv_thermal.c
88
struct mtx mtx;
sys/arm/mv/mvebu_gpio.c
100
struct mtx mtx;
sys/arm/mv/mvebu_gpio.c
57
#define GPIO_LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/arm/mv/mvebu_gpio.c
58
#define GPIO_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/arm/mv/mvebu_gpio.c
59
#define GPIO_LOCK_INIT(_sc) mtx_init(&_sc->mtx, \
sys/arm/mv/mvebu_gpio.c
61
#define GPIO_LOCK_DESTROY(_sc) mtx_destroy(&_sc->mtx);
sys/arm/mv/mvebu_gpio.c
62
#define GPIO_ASSERT_LOCKED(_sc) mtx_assert(&_sc->mtx, MA_OWNED);
sys/arm/mv/mvebu_gpio.c
63
#define GPIO_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->mtx, MA_NOTOWNED);
sys/arm/mv/mvebu_gpio.c
694
KASSERT(mtx_initialized(&sc->mtx), ("gpio mutex not initialized"));
sys/arm/mv/timer.c
83
struct mtx timer_mtx;
sys/arm/nvidia/drm2/tegra_dc.c
123
struct mtx mtx;
sys/arm/nvidia/drm2/tegra_dc.c
58
#define LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/arm/nvidia/drm2/tegra_dc.c
59
#define UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/arm/nvidia/drm2/tegra_dc.c
61
mtx_sleep(sc, &sc->mtx, 0, "tegra_dc_wait", timeout);
sys/arm/nvidia/drm2/tegra_dc.c
63
mtx_init(&_sc->mtx, device_get_nameunit(_sc->dev), "tegra_dc", MTX_DEF)
sys/arm/nvidia/drm2/tegra_dc.c
64
#define LOCK_DESTROY(_sc) mtx_destroy(&_sc->mtx)
sys/arm/nvidia/drm2/tegra_dc.c
65
#define ASSERT_LOCKED(_sc) mtx_assert(&_sc->mtx, MA_OWNED)
sys/arm/nvidia/drm2/tegra_dc.c
66
#define ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->mtx, MA_NOTOWNED)
sys/arm/nvidia/tegra124/tegra124_car.c
502
mtx_lock(&sc->mtx);
sys/arm/nvidia/tegra124/tegra124_car.c
511
mtx_unlock(&sc->mtx);
sys/arm/nvidia/tegra124/tegra124_car.c
545
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm/nvidia/tegra124/tegra124_car.h
314
struct mtx mtx;
sys/arm/nvidia/tegra124/tegra124_pmc.c
138
#define PMC_LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/arm/nvidia/tegra124/tegra124_pmc.c
139
#define PMC_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/arm/nvidia/tegra124/tegra124_pmc.c
140
#define PMC_LOCK_INIT(_sc) mtx_init(&(_sc)->mtx, \
sys/arm/nvidia/tegra124/tegra124_pmc.c
142
#define PMC_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx);
sys/arm/nvidia/tegra124/tegra124_pmc.c
143
#define PMC_ASSERT_LOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED);
sys/arm/nvidia/tegra124/tegra124_pmc.c
144
#define PMC_ASSERT_UNLOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_NOTOWNED);
sys/arm/nvidia/tegra124/tegra124_pmc.c
150
struct mtx mtx;
sys/arm/nvidia/tegra_gpio.c
126
struct mtx mtx;
sys/arm/nvidia/tegra_gpio.c
54
#define GPIO_LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/arm/nvidia/tegra_gpio.c
55
#define GPIO_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/arm/nvidia/tegra_gpio.c
56
#define GPIO_LOCK_INIT(_sc) mtx_init(&_sc->mtx, \
sys/arm/nvidia/tegra_gpio.c
58
#define GPIO_LOCK_DESTROY(_sc) mtx_destroy(&_sc->mtx);
sys/arm/nvidia/tegra_gpio.c
59
#define GPIO_ASSERT_LOCKED(_sc) mtx_assert(&_sc->mtx, MA_OWNED);
sys/arm/nvidia/tegra_gpio.c
60
#define GPIO_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->mtx, MA_NOTOWNED);
sys/arm/nvidia/tegra_gpio.c
727
KASSERT(mtx_initialized(&sc->mtx), ("gpio mutex not initialized"));
sys/arm/nvidia/tegra_i2c.c
194
#define LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/arm/nvidia/tegra_i2c.c
195
#define UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/arm/nvidia/tegra_i2c.c
197
mtx_sleep(sc, &sc->mtx, 0, "i2cbuswait", timeout);
sys/arm/nvidia/tegra_i2c.c
199
mtx_init(&_sc->mtx, device_get_nameunit(_sc->dev), "tegra_i2c", MTX_DEF)
sys/arm/nvidia/tegra_i2c.c
200
#define LOCK_DESTROY(_sc) mtx_destroy(&_sc->mtx)
sys/arm/nvidia/tegra_i2c.c
201
#define ASSERT_LOCKED(_sc) mtx_assert(&_sc->mtx, MA_OWNED)
sys/arm/nvidia/tegra_i2c.c
202
#define ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->mtx, MA_NOTOWNED)
sys/arm/nvidia/tegra_i2c.c
217
struct mtx mtx;
sys/arm/nvidia/tegra_i2c.c
575
rv = msleep(&sc->done, &sc->mtx, PZERO, "iic",
sys/arm/nvidia/tegra_mc.c
100
#define LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/arm/nvidia/tegra_mc.c
101
#define UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/arm/nvidia/tegra_mc.c
102
#define SLEEP(_sc, timeout) mtx_sleep(sc, &sc->mtx, 0, "tegra_mc", timeout);
sys/arm/nvidia/tegra_mc.c
104
mtx_init(&_sc->mtx, device_get_nameunit(_sc->dev), "tegra_mc", MTX_DEF)
sys/arm/nvidia/tegra_mc.c
105
#define LOCK_DESTROY(_sc) mtx_destroy(&_sc->mtx)
sys/arm/nvidia/tegra_mc.c
106
#define ASSERT_LOCKED(_sc) mtx_assert(&_sc->mtx, MA_OWNED)
sys/arm/nvidia/tegra_mc.c
107
#define ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->mtx, MA_NOTOWNED)
sys/arm/nvidia/tegra_mc.c
117
struct mtx mtx;
sys/arm/nvidia/tegra_pcie.c
1448
mtx_init(&sc->mtx, "msi_mtx", NULL, MTX_DEF);
sys/arm/nvidia/tegra_pcie.c
333
struct mtx mtx;
sys/arm/nvidia/tegra_pcie.c
751
mtx_lock(&sc->mtx);
sys/arm/nvidia/tegra_pcie.c
778
mtx_unlock(&sc->mtx);
sys/arm/nvidia/tegra_pcie.c
786
mtx_unlock(&sc->mtx);
sys/arm/nvidia/tegra_pcie.c
803
mtx_lock(&sc->mtx);
sys/arm/nvidia/tegra_pcie.c
813
mtx_unlock(&sc->mtx);
sys/arm/nvidia/tegra_rtc.c
78
#define LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/arm/nvidia/tegra_rtc.c
79
#define UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/arm/nvidia/tegra_rtc.c
81
mtx_sleep(sc, &sc->mtx, 0, "rtcwait", timeout);
sys/arm/nvidia/tegra_rtc.c
83
mtx_init(&_sc->mtx, device_get_nameunit(_sc->dev), "tegra_rtc", MTX_DEF)
sys/arm/nvidia/tegra_rtc.c
84
#define LOCK_DESTROY(_sc) mtx_destroy(&_sc->mtx)
sys/arm/nvidia/tegra_rtc.c
85
#define ASSERT_LOCKED(_sc) mtx_assert(&_sc->mtx, MA_OWNED)
sys/arm/nvidia/tegra_rtc.c
86
#define ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->mtx, MA_NOTOWNED)
sys/arm/nvidia/tegra_rtc.c
95
struct mtx mtx;
sys/arm/nvidia/tegra_xhci.c
216
#define LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/arm/nvidia/tegra_xhci.c
217
#define UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/arm/nvidia/tegra_xhci.c
219
mtx_sleep(sc, &sc->mtx, 0, "tegra_xhci", timeout);
sys/arm/nvidia/tegra_xhci.c
221
mtx_init(&_sc->mtx, device_get_nameunit(_sc->dev), "tegra_xhci", MTX_DEF)
sys/arm/nvidia/tegra_xhci.c
222
#define LOCK_DESTROY(_sc) mtx_destroy(&_sc->mtx)
sys/arm/nvidia/tegra_xhci.c
223
#define ASSERT_LOCKED(_sc) mtx_assert(&_sc->mtx, MA_OWNED)
sys/arm/nvidia/tegra_xhci.c
224
#define ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->mtx, MA_NOTOWNED)
sys/arm/nvidia/tegra_xhci.c
271
struct mtx mtx;
sys/arm/ti/am335x/am3359_cppi41.c
100
mtx_lock(&sc->mtx);
sys/arm/ti/am335x/am3359_cppi41.c
102
mtx_unlock(&sc->mtx);
sys/arm/ti/am335x/am3359_cppi41.c
141
mtx_init(&sc->mtx, device_get_nameunit(sc->dev), NULL, MTX_DEF);
sys/arm/ti/am335x/am3359_cppi41.c
62
struct mtx mtx;
sys/arm/ti/am335x/am3359_cppi41.c
86
mtx_lock(&sc->mtx);
sys/arm/ti/am335x/am3359_cppi41.c
88
mtx_unlock(&sc->mtx);
sys/arm/ti/am335x/am335x_dmtpps.c
84
struct mtx pps_mtx;
sys/arm/ti/am335x/am335x_ecap.c
76
struct mtx sc_mtx;
sys/arm/ti/am335x/am335x_ehrpwm.c
181
struct mtx sc_mtx;
sys/arm/ti/am335x/am335x_lcd.c
206
struct mtx sc_mtx;
sys/arm/ti/am335x/am335x_rtc.c
60
struct mtx sc_mtx;
sys/arm/ti/cpsw/if_cpswvar.h
142
struct mtx lock;
sys/arm/ti/cpsw/if_cpswvar.h
63
struct mtx lock;
sys/arm/ti/ti_adcvar.h
39
struct mtx sc_mtx;
sys/arm/ti/ti_gpio.h
57
struct mtx sc_mtx;
sys/arm/ti/ti_i2c.c
84
struct mtx sc_mtx;
sys/arm/ti/ti_mbox.c
72
struct mtx sc_mtx;
sys/arm/ti/ti_prcm.c
170
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm/ti/ti_prcm.c
238
mtx_lock(&sc->mtx);
sys/arm/ti/ti_prcm.c
247
mtx_unlock(&sc->mtx);
sys/arm/ti/ti_prcm.c
72
struct mtx mtx;
sys/arm/ti/ti_pruss.c
109
struct mtx sc_mtx;
sys/arm/ti/ti_pruss.c
129
struct mtx sc_mtx;
sys/arm/ti/ti_scm_syscon.c
105
mtx_lock(&sc->mtx);
sys/arm/ti/ti_scm_syscon.c
107
mtx_unlock(&sc->mtx);
sys/arm/ti/ti_scm_syscon.c
119
mtx_lock(&sc->mtx);
sys/arm/ti/ti_scm_syscon.c
124
mtx_unlock(&sc->mtx);
sys/arm/ti/ti_scm_syscon.c
176
mtx_init(&sc->mtx, device_get_nameunit(sc->dev), NULL, MTX_DEF);
sys/arm/ti/ti_scm_syscon.c
257
mtx_lock(&sc->mtx);
sys/arm/ti/ti_scm_syscon.c
265
mtx_unlock(&sc->mtx);
sys/arm/ti/ti_scm_syscon.c
69
struct mtx mtx;
sys/arm/ti/ti_scm_syscon.c
91
mtx_lock(&sc->mtx);
sys/arm/ti/ti_scm_syscon.c
93
mtx_unlock(&sc->mtx);
sys/arm/ti/ti_sdma.c
113
struct mtx sc_mtx;
sys/arm/ti/ti_spivar.h
35
struct mtx sc_mtx;
sys/arm/xilinx/uart_dev_cdnc.c
151
static int cdnc_uart_getc(struct uart_bas *bas, struct mtx *mtx);
sys/arm/xilinx/uart_dev_cdnc.c
359
cdnc_uart_getc(struct uart_bas *bas, struct mtx *mtx)
sys/arm/xilinx/uart_dev_cdnc.c
363
uart_lock(mtx);
sys/arm/xilinx/uart_dev_cdnc.c
367
uart_unlock(mtx);
sys/arm/xilinx/uart_dev_cdnc.c
369
uart_lock(mtx);
sys/arm/xilinx/uart_dev_cdnc.c
374
uart_unlock(mtx);
sys/arm/xilinx/zy7_devcfg.c
61
struct mtx sc_mtx;
sys/arm/xilinx/zy7_gpio.c
136
struct mtx sc_mtx;
sys/arm/xilinx/zy7_qspi.c
71
struct mtx sc_mtx;
sys/arm/xilinx/zy7_slcr.c
59
struct mtx sc_mtx;
sys/arm/xilinx/zy7_spi.c
62
struct mtx sc_mtx;
sys/arm64/apple/apple_pinctrl.c
87
struct mtx sc_mtx;
sys/arm64/apple/apple_wdog.c
140
mtx_init(&sc->mtx, "Apple Watchdog", "apple_wdog", MTX_DEF);
sys/arm64/apple/apple_wdog.c
166
mtx_lock(&sc->mtx);
sys/arm64/apple/apple_wdog.c
182
mtx_unlock(&sc->mtx);
sys/arm64/apple/apple_wdog.c
196
mtx_unlock(&sc->mtx);
sys/arm64/apple/apple_wdog.c
79
struct mtx mtx;
sys/arm64/apple/exynos_uart.c
321
exynos4210_getc(struct uart_bas *bas, struct mtx *mtx)
sys/arm64/apple/exynos_uart.c
67
static int exynos4210_getc(struct uart_bas *bas, struct mtx *mtx);
sys/arm64/arm64/gic_v3_var.h
71
struct mtx gic_mtx;
sys/arm64/arm64/gic_v3_var.h
80
struct mtx gic_mbi_mtx;
sys/arm64/arm64/gicv3_its.c
272
struct mtx sc_its_cmd_lock;
sys/arm64/arm64/gicv3_its.c
282
struct mtx sc_its_dev_lock;
sys/arm64/arm64/gicv5.c
102
struct mtx irs_lock;
sys/arm64/arm64/gicv5_its.c
241
struct mtx its_dev_lock;
sys/arm64/arm64/gicv5_iwb.c
86
struct mtx sc_mtx;
sys/arm64/arm64/pmap.c
297
static struct mtx cmap_lock;
sys/arm64/arm64/pmap.c
352
struct mtx pvc_lock;
sys/arm64/arm64/pmap.c
408
struct mtx asid_set_mutex;
sys/arm64/broadcom/genet/if_genet.c
170
struct mtx mtx;
sys/arm64/broadcom/genet/if_genet.c
274
mtx_init(&sc->mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, MTX_DEF);
sys/arm64/broadcom/genet/if_genet.c
275
callout_init_mtx(&sc->stat_ch, &sc->mtx, 0);
sys/arm64/broadcom/genet/if_genet.c
374
if (mtx_initialized(&sc->mtx))
sys/arm64/broadcom/genet/if_genet.c
375
mtx_destroy(&sc->mtx);
sys/arm64/broadcom/genet/if_genet.c
412
mtx_destroy(&sc->mtx);
sys/arm64/broadcom/genet/if_genet.c
83
#define GEN_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/arm64/broadcom/genet/if_genet.c
84
#define GEN_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/arm64/broadcom/genet/if_genet.c
85
#define GEN_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED)
sys/arm64/broadcom/genet/if_genet.c
86
#define GEN_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED)
sys/arm64/coresight/coresight.c
43
static struct mtx cs_mtx;
sys/arm64/coresight/coresight.h
100
struct mtx mtx_lock;
sys/arm64/freescale/imx/imx8mq_ccm.c
273
struct mtx mtx;
sys/arm64/freescale/imx/imx_ccm.c
109
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm64/freescale/imx/imx_ccm.c
213
mtx_lock(&sc->mtx);
sys/arm64/freescale/imx/imx_ccm.c
222
mtx_unlock(&sc->mtx);
sys/arm64/freescale/imx/imx_ccm.h
44
struct mtx mtx;
sys/arm64/include/pmap.h
87
struct mtx pm_mtx;
sys/arm64/iommu/iommu_pmap.h
35
struct mtx sp_mtx;
sys/arm64/iommu/smmuvar.h
168
struct mtx sc_mtx;
sys/arm64/iommu/smmuvar.h
171
struct mtx asid_set_mutex;
sys/arm64/nvidia/tegra210/tegra210_car.c
500
mtx_lock(&sc->mtx);
sys/arm64/nvidia/tegra210/tegra210_car.c
509
mtx_unlock(&sc->mtx);
sys/arm64/nvidia/tegra210/tegra210_car.c
543
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm64/nvidia/tegra210/tegra210_car.h
506
struct mtx mtx;
sys/arm64/nvidia/tegra210/tegra210_pmc.c
142
#define PMC_LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/arm64/nvidia/tegra210/tegra210_pmc.c
143
#define PMC_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/arm64/nvidia/tegra210/tegra210_pmc.c
144
#define PMC_LOCK_INIT(_sc) mtx_init(&(_sc)->mtx, \
sys/arm64/nvidia/tegra210/tegra210_pmc.c
146
#define PMC_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx);
sys/arm64/nvidia/tegra210/tegra210_pmc.c
147
#define PMC_ASSERT_LOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED);
sys/arm64/nvidia/tegra210/tegra210_pmc.c
148
#define PMC_ASSERT_UNLOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_NOTOWNED);
sys/arm64/nvidia/tegra210/tegra210_pmc.c
154
struct mtx mtx;
sys/arm64/qoriq/clk/ls1028a_flexspi_clk.c
177
mtx_init(&sc->mtx, "FSL clock mtx", NULL, MTX_DEF);
sys/arm64/qoriq/clk/ls1028a_flexspi_clk.c
276
mtx_lock(&sc->mtx);
sys/arm64/qoriq/clk/ls1028a_flexspi_clk.c
286
mtx_unlock(&sc->mtx);
sys/arm64/qoriq/clk/ls1028a_flexspi_clk.c
58
struct mtx mtx;
sys/arm64/qoriq/clk/qoriq_clkgen.c
148
mtx_lock(&sc->mtx);
sys/arm64/qoriq/clk/qoriq_clkgen.c
157
mtx_unlock(&sc->mtx);
sys/arm64/qoriq/clk/qoriq_clkgen.c
253
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm64/qoriq/clk/qoriq_clkgen.h
78
struct mtx mtx;
sys/arm64/rockchip/rk3328_codec.c
150
struct mtx mtx;
sys/arm64/rockchip/rk3328_codec.c
157
#define RKCODEC_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/arm64/rockchip/rk3328_codec.c
158
#define RKCODEC_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/arm64/rockchip/rk3328_codec.c
231
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm64/rockchip/rk3328_codec.c
387
mtx_destroy(&sc->mtx);
sys/arm64/rockchip/rk_gpio.c
101
struct mtx sc_mtx;
sys/arm64/rockchip/rk_i2s.c
151
struct mtx mtx;
sys/arm64/rockchip/rk_i2s.c
161
#define RK_I2S_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/arm64/rockchip/rk_i2s.c
162
#define RK_I2S_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/arm64/rockchip/rk_i2s.c
236
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/arm64/rockchip/rk_i2s.c
298
mtx_destroy(&i2s->mtx);
sys/arm64/rockchip/rk_pcie.c
1154
mtx_init(&sc->mtx, "rk_pcie_mtx", NULL, MTX_DEF);
sys/arm64/rockchip/rk_pcie.c
201
struct mtx mtx;
sys/arm64/rockchip/rk_pcie_phy.c
83
struct mtx mtx;
sys/arm64/rockchip/rk_pcie_phy.c
89
#define PHY_LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/arm64/rockchip/rk_pcie_phy.c
90
#define PHY_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/arm64/rockchip/rk_pcie_phy.c
91
#define PHY_LOCK_INIT(_sc) mtx_init(&(_sc)->mtx, \
sys/arm64/rockchip/rk_pcie_phy.c
93
#define PHY_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx);
sys/arm64/rockchip/rk_pcie_phy.c
94
#define PHY_ASSERT_LOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED);
sys/arm64/rockchip/rk_pcie_phy.c
95
#define PHY_ASSERT_UNLOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_NOTOWNED);
sys/arm64/rockchip/rk_pinctrl.c
111
struct mtx mtx;
sys/arm64/rockchip/rk_pinctrl.c
114
#define RK_PINCTRL_LOCK(_sc) mtx_lock_spin(&(_sc)->mtx)
sys/arm64/rockchip/rk_pinctrl.c
115
#define RK_PINCTRL_UNLOCK(_sc) mtx_unlock_spin(&(_sc)->mtx)
sys/arm64/rockchip/rk_pinctrl.c
116
#define RK_PINCTRL_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED)
sys/arm64/rockchip/rk_pinctrl.c
1505
mtx_init(&sc->mtx, "rk pinctrl", "pinctrl", MTX_SPIN);
sys/arm64/spe/arm_spe_dev.h
105
struct mtx lock;
sys/arm64/spe/arm_spe_dev.h
77
struct mtx sc_lock;
sys/arm64/vmm/io/vgic_v3.c
116
struct mtx dist_mtx;
sys/arm64/vmm/io/vgic_v3.c
138
struct mtx lr_mtx;
sys/arm64/vmm/io/vgic_v3.c
98
struct mtx irq_spinmtx;
sys/arm64/vmm/io/vtimer.c
150
mtx_init(&vtimer_cpu->phys_timer.mtx, "vtimer phys callout mutex", NULL,
sys/arm64/vmm/io/vtimer.c
153
&vtimer_cpu->phys_timer.mtx, 0);
sys/arm64/vmm/io/vtimer.c
156
mtx_init(&vtimer_cpu->virt_timer.mtx, "vtimer virt callout mutex", NULL,
sys/arm64/vmm/io/vtimer.c
159
&vtimer_cpu->virt_timer.mtx, 0);
sys/arm64/vmm/io/vtimer.c
236
mtx_destroy(&vtimer_cpu->phys_timer.mtx);
sys/arm64/vmm/io/vtimer.c
237
mtx_destroy(&vtimer_cpu->virt_timer.mtx);
sys/arm64/vmm/io/vtimer.h
42
struct mtx mtx;
sys/arm64/vmm/vmm.c
899
msleep_spin(vcpu, &vcpu->mtx, "vmidle", hz);
sys/arm64/vmm/vmm.c
970
msleep_spin(vcpu, &vcpu->mtx, "vmsusp", hz);
sys/arm64/vmm/vmm_mmu.c
52
static struct mtx vmmpmap_mtx;
sys/cam/ata/ata_xpt.c
1384
struct mtx *mtx;
sys/cam/ata/ata_xpt.c
1457
mtx = xpt_path_mtx(scan_info->request_ccb->ccb_h.path);
sys/cam/ata/ata_xpt.c
1463
mtx = xpt_path_mtx(scan_info->request_ccb->ccb_h.path);
sys/cam/ata/ata_xpt.c
1464
mtx_lock(mtx);
sys/cam/ata/ata_xpt.c
1493
mtx_unlock(mtx);
sys/cam/ata/ata_xpt.c
1511
mtx_unlock(mtx);
sys/cam/ata/ata_xpt.c
1530
mtx_unlock(mtx);
sys/cam/ata/ata_xpt.c
1532
mtx = NULL;
sys/cam/ata/ata_xpt.c
1534
if (mtx != NULL)
sys/cam/ata/ata_xpt.c
1535
mtx_lock(mtx);
sys/cam/cam_periph.c
465
struct mtx *mtx;
sys/cam/cam_periph.c
471
mtx = cam_periph_mtx(periph);
sys/cam/cam_periph.c
472
mtx_lock(mtx);
sys/cam/cam_periph.c
474
mtx_unlock(mtx);
sys/cam/cam_periph.h
213
static __inline struct mtx *
sys/cam/cam_queue.h
73
struct mtx send_mtx;
sys/cam/cam_sim.c
102
struct mtx *mtx, int max_dev_transactions,
sys/cam/cam_sim.c
123
sim->mtx = mtx;
sys/cam/cam_sim.c
143
struct mtx *mtx;
sys/cam/cam_sim.c
146
if (sim->mtx == NULL) {
sys/cam/cam_sim.c
147
mtx = &cam_sim_free_mtx;
sys/cam/cam_sim.c
148
mtx_lock(mtx);
sys/cam/cam_sim.c
150
mtx = sim->mtx;
sys/cam/cam_sim.c
151
mtx_assert(mtx, MA_OWNED);
sys/cam/cam_sim.c
156
error = msleep(sim, mtx, PRIBIO, "simfree", 0);
sys/cam/cam_sim.c
160
if (mtx == &cam_sim_free_mtx) /* sim->mtx == NULL */
sys/cam/cam_sim.c
161
mtx_unlock(mtx);
sys/cam/cam_sim.c
171
struct mtx *mtx;
sys/cam/cam_sim.c
173
if (sim->mtx == NULL)
sys/cam/cam_sim.c
174
mtx = &cam_sim_free_mtx;
sys/cam/cam_sim.c
175
else if (!mtx_owned(sim->mtx))
sys/cam/cam_sim.c
176
mtx = sim->mtx;
sys/cam/cam_sim.c
178
mtx = NULL; /* We hold the lock. */
sys/cam/cam_sim.c
179
if (mtx)
sys/cam/cam_sim.c
180
mtx_lock(mtx);
sys/cam/cam_sim.c
185
if (mtx)
sys/cam/cam_sim.c
186
mtx_unlock(mtx);
sys/cam/cam_sim.c
192
struct mtx *mtx;
sys/cam/cam_sim.c
194
if (sim->mtx == NULL)
sys/cam/cam_sim.c
195
mtx = &cam_sim_free_mtx;
sys/cam/cam_sim.c
196
else if (!mtx_owned(sim->mtx))
sys/cam/cam_sim.c
197
mtx = sim->mtx;
sys/cam/cam_sim.c
199
mtx = NULL; /* We hold the lock. */
sys/cam/cam_sim.c
200
if (mtx)
sys/cam/cam_sim.c
201
mtx_lock(mtx);
sys/cam/cam_sim.c
204
if (mtx)
sys/cam/cam_sim.c
205
mtx_unlock(mtx);
sys/cam/cam_sim.c
48
static struct mtx cam_sim_free_mtx;
sys/cam/cam_sim.h
59
struct mtx *mtx,
sys/cam/cam_sim.h
85
struct mtx *mtx;
sys/cam/cam_xpt.c
106
struct mtx xpt_highpower_lock;
sys/cam/cam_xpt.c
129
struct mtx xpt_topo_lock;
sys/cam/cam_xpt.c
2559
struct mtx *mtx;
sys/cam/cam_xpt.c
2706
mtx = sim->mtx;
sys/cam/cam_xpt.c
2707
if (mtx && !mtx_owned(mtx))
sys/cam/cam_xpt.c
2708
mtx_lock(mtx);
sys/cam/cam_xpt.c
2710
mtx = NULL;
sys/cam/cam_xpt.c
2717
if (mtx)
sys/cam/cam_xpt.c
2718
mtx_unlock(mtx);
sys/cam/cam_xpt.c
2939
cur_entry->event_lock = (path->bus->sim->mtx &&
sys/cam/cam_xpt.c
2940
mtx_owned(path->bus->sim->mtx)) ? 1 : 0;
sys/cam/cam_xpt.c
3109
struct mtx *mtx;
sys/cam/cam_xpt.c
3112
mtx = sim->mtx;
sys/cam/cam_xpt.c
3113
if (mtx)
sys/cam/cam_xpt.c
3114
mtx_lock(mtx);
sys/cam/cam_xpt.c
3116
if (mtx)
sys/cam/cam_xpt.c
3117
mtx_unlock(mtx);
sys/cam/cam_xpt.c
3314
struct mtx *mtx;
sys/cam/cam_xpt.c
3403
mtx = sim->mtx;
sys/cam/cam_xpt.c
3404
if (mtx && !mtx_owned(mtx))
sys/cam/cam_xpt.c
3405
mtx_lock(mtx);
sys/cam/cam_xpt.c
3407
mtx = NULL;
sys/cam/cam_xpt.c
3410
if (mtx)
sys/cam/cam_xpt.c
3411
mtx_unlock(mtx);
sys/cam/cam_xpt.c
4268
struct mtx *mtx;
sys/cam/cam_xpt.c
4280
mtx = cur_entry->event_lock ?
sys/cam/cam_xpt.c
4281
path->device->sim->mtx : NULL;
sys/cam/cam_xpt.c
4282
if (mtx)
sys/cam/cam_xpt.c
4283
mtx_lock(mtx);
sys/cam/cam_xpt.c
4289
if (mtx)
sys/cam/cam_xpt.c
4290
mtx_unlock(mtx);
sys/cam/cam_xpt.c
5277
struct mtx *
sys/cam/cam_xpt.c
5289
struct mtx *mtx = NULL;
sys/cam/cam_xpt.c
5383
mtx = xpt_path_mtx(ccb_h->path);
sys/cam/cam_xpt.c
5384
mtx_lock(mtx);
sys/cam/cam_xpt.c
5393
if (mtx == NULL) {
sys/cam/cam_xpt.c
5394
mtx = xpt_path_mtx(ccb_h->path);
sys/cam/cam_xpt.c
5395
mtx_lock(mtx);
sys/cam/cam_xpt.c
5398
if (mtx != NULL) {
sys/cam/cam_xpt.c
5399
mtx_unlock(mtx);
sys/cam/cam_xpt.c
5400
mtx = NULL;
sys/cam/cam_xpt.c
5412
if (mtx != NULL)
sys/cam/cam_xpt.c
5413
mtx_unlock(mtx);
sys/cam/cam_xpt.c
802
struct mtx *mtx;
sys/cam/cam_xpt.c
824
mtx = xpt_path_mtx(ccb->ccb_h.path);
sys/cam/cam_xpt.c
827
mtx_lock(mtx);
sys/cam/cam_xpt.c
829
mtx_unlock(mtx);
sys/cam/cam_xpt.h
123
struct mtx * xpt_path_mtx(struct cam_path *path);
sys/cam/cam_xpt_internal.h
150
struct mtx device_mtx;
sys/cam/cam_xpt_internal.h
173
struct mtx luns_mtx; /* Protection for luns field. */
sys/cam/cam_xpt_internal.h
193
struct mtx eb_mtx; /* Bus topology mutex. */
sys/cam/ctl/ctl_backend_block.c
191
struct mtx lock;
sys/cam/ctl/ctl_backend_ramdisk.c
129
struct mtx lock;
sys/cam/ctl/ctl_frontend.h
245
struct mtx port_lock; /* used by CTL */
sys/cam/ctl/ctl_frontend_ioctl.c
69
struct mtx ioctl_mtx;
sys/cam/ctl/ctl_frontend_iscsi.h
113
struct mtx lock;
sys/cam/ctl/ctl_frontend_iscsi.h
73
struct mtx cs_lock;
sys/cam/ctl/ctl_ha.c
87
struct mtx ha_lock;
sys/cam/ctl/ctl_private.h
323
struct mtx lun_lock;
sys/cam/ctl/ctl_private.h
389
struct mtx ctl_lock;
sys/cam/ctl/ctl_private.h
424
struct mtx tpc_lock;
sys/cam/ctl/scsi_ctl.c
1089
struct mtx *mtx;
sys/cam/ctl/scsi_ctl.c
1114
mtx = cam_periph_mtx(periph);
sys/cam/ctl/scsi_ctl.c
1115
mtx_lock(mtx);
sys/cam/ctl/scsi_ctl.c
1132
mtx_unlock(mtx);
sys/cam/ctl/scsi_ctl.c
1388
mtx_unlock(mtx);
sys/cam/ctl/scsi_ctl.c
1396
mtx_unlock(mtx);
sys/cam/ctl/scsi_ctl.c
1494
mtx_unlock(mtx);
sys/cam/ctl/scsi_ctl.c
1521
mtx_unlock(mtx);
sys/cam/ctl/scsi_ctl.c
84
struct mtx lun_softc_mtx;
sys/cam/ctl/scsi_ctl.c
90
struct mtx ctlfe_list_mtx;
sys/cam/ctl/scsi_ctl.c
986
struct mtx *mtx;
sys/cam/ctl/scsi_ctl.c
989
mtx = cam_periph_mtx(periph);
sys/cam/ctl/scsi_ctl.c
992
mtx_unlock(mtx);
sys/cam/mmc/mmc_sim.c
194
mtx_init(&mmc_sim->mtx, mmc_sim->name, NULL, MTX_DEF);
sys/cam/mmc/mmc_sim.c
203
&mmc_sim->mtx, 1, 1, mmc_sim->devq);
sys/cam/mmc/mmc_sim.c
211
mtx_lock(&mmc_sim->mtx);
sys/cam/mmc/mmc_sim.c
216
mtx_unlock(&mmc_sim->mtx);
sys/cam/mmc/mmc_sim.c
220
mtx_unlock(&mmc_sim->mtx);
sys/cam/mmc/mmc_sim.c
235
mtx_lock(&mmc_sim->mtx);
sys/cam/mmc/mmc_sim.c
238
mtx_unlock(&mmc_sim->mtx);
sys/cam/mmc/mmc_sim.c
97
mtx_assert(&mmc_sim->mtx, MA_OWNED);
sys/cam/mmc/mmc_sim.h
33
struct mtx mtx;
sys/cam/scsi/scsi_ch.c
246
struct mtx *mtx;
sys/cam/scsi/scsi_ch.c
250
mtx = cam_periph_mtx(periph);
sys/cam/scsi/scsi_ch.c
251
mtx_lock(mtx);
sys/cam/scsi/scsi_ch.c
279
mtx_unlock(mtx);
sys/cam/scsi/scsi_ch.c
507
struct mtx *mtx;
sys/cam/scsi/scsi_ch.c
510
mtx = cam_periph_mtx(periph);
sys/cam/scsi/scsi_ch.c
511
mtx_lock(mtx);
sys/cam/scsi/scsi_ch.c
530
mtx_unlock(mtx);
sys/cam/scsi/scsi_enc.c
129
struct mtx *mtx;
sys/cam/scsi/scsi_enc.c
133
mtx = cam_periph_mtx(periph);
sys/cam/scsi/scsi_enc.c
134
mtx_lock(mtx);
sys/cam/scsi/scsi_enc.c
159
mtx_unlock(mtx);
sys/cam/scsi/scsi_enc.c
313
struct mtx *mtx;
sys/cam/scsi/scsi_enc.c
316
mtx = cam_periph_mtx(periph);
sys/cam/scsi/scsi_enc.c
317
mtx_lock(mtx);
sys/cam/scsi/scsi_enc.c
336
mtx_unlock(mtx);
sys/cam/scsi/scsi_pass.c
293
struct mtx *mtx;
sys/cam/scsi/scsi_pass.c
298
mtx = cam_periph_mtx(periph);
sys/cam/scsi/scsi_pass.c
299
mtx_lock(mtx);
sys/cam/scsi/scsi_pass.c
329
mtx_unlock(mtx);
sys/cam/scsi/scsi_pass.c
443
struct mtx *mtx;
sys/cam/scsi/scsi_pass.c
453
mtx = cam_periph_mtx(periph);
sys/cam/scsi/scsi_pass.c
454
mtx_lock(mtx);
sys/cam/scsi/scsi_pass.c
462
mtx_unlock(mtx);
sys/cam/scsi/scsi_pass.c
466
mtx_lock(mtx);
sys/cam/scsi/scsi_pass.c
483
mtx_unlock(mtx);
sys/cam/scsi/scsi_pass.c
780
struct mtx *mtx;
sys/cam/scsi/scsi_pass.c
783
mtx = cam_periph_mtx(periph);
sys/cam/scsi/scsi_pass.c
784
mtx_lock(mtx);
sys/cam/scsi/scsi_pass.c
849
mtx_unlock(mtx);
sys/cam/scsi/scsi_sa.c
2197
struct mtx *mtx;
sys/cam/scsi/scsi_sa.c
2203
mtx = cam_periph_mtx(periph);
sys/cam/scsi/scsi_sa.c
2204
mtx_lock(mtx);
sys/cam/scsi/scsi_sa.c
2235
mtx_unlock(mtx);
sys/cam/scsi/scsi_sg.c
172
struct mtx *mtx;
sys/cam/scsi/scsi_sg.c
176
mtx = cam_periph_mtx(periph);
sys/cam/scsi/scsi_sg.c
177
mtx_lock(mtx);
sys/cam/scsi/scsi_sg.c
205
mtx_unlock(mtx);
sys/cam/scsi/scsi_sg.c
466
struct mtx *mtx;
sys/cam/scsi/scsi_sg.c
469
mtx = cam_periph_mtx(periph);
sys/cam/scsi/scsi_sg.c
470
mtx_lock(mtx);
sys/cam/scsi/scsi_sg.c
489
mtx_unlock(mtx);
sys/cam/scsi/scsi_xpt.c
1988
struct mtx *mtx;
sys/cam/scsi/scsi_xpt.c
2085
mtx = xpt_path_mtx(scan_info->request_ccb->ccb_h.path);
sys/cam/scsi/scsi_xpt.c
2086
mtx_unlock(mtx);
sys/cam/scsi/scsi_xpt.c
2123
mtx_lock(mtx);
sys/cam/scsi/scsi_xpt.c
2150
mtx = xpt_path_mtx(scan_info->request_ccb->ccb_h.path);
sys/cam/scsi/scsi_xpt.c
2151
mtx_lock(mtx);
sys/cam/scsi/scsi_xpt.c
2304
mtx_unlock(mtx);
sys/cam/scsi/scsi_xpt.c
2317
mtx_unlock(mtx);
sys/cam/scsi/scsi_xpt.c
2325
mtx_unlock(mtx);
sys/cam/scsi/scsi_xpt.c
2369
mtx_unlock(mtx);
sys/cddl/compat/opensolaris/kern/opensolaris_atomic.c
39
struct mtx atomic_mtx;
sys/compat/freebsd32/freebsd32_misc.c
4159
extern struct mtx ffclock_mtx;
sys/compat/linsysfs/linsysfs_net.c
51
static struct mtx net_latch_mtx;
sys/compat/linuxkpi/common/include/linux/hrtimer.h
48
struct mtx mtx;
sys/compat/linuxkpi/common/include/linux/idr.h
60
struct mtx lock;
sys/compat/linuxkpi/common/include/linux/netdevice.h
153
struct mtx napi_mtx;
sys/compat/linuxkpi/common/include/linux/seqlock.h
48
struct mtx seql_lock;
sys/compat/linuxkpi/common/include/linux/spinlock.h
188
struct mtx lock;
sys/compat/linuxkpi/common/include/linux/spinlock.h
46
typedef struct mtx spinlock_t;
sys/compat/linuxkpi/common/include/linux/workqueue.h
58
struct mtx exec_mtx;
sys/compat/linuxkpi/common/include/linux/workqueue.h
92
struct mtx mtx;
sys/compat/linuxkpi/common/include/linux/xarray.h
53
struct mtx xa_lock; /* internal mutex */
sys/compat/linuxkpi/common/include/net/cfg80211.h
1169
struct mutex mtx;
sys/compat/linuxkpi/common/include/net/cfg80211.h
1229
lockdep_assert_held(&(wiphy)->mtx)
sys/compat/linuxkpi/common/include/net/cfg80211.h
1365
rcu_dereference_protected(_p, lockdep_is_held(&(_w)->mtx))
sys/compat/linuxkpi/common/include/net/cfg80211.h
1368
rcu_dereference_check(_p, lockdep_is_held(&(_w)->mtx))
sys/compat/linuxkpi/common/include/net/cfg80211.h
1370
#define wiphy_lock(_w) mutex_lock(&(_w)->mtx)
sys/compat/linuxkpi/common/include/net/cfg80211.h
1371
#define wiphy_unlock(_w) mutex_unlock(&(_w)->mtx)
sys/compat/linuxkpi/common/src/linux_80211.c
2438
lockdep_assert_not_held(&hw->wiphy->mtx);
sys/compat/linuxkpi/common/src/linux_80211.c
2587
lockdep_is_held(&hw->wiphy->mtx));
sys/compat/linuxkpi/common/src/linux_80211.c
2683
lockdep_is_held(&hw->wiphy->mtx));
sys/compat/linuxkpi/common/src/linux_80211.c
4303
mtx_init(&lvif->mtx, "lvif", NULL, MTX_DEF);
sys/compat/linuxkpi/common/src/linux_80211.c
4431
mtx_destroy(&lvif->mtx);
sys/compat/linuxkpi/common/src/linux_80211.c
4441
mtx_destroy(&lvif->mtx);
sys/compat/linuxkpi/common/src/linux_80211.c
4610
mtx_destroy(&lvif->mtx);
sys/compat/linuxkpi/common/src/linux_80211.c
656
lockdep_is_held(&hw->wiphy->mtx));
sys/compat/linuxkpi/common/src/linux_80211.c
8697
lockdep_assert_held(&wiphy->mtx);
sys/compat/linuxkpi/common/src/linux_80211.c
8722
mutex_init(&wiphy->mtx);
sys/compat/linuxkpi/common/src/linux_80211.c
8737
mutex_destroy(&wiphy->mtx);
sys/compat/linuxkpi/common/src/linux_80211.h
171
struct mtx ltxq_mtx;
sys/compat/linuxkpi/common/src/linux_80211.h
196
struct mtx txq_mtx;
sys/compat/linuxkpi/common/src/linux_80211.h
221
struct mtx mtx;
sys/compat/linuxkpi/common/src/linux_80211.h
281
struct mtx txq_mtx;
sys/compat/linuxkpi/common/src/linux_80211.h
290
struct mtx rxq_mtx;
sys/compat/linuxkpi/common/src/linux_80211.h
332
struct mtx scan_mtx;
sys/compat/linuxkpi/common/src/linux_80211.h
370
struct mtx wwk_mtx;
sys/compat/linuxkpi/common/src/linux_80211.h
440
#define LKPI_80211_LVIF_LOCK(_lvif) mtx_lock(&(_lvif)->mtx)
sys/compat/linuxkpi/common/src/linux_80211.h
441
#define LKPI_80211_LVIF_UNLOCK(_lvif) mtx_unlock(&(_lvif)->mtx)
sys/compat/linuxkpi/common/src/linux_hrtimer.c
103
mtx_init(&hrtimer->mtx, "hrtimer", NULL,
sys/compat/linuxkpi/common/src/linux_hrtimer.c
105
callout_init_mtx(&hrtimer->callout, &hrtimer->mtx, 0);
sys/compat/linuxkpi/common/src/linux_hrtimer.c
126
mtx_lock(&hrtimer->mtx);
sys/compat/linuxkpi/common/src/linux_hrtimer.c
130
mtx_unlock(&hrtimer->mtx);
sys/compat/linuxkpi/common/src/linux_hrtimer.c
137
mtx_lock(&hrtimer->mtx);
sys/compat/linuxkpi/common/src/linux_hrtimer.c
140
mtx_unlock(&hrtimer->mtx);
sys/compat/linuxkpi/common/src/linux_hrtimer.c
58
mtx_lock(&hrtimer->mtx);
sys/compat/linuxkpi/common/src/linux_hrtimer.c
60
mtx_unlock(&hrtimer->mtx);
sys/compat/linuxkpi/common/src/linux_hrtimer.c
75
mtx_lock(&hrtimer->mtx);
sys/compat/linuxkpi/common/src/linux_hrtimer.c
77
mtx_unlock(&hrtimer->mtx);
sys/compat/linuxkpi/common/src/linux_lock.c
39
static struct mtx ww_mutex_global;
sys/compat/linuxkpi/common/src/linux_page.c
347
static struct mtx vmmaplock;
sys/compat/linuxkpi/common/src/linux_pci.c
156
struct mtx lock;
sys/compat/linuxkpi/common/src/linux_pci.c
2112
struct mtx pool_lock;
sys/compat/linuxkpi/common/src/linux_tasklet.c
115
mtx_init(&tw->mtx, "linux_tasklet", NULL, MTX_DEF);
sys/compat/linuxkpi/common/src/linux_tasklet.c
140
mtx_destroy(&tw->mtx);
sys/compat/linuxkpi/common/src/linux_tasklet.c
52
struct mtx mtx;
sys/compat/linuxkpi/common/src/linux_tasklet.c
57
#define TASKLET_WORKER_LOCK(tw) mtx_lock(&(tw)->mtx)
sys/compat/linuxkpi/common/src/linux_tasklet.c
58
#define TASKLET_WORKER_UNLOCK(tw) mtx_unlock(&(tw)->mtx)
sys/compat/linuxkpi/common/src/linux_work.c
237
mtx_lock(&dwork->timer.mtx);
sys/compat/linuxkpi/common/src/linux_work.c
267
mtx_unlock(&dwork->timer.mtx);
sys/compat/linuxkpi/common/src/linux_work.c
453
mtx_lock(&dwork->timer.mtx);
sys/compat/linuxkpi/common/src/linux_work.c
455
mtx_unlock(&dwork->timer.mtx);
sys/compat/linuxkpi/common/src/linux_work.c
482
mtx_lock(&dwork->timer.mtx);
sys/compat/linuxkpi/common/src/linux_work.c
490
mtx_unlock(&dwork->timer.mtx);
sys/compat/linuxkpi/common/src/linux_work.c
499
mtx_unlock(&dwork->timer.mtx);
sys/compat/linuxkpi/common/src/linux_work.c
504
mtx_unlock(&dwork->timer.mtx);
sys/compat/linuxkpi/common/src/linux_work.c
530
mtx_lock(&dwork->timer.mtx);
sys/compat/linuxkpi/common/src/linux_work.c
535
mtx_unlock(&dwork->timer.mtx);
sys/compat/linuxkpi/common/src/linux_work.c
543
mtx_unlock(&dwork->timer.mtx);
sys/compat/linuxkpi/common/src/linux_work.c
551
mtx_unlock(&dwork->timer.mtx);
sys/compat/linuxkpi/common/src/linux_work.c
697
mtx_init(&dwork->timer.mtx, spin_lock_name("lkpi-dwork"), NULL,
sys/compat/linuxkpi/common/src/linux_work.c
699
callout_init_mtx(&dwork->timer.callout, &dwork->timer.mtx, 0);
sys/compat/x86bios/x86bios.c
66
static struct mtx x86bios_lock;
sys/crypto/ccp/ccp.h
100
struct mtx cq_lock;
sys/crypto/ccp/ccp.h
137
struct mtx lock;
sys/ddb/db_script.c
113
static struct mtx db_script_mtx;
sys/dev/aac/aacvar.h
368
struct mtx aac_container_lock;
sys/dev/aac/aacvar.h
374
struct mtx aac_io_lock;
sys/dev/aac/aacvar.h
383
struct mtx aac_aifq_lock;
sys/dev/aacraid/aacraid_var.h
386
struct mtx aac_container_lock;
sys/dev/aacraid/aacraid_var.h
392
struct mtx aac_io_lock;
sys/dev/aacraid/aacraid_var.h
401
struct mtx aac_aifq_lock;
sys/dev/acpica/Osd/OsdInterrupt.c
64
static struct mtx acpi_intr_lock;
sys/dev/acpica/Osd/OsdInterrupt.c
69
acpi_intr_init(struct mtx *lock)
sys/dev/acpica/Osd/OsdSynch.c
276
struct mtx am_lock;
sys/dev/acpica/Osd/OsdSynch.c
492
struct mtx al_lock;
sys/dev/acpica/Osd/OsdSynch.c
66
struct mtx as_lock;
sys/dev/acpica/acpi.c
114
struct mtx acpi_mutex;
sys/dev/acpica/acpivar.h
170
extern struct mtx acpi_mutex;
sys/dev/acpica/acpivar.h
175
static struct mtx sys##_mutex; \
sys/dev/adb/adb_kbd.c
71
struct mtx sc_mutex;
sys/dev/adb/adb_mouse.c
71
struct mtx sc_mtx;
sys/dev/ae/if_ae.c
252
mtx_init(&sc->mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, MTX_DEF);
sys/dev/ae/if_ae.c
253
callout_init_mtx(&sc->tick_ch, &sc->mtx, 0);
sys/dev/ae/if_ae.c
780
mtx_destroy(&sc->mtx);
sys/dev/ae/if_aevar.h
112
struct mtx mtx;
sys/dev/ae/if_aevar.h
156
#define AE_LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/dev/ae/if_aevar.h
157
#define AE_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/dev/ae/if_aevar.h
158
#define AE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED)
sys/dev/age/if_agevar.h
232
struct mtx age_mtx;
sys/dev/agp/agppriv.h
78
struct mtx as_lock; /* lock for access to GATT */
sys/dev/ahci/ahci.c
1029
mtx_lock(&ch->mtx);
sys/dev/ahci/ahci.c
1038
msleep(ch, &ch->mtx, PRIBIO, "ahcisusp", hz/100);
sys/dev/ahci/ahci.c
1040
mtx_unlock(&ch->mtx);
sys/dev/ahci/ahci.c
1049
mtx_lock(&ch->mtx);
sys/dev/ahci/ahci.c
1053
mtx_unlock(&ch->mtx);
sys/dev/ahci/ahci.c
1130
0, busdma_lock_mutex, &ch->mtx, &ch->dma.data_tag);
sys/dev/ahci/ahci.c
1193
callout_init_mtx(&slot->timeout, &ch->mtx, 0);
sys/dev/ahci/ahci.c
1305
mtx_assert(&ch->mtx, MA_OWNED);
sys/dev/ahci/ahci.c
1324
mtx_lock(&ch->mtx);
sys/dev/ahci/ahci.c
1326
mtx_unlock(&ch->mtx);
sys/dev/ahci/ahci.c
1340
mtx_lock(&ch->mtx);
sys/dev/ahci/ahci.c
1349
mtx_unlock(&ch->mtx);
sys/dev/ahci/ahci.c
1823
mtx_assert(&ch->mtx, MA_OWNED);
sys/dev/ahci/ahci.c
1839
mtx_assert(&ch->mtx, MA_OWNED);
sys/dev/ahci/ahci.c
738
mtx_lock(&ch->mtx);
sys/dev/ahci/ahci.c
740
mtx_unlock(&ch->mtx);
sys/dev/ahci/ahci.c
754
mtx_lock(&ch->mtx);
sys/dev/ahci/ahci.c
763
mtx_unlock(&ch->mtx);
sys/dev/ahci/ahci.c
786
mtx_lock(&ch->mtx);
sys/dev/ahci/ahci.c
794
mtx_unlock(&ch->mtx);
sys/dev/ahci/ahci.c
821
mtx_init(&ch->mtx, "AHCI channel lock", NULL, MTX_DEF);
sys/dev/ahci/ahci.c
827
callout_init_mtx(&ch->pm_timer, &ch->mtx, 0);
sys/dev/ahci/ahci.c
828
callout_init_mtx(&ch->reset_timer, &ch->mtx, 0);
sys/dev/ahci/ahci.c
872
mtx_lock(&ch->mtx);
sys/dev/ahci/ahci.c
897
device_get_unit(dev), (struct mtx *)&ch->mtx,
sys/dev/ahci/ahci.c
923
mtx_unlock(&ch->mtx);
sys/dev/ahci/ahci.c
940
mtx_unlock(&ch->mtx);
sys/dev/ahci/ahci.c
941
mtx_destroy(&ch->mtx);
sys/dev/ahci/ahci.c
951
mtx_lock(&ch->mtx);
sys/dev/ahci/ahci.c
961
mtx_unlock(&ch->mtx);
sys/dev/ahci/ahci.c
974
mtx_destroy(&ch->mtx);
sys/dev/ahci/ahci.h
468
struct mtx_padalign mtx; /* state lock */
sys/dev/ahci/ahci.h
482
struct mtx mtx; /* state lock */
sys/dev/ahci/ahci.h
537
struct mtx ch_mtx; /* Lock for attached channels */
sys/dev/ahci/ahciem.c
108
mtx_lock(&enc->mtx);
sys/dev/ahci/ahciem.c
123
device_get_unit(dev), &enc->mtx,
sys/dev/ahci/ahciem.c
142
mtx_unlock(&enc->mtx);
sys/dev/ahci/ahciem.c
189
mtx_unlock(&enc->mtx);
sys/dev/ahci/ahciem.c
197
mtx_destroy(&enc->mtx);
sys/dev/ahci/ahciem.c
211
mtx_lock(&enc->mtx);
sys/dev/ahci/ahciem.c
216
mtx_unlock(&enc->mtx);
sys/dev/ahci/ahciem.c
224
mtx_destroy(&enc->mtx);
sys/dev/ahci/ahciem.c
256
mtx_lock(&enc->mtx);
sys/dev/ahci/ahciem.c
258
mtx_unlock(&enc->mtx);
sys/dev/ahci/ahciem.c
267
mtx_lock(&enc->mtx);
sys/dev/ahci/ahciem.c
270
mtx_unlock(&enc->mtx);
sys/dev/ahci/ahciem.c
84
mtx_init(&enc->mtx, "AHCI enclosure lock", NULL, MTX_DEF);
sys/dev/aic7xxx/aic79xx_osm.c
246
&ahd->platform_data->mtx, 1, /*XXX*/256, devq);
sys/dev/aic7xxx/aic79xx_osm.h
130
struct mtx mtx;
sys/dev/aic7xxx/aic79xx_osm.h
193
mtx_init(&ahd->platform_data->mtx, "ahd_lock", NULL, MTX_DEF);
sys/dev/aic7xxx/aic79xx_osm.h
199
mtx_lock(&ahd->platform_data->mtx);
sys/dev/aic7xxx/aic79xx_osm.h
205
mtx_unlock(&ahd->platform_data->mtx);
sys/dev/aic7xxx/aic7xxx_osm.c
192
&ahc->platform_data->mtx, 1, AHC_MAX_QUEUE, devq);
sys/dev/aic7xxx/aic7xxx_osm.c
225
&ahc->platform_data->mtx, 1,
sys/dev/aic7xxx/aic7xxx_osm.h
128
struct mtx mtx;
sys/dev/aic7xxx/aic7xxx_osm.h
176
mtx_init(&ahc->platform_data->mtx, "ahc_lock", NULL, MTX_DEF);
sys/dev/aic7xxx/aic7xxx_osm.h
182
mtx_lock(&ahc->platform_data->mtx);
sys/dev/aic7xxx/aic7xxx_osm.h
188
mtx_unlock(&ahc->platform_data->mtx);
sys/dev/aic7xxx/aic_osm_lib.c
113
msleep(aic, &aic->platform_data->mtx, PUSER, "idle", 0);
sys/dev/aic7xxx/aic_osm_lib.c
99
msleep(aic->platform_data, &aic->platform_data->mtx, PUSER, "thtrm", 0);
sys/dev/aic7xxx/aic_osm_lib.h
120
busdma_lock_mutex, &aic->platform_data->mtx, \
sys/dev/al_eth/al_eth.h
137
struct mtx br_mtx;
sys/dev/al_eth/al_eth.h
235
struct mtx wd_mtx;
sys/dev/al_eth/al_eth.h
237
struct mtx stats_mtx;
sys/dev/al_eth/al_eth.h
352
struct mtx serdes_config_lock;
sys/dev/al_eth/al_eth.h
353
struct mtx if_rx_lock;
sys/dev/alc/if_alcvar.h
255
struct mtx alc_mtx;
sys/dev/ale/if_alevar.h
224
struct mtx ale_mtx;
sys/dev/alpm/alpm.c
127
struct mtx lock;
sys/dev/amdgpio/amdgpio.h
322
struct mtx sc_mtx;
sys/dev/amdpm/amdpm.c
126
struct mtx lock;
sys/dev/amdsmb/amdsmb.c
111
struct mtx lock;
sys/dev/amdsmn/amdsmn.c
72
struct mtx smn_lock;
sys/dev/amdtemp/amdtemp.c
93
struct mtx sc_lock;
sys/dev/apple_bce/apple_bce.h
195
struct mtx lck;
sys/dev/apple_bce/apple_bce.h
277
struct mtx sc_timestamp_lock;
sys/dev/apple_bce/apple_bce.h
286
struct mtx sc_queues_lock;
sys/dev/apple_bce/apple_bce_vhci.c
109
struct mtx sc_fwevt_lock;
sys/dev/apple_bce/apple_bce_vhci.c
119
struct mtx sc_async_lock;
sys/dev/apple_bce/apple_bce_vhci.h
180
struct mtx lock;
sys/dev/apple_bce/apple_bce_vhci.h
198
struct mtx lock; /* Protects SQ submission */
sys/dev/arcmsr/arcmsr.h
80
typedef struct mtx arcmsr_lock_t;
sys/dev/asmc/asmcvar.h
41
struct mtx sc_mtx;
sys/dev/ata/ata-all.c
110
bzero(&ch->state_mtx, sizeof(struct mtx));
sys/dev/ata/ata-all.h
207
struct mtx lock; /* control lock */
sys/dev/ata/ata-all.h
428
struct mtx state_mtx; /* state lock */
sys/dev/ata/chipsets/ata-intel.c
88
struct mtx lock;
sys/dev/ata/chipsets/ata-promise.c
121
struct mtx mtx;
sys/dev/ata/chipsets/ata-promise.c
1235
mtx_lock(&hpktp->mtx);
sys/dev/ata/chipsets/ata-promise.c
1246
mtx_unlock(&hpktp->mtx);
sys/dev/ata/chipsets/ata-promise.c
1255
mtx_lock(&hpktp->mtx);
sys/dev/ata/chipsets/ata-promise.c
1263
mtx_unlock(&hpktp->mtx);
sys/dev/ata/chipsets/ata-promise.c
283
mtx_init(&hpkt->mtx, "ATA promise HPKT lock", NULL, MTX_DEF);
sys/dev/ata/chipsets/ata-promise.c
713
mtx_lock(&hpktp->mtx);
sys/dev/ata/chipsets/ata-promise.c
720
mtx_unlock(&hpktp->mtx);
sys/dev/ath/ah_osdep.c
73
struct mtx ah_regser_mtx;
sys/dev/ath/if_athvar.h
201
struct mtx an_mtx; /* protecting the rate control state */
sys/dev/ath/if_athvar.h
361
struct mtx axq_lock; /* lock on q and link */
sys/dev/ath/if_athvar.h
601
struct mtx sc_mtx; /* master lock (recursive) */
sys/dev/ath/if_athvar.h
602
struct mtx sc_pcu_mtx; /* PCU access mutex */
sys/dev/ath/if_athvar.h
604
struct mtx sc_rx_mtx; /* RX access mutex */
sys/dev/ath/if_athvar.h
606
struct mtx sc_tx_mtx; /* TX handling/comp mutex */
sys/dev/ath/if_athvar.h
608
struct mtx sc_tx_ic_mtx; /* TX queue mutex */
sys/dev/ath/if_athvar.h
760
struct mtx sc_txbuflock; /* txbuf lock */
sys/dev/ath/if_athvar.h
770
struct mtx sc_txcomplock; /* TX EDMA completion lock */
sys/dev/atopcase/atopcase_var.h
101
struct mtx sc_mtx;
sys/dev/axgbe/xgbe-phy-v2.c
118
struct mtx xgbe_phy_comm_lock;
sys/dev/axgbe/xgbe.h
1049
struct mtx rss_mutex;
sys/dev/axgbe/xgbe.h
1110
struct mtx timer_mutex;
sys/dev/axgbe/xgbe.h
1225
struct mtx mdio_mutex;
sys/dev/axgbe/xgbe.h
1268
struct mtx i2c_mutex;
sys/dev/axgbe/xgbe_osdep.h
59
typedef struct mtx spinlock_t;
sys/dev/bce/if_bcereg.h
6296
struct mtx bce_mtx;
sys/dev/bfe/if_bfereg.h
602
struct mtx bfe_mtx;
sys/dev/bge/if_bgereg.h
2945
struct mtx bge_mtx;
sys/dev/bhnd/bhnd.h
424
struct mtx lock; /**< state lock */
sys/dev/bhnd/bhnd_private.h
76
struct mtx cc_mtx; /**< register read/modify/write lock */
sys/dev/bhnd/bhndb/bhndb_pcivar.h
118
struct mtx mtx;
sys/dev/bhnd/bhndb/bhndb_pcivar.h
123
mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \
sys/dev/bhnd/bhndb/bhndb_pcivar.h
125
#define BHNDB_PCI_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/bhnd/bhndb/bhndb_pcivar.h
126
#define BHNDB_PCI_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/bhnd/bhndb/bhndb_pcivar.h
127
#define BHNDB_PCI_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->mtx, what)
sys/dev/bhnd/bhndb/bhndb_pcivar.h
128
#define BHNDB_PCI_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx)
sys/dev/bhnd/bhndb/bhndb_private.h
206
struct mtx dw_steal_mtx; /**< spinlock must be held when stealing a dynamic window allocation */
sys/dev/bhnd/bhndb/bhndbvar.h
186
struct mtx sc_mtx; /**< resource lock. */
sys/dev/bhnd/cores/chipc/chipc_gpiovar.h
123
struct mtx mtx; /**< lock protecting RMW register access */
sys/dev/bhnd/cores/chipc/chipc_gpiovar.h
126
#define CC_GPIO_LOCK_INIT(sc) mtx_init(&(sc)->mtx, \
sys/dev/bhnd/cores/chipc/chipc_gpiovar.h
128
#define CC_GPIO_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/bhnd/cores/chipc/chipc_gpiovar.h
129
#define CC_GPIO_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/bhnd/cores/chipc/chipc_gpiovar.h
130
#define CC_GPIO_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->mtx, what)
sys/dev/bhnd/cores/chipc/chipc_gpiovar.h
131
#define CC_GPIO_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx)
sys/dev/bhnd/cores/chipc/chipcvar.h
160
struct mtx mtx; /**< state mutex. */
sys/dev/bhnd/cores/chipc/chipcvar.h
167
mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \
sys/dev/bhnd/cores/chipc/chipcvar.h
169
#define CHIPC_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/bhnd/cores/chipc/chipcvar.h
170
#define CHIPC_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/bhnd/cores/chipc/chipcvar.h
171
#define CHIPC_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->mtx, what)
sys/dev/bhnd/cores/chipc/chipcvar.h
172
#define CHIPC_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx)
sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctlvar.h
111
struct mtx mtx; /**< state mutex */
sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctlvar.h
118
mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \
sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctlvar.h
120
#define PWRCTL_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctlvar.h
121
#define PWRCTL_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctlvar.h
122
#define PWRCTL_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->mtx, what)
sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctlvar.h
123
#define PWRCTL_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx)
sys/dev/bhnd/cores/pci/bhnd_pcivar.h
105
mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \
sys/dev/bhnd/cores/pci/bhnd_pcivar.h
107
#define BHND_PCI_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/bhnd/cores/pci/bhnd_pcivar.h
108
#define BHND_PCI_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/bhnd/cores/pci/bhnd_pcivar.h
109
#define BHND_PCI_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->mtx, what)
sys/dev/bhnd/cores/pci/bhnd_pcivar.h
110
#define BHND_PCI_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx)
sys/dev/bhnd/cores/pci/bhnd_pcivar.h
97
struct mtx mtx; /**< state mutex used to protect
sys/dev/bhnd/cores/pcie2/bhnd_pcie2_var.h
81
struct mtx mtx; /**< state mutex used to protect
sys/dev/bhnd/cores/pcie2/bhnd_pcie2_var.h
89
mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \
sys/dev/bhnd/cores/pcie2/bhnd_pcie2_var.h
91
#define BHND_PCIE2_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/bhnd/cores/pcie2/bhnd_pcie2_var.h
92
#define BHND_PCIE2_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/bhnd/cores/pcie2/bhnd_pcie2_var.h
93
#define BHND_PCIE2_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->mtx, what)
sys/dev/bhnd/cores/pcie2/bhnd_pcie2_var.h
94
#define BHND_PCIE2_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx)
sys/dev/bhnd/cores/pmu/bhnd_pmuvar.h
110
struct mtx mtx; /**< state mutex */
sys/dev/bhnd/cores/pmu/bhnd_pmuvar.h
120
mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), NULL, MTX_DEF)
sys/dev/bhnd/cores/pmu/bhnd_pmuvar.h
121
#define BPMU_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/bhnd/cores/pmu/bhnd_pmuvar.h
122
#define BPMU_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/bhnd/cores/pmu/bhnd_pmuvar.h
123
#define BPMU_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->mtx, what)
sys/dev/bhnd/cores/pmu/bhnd_pmuvar.h
124
#define BPMU_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx)
sys/dev/bhnd/nvram/bhnd_nvram_storevar.h
267
struct mtx mtx;
sys/dev/bhnd/nvram/bhnd_nvram_storevar.h
269
pthread_mutex_t mtx;
sys/dev/bhnd/nvram/bhnd_nvram_storevar.h
286
mtx_init(&(sc)->mtx, "BHND NVRAM store lock", NULL, MTX_DEF)
sys/dev/bhnd/nvram/bhnd_nvram_storevar.h
287
#define BHND_NVSTORE_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/bhnd/nvram/bhnd_nvram_storevar.h
288
#define BHND_NVSTORE_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/bhnd/nvram/bhnd_nvram_storevar.h
289
#define BHND_NVSTORE_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->mtx, what)
sys/dev/bhnd/nvram/bhnd_nvram_storevar.h
290
#define BHND_NVSTORE_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx)
sys/dev/bhnd/nvram/bhnd_nvram_storevar.h
295
int error = pthread_mutex_init(&(sc)->mtx, NULL); \
sys/dev/bhnd/nvram/bhnd_nvram_storevar.h
301
#define BHND_NVSTORE_LOCK(sc) pthread_mutex_lock(&(sc)->mtx)
sys/dev/bhnd/nvram/bhnd_nvram_storevar.h
302
#define BHND_NVSTORE_UNLOCK(sc) pthread_mutex_unlock(&(sc)->mtx)
sys/dev/bhnd/nvram/bhnd_nvram_storevar.h
303
#define BHND_NVSTORE_LOCK_DESTROY(sc) pthread_mutex_destroy(&(sc)->mtx)
sys/dev/bhnd/siba/sibavar.h
225
struct mtx mtx; /**< state mutex */
sys/dev/bhnd/siba/sibavar.h
229
mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), NULL, MTX_DEF)
sys/dev/bhnd/siba/sibavar.h
230
#define SIBA_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/bhnd/siba/sibavar.h
231
#define SIBA_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/bhnd/siba/sibavar.h
232
#define SIBA_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->mtx, what)
sys/dev/bhnd/siba/sibavar.h
233
#define SIBA_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx)
sys/dev/bnxt/bnxt_en/bnxt.h
1148
struct mtx hwrm_lock;
sys/dev/bnxt/bnxt_en/bnxt.h
1149
struct mtx sriov_lock;
sys/dev/bnxt/bnxt_en/bnxt.h
1327
struct mtx en_ops_lock;
sys/dev/bnxt/bnxt_en/bnxt.h
1397
struct mtx log_lock; /* logging ops lock */
sys/dev/bwi/if_bwivar.h
547
struct mtx sc_mtx;
sys/dev/bwn/if_bwnvar.h
1027
struct mtx sc_mtx;
sys/dev/bxe/bxe.c
229
struct mtx bxe_prev_mtx;
sys/dev/bxe/bxe.h
1005
struct mtx phy_mtx;
sys/dev/bxe/bxe.h
1404
struct mtx core_mtx;
sys/dev/bxe/bxe.h
1407
struct mtx sp_mtx;
sys/dev/bxe/bxe.h
1409
struct mtx dmae_mtx;
sys/dev/bxe/bxe.h
1411
struct mtx fwmb_mtx;
sys/dev/bxe/bxe.h
1413
struct mtx print_mtx;
sys/dev/bxe/bxe.h
1415
struct mtx stats_mtx;
sys/dev/bxe/bxe.h
1417
struct mtx mcast_mtx;
sys/dev/bxe/bxe.h
533
struct mtx tx_mtx;
sys/dev/bxe/bxe.h
535
struct mtx rx_mtx;
sys/dev/bxe/bxe_debug.c
187
extern struct mtx bxe_prev_mtx;
sys/dev/bxe/ecore_sp.h
100
typedef struct mtx ECORE_MUTEX_SPIN;
sys/dev/bxe/ecore_sp.h
94
typedef struct mtx ECORE_MUTEX;
sys/dev/cadence/if_cgem.c
118
struct mtx sc_mtx;
sys/dev/cas/if_casvar.h
130
struct mtx sc_mtx;
sys/dev/cesa/cesa.h
233
struct mtx sc_sc_lock;
sys/dev/cesa/cesa.h
237
struct mtx sc_tdesc_lock;
sys/dev/cesa/cesa.h
243
struct mtx sc_sdesc_lock;
sys/dev/cesa/cesa.h
249
struct mtx sc_requests_lock;
sys/dev/cesa/cesa.h
256
struct mtx sc_sessions_lock;
sys/dev/cfi/cfi_disk.c
61
struct mtx qlock; /* bioq lock */
sys/dev/ciss/cissvar.h
232
struct mtx ciss_mtx;
sys/dev/clk/allwinner/aw_ccu.c
109
mtx_assert(&sc->mtx, MA_OWNED);
sys/dev/clk/allwinner/aw_ccu.c
128
mtx_assert(&sc->mtx, MA_OWNED);
sys/dev/clk/allwinner/aw_ccu.c
143
mtx_lock(&sc->mtx);
sys/dev/clk/allwinner/aw_ccu.c
152
mtx_unlock(&sc->mtx);
sys/dev/clk/allwinner/aw_ccu.c
214
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/dev/clk/allwinner/aw_ccu.c
56
struct mtx mtx;
sys/dev/clk/allwinner/aw_ccu.c
91
mtx_assert(&sc->mtx, MA_OWNED);
sys/dev/clk/allwinner/aw_ccung.c
128
mtx_lock(&sc->mtx);
sys/dev/clk/allwinner/aw_ccung.c
137
mtx_unlock(&sc->mtx);
sys/dev/clk/allwinner/aw_ccung.c
153
mtx_lock(&sc->mtx);
sys/dev/clk/allwinner/aw_ccung.c
157
mtx_unlock(&sc->mtx);
sys/dev/clk/allwinner/aw_ccung.c
168
mtx_lock(&sc->mtx);
sys/dev/clk/allwinner/aw_ccung.c
177
mtx_unlock(&sc->mtx);
sys/dev/clk/allwinner/aw_ccung.c
276
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/dev/clk/allwinner/aw_ccung.h
80
struct mtx mtx;
sys/dev/clk/clk_div.c
56
struct mtx *mtx;
sys/dev/clk/rockchip/rk_cru.c
125
mtx_lock(&sc->mtx);
sys/dev/clk/rockchip/rk_cru.c
130
mtx_unlock(&sc->mtx);
sys/dev/clk/rockchip/rk_cru.c
150
mtx_lock(&sc->mtx);
sys/dev/clk/rockchip/rk_cru.c
152
mtx_unlock(&sc->mtx);
sys/dev/clk/rockchip/rk_cru.c
167
mtx_lock(&sc->mtx);
sys/dev/clk/rockchip/rk_cru.c
176
mtx_unlock(&sc->mtx);
sys/dev/clk/rockchip/rk_cru.c
221
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/dev/clk/rockchip/rk_cru.h
249
struct mtx mtx;
sys/dev/clk/starfive/jh7110_clk.c
66
mtx_lock(&sc->mtx);
sys/dev/clk/starfive/jh7110_clk.c
76
mtx_unlock(&sc->mtx);
sys/dev/clk/starfive/jh7110_clk.c
90
mtx_lock(&sc->mtx);
sys/dev/clk/starfive/jh7110_clk.c
95
mtx_unlock(&sc->mtx);
sys/dev/clk/starfive/jh7110_clk.h
25
struct mtx mtx;
sys/dev/clk/starfive/jh7110_clk_aon.c
128
mtx_lock(&sc->mtx);
sys/dev/clk/starfive/jh7110_clk_aon.c
137
mtx_unlock(&sc->mtx);
sys/dev/clk/starfive/jh7110_clk_aon.c
86
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/dev/clk/starfive/jh7110_clk_pll.c
250
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/dev/clk/starfive/jh7110_clk_pll.c
289
mtx_lock(&sc->mtx);
sys/dev/clk/starfive/jh7110_clk_pll.c
298
mtx_unlock(&sc->mtx);
sys/dev/clk/starfive/jh7110_clk_pll.c
69
struct mtx mtx;
sys/dev/clk/starfive/jh7110_clk_stg.c
122
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/dev/clk/starfive/jh7110_clk_stg.c
164
mtx_lock(&sc->mtx);
sys/dev/clk/starfive/jh7110_clk_stg.c
173
mtx_unlock(&sc->mtx);
sys/dev/clk/starfive/jh7110_clk_sys.c
184
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/dev/clk/starfive/jh7110_clk_sys.c
235
mtx_lock(&sc->mtx);
sys/dev/clk/starfive/jh7110_clk_sys.c
244
mtx_unlock(&sc->mtx);
sys/dev/cxgb/cxgb_adapter.h
100
struct mtx lock;
sys/dev/cxgb/cxgb_adapter.h
192
struct mtx lock;
sys/dev/cxgb/cxgb_adapter.h
288
struct mtx lock;
sys/dev/cxgb/cxgb_adapter.h
295
struct mtx reg_lock;
sys/dev/cxgb/cxgb_adapter.h
356
struct mtx mdio_lock;
sys/dev/cxgb/cxgb_adapter.h
357
struct mtx elmer_lock;
sys/dev/cxgb/cxgb_adapter.h
383
struct mtx lock;
sys/dev/cxgb/cxgb_main.c
217
static struct mtx t3_list_lock;
sys/dev/cxgb/cxgb_main.c
220
static struct mtx t3_uld_list_lock;
sys/dev/cxgb/cxgb_sge.c
1066
struct mtx *lock;
sys/dev/cxgb/cxgb_sge.c
3284
struct mtx *lock;
sys/dev/cxgbe/adapter.h
1041
struct mtx ifp_lock;
sys/dev/cxgbe/adapter.h
1073
struct mtx sc_lock;
sys/dev/cxgbe/adapter.h
1077
struct mtx sfl_lock; /* same cache-line as sc_lock? but that's ok */
sys/dev/cxgbe/adapter.h
1094
struct mtx reg_lock;
sys/dev/cxgbe/adapter.h
1098
struct mtx tc_lock;
sys/dev/cxgbe/adapter.h
254
struct mtx tick_mtx;
sys/dev/cxgbe/adapter.h
327
struct mtx pi_lock;
sys/dev/cxgbe/adapter.h
508
struct mtx eq_lock;
sys/dev/cxgbe/adapter.h
575
struct mtx fl_lock;
sys/dev/cxgbe/crypto/t4_crypto.c
181
struct mtx lock;
sys/dev/cxgbe/crypto/t4_crypto.c
230
struct mtx lock;
sys/dev/cxgbe/cxgbei/cxgbei.h
61
struct mtx cmp_lock;
sys/dev/cxgbe/cxgbei/icl_cxgbei.c
1261
struct mtx *lock = mtx_pool_find(mtxpool_sleep, toep);
sys/dev/cxgbe/cxgbei/icl_cxgbei.c
898
icl_cxgbei_new_conn(const char *name, struct mtx *lock)
sys/dev/cxgbe/nvmf/nvmf_che.c
175
struct mtx lock;
sys/dev/cxgbe/nvmf/nvmf_che.c
251
struct mtx fl_cid_lock; /* Host only */
sys/dev/cxgbe/nvmf/nvmf_che.c
2796
struct mtx *lock = mtx_pool_find(mtxpool_sleep, toep);
sys/dev/cxgbe/offload.h
136
struct mtx stid_lock __aligned(CACHE_LINE_SIZE);
sys/dev/cxgbe/offload.h
142
struct mtx atid_lock __aligned(CACHE_LINE_SIZE);
sys/dev/cxgbe/offload.h
149
struct mtx ftid_lock __aligned(CACHE_LINE_SIZE);
sys/dev/cxgbe/offload.h
160
struct mtx hftid_lock __aligned(CACHE_LINE_SIZE);
sys/dev/cxgbe/offload.h
170
struct mtx etid_lock __aligned(CACHE_LINE_SIZE);
sys/dev/cxgbe/offload.h
84
struct mtx lock;
sys/dev/cxgbe/t4_clip.c
88
static struct mtx clip_db_lock;
sys/dev/cxgbe/t4_l2t.h
70
struct mtx lock;
sys/dev/cxgbe/t4_mp_ring.c
259
ring_can_drain_t can_drain, struct malloc_type *mt, struct mtx *lck,
sys/dev/cxgbe/t4_mp_ring.h
48
struct mtx * cons_lock;
sys/dev/cxgbe/t4_mp_ring.h
62
ring_can_drain_t, struct malloc_type *, struct mtx *, int);
sys/dev/cxgbe/t4_smt.h
54
struct mtx lock;
sys/dev/cxgbe/tom/t4_ddp.c
90
static struct mtx ddp_orphan_pagesets_lock;
sys/dev/cxgbe/tom/t4_tom.c
1024
struct mtx *lock = mtx_pool_find(mtxpool_sleep, toep);
sys/dev/cxgbe/tom/t4_tom.h
197
struct mtx lock;
sys/dev/cxgbe/tom/t4_tom.h
211
struct mtx cache_lock; /* (r) */
sys/dev/cxgbe/tom/t4_tom.h
325
struct mtx te_lock;
sys/dev/cxgbe/tom/t4_tom.h
339
struct mtx toep_list_lock;
sys/dev/cxgbe/tom/t4_tom.h
348
struct mtx lctx_hash_lock;
sys/dev/cxgbe/tom/t4_tom.h
360
struct mtx unsent_wr_lock;
sys/dev/cyapa/cyapa.c
159
struct mtx mutex;
sys/dev/dc/if_dcreg.h
773
struct mtx dc_mtx;
sys/dev/dialog/da9063/da9063_iic.c
220
mtx_init(&sc->mtx, device_get_nameunit(sc->dev), NULL, MTX_DEF);
sys/dev/dialog/da9063/da9063_iic.c
239
mtx_destroy(&sc->mtx);
sys/dev/dialog/da9063/da9063_iic.c
59
struct mtx mtx;
sys/dev/dialog/da9063/da9063_iic.c
63
#define DA9063_IIC_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/dialog/da9063/da9063_iic.c
64
#define DA9063_IIC_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/dialog/da9063/da9063_iic.c
65
#define DA9063_IIC_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED);
sys/dev/dialog/da9063/da9063_iic.c
66
#define DA9063_IIC_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED);
sys/dev/dialog/da9063/da9063_rtc.c
253
mtx_init(&sc->mtx, device_get_nameunit(sc->dev), NULL, MTX_DEF);
sys/dev/dialog/da9063/da9063_rtc.c
272
mtx_destroy(&sc->mtx);
sys/dev/dialog/da9063/da9063_rtc.c
49
struct mtx mtx;
sys/dev/dialog/da9063/da9063_rtc.c
52
#define DA9063_RTC_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/dialog/da9063/da9063_rtc.c
53
#define DA9063_RTC_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/dialog/da9063/da9063_rtc.c
54
#define DA9063_RTC_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED);
sys/dev/dialog/da9063/da9063_rtc.c
55
#define DA9063_RTC_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED);
sys/dev/dpaa/dpaa_eth.h
36
struct mtx sc_lock;
sys/dev/dpaa/dpaa_eth.h
86
struct mtx sc_mii_lock;
sys/dev/dpaa/fman_mdio.c
76
struct mtx sc_lock;
sys/dev/dpaa/fman_xmdio.c
61
struct mtx sc_lock;
sys/dev/dpaa2/dpaa2_buf.c
130
struct mtx *dma_mtx)
sys/dev/dpaa2/dpaa2_buf.c
55
int size, struct mtx *dma_mtx)
sys/dev/dpaa2/dpaa2_buf.h
171
int dpaa2_buf_seed_pool(device_t, device_t, void *, uint32_t, int, struct mtx *);
sys/dev/dpaa2/dpaa2_buf.h
172
int dpaa2_buf_seed_rxb(device_t, struct dpaa2_buf *, int, struct mtx *);
sys/dev/dpaa2/dpaa2_channel.h
63
struct mtx dma_mtx;
sys/dev/dpaa2/dpaa2_channel.h
85
struct mtx xmit_mtx;
sys/dev/dpaa2/dpaa2_console.c
217
mtx_lock(&cd->mtx);
sys/dev/dpaa2/dpaa2_console.c
224
mtx_unlock(&cd->mtx);
sys/dev/dpaa2/dpaa2_console.c
242
mtx_unlock(&cd->mtx);
sys/dev/dpaa2/dpaa2_console.c
253
mtx_lock(&cd->mtx);
sys/dev/dpaa2/dpaa2_console.c
256
mtx_unlock(&cd->mtx);
sys/dev/dpaa2/dpaa2_console.c
271
mtx_lock(&cd->mtx);
sys/dev/dpaa2/dpaa2_console.c
273
mtx_unlock(&cd->mtx);
sys/dev/dpaa2/dpaa2_console.c
297
mtx_unlock(&cd->mtx);
sys/dev/dpaa2/dpaa2_console.c
301
mtx_lock(&cd->mtx);
sys/dev/dpaa2/dpaa2_console.c
318
mtx_unlock(&cd->mtx);
sys/dev/dpaa2/dpaa2_console.c
322
mtx_lock(&cd->mtx);
sys/dev/dpaa2/dpaa2_console.c
324
mtx_unlock(&cd->mtx);
sys/dev/dpaa2/dpaa2_console.c
381
mtx_init(&cd->mtx, "dpaa2 cons", NULL, MTX_DEF);
sys/dev/dpaa2/dpaa2_console.c
394
mtx_destroy(&cd->mtx);
sys/dev/dpaa2/dpaa2_console.c
432
mtx_destroy(&cd->mtx);
sys/dev/dpaa2/dpaa2_console.c
98
struct mtx mtx;
sys/dev/dpaa2/dpaa2_mc.h
103
struct mtx msi_lock;
sys/dev/dpaa2/dpaa2_mc.h
96
struct mtx mdev_lock;
sys/dev/dpaa2/dpaa2_mcp.h
283
struct mtx lock;
sys/dev/dpaa2/dpaa2_ni.h
477
struct mtx lock;
sys/dev/dpaa2/dpaa2_swp.h
396
struct mtx lock;
sys/dev/dpaa2/dpaa2_types.h
94
struct mtx lock;
sys/dev/drm2/drmP.h
1007
struct mtx ctxlist_mutex; /**< For ctxlist */
sys/dev/drm2/drmP.h
1044
struct mtx vblank_time_lock; /**< Protects vblank count and time updates during vblank enable/disable */
sys/dev/drm2/drmP.h
1045
struct mtx vbl_lock;
sys/dev/drm2/drmP.h
1061
struct mtx event_lock;
sys/dev/drm2/drmP.h
1098
struct mtx dma_lock; /* protects dev->dma */
sys/dev/drm2/drmP.h
1099
struct mtx irq_lock; /* protects irq condition checks */
sys/dev/drm2/drmP.h
1112
struct mtx pcir_lock;
sys/dev/drm2/drmP.h
1604
#define DRM_SPINTYPE struct mtx
sys/dev/drm2/drmP.h
402
struct mtx lock;
sys/dev/drm2/drmP.h
439
struct mtx spinlock;
sys/dev/drm2/drmP.h
975
struct mtx count_lock; /**< For inuse, drm_device::open_count, drm_device::buf_use */
sys/dev/drm2/drm_auth.c
39
static struct mtx drm_magic_lock;
sys/dev/drm2/drm_gem_names.h
47
struct mtx lock;
sys/dev/drm2/drm_mm.h
65
struct mtx unused_lock;
sys/dev/drm2/drm_os_freebsd.h
458
struct mtx lock;
sys/dev/drm2/ttm/ttm_bo_driver.h
489
struct mtx lru_lock;
sys/dev/drm2/ttm/ttm_bo_driver.h
540
struct mtx fence_lock;
sys/dev/drm2/ttm/ttm_bo_manager.c
46
struct mtx lock;
sys/dev/drm2/ttm/ttm_lock.h
71
struct mtx lock;
sys/dev/drm2/ttm/ttm_memory.h
74
struct mtx lock;
sys/dev/drm2/ttm/ttm_page_alloc.c
66
struct mtx lock;
sys/dev/dwc/if_dwc.c
587
mtx_init(&sc->mtx, device_get_nameunit(sc->dev),
sys/dev/dwc/if_dwc.c
590
callout_init_mtx(&sc->dwc_callout, &sc->mtx, 0);
sys/dev/dwc/if_dwc.c
673
mtx_destroy(&sc->mtx);
sys/dev/dwc/if_dwcvar.h
123
#define DWC_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/dwc/if_dwcvar.h
124
#define DWC_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/dwc/if_dwcvar.h
125
#define DWC_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED)
sys/dev/dwc/if_dwcvar.h
126
#define DWC_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED)
sys/dev/dwc/if_dwcvar.h
69
struct mtx mtx;
sys/dev/efidev/efirt.c
125
static struct mtx efi_lock;
sys/dev/ena/ena.h
359
struct mtx ring_mtx;
sys/dev/enetc/enetc.h
69
struct mtx mii_lock;
sys/dev/enic/enic.h
308
struct mtx enic_lock;
sys/dev/eqos/if_eqos_var.h
97
struct mtx lock;
sys/dev/et/if_etvar.h
288
struct mtx sc_mtx;
sys/dev/etherswitch/ar40xx/ar40xx_var.h
59
struct mtx sc_mtx; /* serialize access to softc */
sys/dev/etherswitch/arswitch/arswitchvar.h
59
struct mtx sc_mtx; /* serialize access to softc */
sys/dev/etherswitch/e6000sw/e6060sw.c
110
struct mtx sc_mtx; /* serialize access to softc */
sys/dev/etherswitch/felix/felix.c
383
mtx_init(&sc->mtx, "felix lock", NULL, MTX_DEF);
sys/dev/etherswitch/felix/felix.c
384
callout_init_mtx(&sc->tick_callout, &sc->mtx, 0);
sys/dev/etherswitch/felix/felix.c
488
mtx_lock(&sc->mtx);
sys/dev/etherswitch/felix/felix.c
490
mtx_unlock(&sc->mtx);
sys/dev/etherswitch/felix/felix.c
491
mtx_destroy(&sc->mtx);
sys/dev/etherswitch/felix/felix_var.h
100
struct mtx mtx;
sys/dev/etherswitch/felix/felix_var.h
44
#define FELIX_LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/dev/etherswitch/felix/felix_var.h
45
#define FELIX_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/dev/etherswitch/felix/felix_var.h
46
#define FELIX_LOCK_ASSERT(_sc, _what) mtx_assert(&(_sc)->mtx, (_what))
sys/dev/etherswitch/infineon/adm6996fc.c
90
struct mtx sc_mtx; /* serialize access to softc */
sys/dev/etherswitch/ip17x/ip17x_var.h
61
struct mtx sc_mtx; /* serialize access to softc */
sys/dev/etherswitch/micrel/ksz8995ma.c
141
struct mtx sc_mtx; /* serialize access to softc */
sys/dev/etherswitch/mtkswitch/mtkswitchvar.h
57
struct mtx sc_mtx;
sys/dev/etherswitch/rtl8366/rtl8366rb.c
69
struct mtx sc_mtx; /* serialize access to softc */
sys/dev/etherswitch/rtl8366/rtl8366rb.c
71
struct mtx callout_mtx; /* serialize callout */
sys/dev/etherswitch/ukswitch/ukswitch.c
65
struct mtx sc_mtx; /* serialize access to softc */
sys/dev/evdev/evdev.c
367
evdev_register_mtx(struct evdev_dev *evdev, struct mtx *mtx)
sys/dev/evdev/evdev.c
371
evdev->ev_state_lock = mtx;
sys/dev/evdev/evdev.h
140
int evdev_register_mtx(struct evdev_dev *, struct mtx *);
sys/dev/evdev/evdev_private.h
120
struct mtx * ev_state_lock; /* State lock */
sys/dev/evdev/evdev_private.h
121
struct mtx ev_mtx; /* Internal state lock */
sys/dev/evdev/evdev_private.h
224
struct mtx ec_buffer_mtx; /* Client queue lock */
sys/dev/fb/vesa.c
81
static struct mtx vesa_lock;
sys/dev/fdc/fdcvar.h
67
struct mtx fdc_mtx;
sys/dev/fdt/simple_mfd.c
64
#define SYSCON_LOCK(_sc) mtx_lock_spin(&(_sc)->mtx)
sys/dev/fdt/simple_mfd.c
65
#define SYSCON_UNLOCK(_sc) mtx_unlock_spin(&(_sc)->mtx)
sys/dev/fdt/simple_mfd.c
66
#define SYSCON_LOCK_INIT(_sc) mtx_init(&(_sc)->mtx, \
sys/dev/fdt/simple_mfd.c
68
#define SYSCON_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx);
sys/dev/fdt/simple_mfd.c
69
#define SYSCON_ASSERT_LOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED);
sys/dev/fdt/simple_mfd.c
70
#define SYSCON_ASSERT_UNLOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_NOTOWNED);
sys/dev/fdt/simple_mfd.h
37
struct mtx mtx;
sys/dev/ffec/if_ffec.c
1517
callout_init_mtx(&sc->ffec_callout, &sc->mtx, 0);
sys/dev/ffec/if_ffec.c
156
struct mtx mtx;
sys/dev/ffec/if_ffec.c
197
#define FFEC_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/ffec/if_ffec.c
198
#define FFEC_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/ffec/if_ffec.c
199
#define FFEC_LOCK_INIT(sc) mtx_init(&(sc)->mtx, \
sys/dev/ffec/if_ffec.c
201
#define FFEC_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx);
sys/dev/ffec/if_ffec.c
202
#define FFEC_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED);
sys/dev/ffec/if_ffec.c
203
#define FFEC_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED);
sys/dev/firewire/firewire.c
290
struct mtx *lock = &xfer->fc->wait_lock;
sys/dev/firewire/firewire.c
303
struct mtx *lock = &xfer->fc->wait_lock;
sys/dev/firewire/firewirereg.h
161
struct mtx tlabel_lock;
sys/dev/firewire/firewirereg.h
193
struct mtx mtx;
sys/dev/firewire/firewirereg.h
194
struct mtx wait_lock;
sys/dev/firewire/firewirereg.h
200
#define FW_GMTX(fc) (&(fc)->mtx)
sys/dev/firewire/fw_helpers.h
269
fw_iso_wait_inactive_locked(struct mtx *mtx, int *active, const char *wmesg)
sys/dev/firewire/fw_helpers.h
272
mtx_assert(mtx, MA_OWNED);
sys/dev/firewire/fw_helpers.h
274
msleep(active, mtx, PWAIT, wmesg, hz);
sys/dev/firewire/fw_helpers.h
279
struct mtx *mtx, int *active, int *cur_dma_ch, int dma_ch)
sys/dev/firewire/fw_helpers.h
282
mtx_lock(mtx);
sys/dev/firewire/fw_helpers.h
287
mtx_unlock(mtx);
sys/dev/firewire/fw_helpers.h
79
struct mtx *lock = &fc->wait_lock;
sys/dev/firewire/fwcam.c
1038
mtx_init(&sc->mtx, "fwcam", NULL, MTX_DEF);
sys/dev/firewire/fwcam.c
1048
knlist_init_mtx(&sc->rsel.si_note, &sc->mtx);
sys/dev/firewire/fwcam.c
1083
mtx_destroy(&sc->mtx);
sys/dev/firewire/fwcam.c
374
mtx_assert(&sc->mtx, MA_NOTOWNED);
sys/dev/firewire/fwcam.c
555
fw_iso_wait_inactive_locked(&sc->mtx, &sc->iso_active, "fwcamis");
sys/dev/firewire/fwcam.c
558
msleep(&sc->read_in_progress, &sc->mtx, PWAIT, "fwcamst", hz);
sys/dev/firewire/fwcam.c
651
fw_iso_rearm_done(xferq, sc->fd.fc, &sc->mtx, &sc->iso_active,
sys/dev/firewire/fwcam.c
675
err = msleep(sc, &sc->mtx, PCATCH, "fwcampr", 10 * hz);
sys/dev/firewire/fwcam.c
737
err = msleep(sc, &sc->mtx, PCATCH, "fwcamrd", 5 * hz);
sys/dev/firewire/fwcam.h
286
struct mtx mtx;
sys/dev/firewire/fwcam.h
333
#define FWCAM_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/firewire/fwcam.h
334
#define FWCAM_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/firewire/fwdv.c
1020
mtx_destroy(&sc->mtx);
sys/dev/firewire/fwdv.c
181
msleep(&sc->avc_busy, &sc->mtx, PWAIT, "fwdvavc", hz);
sys/dev/firewire/fwdv.c
254
err = msleep(&sc->fcp_resp_ready, &sc->mtx, PCATCH,
sys/dev/firewire/fwdv.c
407
mtx_assert(&sc->mtx, MA_NOTOWNED);
sys/dev/firewire/fwdv.c
530
fw_iso_wait_inactive_locked(&sc->mtx, &sc->iso_active, "fwdvis");
sys/dev/firewire/fwdv.c
533
msleep(&sc->read_in_progress, &sc->mtx, PWAIT, "fwdvst", hz);
sys/dev/firewire/fwdv.c
666
fw_iso_rearm_done(xferq, sc->fd.fc, &sc->mtx, &sc->iso_active,
sys/dev/firewire/fwdv.c
682
err = msleep(sc, &sc->mtx, PCATCH, "fwdvst", 5 * hz);
sys/dev/firewire/fwdv.c
755
err = msleep(sc, &sc->mtx, PCATCH, "fwdvrd", 0);
sys/dev/firewire/fwdv.c
939
mtx_init(&sc->mtx, "fwdv", NULL, MTX_DEF);
sys/dev/firewire/fwdv.c
951
knlist_init_mtx(&sc->rsel.si_note, &sc->mtx);
sys/dev/firewire/fwdv.c
959
mtx_destroy(&sc->mtx);
sys/dev/firewire/fwdv.c
975
mtx_destroy(&sc->mtx);
sys/dev/firewire/fwdv.c
985
mtx_destroy(&sc->mtx);
sys/dev/firewire/fwdv.h
150
struct mtx mtx;
sys/dev/firewire/fwdv.h
190
#define FWDV_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/firewire/fwdv.h
191
#define FWDV_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/firewire/fwisound.c
207
mtx_assert(&sc->mtx, MA_NOTOWNED);
sys/dev/firewire/fwisound.c
331
fw_iso_wait_inactive_locked(&sc->mtx, &sc->iso_active, "fwisis");
sys/dev/firewire/fwisound.c
432
fw_iso_rearm_done(xferq, sc->fd.fc, &sc->mtx, &sc->iso_active,
sys/dev/firewire/fwisound.c
475
mtx_init(&sc->mtx, "fwisound", NULL, MTX_DEF);
sys/dev/firewire/fwisound.c
492
mtx_destroy(&sc->mtx);
sys/dev/firewire/fwisound.c
527
mtx_destroy(&sc->mtx);
sys/dev/firewire/fwisound.h
105
#define FWISOUND_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/firewire/fwisound.h
106
#define FWISOUND_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/firewire/fwisound.h
74
struct mtx mtx;
sys/dev/firewire/if_fwe.c
150
mtx_init(&fwe->mtx, "fwe", NULL, MTX_DEF);
sys/dev/firewire/if_fwe.c
256
mtx_destroy(&fwe->mtx);
sys/dev/firewire/if_fwevar.h
52
struct mtx mtx;
sys/dev/firewire/if_fwevar.h
54
#define FWE_LOCK(fwe) mtx_lock(&(fwe)->mtx)
sys/dev/firewire/if_fwevar.h
55
#define FWE_UNLOCK(fwe) mtx_unlock(&(fwe)->mtx)
sys/dev/firewire/if_fwip.c
166
mtx_init(&fwip->mtx, "fwip", NULL, MTX_DEF);
sys/dev/firewire/if_fwip.c
263
mtx_destroy(&fwip->mtx);
sys/dev/firewire/if_fwipvar.h
62
struct mtx mtx;
sys/dev/firewire/if_fwipvar.h
64
#define FWIP_LOCK(fwip) mtx_lock(&(fwip)->mtx)
sys/dev/firewire/if_fwipvar.h
65
#define FWIP_UNLOCK(fwip) mtx_unlock(&(fwip)->mtx)
sys/dev/firewire/sbp.c
1899
mtx_init(&sbp->mtx, "sbp", NULL, MTX_DEF);
sys/dev/firewire/sbp.c
1915
/*lockarg*/&sbp->mtx,
sys/dev/firewire/sbp.c
1935
&sbp->mtx,
sys/dev/firewire/sbp.c
2108
mtx_destroy(&sbp->mtx);
sys/dev/firewire/sbp.c
215
struct mtx mtx;
sys/dev/firewire/sbp.c
217
#define SBP_LOCK(sbp) mtx_lock(&(sbp)->mtx)
sys/dev/firewire/sbp.c
218
#define SBP_UNLOCK(sbp) mtx_unlock(&(sbp)->mtx)
sys/dev/firewire/sbp.c
219
#define SBP_LOCK_ASSERT(sbp) mtx_assert(&(sbp)->mtx, MA_OWNED)
sys/dev/firewire/sbp.c
2318
mtx_assert(sim->mtx, MA_OWNED);
sys/dev/firewire/sbp.c
499
callout_init_mtx(&sdev->login_callout, &sbp->mtx, 0);
sys/dev/firewire/sbp.c
543
callout_init_mtx(&ocb->timer, &sbp->mtx, 0);
sys/dev/firewire/sbp.c
600
callout_init_mtx(&target->mgm_ocb_timeout, &sbp->mtx, 0);
sys/dev/firewire/sbp.c
601
callout_init_mtx(&target->scan_callout, &sbp->mtx, 0);
sys/dev/firewire/sbp_targ.c
143
struct mtx mtx;
sys/dev/firewire/sbp_targ.c
145
#define SBP_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/firewire/sbp_targ.c
146
#define SBP_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/firewire/sbp_targ.c
1913
mtx_init(&sc->mtx, "sbp_targ", NULL, MTX_DEF);
sys/dev/firewire/sbp_targ.c
1924
"sbp_targ", sc, device_get_unit(dev), &sc->mtx,
sys/dev/firewire/sbp_targ.c
1990
mtx_destroy(&sc->mtx);
sys/dev/firmware/arm/scmi.c
128
struct mtx mtx;
sys/dev/firmware/arm/scmi.c
145
struct mtx mtx;
sys/dev/firmware/arm/scmi.c
160
struct mtx mtx;
sys/dev/firmware/arm/scmi.c
282
mtx_init(&req->mtx, "req", "SCMI", MTX_SPIN);
sys/dev/firmware/arm/scmi.c
286
mtx_init(&rp->mtx, "reqs_pool", "SCMI", MTX_SPIN);
sys/dev/firmware/arm/scmi.c
297
mtx_destroy(&req->mtx);
sys/dev/firmware/arm/scmi.c
301
mtx_destroy(&rp->mtx);
sys/dev/firmware/arm/scmi.c
328
mtx_init(&trs->mtx, "tokens", "SCMI", MTX_SPIN);
sys/dev/firmware/arm/scmi.c
368
mtx_destroy(&sc->trs->mtx);
sys/dev/firmware/arm/scmi.c
408
mtx_lock_spin(&rp->mtx);
sys/dev/firmware/arm/scmi.c
413
mtx_unlock_spin(&rp->mtx);
sys/dev/firmware/arm/scmi.c
431
mtx_lock_spin(&rp->mtx);
sys/dev/firmware/arm/scmi.c
437
mtx_unlock_spin(&rp->mtx);
sys/dev/firmware/arm/scmi.c
448
mtx_lock_spin(&req->mtx);
sys/dev/firmware/arm/scmi.c
450
mtx_unlock_spin(&req->mtx);
sys/dev/firmware/arm/scmi.c
464
mtx_lock_spin(&req->mtx);
sys/dev/firmware/arm/scmi.c
476
mtx_unlock_spin(&req->mtx);
sys/dev/firmware/arm/scmi.c
484
mtx_lock_spin(&sc->trs->mtx);
sys/dev/firmware/arm/scmi.c
494
mtx_unlock_spin(&sc->trs->mtx);
sys/dev/firmware/arm/scmi.c
513
mtx_lock_spin(&sc->trs->mtx);
sys/dev/firmware/arm/scmi.c
519
mtx_unlock_spin(&sc->trs->mtx);
sys/dev/firmware/arm/scmi.c
573
mtx_lock_spin(&sc->trs->mtx);
sys/dev/firmware/arm/scmi.c
575
mtx_unlock_spin(&sc->trs->mtx);
sys/dev/firmware/arm/scmi.c
585
mtx_lock_spin(&sc->trs->mtx);
sys/dev/firmware/arm/scmi.c
588
mtx_unlock_spin(&sc->trs->mtx);
sys/dev/firmware/arm/scmi.c
602
mtx_lock_spin(&sc->trs->mtx);
sys/dev/firmware/arm/scmi.c
607
mtx_unlock_spin(&sc->trs->mtx);
sys/dev/firmware/arm/scmi.c
630
mtx_lock_spin(&req->mtx);
sys/dev/firmware/arm/scmi.c
646
mtx_unlock_spin(&req->mtx);
sys/dev/firmware/arm/scmi.c
698
mtx_lock_spin(&req->mtx);
sys/dev/firmware/arm/scmi.c
701
mtx_unlock_spin(&req->mtx);
sys/dev/firmware/arm/scmi.c
712
mtx_lock_spin(&req->mtx);
sys/dev/firmware/arm/scmi.c
716
mtx_unlock_spin(&req->mtx);
sys/dev/firmware/arm/scmi.h
66
struct mtx mtx;
sys/dev/flash/at45d.c
86
struct mtx sc_mtx;
sys/dev/flash/cqspi.c
116
struct mtx sc_mtx;
sys/dev/flash/flexspi/flex_spi.c
91
struct mtx disk_mtx;
sys/dev/flash/mx25l.c
87
struct mtx sc_mtx;
sys/dev/flash/n25q.c
103
struct mtx sc_mtx;
sys/dev/flash/w25n.c
76
struct mtx sc_mtx;
sys/dev/ftgpio/ftgpio.c
113
struct mtx mtx;
sys/dev/ftgpio/ftgpio.c
48
#define GPIO_LOCK_INIT(_sc) mtx_init(&(_sc)->mtx, \
sys/dev/ftgpio/ftgpio.c
50
#define GPIO_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx)
sys/dev/ftgpio/ftgpio.c
51
#define GPIO_LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/dev/ftgpio/ftgpio.c
52
#define GPIO_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/dev/ftgpio/ftgpio.c
53
#define GPIO_ASSERT_LOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED)
sys/dev/ftgpio/ftgpio.c
54
#define GPIO_ASSERT_UNLOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_NOTOWNED)
sys/dev/fxp/if_fxpvar.h
187
struct mtx sc_mtx;
sys/dev/gem/if_gemvar.h
108
struct mtx sc_mtx;
sys/dev/glxiic/glxiic.c
131
struct mtx mtx; /* Lock. */
sys/dev/glxiic/glxiic.c
168
#define GLXIIC_LOCK(_sc) mtx_lock(&_sc->mtx)
sys/dev/glxiic/glxiic.c
169
#define GLXIIC_UNLOCK(_sc) mtx_unlock(&_sc->mtx)
sys/dev/glxiic/glxiic.c
171
mtx_init(&_sc->mtx, device_get_nameunit(_sc->dev), "glxiic", MTX_DEF)
sys/dev/glxiic/glxiic.c
173
mtx_sleep(_sc, &_sc->mtx, IICPRI, "glxiic", 0)
sys/dev/glxiic/glxiic.c
175
#define GLXIIC_LOCK_DESTROY(_sc) mtx_destroy(&_sc->mtx);
sys/dev/glxiic/glxiic.c
176
#define GLXIIC_ASSERT_LOCKED(_sc) mtx_assert(&_sc->mtx, MA_OWNED);
sys/dev/glxiic/glxiic.c
323
callout_init_mtx(&sc->callout, &sc->mtx, 0);
sys/dev/glxsb/glxsb.c
182
struct mtx sc_task_mtx; /* task mutex */
sys/dev/goldfish/goldfish_rtc.c
112
mtx_destroy(&sc->mtx);
sys/dev/goldfish/goldfish_rtc.c
131
mtx_lock(&sc->mtx);
sys/dev/goldfish/goldfish_rtc.c
134
mtx_unlock(&sc->mtx);
sys/dev/goldfish/goldfish_rtc.c
158
mtx_lock(&sc->mtx);
sys/dev/goldfish/goldfish_rtc.c
161
mtx_unlock(&sc->mtx);
sys/dev/goldfish/goldfish_rtc.c
60
struct mtx mtx;
sys/dev/goldfish/goldfish_rtc.c
93
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/dev/gpio/bytgpio.c
75
struct mtx sc_mtx;
sys/dev/gpio/chvgpio.c
88
struct mtx sc_mtx;
sys/dev/gpio/dwgpio/dwgpio.c
110
struct mtx sc_mtx;
sys/dev/gpio/gpiobusvar.h
87
struct mtx sc_mtx; /* bus mutex */
sys/dev/gpio/gpioc.c
203
mtx_unlock(&intr_conf->mtx);
sys/dev/gpio/gpioc.c
229
mtx_lock(&intr_conf->mtx);
sys/dev/gpio/gpioc.c
247
mtx_unlock(&intr_conf->mtx);
sys/dev/gpio/gpioc.c
276
mtx_lock(&intr_conf->mtx);
sys/dev/gpio/gpioc.c
294
mtx_assert(&intr_conf->mtx, MA_OWNED);
sys/dev/gpio/gpioc.c
295
mtx_lock(&priv->mtx);
sys/dev/gpio/gpioc.c
309
mtx_unlock(&priv->mtx);
sys/dev/gpio/gpioc.c
316
mtx_unlock(&priv->mtx);
sys/dev/gpio/gpioc.c
322
mtx_unlock(&priv->mtx);
sys/dev/gpio/gpioc.c
329
mtx_unlock(&priv->mtx);
sys/dev/gpio/gpioc.c
345
mtx_assert(&intr_conf->mtx, MA_OWNED);
sys/dev/gpio/gpioc.c
346
mtx_lock(&priv->mtx);
sys/dev/gpio/gpioc.c
376
mtx_unlock(&priv->mtx);
sys/dev/gpio/gpioc.c
387
mtx_assert(&intr_conf->mtx, MA_OWNED);
sys/dev/gpio/gpioc.c
414
mtx_lock(&intr_conf->mtx);
sys/dev/gpio/gpioc.c
421
mtx_unlock(&intr_conf->mtx);
sys/dev/gpio/gpioc.c
438
mtx_lock(&intr_conf->mtx);
sys/dev/gpio/gpioc.c
440
mtx_sleep(&intr_conf->config_locked, &intr_conf->mtx, 0,
sys/dev/gpio/gpioc.c
489
mtx_unlock(&intr_conf->mtx);
sys/dev/gpio/gpioc.c
513
mtx_lock(&intr_conf->mtx);
sys/dev/gpio/gpioc.c
519
mtx_unlock(&intr_conf->mtx);
sys/dev/gpio/gpioc.c
526
mtx_unlock(&intr_conf->mtx);
sys/dev/gpio/gpioc.c
534
mtx_lock(&priv->mtx);
sys/dev/gpio/gpioc.c
542
mtx_unlock(&priv->mtx);
sys/dev/gpio/gpioc.c
572
mtx_unlock(&priv->mtx);
sys/dev/gpio/gpioc.c
575
mtx_unlock(&intr_conf->mtx);
sys/dev/gpio/gpioc.c
602
mtx_init(&sc->sc_pin_intr[i].mtx, "gpioc pin", NULL, MTX_DEF);
sys/dev/gpio/gpioc.c
630
mtx_destroy(&sc->sc_pin_intr[i].mtx);
sys/dev/gpio/gpioc.c
650
mtx_lock(&pin_link->pin->mtx);
sys/dev/gpio/gpioc.c
653
&pin_link->pin->mtx, 0, "gpicfg", 0);
sys/dev/gpio/gpioc.c
668
mtx_unlock(&pin_link->pin->mtx);
sys/dev/gpio/gpioc.c
679
mtx_destroy(&priv->mtx);
sys/dev/gpio/gpioc.c
693
mtx_init(&priv->mtx, "gpioc priv", NULL, MTX_DEF);
sys/dev/gpio/gpioc.c
694
knlist_init_mtx(&priv->selinfo.si_note, &priv->mtx);
sys/dev/gpio/gpioc.c
744
mtx_lock(&priv->mtx);
sys/dev/gpio/gpioc.c
753
err = mtx_sleep(priv, &priv->mtx, PCATCH, "gpintr", 0);
sys/dev/gpio/gpioc.c
76
struct mtx mtx;
sys/dev/gpio/gpioc.c
777
mtx_unlock(&priv->mtx);
sys/dev/gpio/gpioc.c
779
mtx_lock(&priv->mtx);
sys/dev/gpio/gpioc.c
781
mtx_unlock(&priv->mtx);
sys/dev/gpio/gpioc.c
87
struct mtx mtx;
sys/dev/gpio/gpioc.c
926
mtx_lock(&priv->mtx);
sys/dev/gpio/gpioc.c
929
mtx_unlock(&priv->mtx);
sys/dev/gpio/gpioc.c
941
mtx_unlock(&priv->mtx);
sys/dev/gpio/gpiokeys.c
105
struct mtx mtx;
sys/dev/gpio/gpiokeys.c
121
struct mtx sc_mtx;
sys/dev/gpio/gpiokeys.c
285
callout_init_mtx(&key->debounce_callout, &key->mtx, 0);
sys/dev/gpio/gpiokeys.c
286
callout_init_mtx(&key->repeat_callout, &key->mtx, 0);
sys/dev/gpio/gpiokeys.c
73
#define GPIOKEY_LOCK(_key) mtx_lock(&(_key)->mtx)
sys/dev/gpio/gpiokeys.c
74
#define GPIOKEY_UNLOCK(_key) mtx_unlock(&(_key)->mtx)
sys/dev/gpio/gpiokeys.c
76
mtx_init(&(_key)->mtx, "gpiokey", "gpiokey", MTX_DEF)
sys/dev/gpio/gpiokeys.c
77
#define GPIOKEY_LOCK_DESTROY(_key) mtx_destroy(&(_key)->mtx);
sys/dev/gpio/gpioled.c
62
struct mtx sc_mtx;
sys/dev/gpio/gpiopps.c
58
struct mtx pps_mtx;
sys/dev/gpio/pl061.h
45
struct mtx sc_mtx;
sys/dev/gpio/qoriq_gpio.h
55
struct mtx sc_mtx;
sys/dev/gve/gve.h
432
struct mtx ring_mtx;
sys/dev/hid/appleir.c
144
struct mtx sc_mtx; /* protects below + callout */
sys/dev/hid/hidbus.c
203
tlc->mtx = &sc->mtx;
sys/dev/hid/hidbus.c
351
mtx_init(&sc->mtx, "hidbus ivar lock", NULL, MTX_DEF);
sys/dev/hid/hidbus.c
389
mtx_destroy(&sc->mtx);
sys/dev/hid/hidbus.c
402
tlc->mtx = &sc->mtx;
sys/dev/hid/hidbus.c
452
*result = (uintptr_t)(tlc->mtx == &sc->mtx ? NULL : tlc->mtx);
sys/dev/hid/hidbus.c
483
tlc->mtx = (struct mtx *)value == NULL ?
sys/dev/hid/hidbus.c
484
&sc->mtx : (struct mtx *)value;
sys/dev/hid/hidbus.c
581
mtx_lock(tlc->mtx);
sys/dev/hid/hidbus.c
583
mtx_unlock(tlc->mtx);
sys/dev/hid/hidbus.c
609
mtx_lock(ivar->mtx);
sys/dev/hid/hidbus.c
611
mtx_unlock(ivar->mtx);
sys/dev/hid/hidbus.c
630
mtx_lock(ivar->mtx);
sys/dev/hid/hidbus.c
632
mtx_unlock(ivar->mtx);
sys/dev/hid/hidbus.c
65
struct mtx *mtx; /* child intr mtx */
sys/dev/hid/hidbus.c
76
struct mtx mtx;
sys/dev/hid/hidbus.h
46
HIDBUS_ACCESSOR(lock, LOCK, struct mtx *)
sys/dev/hid/hidquirk.c
74
static struct mtx hidquirk_mtx;
sys/dev/hid/hidraw.c
97
struct mtx sc_mtx; /* hidbus private mutex */
sys/dev/hid/hidwacom.c
94
struct mtx sc_mtx;
sys/dev/hid/hkbd.c
158
struct mtx sc_mtx;
sys/dev/hid/u2f.c
81
struct mtx sc_mtx; /* hidbus private mutex */
sys/dev/hpt27xx/os_bsd.h
170
struct mtx lock; /* general purpose lock */
sys/dev/hptiop/hptiop.h
420
struct mtx lock;
sys/dev/hptmv/entry.c
153
static struct mtx DpcQueue_Lock;
sys/dev/hptmv/osbsd.h
152
struct mtx lock;
sys/dev/hptnr/os_bsd.h
172
struct mtx lock; /* general purpose lock */
sys/dev/hptrr/os_bsd.h
173
struct mtx lock; /* general purpose lock */
sys/dev/hwpmc/hwpmc_logging.c
95
static struct mtx pmc_kthread_mtx; /* sleep lock */
sys/dev/hwpmc/hwpmc_mod.c
159
struct mtx pmc_processhash_mtx; /* spin mutex */
sys/dev/hwpmc/hwpmc_mod.c
179
static struct mtx pmc_threadfreelist_mtx; /* spin mutex */
sys/dev/hwpmc/hwpmc_rapl.c
61
struct mtx rc_mtx;
sys/dev/hwpmc/hwpmc_rapl.c
77
static struct mtx rapl_alloc_mtx;
sys/dev/hwt/hwt_backend.c
54
static struct mtx hwt_backend_mtx;
sys/dev/hwt/hwt_context.c
102
mtx_init(&ctx->mtx, "ctx", NULL, MTX_SPIN);
sys/dev/hwt/hwt_context.c
64
static struct mtx ident_set_mutex;
sys/dev/hwt/hwt_context.h
69
struct mtx mtx;
sys/dev/hwt/hwt_context.h
70
struct mtx rec_mtx;
sys/dev/hwt/hwt_context.h
75
#define HWT_CTX_LOCK(ctx) mtx_lock_spin(&(ctx)->mtx)
sys/dev/hwt/hwt_context.h
76
#define HWT_CTX_UNLOCK(ctx) mtx_unlock_spin(&(ctx)->mtx)
sys/dev/hwt/hwt_context.h
77
#define HWT_CTX_ASSERT_LOCKED(ctx) mtx_assert(&(ctx)->mtx, MA_OWNED)
sys/dev/hwt/hwt_contexthash.c
65
static struct mtx hwt_contexthash_mtx;
sys/dev/hwt/hwt_hook.c
197
msleep(thr, &thr->mtx, PCATCH, "hwt-mmap", 0);
sys/dev/hwt/hwt_ioctl.c
267
mtx_lock(&ho->mtx);
sys/dev/hwt/hwt_ioctl.c
269
mtx_unlock(&ho->mtx);
sys/dev/hwt/hwt_ioctl.c
368
mtx_lock(&ho->mtx);
sys/dev/hwt/hwt_ioctl.c
370
mtx_unlock(&ho->mtx);
sys/dev/hwt/hwt_owner.c
109
mtx_init(&ho->mtx, "hwts", NULL, MTX_DEF);
sys/dev/hwt/hwt_owner.c
122
mtx_lock(&ho->mtx);
sys/dev/hwt/hwt_owner.c
126
mtx_unlock(&ho->mtx);
sys/dev/hwt/hwt_owner.c
68
mtx_lock(&ho->mtx);
sys/dev/hwt/hwt_owner.c
71
mtx_unlock(&ho->mtx);
sys/dev/hwt/hwt_owner.c
75
mtx_unlock(&ho->mtx);
sys/dev/hwt/hwt_owner.c
86
mtx_lock(&ho->mtx);
sys/dev/hwt/hwt_owner.c
89
mtx_unlock(&ho->mtx);
sys/dev/hwt/hwt_owner.c
93
mtx_unlock(&ho->mtx);
sys/dev/hwt/hwt_owner.h
34
struct mtx mtx; /* Protects hwts. */
sys/dev/hwt/hwt_ownerhash.c
64
static struct mtx hwt_ownerhash_mtx;
sys/dev/hwt/hwt_thread.c
128
mtx_init(&thr->mtx, "thr", NULL, MTX_DEF);
sys/dev/hwt/hwt_thread.h
43
struct mtx mtx;
sys/dev/hwt/hwt_thread.h
60
#define HWT_THR_LOCK(thr) mtx_lock(&(thr)->mtx)
sys/dev/hwt/hwt_thread.h
61
#define HWT_THR_UNLOCK(thr) mtx_unlock(&(thr)->mtx)
sys/dev/hwt/hwt_thread.h
62
#define HWT_THR_ASSERT_LOCKED(thr) mtx_assert(&(thr)->mtx, MA_OWNED)
sys/dev/hyperv/hvsock/hv_sock.c
139
static struct mtx hvs_trans_socks_mtx;
sys/dev/hyperv/input/hv_hid.c
310
mtx_lock(&sc->mtx);
sys/dev/hyperv/input/hv_hid.c
313
mtx_unlock(&sc->mtx);
sys/dev/hyperv/input/hv_hid.c
317
mtx_lock(&sc->mtx);
sys/dev/hyperv/input/hv_hid.c
322
mtx_unlock(&sc->mtx);
sys/dev/hyperv/input/hv_hid.c
411
mtx_init(&sc->mtx, "hvhid lock", NULL, MTX_DEF);
sys/dev/hyperv/input/hv_hid.c
431
mtx_lock(&sc->mtx);
sys/dev/hyperv/input/hv_hid.c
433
ret = mtx_sleep(sc, &sc->mtx, 0, "hvhid", hz * 3);
sys/dev/hyperv/input/hv_hid.c
434
mtx_unlock(&sc->mtx);
sys/dev/hyperv/input/hv_hid.c
468
mtx_destroy(&sc->mtx);
sys/dev/hyperv/input/hv_hid.c
506
mtx_lock(&sc->mtx);
sys/dev/hyperv/input/hv_hid.c
508
mtx_unlock(&sc->mtx);
sys/dev/hyperv/input/hv_hid.c
518
mtx_lock(&sc->mtx);
sys/dev/hyperv/input/hv_hid.c
520
mtx_unlock(&sc->mtx);
sys/dev/hyperv/input/hv_hid.c
60
struct mtx mtx;
sys/dev/hyperv/input/hv_kbdc.h
84
struct mtx ks_mtx;
sys/dev/hyperv/netvsc/if_hnvar.h
118
struct mtx hn_txlist_spin;
sys/dev/hyperv/netvsc/if_hnvar.h
139
struct mtx hn_tx_lock;
sys/dev/hyperv/pcib/vmbus_pcib.c
421
struct mtx config_lock; /* Avoid two threads writing index page */
sys/dev/hyperv/pcib/vmbus_pcib.c
422
struct mtx device_list_lock; /* Protect lists below */
sys/dev/hyperv/pcib/vmbus_pcib.c
86
struct mtx lock;
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1312
mtx_lock(&reqp->event.mtx);
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1317
mtx_unlock(&reqp->event.mtx);
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1333
ret = cv_timedwait(&reqp->event.cv, &reqp->event.mtx, 60*hz);
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1334
mtx_unlock(&reqp->event.mtx);
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1580
mtx_init(&reqp->event.mtx, "storvsc timeout mutex",
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
201
struct mtx hs_lock;
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
2170
mtx_lock(&reqp->event.mtx);
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
2172
mtx_unlock(&reqp->event.mtx);
sys/dev/hyperv/utilities/hv_kvp.c
136
struct mtx pending_mutex;
sys/dev/hyperv/utilities/hv_snapshot.c
213
struct mtx pending_mutex;
sys/dev/hyperv/vmbus/vmbus_brvar.h
52
struct mtx rxbr_lock;
sys/dev/hyperv/vmbus/vmbus_brvar.h
67
struct mtx txbr_lock;
sys/dev/hyperv/vmbus/vmbus_chanvar.h
117
struct mtx ch_subchan_lock;
sys/dev/hyperv/vmbus/vmbus_var.h
121
struct mtx vmbus_prichan_lock;
sys/dev/hyperv/vmbus/vmbus_var.h
125
struct mtx vmbus_chan_lock;
sys/dev/hyperv/vmbus/vmbus_xact.c
56
struct mtx xc_lock;
sys/dev/iavf/iavf_iflib.h
383
struct mtx vc_mtx;
sys/dev/iavf/iavf_osdep.h
180
struct mtx mutex;
sys/dev/ice/ice_iflib.h
269
struct mtx admin_mtx; /* mutex to protect the admin timer */
sys/dev/ice/ice_osdep.h
411
struct mtx mutex;
sys/dev/ice/ice_rdma.c
498
sx_xlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
541
sx_xunlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
559
sx_xlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
564
sx_xunlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
581
sx_xunlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
596
sx_init_flags(&ice_rdma.mtx, "ice rdma interface", SX_DUPOK);
sys/dev/ice/ice_rdma.c
612
sx_destroy(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
686
sx_xlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
688
sx_xunlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
743
sx_xlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
745
sx_xunlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
761
sx_xlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
768
sx_xunlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
772
sx_xunlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
788
sx_xlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
792
sx_xunlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
796
sx_xunlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
824
sx_xlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
829
sx_xunlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
850
sx_xlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
853
sx_xunlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
879
sx_xlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
882
sx_xunlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
904
sx_xlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
907
sx_xunlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
928
sx_xlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma.c
931
sx_xunlock(&ice_rdma.mtx);
sys/dev/ice/ice_rdma_internal.h
104
struct sx mtx;
sys/dev/ichiic/ig4_var.h
110
struct mtx io_lock;
sys/dev/ichsmb/ichsmb_var.h
67
struct mtx mutex; /* device mutex */
sys/dev/ida/idavar.h
144
struct mtx lock;
sys/dev/iicbus/controller/cadence/cdnc_i2c.c
84
struct mtx sc_mtx;
sys/dev/iicbus/controller/opencores/iicoc.h
88
struct mtx sc_mtx;
sys/dev/iicbus/controller/qcom/geni_iic_var.h
66
struct mtx intr_lock;
sys/dev/iicbus/controller/rockchip/rk_i2c.c
124
struct mtx mtx;
sys/dev/iicbus/controller/rockchip/rk_i2c.c
159
#define RK_I2C_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/iicbus/controller/rockchip/rk_i2c.c
160
#define RK_I2C_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/iicbus/controller/rockchip/rk_i2c.c
161
#define RK_I2C_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED)
sys/dev/iicbus/controller/rockchip/rk_i2c.c
488
mtx_sleep(sc, &sc->mtx, 0, "i2cbuswait", 0);
sys/dev/iicbus/controller/rockchip/rk_i2c.c
577
err = msleep(sc, &sc->mtx, PZERO, "rk_i2c",
sys/dev/iicbus/controller/rockchip/rk_i2c.c
618
mtx_init(&sc->mtx, device_get_nameunit(dev), "rk_i2c", MTX_DEF);
sys/dev/iicbus/controller/rockchip/rk_i2c.c
699
mtx_destroy(&sc->mtx);
sys/dev/iicbus/controller/twsi/twsi.h
47
struct mtx mutex;
sys/dev/iicbus/controller/vybrid/vf_i2c.h
65
struct mtx mutex;
sys/dev/iicbus/gpio/tca64xx.c
264
sx_init(&sc->mtx, "tca64xx gpio");
sys/dev/iicbus/gpio/tca64xx.c
297
sx_destroy(&sc->mtx);
sys/dev/iicbus/gpio/tca64xx.c
387
sx_xlock(&sc->mtx);
sys/dev/iicbus/gpio/tca64xx.c
418
sx_unlock(&sc->mtx);
sys/dev/iicbus/gpio/tca64xx.c
482
sx_xlock(&sc->mtx);
sys/dev/iicbus/gpio/tca64xx.c
486
sx_unlock(&sc->mtx);
sys/dev/iicbus/gpio/tca64xx.c
498
sx_unlock(&sc->mtx);
sys/dev/iicbus/gpio/tca64xx.c
503
sx_unlock(&sc->mtx);
sys/dev/iicbus/gpio/tca64xx.c
526
sx_xlock(&sc->mtx);
sys/dev/iicbus/gpio/tca64xx.c
530
sx_unlock(&sc->mtx);
sys/dev/iicbus/gpio/tca64xx.c
539
sx_unlock(&sc->mtx);
sys/dev/iicbus/gpio/tca64xx.c
544
sx_unlock(&sc->mtx);
sys/dev/iicbus/gpio/tca64xx.c
97
struct sx mtx;
sys/dev/iicbus/if_ic.c
88
struct mtx ic_lock;
sys/dev/iicbus/iicbus.h
48
struct mtx lock;
sys/dev/iicbus/iichid.c
1139
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/dev/iicbus/iichid.c
1222
mtx_lock(&sc->mtx);
sys/dev/iicbus/iichid.c
1224
error = mtx_sleep(&sc->reset_acked, &sc->mtx, 0,
sys/dev/iicbus/iichid.c
1230
mtx_unlock(&sc->mtx);
sys/dev/iicbus/iichid.c
1275
mtx_destroy(&sc->mtx);
sys/dev/iicbus/iichid.c
161
struct mtx mtx;
sys/dev/iicbus/iichid.c
300
mtx_lock(&sc->mtx);
sys/dev/iicbus/iichid.c
303
mtx_unlock(&sc->mtx);
sys/dev/iicbus/iicsmb.c
79
struct mtx lock;
sys/dev/iicbus/pmic/rockchip/rk8xx.h
101
struct mtx mtx;
sys/dev/iicbus/sensor/tmp461.c
139
mtx_init(&sc->mtx, "tmp461 temperature", "temperature", MTX_DEF);
sys/dev/iicbus/sensor/tmp461.c
197
mtx_destroy(&sc->mtx);
sys/dev/iicbus/sensor/tmp461.c
235
mtx_lock(&sc->mtx);
sys/dev/iicbus/sensor/tmp461.c
290
mtx_unlock(&sc->mtx);
sys/dev/iicbus/sensor/tmp461.c
92
struct mtx mtx;
sys/dev/intel/spi.h
48
struct mtx sc_mtx;
sys/dev/intpm/intpm.c
59
struct mtx lock;
sys/dev/ioat/ioat.c
158
static struct mtx ioat_list_mtx;
sys/dev/ioat/ioat_test.c
73
static struct mtx ioat_test_lk;
sys/dev/iommu/busdma_iommu.h
50
struct mtx lock;
sys/dev/iommu/iommu.h
110
struct mtx lock; /* (c) */
sys/dev/iommu/iommu.h
72
struct mtx lock;
sys/dev/ipmi/ipmi_smbios.c
82
static struct mtx ipmi_info_mtx;
sys/dev/ipmi/ipmivars.h
110
struct mtx ipmi_io_lock;
sys/dev/ipmi/ipmivars.h
130
struct mtx ipmi_requests_lock;
sys/dev/ips/ips.h
150
struct mtx queue_mtx;
sys/dev/ipw/if_ipwvar.h
97
struct mtx sc_mtx;
sys/dev/isci/isci.h
176
struct mtx lock;
sys/dev/iscsi/icl.c
166
icl_new_conn(const char *offload, bool iser, const char *name, struct mtx *lock)
sys/dev/iscsi/icl.c
235
struct icl_conn *(*new_conn)(const char *, struct mtx *))
sys/dev/iscsi/icl.c
63
struct mtx *lock);
sys/dev/iscsi/icl.h
137
struct mtx *lock);
sys/dev/iscsi/icl.h
142
struct icl_conn *(*new_conn)(const char *, struct mtx *));
sys/dev/iscsi/icl.h
95
struct mtx *ic_lock;
sys/dev/iscsi/icl_soft.c
1348
icl_soft_new_conn(const char *name, struct mtx *lock)
sys/dev/iscsi/iscsi.h
55
struct mtx is_lock;
sys/dev/iser/icl_iser.c
270
iser_new_conn(const char *name, struct mtx *lock)
sys/dev/iser/icl_iser.h
397
struct mtx flush_lock;
sys/dev/iser/icl_iser.h
418
struct mtx lock;
sys/dev/iser/icl_iser.h
463
struct mtx connlist_mutex;
sys/dev/isp/isp_freebsd.h
239
struct mtx lock;
sys/dev/iwi/if_iwivar.h
130
struct mtx sc_mtx;
sys/dev/iwm/if_iwm_notif_wait.c
91
struct mtx lk_mtx;
sys/dev/iwm/if_iwmvar.h
412
struct mtx sc_mtx;
sys/dev/iwn/if_iwnvar.h
243
struct mtx sc_mtx;
sys/dev/iwx/if_iwxvar.h
820
struct mtx sc_mtx;
sys/dev/ixgbe/ixgbe_osdep.h
203
struct mtx mutex;
sys/dev/ixl/i40e_osdep.h
133
struct mtx mutex;
sys/dev/ixl/ixl_iw.c
117
mtx_destroy(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
128
mtx_init(&ixl_iw.mtx, "ixl_iw_pfs", NULL, MTX_DEF);
sys/dev/ixl/ixl_iw.c
147
mtx_lock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
182
mtx_unlock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
194
mtx_lock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
213
mtx_unlock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
229
mtx_lock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
258
mtx_unlock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
271
mtx_lock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
295
mtx_unlock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
397
mtx_lock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
404
mtx_unlock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
427
mtx_lock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
434
mtx_unlock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
460
mtx_lock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
465
mtx_unlock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
477
mtx_unlock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
75
mtx_lock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
84
mtx_unlock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw.c
88
mtx_unlock(&ixl_iw.mtx);
sys/dev/ixl/ixl_iw_int.h
61
struct mtx mtx;
sys/dev/ixl/ixl_pf.h
133
struct mtx admin_mtx; /* mutex to protect the admin timer */
sys/dev/jme/if_jmevar.h
225
struct mtx jme_mtx;
sys/dev/kbdmux/kbdmux.c
96
struct mtx ks_lock
sys/dev/led/led.c
44
static struct mtx led_mtx;
sys/dev/lge/if_lgereg.h
524
struct mtx lge_mtx;
sys/dev/liquidio/base/lio_device.c
180
struct mtx octeon_devices_lock;
sys/dev/liquidio/base/lio_device.h
153
struct mtx lock;
sys/dev/liquidio/base/lio_device.h
372
struct mtx pci_win_lock;
sys/dev/liquidio/base/lio_device.h
375
struct mtx mem_access_lock;
sys/dev/liquidio/base/lio_device.h
483
struct mtx cmd_resp_wqlock;
sys/dev/liquidio/base/lio_droq.h
256
struct mtx lock;
sys/dev/liquidio/base/lio_iq.h
105
struct mtx lock;
sys/dev/liquidio/base/lio_iq.h
108
struct mtx enq_lock;
sys/dev/liquidio/base/lio_iq.h
111
struct mtx post_lock;
sys/dev/liquidio/base/lio_iq.h
116
struct mtx iq_flush_running_lock;
sys/dev/liquidio/base/lio_iq.h
274
struct mtx lock;
sys/dev/liquidio/base/lio_response_manager.h
63
struct mtx lock;
sys/dev/liquidio/lio_network.h
76
struct mtx *glist_lock;
sys/dev/malo/if_malo.h
485
struct mtx lock; /* tx q lock */
sys/dev/malo/if_malo.h
526
struct mtx malo_mtx; /* master lock (recursive) */
sys/dev/malo/if_malohal.h
188
struct mtx mh_mtx;
sys/dev/mana/gdma.h
118
struct mtx lock_spin;
sys/dev/mana/gdma_util.h
175
struct mtx lock;
sys/dev/mana/mana.h
184
struct mtx txq_mtx;
sys/dev/md/md.c
251
struct mtx queue_mtx;
sys/dev/mfi/mfivar.h
324
struct mtx mfi_io_lock;
sys/dev/mgb/if_mgb.h
319
struct mtx mtx;
sys/dev/mge/if_mgevar.h
79
struct mtx transmit_lock; /* transmitter lock */
sys/dev/mge/if_mgevar.h
80
struct mtx receive_lock; /* receiver lock */
sys/dev/mlx/mlxvar.h
154
struct mtx mlx_io_lock;
sys/dev/mlx5/driver.h
319
struct mtx dma_mtx;
sys/dev/mlx5/driver.h
745
struct mtx dump_lock;
sys/dev/mlx5/mlx5_en/en.h
1109
struct mtx async_events_mtx; /* sync hw events */
sys/dev/mlx5/mlx5_en/en.h
758
struct mtx mtx;
sys/dev/mlx5/mlx5_en/en.h
798
struct mtx lock;
sys/dev/mlx5/mlx5_en/en.h
799
struct mtx comp_lock;
sys/dev/mlx5/mlx5_en/en.h
846
struct mtx lock;
sys/dev/mlx5/mlx5_en/en.h
847
struct mtx comp_lock;
sys/dev/mlx5/mlx5_en/en_hw_tls.h
30
#define MLX5E_TLS_TAG_LOCK(tag) mtx_lock(&(tag)->mtx)
sys/dev/mlx5/mlx5_en/en_hw_tls.h
31
#define MLX5E_TLS_TAG_UNLOCK(tag) mtx_unlock(&(tag)->mtx)
sys/dev/mlx5/mlx5_en/en_hw_tls.h
50
struct mtx mtx;
sys/dev/mlx5/mlx5_en/en_hw_tls_rx.h
36
#define MLX5E_TLS_RX_TAG_LOCK(tag) mtx_lock(&(tag)->mtx)
sys/dev/mlx5/mlx5_en/en_hw_tls_rx.h
37
#define MLX5E_TLS_RX_TAG_UNLOCK(tag) mtx_unlock(&(tag)->mtx)
sys/dev/mlx5/mlx5_en/en_hw_tls_rx.h
65
struct mtx mtx;
sys/dev/mlx5/mlx5_en/en_rl.h
143
struct mtx mtx;
sys/dev/mlx5/mlx5_en/en_rl.h
50
#define MLX5E_RL_WORKER_LOCK(rlw) mtx_lock(&(rlw)->mtx)
sys/dev/mlx5/mlx5_en/en_rl.h
51
#define MLX5E_RL_WORKER_UNLOCK(rlw) mtx_unlock(&(rlw)->mtx)
sys/dev/mlx5/mlx5_en/mlx5_en_dim.c
71
mtx_lock(&rq->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_dim.c
75
mtx_unlock(&rq->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
141
mtx_init(&ptag->mtx, "mlx5-tls-tag-mtx", NULL, MTX_DEF);
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
175
mtx_destroy(&ptag->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls_rx.c
416
mtx_init(&ptag->mtx, "mlx5-tls-rx-tag-mtx", NULL, MTX_DEF);
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls_rx.c
436
mtx_destroy(&ptag->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1502
mtx_lock(&rq->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1505
mtx_unlock(&rq->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1514
mtx_lock(&rq->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1521
msleep_sbt(&rq->processing, &rq->mtx, 0, "mlx5ecrq",
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
1524
mtx_unlock(&rq->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2241
mtx_init(&c->rq.mtx, "mlx5rx", MTX_NETWORK_LOCK, MTX_DEF);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2243
callout_init_mtx(&c->rq.watchdog, &c->rq.mtx, 0);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2283
mtx_destroy(&c->rq.mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2655
mtx_lock(&rq->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2657
mtx_unlock(&rq->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2671
mtx_lock(&rq->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
2675
mtx_unlock(&rq->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
4213
mtx_lock(&rq->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_main.c
4216
mtx_unlock(&rq->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
1046
cv_wait(&rlw->cv, &rlw->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
1091
mtx_destroy(&rlw->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
647
cv_wait(&rlw->cv, &rlw->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
946
mtx_init(&rlw->mtx, "mlx5-worker-mtx", NULL, MTX_DEF);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
695
mtx_lock(&rq->mtx);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
721
mtx_unlock(&rq->mtx);
sys/dev/mmc/host/dwmmc_var.h
56
struct mtx sc_mtx;
sys/dev/mmc/mmc_private.h
58
struct mtx sc_mtx;
sys/dev/mmc/mmcsd.c
100
struct mtx ioctl_mtx;
sys/dev/mmc/mmcsd.c
99
struct mtx disk_mtx;
sys/dev/mmc/mmcspi.c
190
struct mtx mtx; /* slot mutex */
sys/dev/mmc/mmcspi.c
214
#define MMCSPI_LOCK_SLOT(_slot) mtx_lock(&(_slot)->mtx)
sys/dev/mmc/mmcspi.c
215
#define MMCSPI_UNLOCK_SLOT(_slot) mtx_unlock(&(_slot)->mtx)
sys/dev/mmc/mmcspi.c
216
#define MMCSPI_SLOT_LOCK_INIT(_slot) mtx_init(&(_slot)->mtx, \
sys/dev/mmc/mmcspi.c
218
#define MMCSPI_SLOT_LOCK_DESTROY(_slot) mtx_destroy(&(_slot)->mtx);
sys/dev/mmc/mmcspi.c
219
#define MMCSPI_ASSERT_SLOT_LOCKED(_slot) mtx_assert(&(_slot)->mtx, \
sys/dev/mmc/mmcspi.c
221
#define MMCSPI_ASSERT_SLOT_UNLOCKED(_slot) mtx_assert(&(_slot)->mtx, \
sys/dev/mmc/mmcspi.c
2223
mtx_sleep(slot, &slot->mtx, 0, "mmcspiah", 0);
sys/dev/mmcnull/mmcnull.c
48
struct mtx sc_mtx;
sys/dev/mpi3mr/mpi3mr.h
245
struct mtx lock;
sys/dev/mpi3mr/mpi3mr.h
387
struct mtx q_lock;
sys/dev/mpi3mr/mpi3mr.h
402
struct mtx q_lock;
sys/dev/mpi3mr/mpi3mr.h
427
struct mtx lock;
sys/dev/mpi3mr/mpi3mr.h
581
struct mtx cmd_pool_lock;
sys/dev/mpi3mr/mpi3mr.h
599
struct mtx mpi3mr_mtx;
sys/dev/mpi3mr/mpi3mr.h
600
struct mtx io_lock;
sys/dev/mpi3mr/mpi3mr.h
613
struct mtx admin_req_lock;
sys/dev/mpi3mr/mpi3mr.h
623
struct mtx admin_reply_lock;
sys/dev/mpi3mr/mpi3mr.h
639
struct mtx reply_free_q_lock;
sys/dev/mpi3mr/mpi3mr.h
653
struct mtx sense_buf_q_lock;
sys/dev/mpi3mr/mpi3mr.h
680
struct mtx fwevt_lock;
sys/dev/mpi3mr/mpi3mr.h
681
struct mtx target_lock;
sys/dev/mpi3mr/mpi3mr.h
689
struct mtx chain_buf_lock;
sys/dev/mpi3mr/mpi3mr.h
713
struct mtx reset_mutex;
sys/dev/mpr/mprvar.h
412
struct mtx mpr_mtx;
sys/dev/mps/mpsvar.h
367
struct mtx mps_mtx;
sys/dev/mpt/mpt.h
532
struct mtx mpt_lock;
sys/dev/mrsas/mrsas.h
3473
struct mtx sim_lock;
sys/dev/mrsas/mrsas.h
3474
struct mtx pci_lock;
sys/dev/mrsas/mrsas.h
3475
struct mtx io_lock;
sys/dev/mrsas/mrsas.h
3476
struct mtx ioctl_lock;
sys/dev/mrsas/mrsas.h
3477
struct mtx mpt_cmd_pool_lock;
sys/dev/mrsas/mrsas.h
3478
struct mtx mfi_cmd_pool_lock;
sys/dev/mrsas/mrsas.h
3479
struct mtx raidmap_lock;
sys/dev/mrsas/mrsas.h
3480
struct mtx aen_lock;
sys/dev/mrsas/mrsas.h
3481
struct mtx stream_lock;
sys/dev/msk/if_mskreg.h
2540
struct mtx msk_mtx;
sys/dev/mvs/mvs.c
123
mtx_init(&ch->mtx, "MVS channel lock", NULL, MTX_DEF);
sys/dev/mvs/mvs.c
128
callout_init_mtx(&ch->pm_timer, &ch->mtx, 0);
sys/dev/mvs/mvs.c
129
callout_init_mtx(&ch->reset_timer, &ch->mtx, 0);
sys/dev/mvs/mvs.c
152
mtx_lock(&ch->mtx);
sys/dev/mvs/mvs.c
1536
mtx_assert(&ch->mtx, MA_OWNED);
sys/dev/mvs/mvs.c
1553
mtx_assert(&ch->mtx, MA_OWNED);
sys/dev/mvs/mvs.c
175
device_get_unit(dev), &ch->mtx,
sys/dev/mvs/mvs.c
200
mtx_unlock(&ch->mtx);
sys/dev/mvs/mvs.c
211
mtx_unlock(&ch->mtx);
sys/dev/mvs/mvs.c
212
mtx_destroy(&ch->mtx);
sys/dev/mvs/mvs.c
221
mtx_lock(&ch->mtx);
sys/dev/mvs/mvs.c
231
mtx_unlock(&ch->mtx);
sys/dev/mvs/mvs.c
244
mtx_destroy(&ch->mtx);
sys/dev/mvs/mvs.c
293
mtx_lock(&ch->mtx);
sys/dev/mvs/mvs.c
296
msleep(ch, &ch->mtx, PRIBIO, "mvssusp", hz/100);
sys/dev/mvs/mvs.c
304
mtx_unlock(&ch->mtx);
sys/dev/mvs/mvs.c
313
mtx_lock(&ch->mtx);
sys/dev/mvs/mvs.c
317
mtx_unlock(&ch->mtx);
sys/dev/mvs/mvs.c
371
0, busdma_lock_mutex, &ch->mtx, &ch->dma.data_tag)) {
sys/dev/mvs/mvs.c
439
callout_init_mtx(&slot->timeout, &ch->mtx, 0);
sys/dev/mvs/mvs.c
652
mtx_lock(&ch->mtx);
sys/dev/mvs/mvs.c
654
mtx_unlock(&ch->mtx);
sys/dev/mvs/mvs.h
551
struct mtx mtx; /* state lock */
sys/dev/mvs/mvs.h
604
struct mtx mtx; /* MIM access lock */
sys/dev/mvs/mvs_pci.c
134
mtx_init(&ctlr->mtx, "MVS controller lock", NULL, MTX_DEF);
sys/dev/mvs/mvs_pci.c
198
mtx_destroy(&ctlr->mtx);
sys/dev/mvs/mvs_pci.c
259
mtx_lock(&ctlr->mtx);
sys/dev/mvs/mvs_pci.c
267
mtx_unlock(&ctlr->mtx);
sys/dev/mvs/mvs_pci.c
341
mtx_lock(&ctlr->mtx);
sys/dev/mvs/mvs_pci.c
344
mtx_unlock(&ctlr->mtx);
sys/dev/mvs/mvs_pci.c
384
mtx_lock(&ctlr->mtx);
sys/dev/mvs/mvs_pci.c
387
mtx_unlock(&ctlr->mtx);
sys/dev/mvs/mvs_soc.c
132
mtx_init(&ctlr->mtx, "MVS controller lock", NULL, MTX_DEF);
sys/dev/mvs/mvs_soc.c
196
mtx_destroy(&ctlr->mtx);
sys/dev/mvs/mvs_soc.c
239
mtx_lock(&ctlr->mtx);
sys/dev/mvs/mvs_soc.c
245
mtx_unlock(&ctlr->mtx);
sys/dev/mwl/if_mwlvar.h
122
struct mtx lock; /* tx q lock */
sys/dev/mwl/if_mwlvar.h
258
struct mtx sc_mtx; /* master lock (recursive) */
sys/dev/mwl/if_mwlvar.h
322
struct mtx sc_rxlock; /* lock on sc_rxfree */
sys/dev/mwl/mwlhal.c
155
struct mtx mh_mtx;
sys/dev/mxge/if_mxge.c
2189
mtx_lock(&tx->mtx);
sys/dev/mxge/if_mxge.c
2192
mtx_unlock(&tx->mtx);
sys/dev/mxge/if_mxge.c
2275
if (mtx_trylock(&tx->mtx)) {
sys/dev/mxge/if_mxge.c
2277
mtx_unlock(&tx->mtx);
sys/dev/mxge/if_mxge.c
2293
mtx_lock(&ss->tx.mtx);
sys/dev/mxge/if_mxge.c
2295
mtx_unlock(&ss->tx.mtx);
sys/dev/mxge/if_mxge.c
2755
mtx_lock(&ss->tx.mtx);
sys/dev/mxge/if_mxge.c
2772
mtx_unlock(&ss->tx.mtx);
sys/dev/mxge/if_mxge.c
3741
mtx_lock(&ss->tx.mtx);
sys/dev/mxge/if_mxge.c
3765
mtx_unlock(&ss->tx.mtx);
sys/dev/mxge/if_mxge.c
4235
mtx_destroy(&ss->tx.mtx);
sys/dev/mxge/if_mxge.c
4294
mtx_init(&ss->tx.mtx, ss->tx.mtx_name, NULL, MTX_DEF);
sys/dev/mxge/if_mxge.c
4296
&ss->tx.mtx);
sys/dev/mxge/if_mxge_var.h
142
struct mtx mtx;
sys/dev/mxge/if_mxge_var.h
212
struct mtx cmd_mtx;
sys/dev/mxge/if_mxge_var.h
213
struct mtx driver_mtx;
sys/dev/my/if_myreg.h
374
struct mtx my_mtx;
sys/dev/nctgpio/nctgpio.c
107
struct mtx mtx;
sys/dev/nctgpio/nctgpio.c
130
#define GPIO_LOCK_INIT(_sc) mtx_init(&(_sc)->mtx, \
sys/dev/nctgpio/nctgpio.c
132
#define GPIO_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx)
sys/dev/nctgpio/nctgpio.c
133
#define GPIO_LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/dev/nctgpio/nctgpio.c
134
#define GPIO_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/dev/nctgpio/nctgpio.c
135
#define GPIO_ASSERT_LOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED)
sys/dev/nctgpio/nctgpio.c
136
#define GPIO_ASSERT_UNLOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_NOTOWNED)
sys/dev/neta/if_mvneta.c
191
#define mvneta_sc_lock(sc) mtx_lock(&sc->mtx)
sys/dev/neta/if_mvneta.c
192
#define mvneta_sc_unlock(sc) mtx_unlock(&sc->mtx)
sys/dev/neta/if_mvneta.c
194
STATIC struct mtx mii_mutex;
sys/dev/neta/if_mvneta.c
536
mtx_init(&sc->mtx, "mvneta_sc", NULL, MTX_DEF);
sys/dev/neta/if_mvneta.c
865
if (mtx_initialized(&sc->mtx))
sys/dev/neta/if_mvneta.c
866
mtx_destroy(&sc->mtx);
sys/dev/neta/if_mvnetavar.h
120
struct mtx ring_mtx;
sys/dev/neta/if_mvnetavar.h
153
struct mtx ring_mtx;
sys/dev/neta/if_mvnetavar.h
209
KASSERT(mtx_owned(&(sc)->mtx), ("SC mutex not owned"))
sys/dev/neta/if_mvnetavar.h
256
struct mtx mtx;
sys/dev/netmap/if_ptnet.c
126
struct mtx lock;
sys/dev/netmap/if_ptnet.c
145
struct mtx lock;
sys/dev/netmap/netmap_freebsd.c
1172
struct mtx worker_lock;
sys/dev/netmap/netmap_freebsd.c
535
struct mtx lock;
sys/dev/netmap/netmap_kern.h
127
struct mtx m;
sys/dev/netmap/netmap_kern.h
90
#define NM_LOCK_T struct mtx /* low level spinlock, used to protect queues */
sys/dev/netmap/netmap_mbq.h
48
#define SPINLOCK_T struct mtx
sys/dev/nfe/if_nfevar.h
110
struct mtx nfe_mtx;
sys/dev/nfsmb/nfsmb.c
118
struct mtx lock;
sys/dev/nge/if_ngereg.h
653
struct mtx nge_mtx;
sys/dev/nmdm/nmdm.c
97
struct mtx ns_mtx;
sys/dev/ntb/if_ntb/if_ntb.c
89
struct mtx tx_lock;
sys/dev/ntb/ntb_hw/ntb_hw_amd.h
244
struct mtx db_mask_lock;
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
256
struct mtx db_mask_lock;
sys/dev/ntb/ntb_transport.c
133
struct mtx ntb_tx_free_q_lock;
sys/dev/ntb/ntb_transport.c
145
struct mtx ntb_rx_q_lock;
sys/dev/ntb/ntb_transport.c
1593
ntb_list_add(struct mtx *lock, struct ntb_queue_entry *entry,
sys/dev/ntb/ntb_transport.c
1603
ntb_list_rm(struct mtx *lock, struct ntb_queue_list *list)
sys/dev/ntb/ntb_transport.c
1621
ntb_list_mv(struct mtx *lock, struct ntb_queue_list *from,
sys/dev/ntb/ntb_transport.c
171
struct mtx tx_lock;
sys/dev/ntb/ntb_transport.c
297
static void ntb_list_add(struct mtx *lock, struct ntb_queue_entry *entry,
sys/dev/ntb/ntb_transport.c
299
static struct ntb_queue_entry *ntb_list_rm(struct mtx *lock,
sys/dev/ntb/ntb_transport.c
301
static struct ntb_queue_entry *ntb_list_mv(struct mtx *lock,
sys/dev/ntsync/ntsyncvar.h
93
struct mtx lock;
sys/dev/nvd/nvd.c
78
struct mtx bioqlock;
sys/dev/nvd/nvd.c
99
static struct mtx nvd_lock;
sys/dev/nvdimm/nvdimm_var.h
130
struct mtx spa_g_mtx;
sys/dev/nvme/nvme.h
1888
struct mtx * driver_lock;
sys/dev/nvme/nvme_ctrlr.c
1184
mtx_lock(&aer->mtx);
sys/dev/nvme/nvme_ctrlr.c
1191
mtx_unlock(&aer->mtx);
sys/dev/nvme/nvme_ctrlr.c
1226
mtx_lock(&aer->mtx);
sys/dev/nvme/nvme_ctrlr.c
1228
mtx_sleep(aer, &aer->mtx, PRIBIO, "nvme_pt", 0);
sys/dev/nvme/nvme_ctrlr.c
1229
mtx_unlock(&aer->mtx);
sys/dev/nvme/nvme_ctrlr.c
1418
struct mtx *mtx = pt->driver_lock;
sys/dev/nvme/nvme_ctrlr.c
1428
mtx_lock(mtx);
sys/dev/nvme/nvme_ctrlr.c
1431
mtx_unlock(mtx);
sys/dev/nvme/nvme_ctrlr.c
1440
struct mtx *mtx;
sys/dev/nvme/nvme_ctrlr.c
1479
mtx = mtx_pool_find(mtxpool_sleep, pt);
sys/dev/nvme/nvme_ctrlr.c
1480
pt->driver_lock = mtx;
sys/dev/nvme/nvme_ctrlr.c
1487
mtx_lock(mtx);
sys/dev/nvme/nvme_ctrlr.c
1489
mtx_sleep(pt, mtx, PRIBIO, "nvme_pt", 0);
sys/dev/nvme/nvme_ctrlr.c
1490
mtx_unlock(mtx);
sys/dev/nvme/nvme_ctrlr.c
1502
struct mtx *mtx = (void *)(uintptr_t)npc->metadata;
sys/dev/nvme/nvme_ctrlr.c
1505
mtx_lock(mtx);
sys/dev/nvme/nvme_ctrlr.c
1508
mtx_unlock(mtx);
sys/dev/nvme/nvme_ctrlr.c
1518
struct mtx *mtx;
sys/dev/nvme/nvme_ctrlr.c
1563
mtx = mtx_pool_find(mtxpool_sleep, npc);
sys/dev/nvme/nvme_ctrlr.c
1564
npc->metadata = (uintptr_t) mtx;
sys/dev/nvme/nvme_ctrlr.c
1572
mtx_lock(mtx);
sys/dev/nvme/nvme_ctrlr.c
1574
mtx_sleep(npc, mtx, PRIBIO, "nvme_npc", 0);
sys/dev/nvme/nvme_ctrlr.c
1575
mtx_unlock(mtx);
sys/dev/nvme/nvme_ctrlr.c
1757
mtx_init(&aer->mtx, "AER mutex", NULL, MTX_DEF);
sys/dev/nvme/nvme_ctrlr.c
1851
mtx_destroy(&aer->mtx);
sys/dev/nvme/nvme_private.h
128
struct mtx mtx;
sys/dev/nvme/nvme_private.h
212
struct mtx lock;
sys/dev/nvme/nvme_private.h
221
struct mtx lock;
sys/dev/nvme/nvme_test.c
120
mtx = mtx_pool_find(mtxpool_sleep, bio);
sys/dev/nvme/nvme_test.c
121
mtx_lock(mtx);
sys/dev/nvme/nvme_test.c
123
msleep(bio, mtx, PRIBIO, "biotestwait", 0);
sys/dev/nvme/nvme_test.c
124
mtx_unlock(mtx);
sys/dev/nvme/nvme_test.c
73
struct mtx *mtx;
sys/dev/nvme/nvme_test.c
75
mtx = mtx_pool_find(mtxpool_sleep, bio);
sys/dev/nvme/nvme_test.c
76
mtx_lock(mtx);
sys/dev/nvme/nvme_test.c
78
mtx_unlock(mtx);
sys/dev/nvme/nvme_test.c
86
struct mtx *mtx;
sys/dev/nvmf/controller/nvmft_qpair.c
39
struct mtx lock;
sys/dev/nvmf/controller/nvmft_var.h
39
struct mtx lock;
sys/dev/nvmf/controller/nvmft_var.h
65
struct mtx lock;
sys/dev/nvmf/host/nvmf.c
49
struct mtx *mtx;
sys/dev/nvmf/host/nvmf.c
52
mtx = mtx_pool_find(mtxpool_sleep, status);
sys/dev/nvmf/host/nvmf.c
53
mtx_lock(mtx);
sys/dev/nvmf/host/nvmf.c
55
mtx_unlock(mtx);
sys/dev/nvmf/host/nvmf.c
63
struct mtx *mtx;
sys/dev/nvmf/host/nvmf.c
66
mtx = mtx_pool_find(mtxpool_sleep, status);
sys/dev/nvmf/host/nvmf.c
67
mtx_lock(mtx);
sys/dev/nvmf/host/nvmf.c
69
mtx_unlock(mtx);
sys/dev/nvmf/host/nvmf.c
76
struct mtx *mtx;
sys/dev/nvmf/host/nvmf.c
78
mtx = mtx_pool_find(mtxpool_sleep, status);
sys/dev/nvmf/host/nvmf.c
79
mtx_lock(mtx);
sys/dev/nvmf/host/nvmf.c
81
mtx_sleep(status, mtx, 0, "nvmfcmd", 0);
sys/dev/nvmf/host/nvmf.c
82
mtx_unlock(mtx);
sys/dev/nvmf/host/nvmf_aer.c
28
struct mtx *lock;
sys/dev/nvmf/host/nvmf_ns.c
35
struct mtx lock;
sys/dev/nvmf/host/nvmf_qpair.c
38
struct mtx lock;
sys/dev/nvmf/host/nvmf_var.h
41
struct mtx sim_mtx;
sys/dev/nvmf/nvmf_tcp.c
61
struct mtx lock;
sys/dev/oce/oce_if.h
527
struct mtx mutex;
sys/dev/ocs_fc/ocs.h
188
struct mtx sim_lock;
sys/dev/ocs_fc/ocs.h
211
struct mtx dbg_lock;
sys/dev/ocs_fc/ocs_os.h
533
struct mtx lock;
sys/dev/ocs_fc/ocs_os.h
852
struct mtx lock;
sys/dev/ofw/ofw_disk.c
48
struct mtx ofwd_queue_mtx;
sys/dev/ofw/ofwvar.h
67
struct mtx ofw_mtx; /* available for instance use */
sys/dev/ofw/openfirm.c
97
static struct mtx xreflist_lock;
sys/dev/otus/if_otusreg.h
1015
struct mtx sc_mtx;
sys/dev/ow/ow.c
559
mtx_init(&sc->mtx, device_get_nameunit(sc->dev), "ow", MTX_DEF);
sys/dev/ow/ow.c
56
struct mtx mtx; /* bus mutex */
sys/dev/ow/ow.c
662
mtx_sleep(sc, &sc->mtx, 0, "owbuswait", 0);
sys/dev/ow/ow.c
68
#define OW_LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/dev/ow/ow.c
69
#define OW_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/dev/ow/ow.c
70
#define OW_LOCK_DESTROY(_sc) mtx_destroy(&_sc->mtx)
sys/dev/ow/ow.c
71
#define OW_ASSERT_LOCKED(_sc) mtx_assert(&_sc->mtx, MA_OWNED)
sys/dev/ow/ow.c
72
#define OW_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->mtx, MA_NOTOWNED)
sys/dev/ow/ow_temp.c
68
struct mtx temp_lock;
sys/dev/ow/owc_gpiobus.c
67
struct mtx sc_mtx;
sys/dev/p2sb/p2sb.c
70
struct mtx mutex;
sys/dev/pccbb/pccbb.c
305
mtx_lock(&sc->mtx);
sys/dev/pccbb/pccbb.c
310
msleep(sc->event_thread, &sc->mtx, PWAIT, "cbbun", 0);
sys/dev/pccbb/pccbb.c
312
mtx_unlock(&sc->mtx);
sys/dev/pccbb/pccbb.c
317
mtx_destroy(&sc->mtx);
sys/dev/pccbb/pccbb.c
431
mtx_lock(&sc->mtx);
sys/dev/pccbb/pccbb.c
434
mtx_unlock(&sc->mtx);
sys/dev/pccbb/pccbb.c
484
mtx_lock(&sc->mtx);
sys/dev/pccbb/pccbb.c
486
msleep(&sc->intrhand, &sc->mtx, 0, "-", 0);
sys/dev/pccbb/pccbb.c
490
err = msleep(&sc->intrhand, &sc->mtx, 0, "-", hz / 5);
sys/dev/pccbb/pccbb.c
494
mtx_unlock(&sc->mtx);
sys/dev/pccbb/pccbb.c
747
mtx_lock(&sc->mtx);
sys/dev/pccbb/pccbb.c
760
msleep(&sc->powerintr, &sc->mtx, 0, "-", hz / 20);
sys/dev/pccbb/pccbb.c
761
mtx_unlock(&sc->mtx);
sys/dev/pccbb/pccbb_pci.c
286
mtx_init(&sc->mtx, device_get_nameunit(brdev), "cbb", MTX_DEF);
sys/dev/pccbb/pccbb_pci.c
301
mtx_destroy(&sc->mtx);
sys/dev/pccbb/pccbb_pci.c
390
mtx_destroy(&sc->mtx);
sys/dev/pccbb/pccbbvar.h
66
struct mtx mtx;
sys/dev/pcf/pcfvar.h
69
struct mtx pcf_lock;
sys/dev/pci/pci_dw.c
728
mtx_init(&sc->mtx, "pci_dw_mtx", NULL, MTX_DEF);
sys/dev/pci/pci_dw.h
108
struct mtx mtx;
sys/dev/pci/pcib_private.h
127
struct mtx *pcie_hp_lock;
sys/dev/pms/freebsd/driver/common/lxcommon.h
396
struct mtx pmIOLock;
sys/dev/pms/freebsd/driver/ini/src/agtiapi.c
1159
pmsc->STLock = malloc( ( maxLocks * sizeof(struct mtx) ), M_PMC_MSTL,
sys/dev/pms/freebsd/driver/ini/src/agtiapi.c
4333
struct mtx *mutex,
sys/dev/pms/freebsd/driver/ini/src/agtiapi.c
5666
struct mtx *lock,
sys/dev/pms/freebsd/driver/ini/src/agtiapi.h
273
struct mtx OS_timer_lock;
sys/dev/pms/freebsd/driver/ini/src/agtiapi.h
275
struct mtx IO_timer_lock;
sys/dev/pms/freebsd/driver/ini/src/agtiapi.h
277
struct mtx devRmTimerLock;
sys/dev/pms/freebsd/driver/ini/src/agtiapi.h
365
struct mtx ioerr_queue_lock;
sys/dev/pms/freebsd/driver/ini/src/agtiapi.h
377
struct mtx sendLock; // local queue lock
sys/dev/pms/freebsd/driver/ini/src/agtiapi.h
378
struct mtx doneLock; // local queue lock
sys/dev/pms/freebsd/driver/ini/src/agtiapi.h
379
struct mtx sendSMPLock; // local queue lock
sys/dev/pms/freebsd/driver/ini/src/agtiapi.h
380
struct mtx doneSMPLock; // local queue lock
sys/dev/pms/freebsd/driver/ini/src/agtiapi.h
381
struct mtx ccbLock; // ccb list lock
sys/dev/pms/freebsd/driver/ini/src/agtiapi.h
382
struct mtx *STLock; // Low Level & TD locks
sys/dev/pms/freebsd/driver/ini/src/agtiapi.h
384
struct mtx memLock; // dynamic memory allocation lock
sys/dev/pms/freebsd/driver/ini/src/agtiapi.h
385
struct mtx freezeLock;
sys/dev/pms/freebsd/driver/ini/src/agtiapi.h
391
struct mtx devListLock; // device lists lock
sys/dev/pms/freebsd/driver/ini/src/agtiproto.h
47
struct mtx *mutex,
sys/dev/pms/freebsd/driver/ini/src/agtiproto.h
80
struct mtx *,
sys/dev/ppbus/if_plip.c
160
static struct mtx lp_tables_lock;
sys/dev/ppbus/ppb_base.c
220
struct mtx *
sys/dev/ppbus/ppbconf.h
249
struct mtx *ppc_lock; /* lock of parent device */
sys/dev/ppbus/ppbconf.h
264
extern struct mtx *ppb_get_lock(device_t);
sys/dev/ppc/ppcreg.h
117
struct mtx ppc_lock;
sys/dev/proto/proto.h
56
struct mtx sc_mtx;
sys/dev/pst/pst-iop.c
173
mtx_lock(&sc->mtx);
sys/dev/pst/pst-iop.c
199
mtx_unlock(&sc->mtx);
sys/dev/pst/pst-iop.c
433
mtx_lock(&sc->mtx);
sys/dev/pst/pst-iop.c
438
if (msleep(&request, &sc->mtx, PRIBIO, "pstwt", 10 * hz)) {
sys/dev/pst/pst-iop.c
441
mtx_unlock(&sc->mtx);
sys/dev/pst/pst-iop.c
454
mtx_unlock(&sc->mtx);
sys/dev/pst/pst-iop.c
461
mtx_unlock(&sc->mtx);
sys/dev/pst/pst-iop.h
53
struct mtx mtx;
sys/dev/pst/pst-pci.c
113
mtx_destroy(&sc->mtx);
sys/dev/pst/pst-pci.c
93
mtx_init(&sc->mtx, "pst lock", NULL, MTX_DEF);
sys/dev/pst/pst-raid.c
210
mtx_lock(&psc->iop->mtx);
sys/dev/pst/pst-raid.c
213
mtx_unlock(&psc->iop->mtx);
sys/dev/pst/pst-raid.c
235
callout_init_mtx(&request->timeout, &psc->iop->mtx, 0);
sys/dev/pst/pst-raid.c
323
mtx_assert(&request->psc->iop->mtx, MA_OWNED);
sys/dev/qat/include/common/adf_transport_internal.h
16
struct mtx lock; /* protects ring data struct */
sys/dev/qat/include/common/adf_transport_internal.h
40
struct mtx lock; /* protects bank data struct */
sys/dev/qat/include/common/adf_uio_control.h
29
struct mtx lock;
sys/dev/qat/include/qat_ocf_mem_pool.h
101
struct mtx cyInstMtx;
sys/dev/qat/include/qat_ocf_mem_pool.h
106
struct mtx cookie_pool_mtx;
sys/dev/qat/qat_api/common/compression/include/dc_session.h
222
struct mtx sessionLock;
sys/dev/qat/qat_api/common/crypto/sym/include/lac_session.h
197
struct mtx requestQueueLock;
sys/dev/qat/qat_api/common/crypto/sym/include/lac_session.h
383
struct mtx requestQueueLock;
sys/dev/qat/qat_api/common/crypto/sym/include/lac_session.h
535
struct mtx requestQueueLock;
sys/dev/qat/qat_api/common/include/lac_common.h
749
typedef struct mtx *lac_lock_t;
sys/dev/qat/qat_api/freebsd_module.c
11
extern struct mtx *adfDevicesLock;
sys/dev/qat/qat_api/qat_kernel/src/lac_adf_interface_freebsd.c
17
struct mtx *adfDevicesLock;
sys/dev/qat/qat_api/qat_utils/include/qat_utils.h
325
CpaStatus qatUtilsLockInit(struct mtx *pLock);
sys/dev/qat/qat_api/qat_utils/include/qat_utils.h
348
CpaStatus qatUtilsLock(struct mtx *pLock);
sys/dev/qat/qat_api/qat_utils/include/qat_utils.h
367
CpaStatus qatUtilsUnlock(struct mtx *pLock);
sys/dev/qat/qat_api/qat_utils/include/qat_utils.h
382
CpaStatus qatUtilsLockDestroy(struct mtx *pLock);
sys/dev/qat/qat_api/qat_utils/include/qat_utils.h
490
CpaStatus qatUtilsMutexInit(struct mtx **pMutex);
sys/dev/qat/qat_api/qat_utils/include/qat_utils.h
508
CpaStatus qatUtilsMutexLock(struct mtx **pMutex, int32_t timeout);
sys/dev/qat/qat_api/qat_utils/include/qat_utils.h
524
CpaStatus qatUtilsMutexUnlock(struct mtx **pMutex);
sys/dev/qat/qat_api/qat_utils/include/qat_utils.h
542
CpaStatus qatUtilsMutexDestroy(struct mtx **pMutex);
sys/dev/qat/qat_api/qat_utils/include/qat_utils.h
560
CpaStatus qatUtilsMutexTryLock(struct mtx **pMutex);
sys/dev/qat/qat_api/qat_utils/src/QatUtilsSemaphore.c
123
qatUtilsMutexInit(struct mtx **pMutex)
sys/dev/qat/qat_api/qat_utils/src/QatUtilsSemaphore.c
127
*pMutex = malloc(sizeof(struct mtx), M_QAT, M_WAITOK);
sys/dev/qat/qat_api/qat_utils/src/QatUtilsSemaphore.c
129
memset(*pMutex, 0, sizeof(struct mtx));
sys/dev/qat/qat_api/qat_utils/src/QatUtilsSemaphore.c
136
qatUtilsMutexLock(struct mtx **pMutex, int32_t timeout)
sys/dev/qat/qat_api/qat_utils/src/QatUtilsSemaphore.c
150
qatUtilsMutexUnlock(struct mtx **pMutex)
sys/dev/qat/qat_api/qat_utils/src/QatUtilsSemaphore.c
159
qatUtilsMutexDestroy(struct mtx **pMutex)
sys/dev/qat/qat_api/qat_utils/src/QatUtilsSpinLock.c
18
qatUtilsLock(struct mtx *pLock)
sys/dev/qat/qat_api/qat_utils/src/QatUtilsSpinLock.c
28
qatUtilsUnlock(struct mtx *pLock)
sys/dev/qat/qat_api/qat_utils/src/QatUtilsSpinLock.c
38
qatUtilsLockDestroy(struct mtx *pLock)
sys/dev/qat/qat_api/qat_utils/src/QatUtilsSpinLock.c
7
qatUtilsLockInit(struct mtx *pLock)
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
38
static struct mtx mtx;
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
39
static struct mtx callout_mtx;
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
401
mtx_lock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
414
mtx_unlock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
470
mtx_lock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
477
mtx_unlock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
480
mtx_unlock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
496
mtx_lock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
498
mtx_unlock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
503
mtx_unlock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
507
mtx_unlock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
521
mtx_init(&mtx, mtx_name, NULL, MTX_DEF);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
545
mtx_lock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
551
mtx_unlock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
552
mtx_destroy(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
565
mtx_lock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
568
knlist_init_mtx(&prv_data->rsel.si_note, &mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
574
mtx_unlock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
598
mtx_lock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
601
mtx_unlock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
606
mtx_unlock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
624
mtx_unlock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
637
mtx_lock(&mtx);
sys/dev/qat/qat_common/adf_freebsd_dev_processes.c
660
mtx_unlock(&mtx);
sys/dev/qat_c2xxx/qatvar.h
167
struct mtx qr_ring_mtx; /* Lock per ring */
sys/dev/qat_c2xxx/qatvar.h
196
struct mtx qb_bank_mtx;
sys/dev/qat_c2xxx/qatvar.h
641
struct mtx qs_session_mtx;
sys/dev/qat_c2xxx/qatvar.h
654
struct mtx qcb_bank_mtx;
sys/dev/qat_c2xxx/qatvar.h
670
struct mtx qcy_crypto_mtx;
sys/dev/qcom_ess_edma/qcom_ess_edma.c
258
&ring->mtx);
sys/dev/qcom_ess_edma/qcom_ess_edma_desc.c
196
mtx_destroy(&ring->mtx);
sys/dev/qcom_ess_edma/qcom_ess_edma_desc.c
234
mtx_destroy(&ring->mtx);
sys/dev/qcom_ess_edma/qcom_ess_edma_desc.c
97
mtx_init(&ring->mtx, ring->label, NULL, MTX_DEF);
sys/dev/qcom_ess_edma/qcom_ess_edma_var.h
116
struct mtx mtx;
sys/dev/qcom_ess_edma/qcom_ess_edma_var.h
213
struct mtx sc_mtx;
sys/dev/qcom_ess_edma/qcom_ess_edma_var.h
39
#define EDMA_RING_LOCK(_ring) mtx_lock(&(_ring)->mtx)
sys/dev/qcom_ess_edma/qcom_ess_edma_var.h
40
#define EDMA_RING_UNLOCK(_ring) mtx_unlock(&(_ring)->mtx)
sys/dev/qcom_ess_edma/qcom_ess_edma_var.h
41
#define EDMA_RING_LOCK_ASSERT(_ring) mtx_assert(&(_ring)->mtx, MA_OWNED)
sys/dev/qcom_gcc/qcom_gcc_clock.c
89
mtx_lock(&sc->mtx);
sys/dev/qcom_gcc/qcom_gcc_clock.c
98
mtx_unlock(&sc->mtx);
sys/dev/qcom_gcc/qcom_gcc_ipq4018_reset.c
145
mtx_lock(&sc->mtx);
sys/dev/qcom_gcc/qcom_gcc_ipq4018_reset.c
152
mtx_unlock(&sc->mtx);
sys/dev/qcom_gcc/qcom_gcc_ipq4018_reset.c
169
mtx_lock(&sc->mtx);
sys/dev/qcom_gcc/qcom_gcc_ipq4018_reset.c
175
mtx_unlock(&sc->mtx);
sys/dev/qcom_gcc/qcom_gcc_main.c
165
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/dev/qcom_gcc/qcom_gcc_var.h
54
struct mtx mtx;
sys/dev/qcom_mdio/qcom_mdio_ipq4018_var.h
61
struct mtx sc_mtx;
sys/dev/qcom_qup/qcom_spi_var.h
49
struct mtx sc_mtx;
sys/dev/qcom_tcsr/qcom_tcsr_var.h
41
struct mtx sc_mtx;
sys/dev/qcom_tlmm/qcom_tlmm_var.h
191
struct mtx gpio_mtx;
sys/dev/qlnx/qlnxe/bcm_osal.h
144
typedef struct mtx osal_spinlock_t;
sys/dev/qlnx/qlnxe/bcm_osal.h
145
typedef struct mtx osal_mutex_t;
sys/dev/qlnx/qlnxe/qlnx_def.h
184
struct mtx tx_mtx;
sys/dev/qlnx/qlnxe/qlnx_rdma.c
91
struct mtx qlnx_rdma_dev_lock;
sys/dev/qlnx/qlnxr/qlnxr_def.h
368
struct mtx idr_lock;
sys/dev/qlnx/qlnxr/qlnxr_def.h
394
struct mtx sgid_lock;
sys/dev/qlxgb/qla_def.h
155
struct mtx hw_lock;
sys/dev/qlxgb/qla_def.h
161
struct mtx tx_lock;
sys/dev/qlxgb/qla_def.h
170
struct mtx rx_lock;
sys/dev/qlxgb/qla_def.h
171
struct mtx rxj_lock;
sys/dev/qlxgbe/ql_def.h
117
struct mtx tx_mtx;
sys/dev/qlxgbe/ql_def.h
185
struct mtx sp_log_lock;
sys/dev/qlxgbe/ql_def.h
186
struct mtx hw_lock;
sys/dev/qlxge/qls_def.h
293
struct mtx hw_lock;
sys/dev/qlxge/qls_def.h
305
struct mtx tx_lock;
sys/dev/ral/rt2560var.h
108
struct mtx sc_mtx;
sys/dev/ral/rt2661var.h
101
struct mtx sc_mtx;
sys/dev/ral/rt2860var.h
120
struct mtx sc_mtx;
sys/dev/random/fenestrasX/fx_pool.c
238
static struct mtx fxent_pool_lk;
sys/dev/random/fenestrasX/fx_rng.h
35
struct mtx rng_lk;
sys/dev/random/fortuna.h
35
typedef struct mtx mtx_t;
sys/dev/random/other_algorithm.h
45
typedef struct mtx mtx_t;
sys/dev/random/random_harvestq.c
133
struct mtx hc_mtx;
sys/dev/rccgpio/rccgpio.c
70
struct mtx sc_mtx;
sys/dev/regulator/regulator_fixed.c
63
static struct mtx gpio_list_mtx;
sys/dev/rge/if_rgevar.h
157
struct mtx sc_mtx;
sys/dev/rl/if_rlreg.h
902
struct mtx rl_mtx;
sys/dev/rtsx/rtsx.c
75
struct mtx rtsx_mtx; /* device mutex */
sys/dev/rtwn/if_rtwnvar.h
220
struct mtx nt_mtx;
sys/dev/rtwn/if_rtwnvar.h
229
struct mtx sc_mtx;
sys/dev/rtwn/if_rtwnvar.h
232
struct mtx cmdq_mtx;
sys/dev/safe/safevar.h
156
struct mtx sc_ringmtx; /* PE ring lock */
sys/dev/safexcel/safexcel.c
135
mtx_assert(&ring->mtx, MA_OWNED);
sys/dev/safexcel/safexcel.c
148
mtx_assert(&ring->mtx, MA_OWNED);
sys/dev/safexcel/safexcel.c
180
mtx_lock(&ring->mtx);
sys/dev/safexcel/safexcel.c
1986
mtx_assert(&ring->mtx, MA_OWNED);
sys/dev/safexcel/safexcel.c
2024
mtx_assert(&ring->mtx, MA_OWNED);
sys/dev/safexcel/safexcel.c
2060
mtx_assert(&ring->mtx, MA_OWNED);
sys/dev/safexcel/safexcel.c
2073
mtx_assert(&ring->mtx, MA_OWNED);
sys/dev/safexcel/safexcel.c
2132
mtx_assert(&ring->mtx, MA_OWNED);
sys/dev/safexcel/safexcel.c
230
mtx_lock(&ring->mtx);
sys/dev/safexcel/safexcel.c
250
mtx_unlock(&ring->mtx);
sys/dev/safexcel/safexcel.c
2539
mtx_lock(&ring->mtx);
sys/dev/safexcel/safexcel.c
2543
mtx_unlock(&ring->mtx);
sys/dev/safexcel/safexcel.c
2558
mtx_unlock(&ring->mtx);
sys/dev/safexcel/safexcel.c
2583
mtx_unlock(&ring->mtx);
sys/dev/safexcel/safexcel.c
754
mtx_assert(&ring->mtx, MA_OWNED);
sys/dev/safexcel/safexcel.c
798
mtx_init(&ring->mtx, ring->lockname, NULL, MTX_DEF);
sys/dev/safexcel/safexcel.c
899
mtx_destroy(&ring->mtx);
sys/dev/safexcel/safexcel_var.h
371
struct mtx mtx;
sys/dev/sbni/if_sbni.c
126
static struct mtx headlist_lock;
sys/dev/sbni/if_sbnivar.h
113
struct mtx lock;
sys/dev/scc/scc_bfe.h
123
struct mtx sc_hwmtx; /* Spinlock protecting hardware. */
sys/dev/sdhci/fsl_sdhci.c
653
mtx_assert(&sc->slot.mtx, MA_OWNED);
sys/dev/sdhci/fsl_sdhci.c
695
mtx_lock(&sc->slot.mtx);
sys/dev/sdhci/fsl_sdhci.c
697
mtx_unlock(&sc->slot.mtx);
sys/dev/sdhci/fsl_sdhci.c
708
mtx_lock(&sc->slot.mtx);
sys/dev/sdhci/fsl_sdhci.c
748
mtx_unlock(&sc->slot.mtx);
sys/dev/sdhci/sdhci.c
1140
callout_init_mtx(&slot->timeout_callout, &slot->mtx, 0);
sys/dev/sdhci/sdhci.c
1141
callout_init_mtx(&slot->retune_callout, &slot->mtx, 0);
sys/dev/sdhci/sdhci.c
148
#define SDHCI_LOCK(_slot) mtx_lock(&(_slot)->mtx)
sys/dev/sdhci/sdhci.c
149
#define SDHCI_UNLOCK(_slot) mtx_unlock(&(_slot)->mtx)
sys/dev/sdhci/sdhci.c
151
mtx_init(&_slot->mtx, "SD slot mtx", "sdhci", MTX_DEF)
sys/dev/sdhci/sdhci.c
152
#define SDHCI_LOCK_DESTROY(_slot) mtx_destroy(&_slot->mtx);
sys/dev/sdhci/sdhci.c
153
#define SDHCI_ASSERT_LOCKED(_slot) mtx_assert(&_slot->mtx, MA_OWNED);
sys/dev/sdhci/sdhci.c
154
#define SDHCI_ASSERT_UNLOCKED(_slot) mtx_assert(&_slot->mtx, MA_NOTOWNED);
sys/dev/sdhci/sdhci.c
1615
msleep(tune_req, &slot->mtx, 0, "sdhciet", 0);
sys/dev/sdhci/sdhci.c
2200
msleep(slot, &slot->mtx, 0, "sdhciah", 0);
sys/dev/sdhci/sdhci.h
352
struct mtx mtx; /* Slot mutex */
sys/dev/sdhci/sdhci.h
418
struct mtx sim_mtx;
sys/dev/sdhci/sdhci_xenon.c
162
mtx_assert(&slot->mtx, MA_OWNED);
sys/dev/sec/sec.h
178
struct mtx sc_controller_lock;
sys/dev/sec/sec.h
179
struct mtx sc_descriptors_lock;
sys/dev/sfxge/common/efsys.h
1032
struct mtx lock;
sys/dev/sfxge/common/efsys.h
570
struct mtx esb_lock;
sys/dev/sfxge/sfxge.h
161
struct mtx lock;
sys/dev/sfxge/sfxge.h
219
struct mtx lock;
sys/dev/sfxge/sfxge.h
242
struct mtx lock;
sys/dev/sfxge/sfxge_tx.h
201
struct mtx lock __aligned(CACHE_LINE_SIZE);
sys/dev/sge/if_sgereg.h
362
struct mtx sge_mtx;
sys/dev/siis/siis.c
1023
mtx_assert(&ch->mtx, MA_OWNED);
sys/dev/siis/siis.c
1064
mtx_assert(&ch->mtx, MA_OWNED);
sys/dev/siis/siis.c
1132
mtx_assert(&ch->mtx, MA_OWNED);
sys/dev/siis/siis.c
1153
mtx_assert(&ch->mtx, MA_OWNED);
sys/dev/siis/siis.c
1177
mtx_assert(&ch->mtx, MA_OWNED);
sys/dev/siis/siis.c
1217
mtx_assert(&ch->mtx, MA_OWNED);
sys/dev/siis/siis.c
1814
mtx_assert(&ch->mtx, MA_OWNED);
sys/dev/siis/siis.c
483
mtx_init(&ch->mtx, "SIIS channel lock", NULL, MTX_DEF);
sys/dev/siis/siis.c
491
mtx_lock(&ch->mtx);
sys/dev/siis/siis.c
514
device_get_unit(dev), &ch->mtx, 2, SIIS_MAX_SLOTS, devq);
sys/dev/siis/siis.c
532
mtx_unlock(&ch->mtx);
sys/dev/siis/siis.c
544
mtx_unlock(&ch->mtx);
sys/dev/siis/siis.c
545
mtx_destroy(&ch->mtx);
sys/dev/siis/siis.c
555
mtx_lock(&ch->mtx);
sys/dev/siis/siis.c
560
mtx_unlock(&ch->mtx);
sys/dev/siis/siis.c
570
mtx_destroy(&ch->mtx);
sys/dev/siis/siis.c
606
mtx_lock(&ch->mtx);
sys/dev/siis/siis.c
609
msleep(ch, &ch->mtx, PRIBIO, "siissusp", hz/100);
sys/dev/siis/siis.c
611
mtx_unlock(&ch->mtx);
sys/dev/siis/siis.c
620
mtx_lock(&ch->mtx);
sys/dev/siis/siis.c
624
mtx_unlock(&ch->mtx);
sys/dev/siis/siis.c
691
0, busdma_lock_mutex, &ch->mtx, &ch->dma.data_tag)) {
sys/dev/siis/siis.c
748
callout_init_mtx(&slot->timeout, &ch->mtx, 0);
sys/dev/siis/siis.c
842
mtx_lock(&ch->mtx);
sys/dev/siis/siis.c
844
mtx_unlock(&ch->mtx);
sys/dev/siis/siis.c
856
mtx_assert(&ch->mtx, MA_OWNED);
sys/dev/siis/siis.c
955
mtx_assert(&ch->mtx, MA_OWNED);
sys/dev/siis/siis.c
983
mtx_assert(&ch->mtx, MA_OWNED);
sys/dev/siis/siis.h
375
struct mtx mtx; /* state lock */
sys/dev/sis/if_sisreg.h
491
struct mtx sis_mtx;
sys/dev/sk/if_skreg.h
1457
struct mtx sk_mii_mtx;
sys/dev/sk/if_skreg.h
1458
struct mtx sk_mtx;
sys/dev/smartpqi/smartpqi_defines.h
1121
struct mtx cam_lock;
sys/dev/smartpqi/smartpqi_defines.h
1122
struct mtx map_lock;
sys/dev/smartpqi/smartpqi_defines.h
1190
typedef struct mtx OS_LOCK_T;
sys/dev/smartpqi/smartpqi_misc.c
111
os_init_spinlock(struct pqisrc_softstate *softs, struct mtx *lock,
sys/dev/smartpqi/smartpqi_misc.c
123
os_uninit_spinlock(struct mtx *lock)
sys/dev/smartpqi/smartpqi_prototypes.h
283
int os_init_spinlock(struct pqisrc_softstate *, struct mtx *, char *);
sys/dev/smartpqi/smartpqi_prototypes.h
284
void os_uninit_spinlock(struct mtx *);
sys/dev/smbus/smbus.h
37
struct mtx lock;
sys/dev/smc/if_smcvar.h
34
struct mtx smc_mtx;
sys/dev/snp/snp.c
49
static struct mtx snp_register_lock;
sys/dev/sound/dummy.c
70
struct mtx lock;
sys/dev/sound/macio/aoa.c
57
struct mtx mutex;
sys/dev/sound/macio/davbus.c
64
struct mtx mutex;
sys/dev/sound/macio/i2s.c
91
struct mtx port_mtx;
sys/dev/sound/midi/midi.c
64
struct mtx lock;
sys/dev/sound/pci/als4000.c
82
struct mtx lock;
sys/dev/sound/pci/atiixp.c
132
struct mtx lock;
sys/dev/sound/pci/cmi.c
119
struct mtx lock;
sys/dev/sound/pci/csamidi.c
175
mtx_lock(&scp->mtx);
sys/dev/sound/pci/csamidi.c
177
mtx_unlock(&scp->mtx);
sys/dev/sound/pci/csamidi.c
223
mtx_init(&scp->mtx, device_get_nameunit(dev), "csamidi softc",
sys/dev/sound/pci/csamidi.c
255
mtx_destroy(&scp->mtx);
sys/dev/sound/pci/csamidi.c
73
struct mtx mtx;
sys/dev/sound/pci/emu10k1.c
221
struct mtx lock;
sys/dev/sound/pci/emu10kx-midi.c
100
mtx_lock(&sc->mtx);
sys/dev/sound/pci/emu10kx-midi.c
102
mtx_unlock(&sc->mtx);
sys/dev/sound/pci/emu10kx-midi.c
172
mtx_init(&scp->mtx, device_get_nameunit(dev), "midi softc", MTX_DEF);
sys/dev/sound/pci/emu10kx-midi.c
204
mtx_destroy(&scp->mtx);
sys/dev/sound/pci/emu10kx-midi.c
230
mtx_destroy(&scp->mtx);
sys/dev/sound/pci/emu10kx-midi.c
56
struct mtx mtx;
sys/dev/sound/pci/emu10kx-pcm.c
93
struct mtx lock;
sys/dev/sound/pci/emu10kx.c
294
struct mtx gpr_lock;
sys/dev/sound/pci/emu10kx.c
309
struct mtx lock;
sys/dev/sound/pci/emu10kx.c
310
struct mtx rw; /* Hardware exclusive access lock */
sys/dev/sound/pci/emu10kx.c
323
struct mtx emu10kx_lock;
sys/dev/sound/pci/envy24.c
119
struct mtx lock;
sys/dev/sound/pci/envy24ht.c
128
struct mtx lock;
sys/dev/sound/pci/es137x.c
227
struct mtx lock;
sys/dev/sound/pci/hda/hdaa.h
189
struct mtx *lock;
sys/dev/sound/pci/hda/hdac.c
1893
static struct mtx *
sys/dev/sound/pci/hda/hdac_private.h
165
struct mtx lock;
sys/dev/sound/pci/hda/hdacc.c
55
struct mtx *lock;
sys/dev/sound/pci/hda/hdacc.c
632
static struct mtx *
sys/dev/sound/pci/hdsp.h
226
struct mtx lock;
sys/dev/sound/pci/hdspe.h
217
struct mtx lock;
sys/dev/sound/pci/ich.c
199
struct mtx ich_lock;
sys/dev/sound/pci/maestro3.c
159
struct mtx sc_lock;
sys/dev/sound/pci/solo.c
100
struct mtx lock;
sys/dev/sound/pci/spicds.c
52
struct mtx lock;
sys/dev/sound/pci/t4dwave.c
102
struct mtx lock;
sys/dev/sound/pci/via8233.c
124
struct mtx lock;
sys/dev/sound/pci/via82c686.c
93
struct mtx lock;
sys/dev/sound/pcm/ac97.c
68
struct mtx lock;
sys/dev/sound/pcm/channel.c
214
struct mtx snd_pcm_syncgroups_mtx;
sys/dev/sound/pcm/channel.h
113
struct mtx lock;
sys/dev/sound/pcm/channel.h
57
extern struct mtx snd_pcm_syncgroups_mtx;
sys/dev/sound/pcm/mixer.h
55
struct mtx lock;
sys/dev/sound/pcm/sound.h
206
struct mtx lock;
sys/dev/sound/usb/uaudio.c
234
struct mtx lock; /* lock protecting this structure */
sys/dev/sound/usb/uaudio.c
304
struct mtx mtx;
sys/dev/sound/usb/uaudio.c
359
struct mtx mixer_lock;
sys/dev/sound/usb/uaudio.c
6020
mtx_lock(&chan->mtx);
sys/dev/sound/usb/uaudio.c
6023
mtx_unlock(&chan->mtx);
sys/dev/sound/usb/uaudio.c
6030
mtx_lock(&chan->mtx);
sys/dev/sound/usb/uaudio.c
6036
mtx_unlock(&chan->mtx);
sys/dev/sound/usb/uaudio.c
6065
mtx_init(&chan->mtx, "umidi lock", NULL, MTX_DEF | MTX_RECURSE);
sys/dev/sound/usb/uaudio.c
6105
chan, &chan->mtx);
sys/dev/sound/usb/uaudio.c
6143
error = usb_fifo_attach(sc->sc_udev, chan, &chan->mtx,
sys/dev/sound/usb/uaudio.c
6152
mtx_lock(&chan->mtx);
sys/dev/sound/usb/uaudio.c
6162
mtx_unlock(&chan->mtx);
sys/dev/sound/usb/uaudio.c
6180
mtx_lock(&chan->mtx);
sys/dev/sound/usb/uaudio.c
6184
mtx_unlock(&chan->mtx);
sys/dev/sound/usb/uaudio.c
6188
mtx_destroy(&chan->mtx);
sys/dev/spibus/controller/allwinner/aw_spi.c
140
struct mtx mtx;
sys/dev/spibus/controller/allwinner/aw_spi.c
156
#define AW_SPI_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/spibus/controller/allwinner/aw_spi.c
157
#define AW_SPI_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/spibus/controller/allwinner/aw_spi.c
158
#define AW_SPI_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED)
sys/dev/spibus/controller/allwinner/aw_spi.c
191
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/dev/spibus/controller/allwinner/aw_spi.c
268
mtx_destroy(&sc->mtx);
sys/dev/spibus/controller/allwinner/aw_spi.c
520
error = msleep(sc, &sc->mtx, 0, "aw_spi", 10 * hz);
sys/dev/spibus/controller/allwinner/aw_spi.c
546
mtx_lock(&sc->mtx);
sys/dev/spibus/controller/allwinner/aw_spi.c
580
mtx_unlock(&sc->mtx);
sys/dev/spibus/controller/rockchip/rk_spi.c
104
struct mtx mtx;
sys/dev/spibus/controller/rockchip/rk_spi.c
121
#define RK_SPI_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/spibus/controller/rockchip/rk_spi.c
122
#define RK_SPI_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/spibus/controller/rockchip/rk_spi.c
255
err = msleep(sc, &sc->mtx, 0, "rk_spi", 10 * hz);
sys/dev/spibus/controller/rockchip/rk_spi.c
290
mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
sys/dev/spibus/controller/rockchip/rk_spi.c
367
mtx_destroy(&sc->mtx);
sys/dev/spibus/spigen.c
71
struct mtx sc_mtx;
sys/dev/ste/if_stereg.h
590
struct mtx ste_mtx;
sys/dev/stge/if_stgereg.h
663
struct mtx sc_mii_mtx; /* MII mutex */
sys/dev/stge/if_stgereg.h
664
struct mtx sc_mtx;
sys/dev/sume/adapter.h
176
struct mtx lock;
sys/dev/superio/superio.c
80
struct mtx conf_lock;
sys/dev/sym/sym_hipd.c
1000
#define SYM_LOCK() mtx_lock(&np->mtx)
sys/dev/sym/sym_hipd.c
1001
#define SYM_LOCK_ASSERT(_what) mtx_assert(&np->mtx, (_what))
sys/dev/sym/sym_hipd.c
1002
#define SYM_LOCK_DESTROY() mtx_destroy(&np->mtx)
sys/dev/sym/sym_hipd.c
1003
#define SYM_LOCK_INIT() mtx_init(&np->mtx, "sym_lock", NULL, MTX_DEF)
sys/dev/sym/sym_hipd.c
1004
#define SYM_LOCK_INITIALIZED() mtx_initialized(&np->mtx)
sys/dev/sym/sym_hipd.c
1005
#define SYM_UNLOCK() mtx_unlock(&np->mtx)
sys/dev/sym/sym_hipd.c
1444
struct mtx mtx;
sys/dev/sym/sym_hipd.c
8456
0, busdma_lock_mutex, &np->mtx, &np->data_dmat)) {
sys/dev/sym/sym_hipd.c
8868
&np->mtx, 1, SYM_SETUP_MAX_TAG, devq);
sys/dev/syscon/syscon_generic.c
71
#define SYSCON_LOCK(_sc) mtx_lock_spin(&(_sc)->mtx)
sys/dev/syscon/syscon_generic.c
72
#define SYSCON_UNLOCK(_sc) mtx_unlock_spin(&(_sc)->mtx)
sys/dev/syscon/syscon_generic.c
73
#define SYSCON_LOCK_INIT(_sc) mtx_init(&(_sc)->mtx, \
sys/dev/syscon/syscon_generic.c
75
#define SYSCON_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx);
sys/dev/syscon/syscon_generic.c
76
#define SYSCON_ASSERT_LOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED);
sys/dev/syscon/syscon_generic.c
77
#define SYSCON_ASSERT_UNLOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_NOTOWNED);
sys/dev/syscon/syscon_generic.h
37
struct mtx mtx;
sys/dev/syscons/syscons.h
232
struct mtx video_mtx;
sys/dev/tcp_log/tcp_log_dev.c
501
memset(&tcp_log_dev_queue_lock, 0, sizeof(struct mtx));
sys/dev/tcp_log/tcp_log_dev.c
67
static struct mtx tcp_log_dev_queue_lock;
sys/dev/thunderbolt/nhi.c
147
mtx_lock(&r->mtx);
sys/dev/thunderbolt/nhi.c
149
mtx_unlock(&r->mtx);
sys/dev/thunderbolt/nhi.c
157
mtx_lock(&r->mtx);
sys/dev/thunderbolt/nhi.c
159
mtx_unlock(&r->mtx);
sys/dev/thunderbolt/nhi.c
361
mtx_init(&r->mtx, r->name, "NHI Ring Lock", MTX_DEF);
sys/dev/thunderbolt/nhi.c
363
"mutex %p\n", r, &r->mtx);
sys/dev/thunderbolt/nhi.c
426
mtx_destroy(&r->mtx);
sys/dev/thunderbolt/nhi.c
564
mtx_lock(&r->mtx);
sys/dev/thunderbolt/nhi.c
583
mtx_unlock(&r->mtx);
sys/dev/thunderbolt/nhi.c
746
mtx_lock(&r->mtx);
sys/dev/thunderbolt/nhi.c
750
mtx_unlock(&r->mtx);
sys/dev/thunderbolt/nhi.c
769
mtx_unlock(&r->mtx);
sys/dev/thunderbolt/nhi.c
810
error = msleep(cmd, &r->mtx, PCATCH, "nhi_tx", cmd->timeout);
sys/dev/thunderbolt/nhi_var.h
157
struct mtx nhi_mtx;
sys/dev/thunderbolt/nhi_var.h
95
struct mtx mtx;
sys/dev/thunderbolt/router.c
222
mtx_init(&sc->mtx, "tbcfg", "Thunderbolt Router Config", MTX_DEF);
sys/dev/thunderbolt/router.c
250
mtx_init(&sc->mtx, "tbcfg", "Thunderbolt Router Config", MTX_DEF);
sys/dev/thunderbolt/router.c
331
mtx_destroy(&sc->mtx);
sys/dev/thunderbolt/router.c
357
mtx_lock(&sc->mtx);
sys/dev/thunderbolt/router.c
366
mtx_unlock(&sc->mtx);
sys/dev/thunderbolt/router.c
381
mtx_lock(&sc->mtx);
sys/dev/thunderbolt/router.c
387
error = msleep(cmd, &sc->mtx, 0, "tbtcfg", cmd->timeout * hz);
sys/dev/thunderbolt/router.c
397
mtx_unlock(&sc->mtx);
sys/dev/thunderbolt/router.c
416
mtx_lock(&sc->mtx);
sys/dev/thunderbolt/router.c
421
mtx_unlock(&sc->mtx);
sys/dev/thunderbolt/router.c
430
mtx_lock(&sc->mtx);
sys/dev/thunderbolt/router.c
443
mtx_unlock(&sc->mtx);
sys/dev/thunderbolt/router.c
586
mtx_lock(&sc->mtx);
sys/dev/thunderbolt/router.c
588
mtx_unlock(&sc->mtx);
sys/dev/thunderbolt/router_var.h
65
struct mtx mtx;
sys/dev/thunderbolt/tb_dev.c
96
static struct mtx tbdev_mtx;
sys/dev/ti/if_tireg.h
1052
struct mtx ti_mtx;
sys/dev/tsec/if_tsec.c
114
struct mtx tsec_phy_mtx;
sys/dev/tsec/if_tsec.h
113
struct mtx ic_lock;
sys/dev/tsec/if_tsec.h
180
extern struct mtx tsec_phy_mtx;
sys/dev/tsec/if_tsec.h
58
struct mtx transmit_lock; /* transmitter lock */
sys/dev/tsec/if_tsec.h
59
struct mtx receive_lock; /* receiver lock */
sys/dev/tws/tws.c
818
struct mtx *my_mutex = ((type == TWS_REQ_TYPE_SCSI_IO) ? &sc->q_lock : &sc->gen_lock);
sys/dev/tws/tws.h
240
struct mtx q_lock; /* queue lock */
sys/dev/tws/tws.h
241
struct mtx sim_lock; /* sim lock */
sys/dev/tws/tws.h
242
struct mtx gen_lock; /* general driver lock */
sys/dev/tws/tws.h
243
struct mtx io_lock; /* IO lock */
sys/dev/uart/uart_bus.h
154
struct mtx *uart_tty_getlock(struct uart_softc *);
sys/dev/uart/uart_bus.h
81
struct mtx sc_hwmtx_s; /* Spinlock protecting hardware. */
sys/dev/uart/uart_bus.h
82
struct mtx *sc_hwmtx;
sys/dev/uart/uart_bus_scc.c
70
uintptr_t mtx;
sys/dev/uart/uart_bus_scc.c
75
if (BUS_READ_IVAR(parent, dev, SCC_IVAR_HWMTX, &mtx))
sys/dev/uart/uart_bus_scc.c
77
sc->sc_hwmtx = (struct mtx *)(void *)mtx;
sys/dev/uart/uart_cpu.h
102
uart_lock(struct mtx *hwmtx)
sys/dev/uart/uart_cpu.h
109
uart_unlock(struct mtx *hwmtx)
sys/dev/uart/uart_cpu.h
47
int (*getc)(struct uart_bas *, struct mtx *);
sys/dev/uart/uart_cpu.h
79
struct mtx *hwmtx;
sys/dev/uart/uart_dev_imx.c
245
imx_uart_getc(struct uart_bas *bas, struct mtx *hwmtx)
sys/dev/uart/uart_dev_imx.c
78
static int imx_uart_getc(struct uart_bas *bas, struct mtx *);
sys/dev/uart/uart_dev_lowrisc.c
124
lowrisc_uart_getc(struct uart_bas *bas, struct mtx *hwmtx)
sys/dev/uart/uart_dev_lowrisc.c
63
static int lowrisc_uart_getc(struct uart_bas *bas, struct mtx *);
sys/dev/uart/uart_dev_msm.c
260
msm_getc(struct uart_bas *bas, struct mtx *mtx)
sys/dev/uart/uart_dev_msm.c
264
uart_lock(mtx);
sys/dev/uart/uart_dev_msm.c
278
uart_unlock(mtx);
sys/dev/uart/uart_dev_msm.c
64
static int msm_getc(struct uart_bas *bas, struct mtx *mtx);
sys/dev/uart/uart_dev_mu.c
139
static int uart_mu_getc(struct uart_bas *bas, struct mtx *);
sys/dev/uart/uart_dev_mu.c
237
uart_mu_getc(struct uart_bas *bas, struct mtx *hwmtx)
sys/dev/uart/uart_dev_mvebu.c
133
static int uart_mvebu_getc(struct uart_bas *, struct mtx *);
sys/dev/uart/uart_dev_mvebu.c
252
uart_mvebu_getc(struct uart_bas *bas, struct mtx *hwmtx)
sys/dev/uart/uart_dev_ns8250.c
364
static int ns8250_getc(struct uart_bas *bas, struct mtx *);
sys/dev/uart/uart_dev_ns8250.c
479
ns8250_getc(struct uart_bas *bas, struct mtx *hwmtx)
sys/dev/uart/uart_dev_pl011.c
160
static int uart_pl011_getc(struct uart_bas *bas, struct mtx *);
sys/dev/uart/uart_dev_pl011.c
323
uart_pl011_getc(struct uart_bas *bas, struct mtx *hwmtx)
sys/dev/uart/uart_dev_quicc.c
149
static int quicc_getc(struct uart_bas *bas, struct mtx *);
sys/dev/uart/uart_dev_quicc.c
204
quicc_getc(struct uart_bas *bas, struct mtx *hwmtx)
sys/dev/uart/uart_dev_z8530.c
195
static int z8530_getc(struct uart_bas *bas, struct mtx *);
sys/dev/uart/uart_dev_z8530.c
244
z8530_getc(struct uart_bas *bas, struct mtx *hwmtx)
sys/dev/uart/uart_tty.c
458
struct mtx *
sys/dev/ufshci/ufshci_private.h
334
struct mtx ufs_device_wlun_mtx;
sys/dev/ufshci/ufshci_private.h
336
struct mtx sc_mtx;
sys/dev/ufshci/ufshci_private.h
403
struct mtx uic_cmd_lock;
sys/dev/ufshci/ufshci_sim.c
410
ctrlr->ufshci_sim->mtx);
sys/dev/usb/controller/xhci.c
1406
xhci_set_address(struct usb_device *udev, struct mtx *mtx, uint16_t address)
sys/dev/usb/controller/xhci.c
1427
if (mtx != NULL)
sys/dev/usb/controller/xhci.c
1428
mtx_unlock(mtx);
sys/dev/usb/controller/xhci.c
1527
if (mtx != NULL)
sys/dev/usb/controller/xhci.c
1528
mtx_lock(mtx);
sys/dev/usb/gadget/g_audio.c
74
struct mtx sc_mtx;
sys/dev/usb/gadget/g_keyboard.c
114
struct mtx sc_mtx;
sys/dev/usb/gadget/g_modem.c
73
struct mtx sc_mtx;
sys/dev/usb/gadget/g_mouse.c
108
struct mtx sc_mtx;
sys/dev/usb/input/atp.c
659
struct mtx sc_mutex; /* for synchronization */
sys/dev/usb/input/uep.c
359
mtx_init(&sc->mtx, "uep lock", NULL, MTX_DEF);
sys/dev/usb/input/uep.c
362
sc->xfer, uep_config, UEP_N_TRANSFER, sc, &sc->mtx);
sys/dev/usb/input/uep.c
385
error = evdev_register_mtx(sc->evdev, &sc->mtx);
sys/dev/usb/input/uep.c
391
error = usb_fifo_attach(uaa->device, sc, &sc->mtx, &uep_fifo_methods,
sys/dev/usb/input/uep.c
424
mtx_destroy(&sc->mtx);
sys/dev/usb/input/uep.c
436
mtx_assert(&sc->mtx, MA_OWNED);
sys/dev/usb/input/uep.c
447
mtx_assert(&sc->mtx, MA_OWNED);
sys/dev/usb/input/uep.c
95
struct mtx mtx;
sys/dev/usb/input/uhid.c
102
struct mtx sc_mtx;
sys/dev/usb/input/uhid_snes.c
86
struct mtx sc_mutex;
sys/dev/usb/input/ums.c
135
struct mtx sc_mtx;
sys/dev/usb/input/usbhid.c
127
struct mtx sc_mtx;
sys/dev/usb/input/wmt.c
204
struct mtx mtx;
sys/dev/usb/input/wmt.c
396
mtx_init(&sc->mtx, "wmt lock", NULL, MTX_DEF);
sys/dev/usb/input/wmt.c
399
sc->xfer, wmt_config, WMT_N_TRANSFER, sc, &sc->mtx);
sys/dev/usb/input/wmt.c
451
err = evdev_register_mtx(sc->evdev, &sc->mtx);
sys/dev/usb/input/wmt.c
485
mtx_destroy(&sc->mtx);
sys/dev/usb/input/wmt.c
694
mtx_assert(&sc->mtx, MA_OWNED);
sys/dev/usb/input/wmt.c
703
mtx_assert(&sc->mtx, MA_OWNED);
sys/dev/usb/input/wsp.c
590
struct mtx sc_mutex; /* for synchronization */
sys/dev/usb/misc/cp2112.c
238
struct mtx lock;
sys/dev/usb/misc/i2ctinyusb.c
69
struct mtx sc_mtx;
sys/dev/usb/misc/udbp.c
115
struct mtx sc_mtx;
sys/dev/usb/misc/ugold.c
101
struct mtx sc_mtx;
sys/dev/usb/misc/uled.c
61
struct mtx sc_mtx;
sys/dev/usb/net/if_auereg.h
206
struct mtx sc_mtx;
sys/dev/usb/net/if_axereg.h
335
struct mtx sc_mtx;
sys/dev/usb/net/if_axgereg.h
204
struct mtx sc_mtx;
sys/dev/usb/net/if_cdceem.c
91
struct mtx sc_mtx;
sys/dev/usb/net/if_cdcereg.h
83
struct mtx sc_mtx;
sys/dev/usb/net/if_cuereg.h
123
struct mtx sc_mtx;
sys/dev/usb/net/if_iphethvar.h
81
struct mtx sc_mtx;
sys/dev/usb/net/if_kuereg.h
128
struct mtx sc_mtx;
sys/dev/usb/net/if_mosreg.h
163
struct mtx sc_mtx;
sys/dev/usb/net/if_muge.c
169
struct mtx sc_mtx;
sys/dev/usb/net/if_ruereg.h
169
struct mtx sc_mtx;
sys/dev/usb/net/if_smscreg.h
260
struct mtx sc_mtx;
sys/dev/usb/net/if_udavreg.h
157
struct mtx sc_mtx;
sys/dev/usb/net/if_umbreg.h
416
struct mtx sc_mutex;
sys/dev/usb/net/if_urereg.h
583
struct mtx sc_mtx;
sys/dev/usb/net/if_urndisreg.h
39
struct mtx sc_mtx;
sys/dev/usb/net/if_usievar.h
218
struct mtx sc_mtx;
sys/dev/usb/net/uhso.c
82
struct mtx sc_mtx;
sys/dev/usb/net/usb_ethernet.h
77
struct mtx *ue_mtx;
sys/dev/usb/quirk/usb_quirk.c
75
static struct mtx usb_quirk_mtx;
sys/dev/usb/serial/u3g.c
112
struct mtx sc_mtx;
sys/dev/usb/serial/uark.c
88
struct mtx sc_mtx;
sys/dev/usb/serial/ubsa.c
162
struct mtx sc_mtx;
sys/dev/usb/serial/ubser.c
129
struct mtx sc_mtx;
sys/dev/usb/serial/uchcom.c
184
struct mtx sc_mtx;
sys/dev/usb/serial/ucycom.c
85
struct mtx sc_mtx;
sys/dev/usb/serial/udbc.c
93
struct mtx sc_mtx;
sys/dev/usb/serial/ufintek.c
204
struct mtx sc_mtx;
sys/dev/usb/serial/ufoma.c
166
struct mtx sc_mtx;
sys/dev/usb/serial/uftdi.c
152
struct mtx sc_mtx;
sys/dev/usb/serial/ugensa.c
90
struct mtx sc_mtx;
sys/dev/usb/serial/uipaq.c
94
struct mtx sc_mtx;
sys/dev/usb/serial/ulpt.c
105
struct mtx sc_mtx;
sys/dev/usb/serial/umcs.c
136
struct mtx sc_mtx; /* ucom requires this */
sys/dev/usb/serial/umct.c
114
struct mtx sc_mtx;
sys/dev/usb/serial/umodem.c
180
struct mtx sc_mtx;
sys/dev/usb/serial/umoscom.c
181
struct mtx sc_mtx;
sys/dev/usb/serial/uplcom.c
168
struct mtx sc_mtx;
sys/dev/usb/serial/usb_serial.c
192
static struct mtx ucom_mtx;
sys/dev/usb/serial/usb_serial.c
266
const struct ucom_callback *callback, struct mtx *mtx)
sys/dev/usb/serial/usb_serial.c
274
(mtx == NULL)) {
sys/dev/usb/serial/usb_serial.c
288
error = usb_proc_create(&ssc->sc_tq, mtx, "ucom", USB_PRI_MED);
sys/dev/usb/serial/usb_serial.c
306
sc[subunit].sc_mtx = mtx;
sys/dev/usb/serial/usb_serial.h
168
struct mtx *sc_mtx;
sys/dev/usb/serial/usb_serial.h
212
const struct ucom_callback *callback, struct mtx *);
sys/dev/usb/serial/uslcom.c
145
struct mtx sc_mtx;
sys/dev/usb/serial/uvisor.c
177
struct mtx sc_mtx;
sys/dev/usb/serial/uvscom.c
150
struct mtx sc_mtx;
sys/dev/usb/storage/cfumass.c
154
struct mtx sc_mtx;
sys/dev/usb/storage/umass.c
2216
sc->sc_sim->refcount, sc->sc_sim->mtx);
sys/dev/usb/storage/umass.c
392
struct mtx sc_mtx;
sys/dev/usb/storage/urio.c
98
struct mtx sc_mtx;
sys/dev/usb/storage/ustorage_fs.c
185
struct mtx sc_mtx;
sys/dev/usb/usb_bus.h
94
struct mtx bus_mtx;
sys/dev/usb/usb_bus.h
95
struct mtx bus_spin_lock;
sys/dev/usb/usb_busdma.c
499
owned = mtx_owned(uptag->mtx);
sys/dev/usb/usb_busdma.c
501
USB_MTX_LOCK(uptag->mtx);
sys/dev/usb/usb_busdma.c
510
USB_MTX_UNLOCK(uptag->mtx);
sys/dev/usb/usb_busdma.c
585
USB_MTX_LOCK(uptag->mtx);
sys/dev/usb/usb_busdma.c
593
cv_wait(uptag->cv, uptag->mtx);
sys/dev/usb/usb_busdma.c
596
USB_MTX_UNLOCK(uptag->mtx);
sys/dev/usb/usb_busdma.c
655
USB_MTX_ASSERT(pc->tag_parent->mtx, MA_OWNED);
sys/dev/usb/usb_busdma.c
678
cv_wait(uptag->cv, uptag->mtx);
sys/dev/usb/usb_busdma.c
843
struct mtx *mtx, usb_dma_callback_t *func,
sys/dev/usb/usb_busdma.c
851
(mtx == NULL)) {
sys/dev/usb/usb_busdma.c
859
udpt->mtx = mtx;
sys/dev/usb/usb_busdma.h
111
struct mtx *mtx; /* private mutex, always set */
sys/dev/usb/usb_busdma.h
152
struct usb_dma_tag *udt, bus_dma_tag_t dmat, struct mtx *mtx,
sys/dev/usb/usb_controller.h
145
usb_error_t (*set_address) (struct usb_device *, struct mtx *, uint16_t);
sys/dev/usb/usb_core.h
186
extern struct mtx usb_ref_lock;
sys/dev/usb/usb_dev.c
110
static struct usb_fifo *usb_fifo_alloc(struct mtx *);
sys/dev/usb/usb_dev.c
159
struct mtx usb_ref_lock;
sys/dev/usb/usb_dev.c
1828
struct mtx *priv_mtx, struct usb_fifo_methods *pm,
sys/dev/usb/usb_dev.c
380
usb_fifo_alloc(struct mtx *mtx)
sys/dev/usb/usb_dev.c
388
f->priv_mtx = mtx;
sys/dev/usb/usb_dev.c
390
knlist_init_mtx(&f->selinfo.si_note, mtx);
sys/dev/usb/usb_dev.h
121
struct mtx *priv_mtx; /* client data */
sys/dev/usb/usb_device.h
200
struct mtx device_mtx;
sys/dev/usb/usb_hid.c
112
usbd_req_get_hid_desc(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_hid.c
133
if (mtx)
sys/dev/usb/usb_hid.c
134
mtx_unlock(mtx);
sys/dev/usb/usb_hid.c
138
if (mtx)
sys/dev/usb/usb_hid.c
139
mtx_lock(mtx);
sys/dev/usb/usb_hid.c
145
(udev, mtx, *descp, *sizep, iface_index);
sys/dev/usb/usb_hub_private.h
57
struct mtx sc_mtx; /* our mutex */
sys/dev/usb/usb_msctest.c
159
struct mtx mtx;
sys/dev/usb/usb_msctest.c
558
USB_MTX_LOCK(&sc->mtx);
sys/dev/usb/usb_msctest.c
562
cv_wait(&sc->cv, &sc->mtx);
sys/dev/usb/usb_msctest.c
564
USB_MTX_UNLOCK(&sc->mtx);
sys/dev/usb/usb_msctest.c
589
USB_MTX_LOCK(&sc->mtx);
sys/dev/usb/usb_msctest.c
592
cv_wait(&sc->cv, &sc->mtx);
sys/dev/usb/usb_msctest.c
593
USB_MTX_UNLOCK(&sc->mtx);
sys/dev/usb/usb_msctest.c
668
mtx_init(&sc->mtx, "USB autoinstall", NULL, MTX_DEF);
sys/dev/usb/usb_msctest.c
672
nconfig, sc, &sc->mtx);
sys/dev/usb/usb_msctest.c
699
mtx_destroy(&sc->mtx);
sys/dev/usb/usb_process.c
204
usb_proc_create(struct usb_process *up, struct mtx *p_mtx,
sys/dev/usb/usb_process.h
60
struct mtx *up_mtx;
sys/dev/usb/usb_process.h
74
int usb_proc_create(struct usb_process *up, struct mtx *p_mtx,
sys/dev/usb/usb_request.c
1020
err = usbd_do_request_flags(udev, mtx, &req,
sys/dev/usb/usb_request.c
1031
err = usbd_do_request_flags(udev, mtx, &req,
sys/dev/usb/usb_request.c
1055
usb_pause_mtx(mtx, hz / 5);
sys/dev/usb/usb_request.c
1109
usbd_req_get_string_any(struct usb_device *udev, struct mtx *mtx, char *buf,
sys/dev/usb/usb_request.c
1134
(udev, mtx, buf, len, udev->langid, string_index);
sys/dev/usb/usb_request.c
1215
usbd_req_get_string_desc(struct usb_device *udev, struct mtx *mtx, void *sdesc,
sys/dev/usb/usb_request.c
1219
return (usbd_req_get_desc(udev, mtx, NULL, sdesc, 2, max_len, lang_id,
sys/dev/usb/usb_request.c
1281
usbd_req_get_config_desc(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1288
err = usbd_req_get_desc(udev, mtx, NULL, d, sizeof(*d),
sys/dev/usb/usb_request.c
1351
usbd_req_get_config_desc_full(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1363
err = usbd_req_get_config_desc(udev, mtx, &cd, index);
sys/dev/usb/usb_request.c
1379
err = usbd_req_get_desc(udev, mtx, NULL, cdesc, len, len, 0,
sys/dev/usb/usb_request.c
1401
usbd_req_get_device_desc(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1405
return (usbd_req_get_desc(udev, mtx, NULL, d, sizeof(*d),
sys/dev/usb/usb_request.c
1417
usbd_req_get_alt_interface_no(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1432
return (usbd_do_request(udev, mtx, &req, alt_iface_no));
sys/dev/usb/usb_request.c
1443
usbd_req_set_alt_interface_no(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1460
err = usbd_do_request(udev, mtx, &req, 0);
sys/dev/usb/usb_request.c
1481
usbd_req_get_device_status(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1491
return (usbd_do_request(udev, mtx, &req, st));
sys/dev/usb/usb_request.c
1502
usbd_req_get_hub_descriptor(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1513
return (usbd_do_request(udev, mtx, &req, hd));
sys/dev/usb/usb_request.c
1524
usbd_req_get_ss_hub_descriptor(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1535
return (usbd_do_request(udev, mtx, &req, hd));
sys/dev/usb/usb_request.c
1546
usbd_req_get_hub_status(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1556
return (usbd_do_request(udev, mtx, &req, st));
sys/dev/usb/usb_request.c
1570
usbd_req_set_address(struct usb_device *udev, struct mtx *mtx, uint16_t addr)
sys/dev/usb/usb_request.c
1587
err = (udev->bus->methods->set_address) (udev, mtx, addr);
sys/dev/usb/usb_request.c
1593
err = usbd_do_request_flags(udev, mtx, &req, NULL,
sys/dev/usb/usb_request.c
1598
usb_pause_mtx(mtx,
sys/dev/usb/usb_request.c
1612
usbd_req_get_port_status(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1624
return (usbd_do_request_flags(udev, mtx, &req, ps, 0, NULL, 1000));
sys/dev/usb/usb_request.c
1635
usbd_req_clear_hub_feature(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1645
return (usbd_do_request(udev, mtx, &req, 0));
sys/dev/usb/usb_request.c
1656
usbd_req_set_hub_feature(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1666
return (usbd_do_request(udev, mtx, &req, 0));
sys/dev/usb/usb_request.c
1677
usbd_req_set_hub_u1_timeout(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1688
return (usbd_do_request(udev, mtx, &req, 0));
sys/dev/usb/usb_request.c
1699
usbd_req_set_hub_u2_timeout(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1710
return (usbd_do_request(udev, mtx, &req, 0));
sys/dev/usb/usb_request.c
1721
usbd_req_set_hub_depth(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1731
return (usbd_do_request(udev, mtx, &req, 0));
sys/dev/usb/usb_request.c
1742
usbd_req_clear_port_feature(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1753
return (usbd_do_request(udev, mtx, &req, 0));
sys/dev/usb/usb_request.c
1764
usbd_req_set_port_feature(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1775
return (usbd_do_request(udev, mtx, &req, 0));
sys/dev/usb/usb_request.c
1786
usbd_req_set_protocol(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1804
return (usbd_do_request(udev, mtx, &req, 0));
sys/dev/usb/usb_request.c
1815
usbd_req_set_report(struct usb_device *udev, struct mtx *mtx, void *data, uint16_t len,
sys/dev/usb/usb_request.c
1832
return (usbd_do_request(udev, mtx, &req, data));
sys/dev/usb/usb_request.c
1843
usbd_req_get_report(struct usb_device *udev, struct mtx *mtx, void *data,
sys/dev/usb/usb_request.c
1860
return (usbd_do_request(udev, mtx, &req, data));
sys/dev/usb/usb_request.c
1871
usbd_req_set_idle(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1888
return (usbd_do_request(udev, mtx, &req, 0));
sys/dev/usb/usb_request.c
1899
usbd_req_get_report_descriptor(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
1914
return (usbd_do_request(udev, mtx, &req, d));
sys/dev/usb/usb_request.c
1929
usbd_req_set_config(struct usb_device *udev, struct mtx *mtx, uint8_t conf)
sys/dev/usb/usb_request.c
1943
return (usbd_do_request(udev, mtx, &req, 0));
sys/dev/usb/usb_request.c
1954
usbd_req_get_config(struct usb_device *udev, struct mtx *mtx, uint8_t *pconf)
sys/dev/usb/usb_request.c
1963
return (usbd_do_request(udev, mtx, &req, pconf));
sys/dev/usb/usb_request.c
1970
usbd_setup_device_desc(struct usb_device *udev, struct mtx *mtx)
sys/dev/usb/usb_request.c
1988
err = usbd_req_get_device_desc(udev, mtx, &udev->ddesc);
sys/dev/usb/usb_request.c
1994
err = usbd_req_get_desc(udev, mtx, NULL, &udev->ddesc,
sys/dev/usb/usb_request.c
2001
err = usbd_req_get_device_desc(udev, mtx, &udev->ddesc);
sys/dev/usb/usb_request.c
2007
err = usbd_req_get_device_desc(udev, mtx, &udev->ddesc);
sys/dev/usb/usb_request.c
2014
err = usbd_req_get_device_desc(udev, mtx, &udev->ddesc);
sys/dev/usb/usb_request.c
2023
err = usbd_req_get_device_desc(udev, mtx, &udev->ddesc);
sys/dev/usb/usb_request.c
2027
err = usbd_req_get_device_desc(udev, mtx, &udev->ddesc);
sys/dev/usb/usb_request.c
2063
usbd_req_re_enumerate(struct usb_device *udev, struct mtx *mtx)
sys/dev/usb/usb_request.c
2107
usbd_req_warm_reset_port(parent_hub, mtx, udev->port_no);
sys/dev/usb/usb_request.c
2110
err = usbd_req_reset_port(parent_hub, mtx, udev->port_no);
sys/dev/usb/usb_request.c
2132
err = usbd_req_set_address(udev, mtx, old_addr);
sys/dev/usb/usb_request.c
2146
err = usbd_setup_device_desc(udev, mtx);
sys/dev/usb/usb_request.c
2151
usb_pause_mtx(mtx, hz / 2);
sys/dev/usb/usb_request.c
2174
usbd_req_clear_device_feature(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
2184
return (usbd_do_request(udev, mtx, &req, 0));
sys/dev/usb/usb_request.c
2195
usbd_req_set_device_feature(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
2205
return (usbd_do_request(udev, mtx, &req, 0));
sys/dev/usb/usb_request.c
2216
usbd_req_reset_tt(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
2233
return (usbd_do_request(udev, mtx, &req, 0));
sys/dev/usb/usb_request.c
2246
usbd_req_clear_tt_buffer(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
2267
return (usbd_do_request(udev, mtx, &req, 0));
sys/dev/usb/usb_request.c
2280
usbd_req_set_port_link_state(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
2291
return (usbd_do_request(udev, mtx, &req, 0));
sys/dev/usb/usb_request.c
2307
usbd_req_set_lpm_info(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
2324
err = usbd_do_request(udev, mtx, &req, buf);
sys/dev/usb/usb_request.c
414
usbd_do_request_flags(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
467
if ((mtx != NULL) && (mtx != &Giant)) {
sys/dev/usb/usb_request.c
468
USB_MTX_UNLOCK(mtx);
sys/dev/usb/usb_request.c
469
USB_MTX_ASSERT(mtx, MA_NOTOWNED);
sys/dev/usb/usb_request.c
722
if ((mtx != NULL) && (mtx != &Giant))
sys/dev/usb/usb_request.c
723
USB_MTX_LOCK(mtx);
sys/dev/usb/usb_request.c
734
usb_pause_mtx(mtx, hz / 16);
sys/dev/usb/usb_request.c
795
usbd_req_reset_port(struct usb_device *udev, struct mtx *mtx, uint8_t port)
sys/dev/usb/usb_request.c
807
udev, mtx, port, UHF_C_PORT_RESET);
sys/dev/usb/usb_request.c
811
udev, mtx, port, UHF_PORT_RESET);
sys/dev/usb/usb_request.c
819
usb_pause_mtx(mtx, USB_MS_TO_TICKS(usb_port_reset_delay));
sys/dev/usb/usb_request.c
821
err = usbd_req_get_port_status(udev, mtx, &ps, port);
sys/dev/usb/usb_request.c
853
udev, mtx, port, UHF_C_PORT_RESET);
sys/dev/usb/usb_request.c
863
usb_pause_mtx(mtx, USB_MS_TO_TICKS(usb_port_reset_recovery));
sys/dev/usb/usb_request.c
885
usbd_req_warm_reset_port(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.c
896
err = usbd_req_get_port_status(udev, mtx, &ps, port);
sys/dev/usb/usb_request.c
914
usbd_req_clear_port_feature(udev, mtx,
sys/dev/usb/usb_request.c
918
err = usbd_req_set_port_feature(udev, mtx,
sys/dev/usb/usb_request.c
926
usb_pause_mtx(mtx, USB_MS_TO_TICKS(usb_port_reset_delay));
sys/dev/usb/usb_request.c
928
err = usbd_req_get_port_status(udev, mtx, &ps, port);
sys/dev/usb/usb_request.c
952
udev, mtx, port, UHF_C_BH_PORT_RESET);
sys/dev/usb/usb_request.c
962
usb_pause_mtx(mtx, USB_MS_TO_TICKS(usb_port_reset_recovery));
sys/dev/usb/usb_request.c
996
struct mtx *mtx, uint16_t *actlen, void *desc,
sys/dev/usb/usb_request.h
34
struct mtx *mtx, uint16_t sel);
sys/dev/usb/usb_request.h
36
struct mtx *mtx, uint8_t port, uint16_t sel);
sys/dev/usb/usb_request.h
38
struct mtx *mtx, uint8_t *alt_iface_no,
sys/dev/usb/usb_request.h
40
usb_error_t usbd_req_get_config(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.h
44
usb_error_t usbd_req_get_config_desc(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.h
47
struct mtx *mtx, struct usb_config_descriptor **ppcd,
sys/dev/usb/usb_request.h
49
usb_error_t usbd_req_get_desc(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.h
53
usb_error_t usbd_req_get_device_desc(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.h
56
struct mtx *mtx, struct usb_status *st);
sys/dev/usb/usb_request.h
58
struct mtx *mtx, struct usb_hub_descriptor *hd,
sys/dev/usb/usb_request.h
61
struct mtx *mtx, struct usb_hub_ss_descriptor *hd,
sys/dev/usb/usb_request.h
63
usb_error_t usbd_req_get_hub_status(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.h
65
usb_error_t usbd_req_get_port_status(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.h
67
usb_error_t usbd_req_reset_port(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.h
70
struct mtx *mtx, uint8_t port);
sys/dev/usb/usb_request.h
71
usb_error_t usbd_req_set_address(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.h
73
usb_error_t usbd_req_set_hub_feature(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.h
76
struct mtx *mtx, uint8_t port, uint16_t sel);
sys/dev/usb/usb_request.h
77
usb_error_t usbd_setup_device_desc(struct usb_device *udev, struct mtx *mtx);
sys/dev/usb/usb_request.h
78
usb_error_t usbd_req_re_enumerate(struct usb_device *udev, struct mtx *mtx);
sys/dev/usb/usb_request.h
80
struct mtx *mtx, uint16_t sel);
sys/dev/usb/usb_request.h
82
struct mtx *mtx, uint16_t sel);
sys/dev/usb/usb_request.h
84
struct mtx *mtx, uint8_t port, uint8_t timeout);
sys/dev/usb/usb_request.h
86
struct mtx *mtx, uint8_t port, uint8_t timeout);
sys/dev/usb/usb_request.h
88
struct mtx *mtx, uint16_t depth);
sys/dev/usb/usb_request.h
89
usb_error_t usbd_req_reset_tt(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.h
91
usb_error_t usbd_req_clear_tt_buffer(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_request.h
94
struct mtx *mtx, uint8_t port, uint8_t link_state);
sys/dev/usb/usb_request.h
95
usb_error_t usbd_req_set_lpm_info(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usb_transfer.c
355
USB_MTX_LOCK(pc->tag_parent->mtx);
sys/dev/usb/usb_transfer.c
357
USB_MTX_UNLOCK(pc->tag_parent->mtx);
sys/dev/usb/usb_transfer.c
360
USB_MTX_UNLOCK(pc->tag_parent->mtx);
sys/dev/usb/usb_transfer.c
989
void *priv_sc, struct mtx *xfer_mtx)
sys/dev/usb/usb_transfer.h
70
struct mtx *xfer_mtx; /* cannot be changed during operation */
sys/dev/usb/usb_util.c
110
usb_pause_mtx(struct mtx *mtx, int timo)
sys/dev/usb/usb_util.c
112
if (mtx != NULL)
sys/dev/usb/usb_util.c
113
mtx_unlock(mtx);
sys/dev/usb/usb_util.c
122
if (mtx != NULL)
sys/dev/usb/usb_util.c
123
mtx_lock(mtx);
sys/dev/usb/usbdi.h
582
void usb_pause_mtx(struct mtx *mtx, int _ticks);
sys/dev/usb/usbdi.h
600
usb_error_t usbd_do_request_flags(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usbdi.h
618
void *priv_sc, struct mtx *priv_mtx);
sys/dev/usb/usbdi.h
692
struct mtx *priv_mtx, struct usb_fifo_methods *pm,
sys/dev/usb/usbdi_util.h
62
usb_error_t usbd_req_get_report(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usbdi_util.h
66
struct mtx *mtx, void *d, uint16_t size,
sys/dev/usb/usbdi_util.h
68
usb_error_t usbd_req_get_string_any(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usbdi_util.h
70
usb_error_t usbd_req_get_string_desc(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usbdi_util.h
73
usb_error_t usbd_req_set_config(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usbdi_util.h
76
struct mtx *mtx, uint8_t iface_index, uint8_t alt_no);
sys/dev/usb/usbdi_util.h
77
usb_error_t usbd_req_set_idle(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usbdi_util.h
79
usb_error_t usbd_req_set_protocol(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usbdi_util.h
81
usb_error_t usbd_req_set_report(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/usbhid.h
93
usb_error_t usbd_req_get_hid_desc(struct usb_device *udev, struct mtx *mtx,
sys/dev/usb/video/udl.c
79
static struct mtx udl_buffer_mtx;
sys/dev/usb/video/udl.h
63
struct mtx sc_mtx;
sys/dev/usb/video/uvideo.c
221
struct mtx sc_mtx;
sys/dev/usb/wlan/if_mtwvar.h
306
struct mtx sc_mtx;
sys/dev/usb/wlan/if_rsureg.h
864
struct mtx sc_mtx;
sys/dev/usb/wlan/if_rsureg.h
896
struct mtx free_keys_bmap_mtx;
sys/dev/usb/wlan/if_rumvar.h
128
struct mtx sc_mtx;
sys/dev/usb/wlan/if_rumvar.h
135
struct mtx cmdq_mtx;
sys/dev/usb/wlan/if_runvar.h
157
struct mtx sc_mtx;
sys/dev/usb/wlan/if_uathvar.h
191
struct mtx sc_mtx;
sys/dev/usb/wlan/if_upgtvar.h
426
struct mtx sc_mtx;
sys/dev/usb/wlan/if_uralvar.h
107
struct mtx sc_mtx;
sys/dev/usb/wlan/if_urtwvar.h
99
struct mtx sc_mtx;
sys/dev/usb/wlan/if_zydreg.h
1296
struct mtx sc_mtx;
sys/dev/veriexec/verified_exec.c
58
extern struct mtx ve_mutex;
sys/dev/vge/if_vgevar.h
198
struct mtx vge_mtx;
sys/dev/viapm/viapm.c
100
struct mtx lock;
sys/dev/virtio/balloon/virtio_balloon.c
60
struct mtx vtballoon_mtx;
sys/dev/virtio/block/virtio_blk.c
85
struct mtx vtblk_mtx;
sys/dev/virtio/block/virtio_blk.c
86
struct mtx vtblk_hdr_mtx;
sys/dev/virtio/block/virtio_blk.c
87
struct mtx vtblk_ack_mtx;
sys/dev/virtio/console/virtio_console.c
105
struct mtx vtcon_mtx;
sys/dev/virtio/console/virtio_console.c
123
struct mtx vtcon_ctrl_tx_mtx;
sys/dev/virtio/console/virtio_console.c
76
struct mtx vtcport_mtx;
sys/dev/virtio/network/if_vtnetvar.h
113
struct mtx vtntx_mtx;
sys/dev/virtio/network/if_vtnetvar.h
191
struct mtx vtnet_mtx;
sys/dev/virtio/network/if_vtnetvar.h
196
struct mtx vtnet_rx_mtx;
sys/dev/virtio/network/if_vtnetvar.h
199
struct mtx vtnet_tx_mtx;
sys/dev/virtio/network/if_vtnetvar.h
202
struct mtx vtnet_hdr_mtx;
sys/dev/virtio/network/if_vtnetvar.h
205
struct mtx vtnet_ack_mtx;
sys/dev/virtio/network/if_vtnetvar.h
80
struct mtx vtnrx_mtx;
sys/dev/virtio/p9fs/virtio_p9fs.c
65
struct mtx vt9p_mtx;
sys/dev/virtio/p9fs/virtio_p9fs.c
79
static struct mtx global_chan_list_mtx;
sys/dev/virtio/scmi/virtio_scmi.c
61
struct mtx vq_mtx;
sys/dev/virtio/scmi/virtio_scmi.c
64
struct mtx p_mtx;
sys/dev/virtio/scsi/virtio_scsivar.h
45
struct mtx vtscsi_mtx;
sys/dev/virtio/virtqueue.c
59
struct mtx vq_ring_mtx;
sys/dev/virtio/virtqueue.c
60
struct mtx vq_indirect_mtx;
sys/dev/vkbd/vkbd.c
78
#define VKBD_LOCK_DECL struct mtx ks_lock
sys/dev/vmm/vmm_vm.c
96
msleep_spin(&vcpu->state, &vcpu->mtx, "vmstat", hz);
sys/dev/vmm/vmm_vm.h
148
struct mtx rendezvous_mtx; /* (o) rendezvous lock */
sys/dev/vmm/vmm_vm.h
36
struct mtx mtx; /* (o) protects 'state' and 'hostcpu' */
sys/dev/vmm/vmm_vm.h
48
#define vcpu_lock_init(v) mtx_init(&((v)->mtx), "vcpu lock", 0, MTX_SPIN)
sys/dev/vmm/vmm_vm.h
49
#define vcpu_lock_destroy(v) mtx_destroy(&((v)->mtx))
sys/dev/vmm/vmm_vm.h
50
#define vcpu_lock(v) mtx_lock_spin(&((v)->mtx))
sys/dev/vmm/vmm_vm.h
51
#define vcpu_unlock(v) mtx_unlock_spin(&((v)->mtx))
sys/dev/vmm/vmm_vm.h
52
#define vcpu_assert_locked(v) mtx_assert(&((v)->mtx), MA_OWNED)
sys/dev/vmware/pvscsi/pvscsi.c
190
struct mtx lock;
sys/dev/vmware/vmci/vmci.h
46
struct mtx vmci_spinlock;
sys/dev/vmware/vmci/vmci.h
65
struct mtx vmci_delayed_work_lock;
sys/dev/vmware/vmci/vmci_kernel_if.h
42
typedef struct mtx vmci_lock;
sys/dev/vmware/vmci/vmci_kernel_if.h
69
typedef struct mtx vmci_mutex;
sys/dev/vnic/nic.h
326
struct mtx stats_mtx;
sys/dev/vnic/nic_main.c
107
struct mtx check_link_mtx;
sys/dev/vnic/nicvf_queues.c
1053
mtx_init(&sq->mtx, sq->mtx_name, NULL, MTX_DEF);
sys/dev/vnic/nicvf_queues.c
1058
M_NOWAIT, &sq->mtx);
sys/dev/vnic/nicvf_queues.c
1199
mtx_destroy(&sq->mtx);
sys/dev/vnic/nicvf_queues.c
914
mtx_init(&cq->mtx, cq->mtx_name, NULL, MTX_DEF);
sys/dev/vnic/nicvf_queues.c
932
&cq->mtx);
sys/dev/vnic/nicvf_queues.c
979
mtx_destroy(&cq->mtx);
sys/dev/vnic/nicvf_queues.h
292
struct mtx mtx; /* lock to serialize processing CQEs */
sys/dev/vnic/nicvf_queues.h
328
struct mtx mtx;
sys/dev/vnic/nicvf_queues.h
373
#define NICVF_TX_LOCK(sq) mtx_lock(&(sq)->mtx)
sys/dev/vnic/nicvf_queues.h
374
#define NICVF_TX_TRYLOCK(sq) mtx_trylock(&(sq)->mtx)
sys/dev/vnic/nicvf_queues.h
375
#define NICVF_TX_UNLOCK(sq) mtx_unlock(&(sq)->mtx)
sys/dev/vnic/nicvf_queues.h
376
#define NICVF_TX_LOCK_ASSERT(sq) mtx_assert(&(sq)->mtx, MA_OWNED)
sys/dev/vnic/nicvf_queues.h
378
#define NICVF_CMP_LOCK(cq) mtx_lock(&(cq)->mtx)
sys/dev/vnic/nicvf_queues.h
379
#define NICVF_CMP_UNLOCK(cq) mtx_unlock(&(cq)->mtx)
sys/dev/vnic/thunder_bgx_var.h
47
struct mtx check_link_mtx;
sys/dev/vnic/thunder_mdio.c
130
mtx_init(&(sc)->mtx, name, NULL, MTX_DEF)
sys/dev/vnic/thunder_mdio.c
133
mtx_destroy(&(sc)->mtx)
sys/dev/vnic/thunder_mdio.c
135
#define MDIO_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/vnic/thunder_mdio.c
136
#define MDIO_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/vnic/thunder_mdio.c
139
mtx_assert(&(sc)->mtx, MA_OWNED)
sys/dev/vnic/thunder_mdio_var.h
52
struct mtx mtx;
sys/dev/vr/if_vrreg.h
732
struct mtx vr_mtx;
sys/dev/vt/vt.h
145
struct mtx vd_lock; /* Per-device lock. */
sys/dev/vt/vt.h
168
struct mtx vd_flush_lock; /* (?) vt_flush() lock. */
sys/dev/vt/vt.h
204
struct mtx vb_lock; /* Buffer lock. */
sys/dev/vt/vt_sysmouse.c
77
static struct mtx sysmouse_lock;
sys/dev/vte/if_vtevar.h
145
struct mtx vte_mtx;
sys/dev/wg/if_wg.c
169
struct mtx q_mtx;
sys/dev/wg/if_wg.c
198
struct mtx p_handshake_mtx;
sys/dev/wg/wg_cookie.c
54
struct mtx rl_mtx;
sys/dev/wg/wg_cookie.h
44
struct mtx cc_secret_mtx;
sys/dev/wg/wg_noise.c
115
struct mtx r_keypair_mtx;
sys/dev/wg/wg_noise.c
133
struct mtx l_remote_mtx;
sys/dev/wg/wg_noise.c
137
struct mtx l_index_mtx;
sys/dev/wpi/if_wpivar.h
128
struct mtx wv_mtx;
sys/dev/wpi/if_wpivar.h
171
struct mtx sc_mtx;
sys/dev/wpi/if_wpivar.h
175
struct mtx tx_mtx;
sys/dev/wpi/if_wpivar.h
182
struct mtx txq_mtx;
sys/dev/wpi/if_wpivar.h
183
struct mtx txq_state_mtx;
sys/dev/wpi/if_wpivar.h
210
struct mtx rxon_mtx;
sys/dev/wpi/if_wpivar.h
215
struct mtx nt_mtx;
sys/dev/wtap/if_medium.h
49
struct mtx md_mtx;
sys/dev/wtap/if_wtapvar.h
111
struct mtx sc_mtx; /* master lock (recursive) */
sys/dev/wtap/plugins/visibility.h
47
struct mtx pl_mtx;
sys/dev/wtap/wtap_hal/hal.h
43
struct mtx hal_mtx;
sys/dev/xdma/xdma.c
64
static struct mtx xdma_mtx;
sys/dev/xdma/xdma.h
162
struct mtx mtx_lock;
sys/dev/xdma/xdma.h
163
struct mtx mtx_qin_lock;
sys/dev/xdma/xdma.h
164
struct mtx mtx_qout_lock;
sys/dev/xdma/xdma.h
165
struct mtx mtx_bank_lock;
sys/dev/xdma/xdma.h
166
struct mtx mtx_proc_lock;
sys/dev/xdma/xdma_fdt_test.c
100
mtx_unlock(&sc->mtx);
sys/dev/xdma/xdma_fdt_test.c
304
mtx_lock(&sc->mtx);
sys/dev/xdma/xdma_fdt_test.c
307
mtx_unlock(&sc->mtx);
sys/dev/xdma/xdma_fdt_test.c
316
mtx_sleep(sc, &sc->mtx, 0, "xdmatest_wait", hz);
sys/dev/xdma/xdma_fdt_test.c
323
mtx_unlock(&sc->mtx);
sys/dev/xdma/xdma_fdt_test.c
328
mtx_unlock(&sc->mtx);
sys/dev/xdma/xdma_fdt_test.c
375
mtx_init(&sc->mtx, device_get_nameunit(dev), "xdmatest", MTX_DEF);
sys/dev/xdma/xdma_fdt_test.c
79
struct mtx mtx;
sys/dev/xdma/xdma_fdt_test.c
98
mtx_lock(&sc->mtx);
sys/dev/xen/balloon/balloon.c
54
struct mtx balloon_mutex;
sys/dev/xen/blkback/blkback.c
690
struct mtx lock;
sys/dev/xen/blkfront/block.h
197
struct mtx xbd_io_lock;
sys/dev/xen/bus/xen_intr.c
114
static struct mtx xen_intr_isrc_lock;
sys/dev/xen/console/xen_console.c
205
mtx_lock_spin(&cons->mtx);
sys/dev/xen/console/xen_console.c
213
mtx_unlock_spin(&cons->mtx);
sys/dev/xen/console/xen_console.c
216
#define xencons_lock_assert(cons) mtx_assert(&(cons)->mtx, MA_OWNED)
sys/dev/xen/console/xen_console.c
401
mtx_init(&main_cons.mtx, "XCONS LOCK", NULL, MTX_SPIN);
sys/dev/xen/console/xen_console.c
89
struct mtx mtx;
sys/dev/xen/debug/debug.c
55
static struct mtx lock;
sys/dev/xen/evtchn/evtchn_dev.c
73
struct mtx bind_mutex; /* serialize bind/unbind operations */
sys/dev/xen/evtchn/evtchn_dev.c
82
struct mtx ring_prod_mutex; /* product against concurrent interrupts */
sys/dev/xen/gntdev/gntdev.c
115
struct mtx user_data_lock;
sys/dev/xen/gntdev/gntdev.c
199
struct mtx to_kill_grefs_mtx;
sys/dev/xen/gntdev/gntdev.c
200
struct mtx to_kill_gmaps_mtx;
sys/dev/xen/grant_table/grant_table.c
45
static struct mtx gnttab_list_lock;
sys/dev/xen/netback/netback.c
493
struct mtx rx_lock;
sys/dev/xen/netback/netback.c
496
struct mtx sc_lock;
sys/dev/xen/netback/netback.c
499
struct mtx tx_lock;
sys/dev/xen/netfront/netfront.c
165
struct mtx lock;
sys/dev/xen/netfront/netfront.c
185
struct mtx lock;
sys/dev/xen/netfront/netfront.c
218
struct mtx sc_lock;
sys/dev/xen/pcifront/pcifront.c
95
struct mtx sh_info_lock;
sys/dev/xen/xenstore/xenstore.c
154
struct mtx ring_lock;
sys/dev/xen/xenstore/xenstore.c
181
struct mtx reply_lock;
sys/dev/xen/xenstore/xenstore.c
189
struct mtx registered_watches_lock;
sys/dev/xen/xenstore/xenstore.c
197
struct mtx watch_events_lock;
sys/dev/xen/xenstore/xenstore_dev.c
87
struct mtx lock;
sys/dev/xilinx/if_xae.c
1182
mtx_init(&sc->mtx, device_get_nameunit(sc->dev), MTX_NETWORK_LOCK,
sys/dev/xilinx/if_xae.c
1228
callout_init_mtx(&sc->xae_callout, &sc->mtx, 0);
sys/dev/xilinx/if_xae.c
1276
KASSERT(mtx_initialized(&sc->mtx), ("%s: mutex not initialized",
sys/dev/xilinx/if_xae.c
1295
mtx_destroy(&sc->mtx);
sys/dev/xilinx/if_xae.c
82
#define XAE_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/dev/xilinx/if_xae.c
83
#define XAE_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/dev/xilinx/if_xae.c
84
#define XAE_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED)
sys/dev/xilinx/if_xae.c
85
#define XAE_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED)
sys/dev/xilinx/if_xaevar.h
62
struct mtx mtx;
sys/dev/xilinx/xlnx_pcib.c
359
mtx_init(&sc->mtx, "msi_mtx", NULL, MTX_DEF);
sys/dev/xilinx/xlnx_pcib.c
597
mtx_lock(&sc->mtx);
sys/dev/xilinx/xlnx_pcib.c
620
mtx_unlock(&sc->mtx);
sys/dev/xilinx/xlnx_pcib.c
628
mtx_unlock(&sc->mtx);
sys/dev/xilinx/xlnx_pcib.c
647
mtx_lock(&sc->mtx);
sys/dev/xilinx/xlnx_pcib.c
657
mtx_unlock(&sc->mtx);
sys/dev/xilinx/xlnx_pcib.c
86
struct mtx mtx;
sys/dev/xl/if_xlreg.h
615
struct mtx xl_mtx;
sys/fs/cuse/cuse.c
1126
error = cv_wait_sig(&pcs->cv, &pcs->mtx);
sys/fs/cuse/cuse.c
145
struct mtx mtx;
sys/fs/cuse/cuse.c
183
static struct mtx cuse_global_mtx;
sys/fs/cuse/cuse.c
1991
mtx_assert(&pcc->server->mtx, MA_OWNED);
sys/fs/cuse/cuse.c
2003
mtx_assert(&pcc->server->mtx, MA_OWNED);
sys/fs/cuse/cuse.c
270
mtx_lock(&pcs->mtx);
sys/fs/cuse/cuse.c
276
mtx_unlock(&pcs->mtx);
sys/fs/cuse/cuse.c
282
return (mtx_owned(&pcs->mtx));
sys/fs/cuse/cuse.c
637
cv_wait(&pccmd->cv, &pcs->mtx);
sys/fs/cuse/cuse.c
639
error = cv_wait_sig(&pccmd->cv, &pcs->mtx);
sys/fs/cuse/cuse.c
661
cv_wait(&pccmd->cv, &pcs->mtx);
sys/fs/cuse/cuse.c
742
mtx_destroy(&pcs->mtx);
sys/fs/cuse/cuse.c
804
mtx_init(&pcs->mtx, "cuse-server-mtx", NULL, MTX_DEF);
sys/fs/cuse/cuse.c
806
knlist_init_mtx(&pcs->selinfo.si_note, &pcs->mtx);
sys/fs/devfs/devfs_dir.c
55
static struct mtx dirlist_mtx;
sys/fs/devfs/devfs_int.h
72
struct mtx cdp_threadlock;
sys/fs/devfs/devfs_int.h
92
extern struct mtx devmtx;
sys/fs/devfs/devfs_int.h
93
extern struct mtx devfs_de_interlock;
sys/fs/devfs/devfs_int.h
94
extern struct mtx cdevpriv_mtx;
sys/fs/devfs/devfs_vnops.c
82
struct mtx devfs_de_interlock;
sys/fs/devfs/devfs_vnops.c
84
struct mtx cdevpriv_mtx;
sys/fs/ext2fs/ext2_mount.h
55
struct mtx um_lock; /* Protects ext2mount & fs */
sys/fs/fdescfs/fdesc.h
65
extern struct mtx fdesc_hashmtx;
sys/fs/fdescfs/fdesc_vnops.c
66
struct mtx fdesc_hashmtx;
sys/fs/fuse/fuse.h
76
extern struct mtx fuse_mtx;
sys/fs/fuse/fuse.h
88
#define fuse_lck_mtx_lock(mtx) mtx_lock(&(mtx))
sys/fs/fuse/fuse.h
89
#define fuse_lck_mtx_unlock(mtx) mtx_unlock(&(mtx))
sys/fs/fuse/fuse_ipc.h
130
struct mtx tk_aw_mtx;
sys/fs/fuse/fuse_ipc.h
183
struct mtx ms_mtx;
sys/fs/fuse/fuse_ipc.h
187
struct mtx aw_mtx;
sys/fs/fuse/fuse_main.c
91
struct mtx fuse_mtx;
sys/fs/fuse/fuse_node.h
135
struct mtx cached_attr_mtx;
sys/fs/nfs/nfs_commonkrpc.c
1643
newnfs_msleep(struct thread *td, void *ident, struct mtx *mtx, int priority, char *wmesg, int timo)
sys/fs/nfs/nfs_commonkrpc.c
1649
return msleep(ident, mtx, priority, wmesg, timo);
sys/fs/nfs/nfs_commonkrpc.c
1653
error = msleep(ident, mtx, priority, wmesg, timo);
sys/fs/nfs/nfs_commonport.c
138
struct mtx newnfsd_mtx;
sys/fs/nfs/nfs_commonport.c
139
struct mtx nfs_sockl_mutex;
sys/fs/nfs/nfs_commonport.c
140
struct mtx nfs_state_mutex;
sys/fs/nfs/nfs_commonport.c
141
struct mtx nfs_nameid_mutex;
sys/fs/nfs/nfs_commonport.c
142
struct mtx nfs_req_mutex;
sys/fs/nfs/nfs_commonport.c
143
struct mtx nfs_slock_mutex;
sys/fs/nfs/nfs_commonport.c
144
struct mtx nfs_clstate_mutex;
sys/fs/nfs/nfs_commonport.c
281
error = msleep(chan, (struct mtx *)mutex, prio, wmesg, timeo);
sys/fs/nfs/nfs_commonport.c
66
struct mtx nfsrv_dslock_mtx;
sys/fs/nfs/nfs_commonsubs.c
215
struct mtx mtx;
sys/fs/nfs/nfs_commonsubs.c
2632
struct mtx *mutex, struct mount *mp)
sys/fs/nfs/nfs_commonsubs.c
2710
nfsv4_getref(struct nfsv4lock *lp, int *isleptp, struct mtx *mutex,
sys/fs/nfs/nfs_commonsubs.c
3684
mtx_lock(&hp->mtx);
sys/fs/nfs/nfs_commonsubs.c
3706
mtx_unlock(&hp->mtx);
sys/fs/nfs/nfs_commonsubs.c
3725
mtx_unlock(&hp->mtx);
sys/fs/nfs/nfs_commonsubs.c
3730
mtx_unlock(&hp->mtx);
sys/fs/nfs/nfs_commonsubs.c
3777
mtx_lock(&hp->mtx);
sys/fs/nfs/nfs_commonsubs.c
3791
mtx_unlock(&hp->mtx);
sys/fs/nfs/nfs_commonsubs.c
3795
mtx_unlock(&hp->mtx);
sys/fs/nfs/nfs_commonsubs.c
3877
mtx_lock(&hp->mtx);
sys/fs/nfs/nfs_commonsubs.c
3885
mtx_lock(&hp2->mtx);
sys/fs/nfs/nfs_commonsubs.c
3890
mtx_unlock(&hp2->mtx);
sys/fs/nfs/nfs_commonsubs.c
3891
mtx_unlock(&hp->mtx);
sys/fs/nfs/nfs_commonsubs.c
3896
mtx_unlock(&hp->mtx);
sys/fs/nfs/nfs_commonsubs.c
3956
mtx_lock(&hp->mtx);
sys/fs/nfs/nfs_commonsubs.c
3978
mtx_unlock(&hp->mtx);
sys/fs/nfs/nfs_commonsubs.c
3997
mtx_unlock(&hp->mtx);
sys/fs/nfs/nfs_commonsubs.c
4002
mtx_unlock(&hp->mtx);
sys/fs/nfs/nfs_commonsubs.c
4101
mtx_lock(&hp->mtx);
sys/fs/nfs/nfs_commonsubs.c
4109
mtx_lock(&hp2->mtx);
sys/fs/nfs/nfs_commonsubs.c
4114
mtx_unlock(&hp2->mtx);
sys/fs/nfs/nfs_commonsubs.c
4115
mtx_unlock(&hp->mtx);
sys/fs/nfs/nfs_commonsubs.c
4120
mtx_unlock(&hp->mtx);
sys/fs/nfs/nfs_commonsubs.c
4366
mtx_lock(&VNET(nfsusernamehash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4368
mtx_lock(&VNET(nfsuserhash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4374
mtx_unlock(&VNET(nfsuserhash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4376
mtx_unlock(&VNET(nfsusernamehash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4378
mtx_lock(&VNET(nfsgroupnamehash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4380
mtx_lock(&VNET(nfsgrouphash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4387
mtx_unlock(&VNET(nfsgrouphash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4389
mtx_unlock(&VNET(nfsgroupnamehash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4399
mtx_init(&VNET(nfsuserhash)[i].mtx, "nfsuidhash",
sys/fs/nfs/nfs_commonsubs.c
4405
mtx_init(&VNET(nfsusernamehash)[i].mtx,
sys/fs/nfs/nfs_commonsubs.c
4412
mtx_init(&VNET(nfsgrouphash)[i].mtx, "nfsgidhash",
sys/fs/nfs/nfs_commonsubs.c
4418
mtx_init(&VNET(nfsgroupnamehash)[i].mtx,
sys/fs/nfs/nfs_commonsubs.c
4509
mtx_lock(&VNET(nfsusernamehash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4512
mtx_lock(&hp_idnum->mtx);
sys/fs/nfs/nfs_commonsubs.c
4521
mtx_lock(&hp_name->mtx);
sys/fs/nfs/nfs_commonsubs.c
4528
mtx_lock(&thp->mtx);
sys/fs/nfs/nfs_commonsubs.c
4530
mtx_unlock(&thp->mtx);
sys/fs/nfs/nfs_commonsubs.c
4534
mtx_lock(&hp_idnum->mtx);
sys/fs/nfs/nfs_commonsubs.c
4538
mtx_lock(&VNET(nfsgroupnamehash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4541
mtx_lock(&hp_idnum->mtx);
sys/fs/nfs/nfs_commonsubs.c
4550
mtx_lock(&hp_name->mtx);
sys/fs/nfs/nfs_commonsubs.c
4557
mtx_lock(&thp->mtx);
sys/fs/nfs/nfs_commonsubs.c
4559
mtx_unlock(&thp->mtx);
sys/fs/nfs/nfs_commonsubs.c
4563
mtx_lock(&hp_idnum->mtx);
sys/fs/nfs/nfs_commonsubs.c
4580
mtx_assert(&thp->mtx, MA_OWNED);
sys/fs/nfs/nfs_commonsubs.c
4583
mtx_assert(&thp->mtx, MA_OWNED);
sys/fs/nfs/nfs_commonsubs.c
4592
mtx_assert(&thp->mtx, MA_OWNED);
sys/fs/nfs/nfs_commonsubs.c
4595
mtx_assert(&thp->mtx, MA_OWNED);
sys/fs/nfs/nfs_commonsubs.c
4614
mtx_unlock(&hp_name->mtx);
sys/fs/nfs/nfs_commonsubs.c
4618
mtx_unlock(&hp_idnum->mtx);
sys/fs/nfs/nfs_commonsubs.c
4626
mtx_lock(&VNET(nfsusernamehash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4632
mtx_lock(&VNET(nfsuserhash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4657
mtx_lock(&VNET(nfsgroupnamehash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4663
mtx_lock(&VNET(nfsgrouphash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4692
mtx_unlock(&hp_idnum->mtx);
sys/fs/nfs/nfs_commonsubs.c
4694
mtx_unlock(&hp_name->mtx);
sys/fs/nfs/nfs_commonsubs.c
4697
mtx_unlock(&VNET(nfsuserhash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4700
mtx_unlock(&VNET(nfsusernamehash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4703
mtx_unlock(&VNET(nfsgrouphash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4706
mtx_unlock(&VNET(nfsgroupnamehash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4722
mtx_assert(&hp->mtx, MA_OWNED);
sys/fs/nfs/nfs_commonsubs.c
4725
mtx_assert(&hp->mtx, MA_OWNED);
sys/fs/nfs/nfs_commonsubs.c
4729
mtx_assert(&hp->mtx, MA_OWNED);
sys/fs/nfs/nfs_commonsubs.c
4732
mtx_assert(&hp->mtx, MA_OWNED);
sys/fs/nfs/nfs_commonsubs.c
4778
mtx_destroy(&VNET(nfsuserhash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4779
mtx_destroy(&VNET(nfsusernamehash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4780
mtx_destroy(&VNET(nfsgroupnamehash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
4781
mtx_destroy(&VNET(nfsgrouphash)[i].mtx);
sys/fs/nfs/nfs_commonsubs.c
77
extern struct mtx nfsrv_dslock_mtx;
sys/fs/nfs/nfs_var.h
348
int nfsv4_lock(struct nfsv4lock *, int, int *, struct mtx *, struct mount *);
sys/fs/nfs/nfs_var.h
351
void nfsv4_getref(struct nfsv4lock *, int *, struct mtx *, struct mount *);
sys/fs/nfs/nfs_var.h
800
int newnfs_msleep(struct thread *, void *, struct mtx *, int, char *, int);
sys/fs/nfs/nfsclstate.h
62
struct mtx nfsess_mtx;
sys/fs/nfs/nfsclstate.h
87
struct mtx nfsclds_mtx;
sys/fs/nfs/nfsport.h
1153
struct mtx r_mtx; /* Mutex lock for this structure */
sys/fs/nfs/nfsport.h
180
#define NFSMUTEX_T struct mtx
sys/fs/nfs/nfsport.h
793
#define NFSSTATESPINLOCK extern struct mtx nfs_state_mutex
sys/fs/nfs/nfsport.h
797
#define NFSREQSPINLOCK extern struct mtx nfs_req_mutex
sys/fs/nfs/nfsport.h
800
#define NFSSOCKMUTEX extern struct mtx nfs_slock_mutex
sys/fs/nfs/nfsport.h
804
#define NFSNAMEIDMUTEX extern struct mtx nfs_nameid_mutex
sys/fs/nfs/nfsport.h
809
#define NFSCLSTATEMUTEX extern struct mtx nfs_clstate_mutex
sys/fs/nfs/nfsport.h
813
#define NFSDLOCKMUTEX extern struct mtx newnfsd_mtx
sys/fs/nfs/nfsport.h
819
#define NFSV4ROOTLOCKMUTEX extern struct mtx nfs_v4root_mutex
sys/fs/nfs/nfsport.h
837
#define NFSSESSIONMUTEXPTR(s) (&((s)->mtx))
sys/fs/nfs/nfsport.h
838
#define NFSLOCKSESSION(s) mtx_lock(&((s)->mtx))
sys/fs/nfs/nfsport.h
839
#define NFSUNLOCKSESSION(s) mtx_unlock(&((s)->mtx))
sys/fs/nfs/nfsport.h
840
#define NFSLAYOUTMUTEXPTR(l) (&((l)->mtx))
sys/fs/nfs/nfsport.h
841
#define NFSLOCKLAYOUT(l) mtx_lock(&((l)->mtx))
sys/fs/nfs/nfsport.h
842
#define NFSUNLOCKLAYOUT(l) mtx_unlock(&((l)->mtx))
sys/fs/nfs/nfsrvcache.h
118
struct mtx mtx;
sys/fs/nfs/nfsrvstate.h
74
struct mtx mtx;
sys/fs/nfs/nfsrvstate.h
82
struct mtx mtx;
sys/fs/nfsclient/nfs_clbio.c
61
extern struct mtx ncl_iod_mutex;
sys/fs/nfsclient/nfs_clnfsiod.c
70
extern struct mtx ncl_iod_mutex;
sys/fs/nfsclient/nfs_clport.c
78
struct mtx ncl_iod_mutex;
sys/fs/nfsclient/nfs_clport.c
80
extern struct mtx nfsrv_dslock_mtx;
sys/fs/nfsclient/nfs_clsubs.c
75
extern struct mtx ncl_iod_mutex;
sys/fs/nfsclient/nfs_clvfsops.c
87
extern struct mtx ncl_iod_mutex;
sys/fs/nfsclient/nfs_clvfsops.c
89
extern struct mtx nfsrv_dslock_mtx;
sys/fs/nfsclient/nfs_clvnops.c
1789
static struct mtx nfs_cverf_mtx;
sys/fs/nfsclient/nfsnode.h
94
struct mtx n_mtx; /* Protects all of these members */
sys/fs/nfsserver/nfs_fha_new.c
117
mtx_init(&softc->fha_hash[i].mtx, "fhalock", NULL, MTX_DEF);
sys/fs/nfsserver/nfs_fha_new.c
140
mtx_destroy(&softc->fha_hash[i].mtx);
sys/fs/nfsserver/nfs_fha_new.c
377
mtx_assert(e->mtx, MA_OWNED);
sys/fs/nfsserver/nfs_fha_new.c
391
mtx_assert(e->mtx, MA_OWNED);
sys/fs/nfsserver/nfs_fha_new.c
404
new_fhe->mtx = &fhs->mtx;
sys/fs/nfsserver/nfs_fha_new.c
405
mtx_lock(&fhs->mtx);
sys/fs/nfsserver/nfs_fha_new.c
421
mtx_assert(fhe->mtx, MA_OWNED);
sys/fs/nfsserver/nfs_fha_new.c
431
mtx_assert(fhe->mtx, MA_OWNED);
sys/fs/nfsserver/nfs_fha_new.c
445
mtx_assert(fhe->mtx, MA_OWNED);
sys/fs/nfsserver/nfs_fha_new.c
595
mtx_unlock(fhe->mtx);
sys/fs/nfsserver/nfs_fha_new.c
614
struct mtx *mtx;
sys/fs/nfsserver/nfs_fha_new.c
626
mtx = fhe->mtx;
sys/fs/nfsserver/nfs_fha_new.c
627
mtx_lock(mtx);
sys/fs/nfsserver/nfs_fha_new.c
637
mtx_unlock(mtx);
sys/fs/nfsserver/nfs_fha_new.c
666
mtx_lock(&softc->fha_hash[i].mtx);
sys/fs/nfsserver/nfs_fha_new.c
668
mtx_unlock(&softc->fha_hash[i].mtx);
sys/fs/nfsserver/nfs_fha_new.c
692
mtx_unlock(&softc->fha_hash[i].mtx);
sys/fs/nfsserver/nfs_fha_new.h
70
struct mtx *mtx;
sys/fs/nfsserver/nfs_fha_new.h
83
struct mtx mtx;
sys/fs/nfsserver/nfs_nfsdcache.c
1008
struct mtx *mutex;
sys/fs/nfsserver/nfs_nfsdcache.c
161
extern struct mtx nfsrc_udpmtx;
sys/fs/nfsserver/nfs_nfsdcache.c
293
static __inline struct mtx *
sys/fs/nfsserver/nfs_nfsdcache.c
299
return (&VNET(nfsrchash_table)[nfsrc_hash(rp->rc_xid)].mtx);
sys/fs/nfsserver/nfs_nfsdcache.c
317
mtx_init(&VNET(nfsrchash_table)[i].mtx, "nfsrtc", NULL,
sys/fs/nfsserver/nfs_nfsdcache.c
319
mtx_init(&VNET(nfsrcahash_table)[i].mtx, "nfsrtca", NULL,
sys/fs/nfsserver/nfs_nfsdcache.c
382
struct mtx *mutex;
sys/fs/nfsserver/nfs_nfsdcache.c
469
struct mtx *mutex;
sys/fs/nfsserver/nfs_nfsdcache.c
569
struct mtx *mutex;
sys/fs/nfsserver/nfs_nfsdcache.c
594
mtx_lock(&hbp->mtx);
sys/fs/nfsserver/nfs_nfsdcache.c
599
mtx_unlock(&hbp->mtx);
sys/fs/nfsserver/nfs_nfsdcache.c
617
struct mtx *mutex;
sys/fs/nfsserver/nfs_nfsdcache.c
747
struct mtx *mutex;
sys/fs/nfsserver/nfs_nfsdcache.c
764
struct mtx *mutex;
sys/fs/nfsserver/nfs_nfsdcache.c
800
mtx_lock(&hbp->mtx);
sys/fs/nfsserver/nfs_nfsdcache.c
803
mtx_unlock(&hbp->mtx);
sys/fs/nfsserver/nfs_nfsdcache.c
855
mtx_lock(&hbp->mtx);
sys/fs/nfsserver/nfs_nfsdcache.c
867
mtx_unlock(&hbp->mtx);
sys/fs/nfsserver/nfs_nfsdcache.c
913
mtx_lock(&VNET(nfsrchash_table)[i].mtx);
sys/fs/nfsserver/nfs_nfsdcache.c
945
mtx_unlock(&VNET(nfsrchash_table)[i].mtx);
sys/fs/nfsserver/nfs_nfsdcache.c
964
mtx_lock(&VNET(nfsrchash_table)[i].mtx);
sys/fs/nfsserver/nfs_nfsdcache.c
976
mtx_unlock(&VNET(nfsrchash_table)[i].mtx);
sys/fs/nfsserver/nfs_nfsdcache.c
989
struct mtx *mutex;
sys/fs/nfsserver/nfs_nfsdport.c
66
extern struct mtx nfsrv_dslock_mtx;
sys/fs/nfsserver/nfs_nfsdport.c
8659
mtx_destroy(&VNET(nfsrchash_table)[i].mtx);
sys/fs/nfsserver/nfs_nfsdport.c
8660
mtx_destroy(&VNET(nfsrcahash_table)[i].mtx);
sys/fs/nfsserver/nfs_nfsdport.c
8664
mtx_destroy(&VNET(nfssessionhash)[i].mtx);
sys/fs/nfsserver/nfs_nfsdport.c
8723
mtx_destroy(&nfslayouthash[i].mtx);
sys/fs/nfsserver/nfs_nfsdport.c
89
struct mtx nfsrc_udpmtx;
sys/fs/nfsserver/nfs_nfsdport.c
90
struct mtx nfs_v4root_mutex;
sys/fs/nfsserver/nfs_nfsdport.c
91
struct mtx nfsrv_dontlistlock_mtx;
sys/fs/nfsserver/nfs_nfsdport.c
92
struct mtx nfsrv_recalllock_mtx;
sys/fs/nfsserver/nfs_nfsdsocket.c
466
static struct mtx nfsrvd_statmtx;
sys/fs/nfsserver/nfs_nfsdstate.c
52
extern struct mtx nfsrv_dslock_mtx;
sys/fs/nfsserver/nfs_nfsdstate.c
53
extern struct mtx nfsrv_recalllock_mtx;
sys/fs/nfsserver/nfs_nfsdstate.c
54
extern struct mtx nfsrv_dontlistlock_mtx;
sys/fs/nfsserver/nfs_nfsdstate.c
7975
mtx_init(&nfslayouthash[i].mtx, "nfslm", NULL, MTX_DEF);
sys/fs/nfsserver/nfs_nfsdsubs.c
2167
mtx_init(&VNET(nfssessionhash)[i].mtx, "nfssm", NULL,
sys/fs/p9fs/p9_client.h
87
struct mtx clnt_mtx; /* mutex to lock the client */
sys/fs/p9fs/p9_client.h
88
struct mtx req_mtx; /* mutex to lock the request buffer */
sys/fs/p9fs/p9fs.h
154
struct mtx p9fs_mtx; /* mutex used for guarding the chain.*/
sys/fs/p9fs/p9fs.h
97
struct mtx vfid_mtx; /* mutex for vfid list */
sys/fs/p9fs/p9fs.h
99
struct mtx vofid_mtx; /* mutex for vofid list */
sys/fs/pseudofs/pseudofs.h
202
struct mtx pi_mutex;
sys/fs/pseudofs/pseudofs.h
222
struct mtx pn_mutex;
sys/fs/pseudofs/pseudofs_vncache.c
50
static struct mtx pfs_vncache_mutex;
sys/fs/tarfs/tarfs.h
130
struct mtx allnode_lock;
sys/fs/tarfs/tarfs.h
55
struct mtx lock;
sys/fs/tmpfs/tmpfs.h
243
struct mtx tn_interlock;
sys/fs/tmpfs/tmpfs.h
430
struct mtx tm_allnode_lock;
sys/fs/unionfs/union_subr.c
73
static struct mtx unionfs_deferred_rele_lock;
sys/geom/cache/g_cache.h
56
struct mtx sc_mtx;
sys/geom/concat/g_concat.h
75
struct mtx sc_completion_lock; /* synchronizes cross-boundary IOs */
sys/geom/eli/g_eli.h
191
struct mtx sc_ekeys_lock;
sys/geom/eli/g_eli.h
219
struct mtx sc_queue_mtx;
sys/geom/gate/g_gate.c
86
static struct mtx g_gate_units_lock;
sys/geom/gate/g_gate.h
100
struct mtx sc_read_mtx;
sys/geom/gate/g_gate.h
88
struct mtx sc_queue_mtx;
sys/geom/geom.h
164
struct mtx bio_queue_lock;
sys/geom/geom_dev.c
61
struct mtx sc_mtx;
sys/geom/geom_disk.c
71
struct mtx done_mtx;
sys/geom/geom_disk.h
93
struct mtx *d_lock;
sys/geom/geom_event.c
61
static struct mtx g_eventlock;
sys/geom/geom_io.c
609
struct mtx *mtxp;
sys/geom/geom_vfs.c
53
struct mtx sc_mtx;
sys/geom/journal/g_journal.c
79
static struct mtx g_journal_cache_mtx;
sys/geom/journal/g_journal.h
108
struct mtx sc_mtx;
sys/geom/mirror/g_mirror.c
84
#define MSLEEP(ident, mtx, priority, wmesg, timeout) do { \
sys/geom/mirror/g_mirror.c
86
msleep((ident), (mtx), (priority), (wmesg), (timeout)); \
sys/geom/mirror/g_mirror.h
186
struct mtx sc_queue_mtx;
sys/geom/mirror/g_mirror.h
208
struct mtx sc_events_mtx;
sys/geom/mirror/g_mirror.h
215
struct mtx sc_done_mtx;
sys/geom/mountver/g_mountver.h
46
struct mtx sc_mtx;
sys/geom/multipath/g_multipath.c
78
static struct mtx gmtbq_mtx;
sys/geom/multipath/g_multipath.h
48
struct mtx sc_mtx;
sys/geom/nop/g_nop.h
76
struct mtx sc_lock;
sys/geom/raid/g_raid.c
90
#define MSLEEP(rv, ident, mtx, priority, wmesg, timeout) do { \
sys/geom/raid/g_raid.c
92
rv = msleep((ident), (mtx), (priority), (wmesg), (timeout)); \
sys/geom/raid/g_raid.h
299
struct mtx sc_queue_mtx; /* Worker queues lock. */
sys/geom/raid3/g_raid3.c
95
#define MSLEEP(ident, mtx, priority, wmesg, timeout) do { \
sys/geom/raid3/g_raid3.c
97
msleep((ident), (mtx), (priority), (wmesg), (timeout)); \
sys/geom/raid3/g_raid3.h
191
struct mtx sc_queue_mtx;
sys/geom/raid3/g_raid3.h
225
struct mtx sc_events_mtx;
sys/geom/stripe/g_stripe.h
66
struct mtx sc_lock;
sys/geom/uzip/g_uzip_softc.h
39
struct mtx last_mtx;
sys/geom/uzip/g_uzip_softc.h
50
struct mtx queue_mtx;
sys/geom/virstor/g_virstor.h
98
struct mtx delayed_bio_q_mtx;
sys/i386/i386/machdep.c
186
struct mtx icu_lock;
sys/i386/i386/machdep.c
336
struct mtx dt_lock; /* lock for GDT and LDT */
sys/i386/i386/pmap.c
278
static struct mtx PMAP2mutex;
sys/i386/i386/vm86.c
52
static struct mtx vm86_lock;
sys/i386/include/pcpu.h
69
struct mtx pc_cmap_lock; \
sys/i386/include/pcpu.h
77
struct mtx pc_copyout_mlock; \
sys/i386/include/pmap.h
164
struct mtx pm_mtx;
sys/i386/include/proc.h
71
extern struct mtx dt_lock;
sys/i386/pci/pci_cfgreg.c
80
static struct mtx pcicfg_mtx;
sys/isa/rtc.h
114
extern struct mtx atrtc_time_lock;
sys/kern/kern_alq.c
73
struct mtx aq_mtx; /* Queue lock */
sys/kern/kern_alq.c
97
static struct mtx ald_mtx;
sys/kern/kern_clock.c
86
static struct mtx time_lock;
sys/kern/kern_clocksource.c
114
struct mtx et_hw_mtx; /* Per-CPU timer mutex. */
sys/kern/kern_clocksource.c
72
static struct mtx et_hw_mtx;
sys/kern/kern_conf.c
53
struct mtx devmtx;
sys/kern/kern_cons.c
117
static struct mtx constty_mtx; /* Mutex for constty assignment. */
sys/kern/kern_cons.c
119
static struct mtx cnputs_mtx; /* Mutex for cnputs(). */
sys/kern/kern_cpuset.c
131
static struct mtx cpuset_lock;
sys/kern/kern_descrip.c
196
struct mtx sigio_lock; /* mtx to protect pointers to sigio */
sys/kern/kern_devctl.c
151
mtx_init(&devsoftc.mtx, "dev mtx", "devd", MTX_DEF);
sys/kern/kern_devctl.c
154
knlist_init_mtx(&devsoftc.sel.si_note, &devsoftc.mtx);
sys/kern/kern_devctl.c
222
mtx_lock(&devsoftc.mtx);
sys/kern/kern_devctl.c
224
mtx_unlock(&devsoftc.mtx);
sys/kern/kern_devctl.c
229
mtx_unlock(&devsoftc.mtx);
sys/kern/kern_devctl.c
236
mtx_lock(&devsoftc.mtx);
sys/kern/kern_devctl.c
242
mtx_unlock(&devsoftc.mtx);
sys/kern/kern_devctl.c
260
mtx_lock(&devsoftc.mtx);
sys/kern/kern_devctl.c
263
mtx_unlock(&devsoftc.mtx);
sys/kern/kern_devctl.c
266
rv = cv_wait_sig(&devsoftc.cv, &devsoftc.mtx);
sys/kern/kern_devctl.c
271
mtx_unlock(&devsoftc.mtx);
sys/kern/kern_devctl.c
278
mtx_unlock(&devsoftc.mtx);
sys/kern/kern_devctl.c
321
mtx_lock(&devsoftc.mtx);
sys/kern/kern_devctl.c
328
mtx_unlock(&devsoftc.mtx);
sys/kern/kern_devctl.c
374
mtx_lock(&devsoftc.mtx);
sys/kern/kern_devctl.c
398
mtx_unlock(&devsoftc.mtx);
sys/kern/kern_devctl.c
422
mtx_lock(&devsoftc.mtx);
sys/kern/kern_devctl.c
427
mtx_unlock(&devsoftc.mtx);
sys/kern/kern_devctl.c
558
if (!mtx_initialized(&devsoftc.mtx)) {
sys/kern/kern_devctl.c
572
mtx_lock(&devsoftc.mtx);
sys/kern/kern_devctl.c
576
mtx_unlock(&devsoftc.mtx);
sys/kern/kern_devctl.c
69
struct mtx mtx;
sys/kern/kern_environment.c
85
struct mtx kenv_lock;
sys/kern/kern_et.c
40
struct mtx et_eventtimers_mtx;
sys/kern/kern_event.c
2692
static struct mtx knlist_lock;
sys/kern/kern_event.c
2702
mtx_lock((struct mtx *)arg);
sys/kern/kern_event.c
2709
mtx_unlock((struct mtx *)arg);
sys/kern/kern_event.c
2717
mtx_assert((struct mtx *)arg, MA_OWNED);
sys/kern/kern_event.c
2719
mtx_assert((struct mtx *)arg, MA_NOTOWNED);
sys/kern/kern_event.c
2751
knlist_init_mtx(struct knlist *knl, struct mtx *lock)
sys/kern/kern_event.c
2758
knlist_alloc(struct mtx *lock)
sys/kern/kern_event.c
378
static struct mtx filterops_lock;
sys/kern/kern_event.c
93
static struct mtx kq_global;
sys/kern/kern_exec.c
1530
static struct mtx exec_args_kva_mtx;
sys/kern/kern_fail.c
116
static struct mtx mtx_garbage_list;
sys/kern/kern_ffclock.c
56
extern struct mtx ffclock_mtx;
sys/kern/kern_hhook.c
67
static struct mtx hhook_head_list_lock;
sys/kern/kern_intr.c
110
static struct mtx event_lock;
sys/kern/kern_kcov.c
161
static struct mtx kcov_lock;
sys/kern/kern_kexec.c
97
static struct mtx kexec_mutex;
sys/kern/kern_ktrace.c
156
static struct mtx ktrace_mtx;
sys/kern/kern_malloc.c
232
struct mtx malloc_mtx;
sys/kern/kern_mib.c
516
static struct mtx bootid_lk;
sys/kern/kern_mtxpool.c
139
((pool_size - 1) * sizeof (struct mtx)),
sys/kern/kern_mtxpool.c
169
struct mtx *
sys/kern/kern_mtxpool.c
73
struct mtx mtx_pool_ary[1];
sys/kern/kern_mtxpool.c
97
struct mtx *
sys/kern/kern_mutex.c
1013
thread_lock_set(struct thread *td, struct mtx *new)
sys/kern/kern_mutex.c
1015
struct mtx *lock;
sys/kern/kern_mutex.c
1039
struct mtx *m;
sys/kern/kern_mutex.c
1096
const struct mtx *m;
sys/kern/kern_mutex.c
1138
mtx_init((struct mtx *)margs->ma_mtx, margs->ma_desc, NULL,
sys/kern/kern_mutex.c
1151
struct mtx *m;
sys/kern/kern_mutex.c
1198
struct mtx *m;
sys/kern/kern_mutex.c
1253
_mtx_lock_indefinite_check(struct mtx *m, struct lock_delay_arg *ldap)
sys/kern/kern_mutex.c
1278
mtx_spin_wait_unlocked(struct mtx *m)
sys/kern/kern_mutex.c
1303
mtx_wait_unlocked(struct mtx *m)
sys/kern/kern_mutex.c
1336
const struct mtx *m;
sys/kern/kern_mutex.c
1338
m = (const struct mtx *)lock;
sys/kern/kern_mutex.c
146
static SYSCTL_NODE(_debug, OID_AUTO, mtx, CTLFLAG_RD | CTLFLAG_MPSAFE, NULL,
sys/kern/kern_mutex.c
182
struct mtx blocked_lock;
sys/kern/kern_mutex.c
183
struct mtx __exclusive_cache_line Giant;
sys/kern/kern_mutex.c
185
static void _mtx_lock_indefinite_check(struct mtx *, struct lock_delay_arg *);
sys/kern/kern_mutex.c
206
mtx_assert((const struct mtx *)lock, what);
sys/kern/kern_mutex.c
213
mtx_lock((struct mtx *)lock);
sys/kern/kern_mutex.c
220
mtx_lock_spin((struct mtx *)lock);
sys/kern/kern_mutex.c
227
return (mtx_trylock((struct mtx *)lock));
sys/kern/kern_mutex.c
234
return (mtx_trylock_spin((struct mtx *)lock));
sys/kern/kern_mutex.c
240
struct mtx *m;
sys/kern/kern_mutex.c
242
m = (struct mtx *)lock;
sys/kern/kern_mutex.c
251
struct mtx *m;
sys/kern/kern_mutex.c
253
m = (struct mtx *)lock;
sys/kern/kern_mutex.c
263
const struct mtx *m;
sys/kern/kern_mutex.c
266
m = (const struct mtx *)lock;
sys/kern/kern_mutex.c
280
struct mtx *m;
sys/kern/kern_mutex.c
314
struct mtx *m;
sys/kern/kern_mutex.c
340
struct mtx *m;
sys/kern/kern_mutex.c
381
struct mtx *m;
sys/kern/kern_mutex.c
410
struct mtx *m;
sys/kern/kern_mutex.c
434
_mtx_trylock_flags_int(struct mtx *m, int opts LOCK_FILE_LINE_ARG_DEF)
sys/kern/kern_mutex.c
497
struct mtx *m;
sys/kern/kern_mutex.c
519
struct mtx *m;
sys/kern/kern_mutex.c
727
struct mtx *m;
sys/kern/kern_mutex.c
822
thread_lock_validate(struct mtx *m, int opts, const char *file, int line)
sys/kern/kern_mutex.c
849
struct mtx *m;
sys/kern/kern_mutex.c
88
#define mtxlock2mtx(c) (__containerof(c, struct mtx, mtx_lock))
sys/kern/kern_mutex.c
882
struct mtx *m;
sys/kern/kern_mutex.c
978
struct mtx *
sys/kern/kern_mutex.c
981
struct mtx *lock;
sys/kern/kern_mutex.c
991
thread_lock_unblock(struct thread *td, struct mtx *new)
sys/kern/kern_ntptime.c
169
static struct mtx ntp_lock;
sys/kern/kern_osd.c
55
struct mtx osd_list_lock;
sys/kern/kern_pmc.c
123
struct mtx pmc_softs_mtx;
sys/kern/kern_poll.c
54
static struct mtx poll_mtx;
sys/kern/kern_proc.c
138
struct mtx __exclusive_cache_line ppeers_lock;
sys/kern/kern_proc.c
139
struct mtx __exclusive_cache_line procid_lock;
sys/kern/kern_racct.c
81
struct mtx racct_lock;
sys/kern/kern_rmlock.c
1000
mtx_destroy(&rms->mtx);
sys/kern/kern_rmlock.c
1011
mtx_lock(&rms->mtx);
sys/kern/kern_rmlock.c
1013
msleep(&rms->readers, &rms->mtx, PRI_MAX_KERN,
sys/kern/kern_rmlock.c
1014
mtx_name(&rms->mtx), 0);
sys/kern/kern_rmlock.c
1017
mtx_unlock(&rms->mtx);
sys/kern/kern_rmlock.c
1078
mtx_lock(&rms->mtx);
sys/kern/kern_rmlock.c
1086
mtx_unlock(&rms->mtx);
sys/kern/kern_rmlock.c
1198
mtx_lock(&rms->mtx);
sys/kern/kern_rmlock.c
1201
msleep(&rms->owner, &rms->mtx, PRI_MAX_KERN,
sys/kern/kern_rmlock.c
1202
mtx_name(&rms->mtx), 0);
sys/kern/kern_rmlock.c
1217
msleep(&rms->writers, &rms->mtx, PRI_MAX_KERN,
sys/kern/kern_rmlock.c
1218
mtx_name(&rms->mtx), 0);
sys/kern/kern_rmlock.c
1224
mtx_unlock(&rms->mtx);
sys/kern/kern_rmlock.c
1233
mtx_lock(&rms->mtx);
sys/kern/kern_rmlock.c
1246
mtx_unlock(&rms->mtx);
sys/kern/kern_rmlock.c
191
static struct mtx rm_spinlock;
sys/kern/kern_rmlock.c
990
mtx_init(&rms->mtx, name, NULL, MTX_DEF | MTX_NEW);
sys/kern/kern_shutdown.c
232
static struct mtx dumpconf_list_lk;
sys/kern/kern_synch.c
241
msleep_spin_sbt(const void *ident, struct mtx *mtx, const char *wmesg,
sys/kern/kern_synch.c
247
WITNESS_SAVE_DECL(mtx);
sys/kern/kern_synch.c
250
KASSERT(mtx != NULL, ("sleeping without a mutex"));
sys/kern/kern_synch.c
262
mtx_assert(mtx, MA_OWNED | MA_NOTRECURSED);
sys/kern/kern_synch.c
263
WITNESS_SAVE(&mtx->lock_object, mtx);
sys/kern/kern_synch.c
264
mtx_unlock_spin(mtx);
sys/kern/kern_synch.c
269
sleepq_add(ident, &mtx->lock_object, wmesg, SLEEPQ_SLEEP, 0);
sys/kern/kern_synch.c
296
mtx_lock_spin(mtx);
sys/kern/kern_synch.c
297
WITNESS_RESTORE(&mtx->lock_object, mtx);
sys/kern/kern_tc.c
101
static struct mtx tc_lock;
sys/kern/kern_tc.c
1290
static struct mtx tc_setclock_mtx;
sys/kern/kern_tc.c
515
struct mtx ffclock_mtx; /* Mutex on ffclock_estimate. */
sys/kern/kern_thread.c
156
static __exclusive_cache_line struct mtx tid_lock;
sys/kern/kern_timeout.c
390
thread_lock_set(td, (struct mtx *)&cc->cc_lock);
sys/kern/kern_timeout.c
848
thread_lock_set(td, (struct mtx *)&cc->cc_lock);
sys/kern/kern_umtx.c
187
static struct mtx umtx_lock;
sys/kern/kern_umtx.c
4349
static struct mtx umtx_shm_lock;
sys/kern/kern_uuid.c
87
static struct mtx uuid_mutex;
sys/kern/sched_4bsd.c
1003
struct mtx *tmtx;
sys/kern/sched_4bsd.c
126
static struct mtx sched_lock;
sys/kern/sched_ule.c
1360
struct mtx *mtx;
sys/kern/sched_ule.c
1379
mtx = thread_lock_block(td);
sys/kern/sched_ule.c
1381
mtx_unlock_spin(mtx);
sys/kern/sched_ule.c
2271
static struct mtx *
sys/kern/sched_ule.c
2307
thread_unblock_switch(struct thread *td, struct mtx *mtx)
sys/kern/sched_ule.c
2310
(uintptr_t)mtx);
sys/kern/sched_ule.c
2325
struct mtx *mtx;
sys/kern/sched_ule.c
2358
mtx = thread_lock_block(td);
sys/kern/sched_ule.c
2361
MPASS(mtx == TDQ_LOCKPTR(tdq));
sys/kern/sched_ule.c
2364
MPASS(mtx == TDQ_LOCKPTR(tdq));
sys/kern/sched_ule.c
2375
mtx = sched_switch_migrate(tdq, td, srqflag);
sys/kern/sched_ule.c
2378
if (mtx != TDQ_LOCKPTR(tdq)) {
sys/kern/sched_ule.c
2379
mtx_unlock_spin(mtx);
sys/kern/sched_ule.c
2436
cpu_switch(td, newtd, mtx);
sys/kern/sched_ule.c
2445
thread_unblock_switch(td, mtx);
sys/kern/sched_ule.c
351
#define TDQ_LOCKPTR(t) ((struct mtx *)(&(t)->tdq_lock))
sys/kern/sched_ule.c
399
static inline void thread_unblock_switch(struct thread *, struct mtx *);
sys/kern/subr_atomic64.c
60
static struct mtx a64_mtx_pool[A64_POOL_SIZE];
sys/kern/subr_atomic64.c
66
struct mtx *_amtx = GET_MUTEX(p); \
sys/kern/subr_autoconf.c
58
static struct mtx intr_config_hook_lock;
sys/kern/subr_bufring.c
37
buf_ring_alloc(int count, struct malloc_type *type, int flags, struct mtx *lock)
sys/kern/subr_bus.c
426
struct mtx *
sys/kern/subr_bus_dma.c
66
struct mtx *dmtx;
sys/kern/subr_bus_dma.c
68
dmtx = (struct mtx *)arg;
sys/kern/subr_busdma_bounce.c
88
static struct mtx bounce_lock;
sys/kern/subr_devstat.c
64
static struct mtx devstat_mutex;
sys/kern/subr_epoch.c
183
static struct mtx epoch_stacks_lock;
sys/kern/subr_epoch.c
86
struct mtx e_drain_mtx;
sys/kern/subr_eventhandler.c
44
static struct mtx eventhandler_mutex;
sys/kern/subr_firmware.c
137
static struct mtx firmware_mtx;
sys/kern/subr_gtaskqueue.c
118
return (msleep_spin(p, (struct mtx *)&tq->tq_mutex, wm, 0));
sys/kern/subr_gtaskqueue.c
602
struct mtx tqg_lock;
sys/kern/subr_hash.c
122
*hdrsize = *loffset + sizeof(struct mtx);
sys/kern/subr_hash.c
240
mtx_init((struct mtx *)slot, args->lname, NULL,
sys/kern/subr_hash.c
268
mtx_destroy((struct mtx *)slot);
sys/kern/subr_hash.c
345
mtx_destroy((struct mtx *)slot);
sys/kern/subr_hash.c
53
ASSERT_NOPAD(LIST, mtx);
sys/kern/subr_hash.c
54
ASSERT_NOPAD(CK_LIST, mtx);
sys/kern/subr_hash.c
55
ASSERT_NOPAD(SLIST, mtx);
sys/kern/subr_hash.c
56
ASSERT_NOPAD(CK_SLIST, mtx);
sys/kern/subr_hash.c
57
ASSERT_NOPAD(STAILQ, mtx);
sys/kern/subr_hash.c
58
ASSERT_NOPAD(CK_STAILQ, mtx);
sys/kern/subr_hash.c
59
ASSERT_NOPAD(TAILQ, mtx);
sys/kern/subr_intr.c
130
struct mtx pic_child_lock;
sys/kern/subr_intr.c
150
static struct mtx pic_list_lock;
sys/kern/subr_intr.c
156
static struct mtx isrc_table_lock;
sys/kern/subr_intr.c
1644
static struct mtx irq_map_lock;
sys/kern/subr_kobj.c
58
static struct mtx kobj_mtx;
sys/kern/subr_log.c
94
struct mtx msgbuf_lock;
sys/kern/subr_rman.c
106
static struct mtx rman_mtx; /* mutex to protect rman_head */
sys/kern/subr_sfbuf.c
76
static struct mtx sf_buf_lock;
sys/kern/subr_sleepqueue.c
1306
static struct mtx sleepq_prof_lock;
sys/kern/subr_sleepqueue.c
139
struct mtx sc_lock; /* Spin lock for this chain. */
sys/kern/subr_smp.c
162
struct mtx smp_ipi_mtx;
sys/kern/subr_taskqueue.c
136
return (msleep_spin(p, (struct mtx *)&tq->tq_mutex, wm, 0));
sys/kern/subr_turnstile.c
121
struct mtx ts_lock; /* Spin lock for self. */
sys/kern/subr_turnstile.c
133
struct mtx tc_lock; /* Spin lock for this chain. */
sys/kern/subr_turnstile.c
150
static struct mtx td_contested_lock;
sys/kern/subr_unit.c
1035
if (uh->mtx != NULL)
sys/kern/subr_unit.c
1036
mtx_lock(uh->mtx);
sys/kern/subr_unit.c
1039
if (uh->mtx != NULL)
sys/kern/subr_unit.c
1040
mtx_unlock(uh->mtx);
sys/kern/subr_unit.c
138
mtx_lock(struct mtx *mp)
sys/kern/subr_unit.c
145
mtx_unlock(struct mtx *mp)
sys/kern/subr_unit.c
154
mtx_assert(struct mtx *mp, int flag)
sys/kern/subr_unit.c
328
if (uh->mtx != NULL)
sys/kern/subr_unit.c
329
mtx_lock(uh->mtx);
sys/kern/subr_unit.c
331
if (uh->mtx != NULL)
sys/kern/subr_unit.c
332
mtx_unlock(uh->mtx);
sys/kern/subr_unit.c
434
if (uh->mtx != NULL)
sys/kern/subr_unit.c
435
mtx_assert(uh->mtx, MA_OWNED);
sys/kern/subr_unit.c
438
if (uh->mtx != NULL)
sys/kern/subr_unit.c
439
mtx_unlock(uh->mtx);
sys/kern/subr_unit.c
441
if (uh->mtx != NULL)
sys/kern/subr_unit.c
442
mtx_lock(uh->mtx);
sys/kern/subr_unit.c
451
if (uh->mtx != NULL)
sys/kern/subr_unit.c
452
mtx_lock(uh->mtx);
sys/kern/subr_unit.c
454
if (uh->mtx != NULL)
sys/kern/subr_unit.c
455
mtx_unlock(uh->mtx);
sys/kern/subr_unit.c
459
init_unrhdr(struct unrhdr *uh, int low, int high, struct mtx *mutex)
sys/kern/subr_unit.c
465
uh->mtx = NULL;
sys/kern/subr_unit.c
467
uh->mtx = mutex;
sys/kern/subr_unit.c
469
uh->mtx = &unitmtx;
sys/kern/subr_unit.c
488
new_unrhdr(int low, int high, struct mtx *mutex)
sys/kern/subr_unit.c
524
init_unrhdr(uh, uh->low, uh->high, uh->mtx);
sys/kern/subr_unit.c
731
if (uh->mtx != NULL)
sys/kern/subr_unit.c
732
mtx_assert(uh->mtx, MA_OWNED);
sys/kern/subr_unit.c
777
if (uh->mtx != NULL)
sys/kern/subr_unit.c
778
mtx_lock(uh->mtx);
sys/kern/subr_unit.c
781
if (uh->mtx != NULL)
sys/kern/subr_unit.c
782
mtx_unlock(uh->mtx);
sys/kern/subr_unit.c
793
if (uh->mtx != NULL)
sys/kern/subr_unit.c
794
mtx_assert(uh->mtx, MA_OWNED);
sys/kern/subr_unit.c
900
if (uh->mtx != NULL)
sys/kern/subr_unit.c
901
mtx_lock(uh->mtx);
sys/kern/subr_unit.c
903
if (uh->mtx != NULL)
sys/kern/subr_unit.c
904
mtx_unlock(uh->mtx);
sys/kern/subr_unit.c
95
static struct mtx unitmtx;
sys/kern/subr_witness.c
464
static struct mtx w_mtx;
sys/kern/sys_eventfd.c
105
struct mtx efd_lock;
sys/kern/sys_generic.c
146
struct mtx st_mtx; /* Protects struct seltd */
sys/kern/sys_generic.c
162
struct mtx *sf_mtx; /* Pointer to selinfo mtx. */
sys/kern/sys_generic.c
1959
struct mtx *mtxp;
sys/kern/sys_socket.c
463
static struct mtx soaio_jobs_lock;
sys/kern/sys_timerfd.c
60
static struct mtx timerfd_list_lock;
sys/kern/sys_timerfd.c
90
struct mtx tfd_lock; /* tfd mtx lock */
sys/kern/sysv_msg.c
171
static struct mtx msq_mtx; /* global mutex for message queues. */
sys/kern/sysv_sem.c
1112
struct mtx *sema_mtxp;
sys/kern/sysv_sem.c
113
static struct mtx sem_mtx; /* semaphore global lock */
sys/kern/sysv_sem.c
114
static struct mtx sem_undo_mtx;
sys/kern/sysv_sem.c
117
static struct mtx *sema_mtx; /* semaphore id pool mutexes*/
sys/kern/sysv_sem.c
1443
struct mtx *sema_mtxp;
sys/kern/sysv_sem.c
282
sema_mtx = malloc(sizeof(struct mtx) * seminfo.semmni, M_SEM,
sys/kern/sysv_sem.c
699
struct mtx *sema_mtxp;
sys/kern/tty.c
1060
tty_alloc_mutex(struct ttydevsw *tsw, void *sc, struct mtx *mutex)
sys/kern/uipc_accf.c
50
static struct mtx accept_filter_mtx;
sys/kern/uipc_domain.c
52
static struct mtx dom_mtx; /* domain list lock */
sys/kern/uipc_ktls.c
2251
mtx_lock(&wq->mtx);
sys/kern/uipc_ktls.c
2254
mtx_unlock(&wq->mtx);
sys/kern/uipc_ktls.c
2757
mtx_lock(&wq->mtx);
sys/kern/uipc_ktls.c
2760
mtx_unlock(&wq->mtx);
sys/kern/uipc_ktls.c
2910
mtx_lock(&wq->mtx);
sys/kern/uipc_ktls.c
2952
mtx_unlock(&wq->mtx);
sys/kern/uipc_ktls.c
2977
mtx_unlock(&wq->mtx);
sys/kern/uipc_ktls.c
3307
mtx_lock(&wq->mtx);
sys/kern/uipc_ktls.c
3311
mtx_sleep(wq, &wq->mtx, 0, "-", 0);
sys/kern/uipc_ktls.c
3319
mtx_unlock(&wq->mtx);
sys/kern/uipc_ktls.c
520
mtx_init(&ktls_wq[i].mtx, "ktls work queue", NULL, MTX_DEF);
sys/kern/uipc_ktls.c
88
struct mtx mtx;
sys/kern/uipc_mqueue.c
175
struct mtx mq_mutex;
sys/kern/uipc_sem.c
105
static struct mtx ksem_count_lock;
sys/kern/uipc_sem.c
106
static struct mtx sem_lock;
sys/kern/uipc_shm.c
116
static struct mtx shm_timestamp_lock;
sys/kern/uipc_sockbuf.c
512
mtx_lock(&sp->mtx);
sys/kern/uipc_sockbuf.c
525
mtx_lock(&sp->mtx);
sys/kern/uipc_socket.c
1763
mtx_lock(&sp->mtx);
sys/kern/uipc_socket.c
1766
mtx_unlock(&sp->mtx);
sys/kern/uipc_socket.c
1774
mtx_lock(&sp->mtx);
sys/kern/uipc_socket.c
1777
mtx_unlock(&sp->mtx);
sys/kern/uipc_socket.c
1784
mtx_lock(&sp->mtx);
sys/kern/uipc_socket.c
1827
mtx_lock(&sp->mtx);
sys/kern/uipc_socket.c
1832
mtx_unlock(&sp->mtx);
sys/kern/uipc_socket.c
1837
mtx_unlock(&sp->mtx);
sys/kern/uipc_socket.c
1863
mtx_lock(&sp->mtx);
sys/kern/uipc_socket.c
1869
msleep(sp, &sp->mtx, PSOCK, "unsplice", 0);
sys/kern/uipc_socket.c
1885
mtx_unlock(&sp->mtx);
sys/kern/uipc_socket.c
303
static struct mtx so_global_mtx;
sys/kern/uipc_socket.c
369
struct mtx mtx;
sys/kern/uipc_socket.c
393
mtx_lock(&wq->mtx);
sys/kern/uipc_socket.c
396
mtx_sleep(wq, &wq->mtx, 0, "-", 0);
sys/kern/uipc_socket.c
402
mtx_unlock(&wq->mtx);
sys/kern/uipc_socket.c
404
mtx_lock(&s->mtx);
sys/kern/uipc_socket.c
419
mtx_lock(&wq->mtx);
sys/kern/uipc_socket.c
422
mtx_unlock(&wq->mtx);
sys/kern/uipc_socket.c
430
mtx_assert(&sp->mtx, MA_OWNED);
sys/kern/uipc_socket.c
433
mtx_unlock(&sp->mtx);
sys/kern/uipc_socket.c
436
mtx_unlock(&sp->mtx);
sys/kern/uipc_socket.c
447
mtx_init(&s->mtx, "so_splice", NULL, MTX_DEF);
sys/kern/uipc_socket.c
457
mtx_destroy(&s->mtx);
sys/kern/uipc_socket.c
501
mtx_init(&splice_wq[i].mtx, "splice work queue", NULL, MTX_DEF);
sys/kern/uipc_socket.c
646
mtx_assert(&sp->mtx, MA_OWNED);
sys/kern/uipc_socket.c
668
mtx_unlock(&sp->mtx);
sys/kern/uipc_socket.c
673
mtx_lock(&sp->mtx);
sys/kern/uipc_socket.c
690
mtx_unlock(&sp->mtx);
sys/kern/uipc_socket.c
697
mtx_unlock(&sp->mtx);
sys/kern/uipc_socket.c
713
mtx_unlock(&sp->mtx);
sys/kern/uipc_socket.c
717
mtx_unlock(&sp->mtx);
sys/kern/uipc_usrreq.c
253
static struct mtx unp_defers_lock;
sys/kern/uipc_usrreq.c
2878
struct mtx *vplock;
sys/kern/uipc_usrreq.c
4549
struct mtx *vplock;
sys/kern/uipc_usrreq.c
725
struct mtx *vplock;
sys/kern/uipc_usrreq.c
805
struct mtx *vplock;
sys/kern/vfs_aio.c
262
struct mtx kaio_mtx; /* the lock to protect this struct */
sys/kern/vfs_aio.c
300
static struct mtx aio_job_mtx;
sys/kern/vfs_bio.c
4474
struct mtx *mtxp;
sys/kern/vfs_bio.c
4521
struct mtx *mtxp;
sys/kern/vfs_bio.c
5146
struct mtx *mtxp;
sys/kern/vfs_bio.c
5158
struct mtx *mtxp;
sys/kern/vfs_cache.c
1001
struct mtx *blp;
sys/kern/vfs_cache.c
1063
cache_trylock_vnodes(struct mtx *vlp1, struct mtx *vlp2)
sys/kern/vfs_cache.c
1082
cache_lock_vnodes(struct mtx *vlp1, struct mtx *vlp2)
sys/kern/vfs_cache.c
1095
cache_unlock_vnodes(struct mtx *vlp1, struct mtx *vlp2)
sys/kern/vfs_cache.c
1590
struct mtx *dvlp;
sys/kern/vfs_cache.c
1591
struct mtx *blp;
sys/kern/vfs_cache.c
1728
struct mtx *blp;
sys/kern/vfs_cache.c
1742
struct mtx **vlpp)
sys/kern/vfs_cache.c
1744
struct mtx *pvlp, *vlp1, *vlp2, *to_unlock;
sys/kern/vfs_cache.c
1745
struct mtx *blp;
sys/kern/vfs_cache.c
1804
struct vnode *dvp, struct mtx *dvlp, struct mtx *vlp, uint32_t hash,
sys/kern/vfs_cache.c
1805
struct mtx *blp)
sys/kern/vfs_cache.c
1808
struct mtx *rvlp;
sys/kern/vfs_cache.c
1843
uint32_t hash, struct mtx *blp)
sys/kern/vfs_cache.c
1845
struct mtx *dvlp, *vlp;
sys/kern/vfs_cache.c
1870
struct mtx *blp;
sys/kern/vfs_cache.c
1871
struct mtx *dvlp, *dvlp2;
sys/kern/vfs_cache.c
1983
struct mtx *dvlp;
sys/kern/vfs_cache.c
2105
struct mtx *blp;
sys/kern/vfs_cache.c
2275
struct mtx *vlp[3];
sys/kern/vfs_cache.c
2276
struct mtx *blp[2];
sys/kern/vfs_cache.c
2292
struct mtx *vlp1, *vlp2;
sys/kern/vfs_cache.c
2329
struct mtx *vlp;
sys/kern/vfs_cache.c
2365
cache_lock_buckets_cel(struct celockstate *cel, struct mtx *blp1,
sys/kern/vfs_cache.c
2366
struct mtx *blp2)
sys/kern/vfs_cache.c
2406
struct mtx *blps[2];
sys/kern/vfs_cache.c
2449
struct mtx *blps[2];
sys/kern/vfs_cache.c
2967
struct mtx *vlp, *vlp2;
sys/kern/vfs_cache.c
3030
struct mtx *vlp;
sys/kern/vfs_cache.c
3058
struct mtx *vlp;
sys/kern/vfs_cache.c
3130
struct mtx *blp;
sys/kern/vfs_cache.c
3465
struct mtx *vlp;
sys/kern/vfs_cache.c
3910
struct mtx *vlp;
sys/kern/vfs_cache.c
3934
struct mtx *vlp;
sys/kern/vfs_cache.c
4084
struct mtx *vlp;
sys/kern/vfs_cache.c
574
struct mtx nl_evict_lock;
sys/kern/vfs_cache.c
575
struct mtx nl_lock __aligned(CACHE_LINE_SIZE);
sys/kern/vfs_cache.c
602
((struct mtx *)(&bucketlocks[((hash) & ncbuckethash)]))
sys/kern/vfs_cache.c
606
static struct mtx __read_mostly *vnodelocks;
sys/kern/vfs_cache.c
607
static inline struct mtx *
sys/kern/vfs_cache.c
719
cache_assert_vlp_locked(struct mtx *vlp)
sys/kern/vfs_cache.c
729
struct mtx *vlp;
sys/kern/vfs_cache.c
979
static inline struct mtx *
sys/kern/vfs_cache.c
992
struct mtx *blp;
sys/kern/vfs_default.c
476
struct mtx *ilk;
sys/kern/vfs_default.c
512
struct mtx *ilk;
sys/kern/vfs_inotify.c
165
struct mtx lock; /* serialize all softc writes */
sys/kern/vfs_mount.c
132
static struct mtx deferred_unmount_lock;
sys/kern/vfs_mountroot.c
107
struct mtx root_holds_mtx;
sys/kern/vfs_subr.c
223
static struct mtx mntid_mtx;
sys/kern/vfs_subr.c
231
static struct mtx __exclusive_cache_line vnode_list_mtx;
sys/kern/vfs_subr.c
281
static struct mtx sync_mtx;
sys/kern/vfs_subr.c
304
struct mtx lock;
sys/kern/vfs_vnops.c
1004
struct mtx *mtxp;
sys/kern/vfs_vnops.c
1053
struct mtx *mtxp;
sys/kern/vfs_vnops.c
916
file_v_lock_mtxp(struct file *fp, struct mtx *mtxp, short lock_bit,
sys/kern/vfs_vnops.c
930
file_v_unlock_mtxp(struct file *fp, struct mtx *mtxp, short lock_bit,
sys/kern/vfs_vnops.c
944
struct mtx *mtxp;
sys/kern/vfs_vnops.c
963
struct mtx *mtxp;
sys/kern/vfs_vnops.c
992
struct mtx *mtxp;
sys/kgssapi/gss_impl.c
52
struct mtx kgss_gssd_lock;
sys/kgssapi/gssapi_impl.h
55
extern struct mtx kgss_gssd_lock;
sys/kgssapi/krb5/kcrypto_aes.c
44
struct mtx as_lock;
sys/kgssapi/krb5/krb5_mech.c
84
struct mtx kc_lock;
sys/libkern/arc4random.c
143
mtx_lock(&chacha20->mtx);
sys/libkern/arc4random.c
152
mtx_unlock(&chacha20->mtx);
sys/libkern/arc4random.c
168
mtx_init(&chacha20->mtx, "chacha20_mtx", NULL, MTX_DEF);
sys/libkern/arc4random.c
184
mtx_destroy(&chacha20->mtx);
sys/libkern/arc4random.c
217
mtx_lock(&chacha20->mtx);
sys/libkern/arc4random.c
222
mtx_unlock(&chacha20->mtx);
sys/libkern/arc4random.c
224
mtx_lock(&chacha20->mtx);
sys/libkern/arc4random.c
236
mtx_unlock(&chacha20->mtx);
sys/libkern/arc4random.c
238
mtx_lock(&chacha20->mtx);
sys/libkern/arc4random.c
241
mtx_unlock(&chacha20->mtx);
sys/libkern/arc4random.c
63
struct mtx mtx;
sys/net/altq/altq_var.h
74
struct mtx acc_mtx;
sys/net/altq/if_altq.h
46
struct mtx ifq_mtx;
sys/net/bpfdesc.h
94
struct mtx bd_lock; /* per-descriptor lock */
sys/net/bridgestp.c
91
static struct mtx bstp_list_mtx;
sys/net/bridgestp.h
337
struct mtx bs_mtx;
sys/net/debugnet.c
826
static struct mtx dn_hwm_lk;
sys/net/ieee8023ad_lacp.h
247
struct mtx lsc_mtx;
sys/net/if_bridge.c
288
struct mtx sc_rt_mtx;
sys/net/if_clone.c
128
static struct mtx if_cloners_mtx;
sys/net/if_clone.c
76
struct mtx ifc_mtx; /* Mutex to protect members. */
sys/net/if_epair.c
112
struct mtx mtx;
sys/net/if_epair.c
124
static struct mtx epair_n_index_mtx;
sys/net/if_epair.c
169
mtx_lock(&q->mtx);
sys/net/if_epair.c
172
mtx_unlock(&q->mtx);
sys/net/if_epair.c
185
mtx_lock(&q->mtx);
sys/net/if_epair.c
193
mtx_unlock(&q->mtx);
sys/net/if_epair.c
273
mtx_lock(&q->mtx);
sys/net/if_epair.c
279
mtx_unlock(&q->mtx);
sys/net/if_epair.c
612
mtx_init(&q->mtx, "epairq", NULL, MTX_DEF | MTX_NEW);
sys/net/if_epair.c
708
mtx_destroy(&q->mtx);
sys/net/if_epair.c
855
mtx_lock(&q->mtx);
sys/net/if_epair.c
857
mtx_unlock(&q->mtx);
sys/net/if_geneve.c
507
static struct mtx geneve_list_mtx;
sys/net/if_lagg.c
108
VNET_DEFINE_STATIC(struct mtx, lagg_list_mtx);
sys/net/if_lagg.h
234
struct mtx sc_mtx; /* watchdog mutex */
sys/net/if_llatbl.h
177
struct mtx llt_lock;
sys/net/if_llatbl.h
87
struct mtx req_mtx;
sys/net/if_ovpn.c
91
struct mtx replay_mtx;
sys/net/if_private.h
87
struct mtx if_addr_lock; /* lock to protect address lists */
sys/net/if_tuntap.c
146
struct mtx tun_mtx; /* softc field mutex */
sys/net/if_tuntap.c
181
static struct mtx tunmtx;
sys/net/if_vlan.c
101
struct mtx lock;
sys/net/if_vxlan.c
418
static struct mtx vxlan_list_mtx;
sys/net/iflib.c
171
struct mtx ifc_state_mtx;
sys/net/iflib.c
391
struct mtx ift_mtx;
sys/net/iflib.c
392
struct mtx ift_db_mtx;
sys/net/iflib.c
715
static struct mtx cpu_offset_mtx;
sys/net/ifq.h
59
struct mtx ifq_mtx;
sys/net/mp_ring.h
60
struct mtx lock;
sys/net/netisr_internal.h
110
struct mtx nws_mtx; /* Synchronize work. */
sys/net/pfil.c
65
static struct mtx pfil_lock;
sys/net/pflow.h
236
struct mtx sc_lock;
sys/net/pfvar.h
1181
struct mtx *lock;
sys/net/pfvar.h
1234
struct mtx pfstlim_lock;
sys/net/pfvar.h
1361
struct mtx pfsrlim_lock;
sys/net/pfvar.h
2626
struct mtx lock;
sys/net/pfvar.h
2631
struct mtx lock;
sys/net/pfvar.h
2636
struct mtx lock;
sys/net/pfvar.h
2642
struct mtx lock;
sys/net/pfvar.h
657
struct mtx mtx;
sys/net/pfvar.h
947
struct mtx *lock;
sys/net/route/fib_algo.c
210
struct mtx fib_mtx;
sys/net/rtsock.c
176
struct mtx rtsock_mtx;
sys/net80211/ieee80211.c
276
static struct mtx ic_list_mtx;
sys/net80211/ieee80211_freebsd.h
118
struct mtx mtx;
sys/net80211/ieee80211_freebsd.h
123
mtx_init(&fl->mtx, fl->name, NULL, MTX_DEF); \
sys/net80211/ieee80211_freebsd.h
125
#define IEEE80211_FF_LOCK_OBJ(_ic) (&(_ic)->ic_fflock.mtx)
sys/net80211/ieee80211_freebsd.h
137
struct mtx mtx;
sys/net80211/ieee80211_freebsd.h
142
mtx_init(&nl->mtx, nl->name, NULL, MTX_DEF | MTX_RECURSE); \
sys/net80211/ieee80211_freebsd.h
144
#define IEEE80211_NODE_LOCK_OBJ(_nt) (&(_nt)->nt_nodelock.mtx)
sys/net80211/ieee80211_freebsd.h
159
typedef struct mtx ieee80211_psq_lock_t;
sys/net80211/ieee80211_freebsd.h
184
typedef struct mtx ieee80211_ageq_lock_t;
sys/net80211/ieee80211_freebsd.h
194
typedef struct mtx acl_lock_t;
sys/net80211/ieee80211_freebsd.h
206
typedef struct mtx ieee80211_scan_table_lock_t;
sys/net80211/ieee80211_freebsd.h
213
typedef struct mtx ieee80211_scan_iter_lock_t;
sys/net80211/ieee80211_freebsd.h
223
typedef struct mtx ieee80211_rte_lock_t;
sys/net80211/ieee80211_freebsd.h
232
typedef struct mtx ieee80211_rt_lock_t;
sys/net80211/ieee80211_freebsd.h
61
struct mtx mtx;
sys/net80211/ieee80211_freebsd.h
66
mtx_init(&cl->mtx, cl->name, NULL, MTX_DEF | MTX_RECURSE); \
sys/net80211/ieee80211_freebsd.h
68
#define IEEE80211_LOCK_OBJ(_ic) (&(_ic)->ic_comlock.mtx)
sys/net80211/ieee80211_freebsd.h
87
struct mtx mtx;
sys/net80211/ieee80211_freebsd.h
92
mtx_init(&cl->mtx, cl->name, NULL, MTX_DEF); \
sys/net80211/ieee80211_freebsd.h
94
#define IEEE80211_TX_LOCK_OBJ(_ic) (&(_ic)->ic_txlock.mtx)
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
553
struct mtx mtx;
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
580
mtx_init(&mtx, "ubt pb", NULL, MTX_DEF | MTX_NEW);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
583
&ubt_probe_config, 1, evt, &mtx);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
585
mtx_lock(&mtx);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
588
if (msleep_sbt(evt, &mtx, 0, "ubt pb", SBT_1MS * timeout,
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
596
mtx_unlock(&mtx);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
603
mtx_destroy(&mtx);
sys/netgraph/bluetooth/drivers/ubt/ng_ubt_var.h
126
struct mtx sc_if_mtx; /* interfaces lock */
sys/netgraph/bluetooth/drivers/ubt/ng_ubt_var.h
129
struct mtx sc_ng_mtx; /* lock for shared NG data */
sys/netgraph/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
83
struct mtx sc_mtx;
sys/netgraph/bluetooth/include/ng_btsocket_hci_raw.h
55
struct mtx pcb_mtx; /* pcb mutex */
sys/netgraph/bluetooth/include/ng_btsocket_l2cap.h
175
struct mtx pcb_mtx; /* pcb mutex */
sys/netgraph/bluetooth/include/ng_btsocket_l2cap.h
81
struct mtx pcb_mtx; /* pcb mutex */
sys/netgraph/bluetooth/include/ng_btsocket_rfcomm.h
255
struct mtx session_mtx; /* session lock */
sys/netgraph/bluetooth/include/ng_btsocket_rfcomm.h
299
struct mtx pcb_mtx; /* PCB lock */
sys/netgraph/bluetooth/include/ng_btsocket_sco.h
91
struct mtx pcb_mtx; /* pcb mutex */
sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c
118
static struct mtx ng_btsocket_hci_raw_queue_mtx;
sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c
121
static struct mtx ng_btsocket_hci_raw_sockets_mtx;
sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c
123
static struct mtx ng_btsocket_hci_raw_token_mtx;
sys/netgraph/bluetooth/socket/ng_btsocket_l2cap.c
103
static struct mtx ng_btsocket_l2cap_queue_mtx;
sys/netgraph/bluetooth/socket/ng_btsocket_l2cap.c
106
static struct mtx ng_btsocket_l2cap_sockets_mtx;
sys/netgraph/bluetooth/socket/ng_btsocket_l2cap.c
108
static struct mtx ng_btsocket_l2cap_rt_mtx;
sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c
116
static struct mtx ng_btsocket_l2cap_raw_queue_mtx;
sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c
119
static struct mtx ng_btsocket_l2cap_raw_sockets_mtx;
sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c
121
static struct mtx ng_btsocket_l2cap_raw_token_mtx;
sys/netgraph/bluetooth/socket/ng_btsocket_l2cap_raw.c
123
static struct mtx ng_btsocket_l2cap_raw_rt_mtx;
sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c
199
static struct mtx ng_btsocket_rfcomm_sessions_mtx;
sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c
201
static struct mtx ng_btsocket_rfcomm_sockets_mtx;
sys/netgraph/bluetooth/socket/ng_btsocket_sco.c
102
static struct mtx ng_btsocket_sco_queue_mtx;
sys/netgraph/bluetooth/socket/ng_btsocket_sco.c
104
static struct mtx ng_btsocket_sco_sockets_mtx;
sys/netgraph/bluetooth/socket/ng_btsocket_sco.c
107
static struct mtx ng_btsocket_sco_rt_mtx;
sys/netgraph/netflow/netflow.c
1001
mtx_unlock(&hsh->mtx);
sys/netgraph/netflow/netflow.c
1105
if (mtx_trylock(&hsh->mtx) == 0)
sys/netgraph/netflow/netflow.c
1113
if (hsh->mtx.mtx_lock & MTX_WAITERS)
sys/netgraph/netflow/netflow.c
1132
mtx_unlock(&hsh->mtx);
sys/netgraph/netflow/netflow.c
1143
if (mtx_trylock(&hsh->mtx) == 0)
sys/netgraph/netflow/netflow.c
1152
if (hsh->mtx.mtx_lock & MTX_WAITERS)
sys/netgraph/netflow/netflow.c
1171
mtx_unlock(&hsh->mtx);
sys/netgraph/netflow/netflow.c
326
mtx_assert(&hsh->mtx, MA_OWNED);
sys/netgraph/netflow/netflow.c
403
mtx_assert(&hsh6->mtx, MA_OWNED);
sys/netgraph/netflow/netflow.c
499
mtx_init(&hsh->mtx, "hash mutex", NULL, MTX_DEF);
sys/netgraph/netflow/netflow.c
510
mtx_init(&hsh->mtx, "hash mutex", NULL, MTX_DEF);
sys/netgraph/netflow/netflow.c
603
mtx_destroy(&hsh->mtx);
sys/netgraph/netflow/netflow.c
612
mtx_destroy(&hsh->mtx);
sys/netgraph/netflow/netflow.c
718
mtx_lock(&hsh->mtx);
sys/netgraph/netflow/netflow.c
770
mtx_unlock(&hsh->mtx);
sys/netgraph/netflow/netflow.c
837
mtx_lock(&hsh->mtx);
sys/netgraph/netflow/netflow.c
893
mtx_unlock(&hsh->mtx);
sys/netgraph/netflow/netflow.c
949
if (mtx_trylock(&hsh->mtx) == 0) {
sys/netgraph/netflow/netflow.c
962
if (hsh->mtx.mtx_lock & MTX_WAITERS) {
sys/netgraph/netflow/netflow.c
965
mtx_unlock(&hsh->mtx);
sys/netgraph/netflow/netflow.c
997
mtx_unlock(&hsh->mtx);
sys/netgraph/netflow/ng_netflow.h
390
struct mtx export_mtx; /* exp.item mutex */
sys/netgraph/netflow/ng_netflow.h
391
struct mtx export9_mtx; /* exp.item9 mutex */
sys/netgraph/netflow/ng_netflow.h
490
struct mtx mtx;
sys/netgraph/netgraph.h
367
struct mtx q_mtx;
sys/netgraph/ng_base.c
171
static struct mtx ng_worklist_mtx; /* MUST LOCK NODE FIRST */
sys/netgraph/ng_base.c
87
static struct mtx ng_nodelist_mtx; /* protects global node/hook lists */
sys/netgraph/ng_base.c
88
static struct mtx ngq_mtx; /* protects the queue item list */
sys/netgraph/ng_car.c
79
struct mtx q_mtx; /* queue mutex */
sys/netgraph/ng_device.c
124
struct mtx ngd_mtx;
sys/netgraph/ng_l2tp.c
1194
mtx_init(&seq->mtx, "ng_l2tp", NULL, MTX_DEF);
sys/netgraph/ng_l2tp.c
1195
callout_init_mtx(&seq->rack_timer, &seq->mtx, CALLOUT_RETURNUNLOCKED);
sys/netgraph/ng_l2tp.c
1196
callout_init_mtx(&seq->xack_timer, &seq->mtx, CALLOUT_RETURNUNLOCKED);
sys/netgraph/ng_l2tp.c
147
struct mtx mtx; /* seq mutex */
sys/netgraph/ng_l2tp.c
337
mtx_lock(&(seq)->mtx); \
sys/netgraph/ng_l2tp.c
342
mtx_unlock(&(seq)->mtx); \
sys/netgraph/ng_l2tp.c
345
#define SEQ_LOCK(seq) mtx_lock(&(seq)->mtx)
sys/netgraph/ng_l2tp.c
346
#define SEQ_UNLOCK(seq) mtx_unlock(&(seq)->mtx)
sys/netgraph/ng_l2tp.c
348
#define SEQ_LOCK_ASSERT(seq) mtx_assert(&(seq)->mtx, MA_OWNED)
sys/netgraph/ng_l2tp.c
667
mtx_destroy(&seq->mtx);
sys/netgraph/ng_macfilter.c
270
struct mtx mtx; /* Mutex for MACs table */
sys/netgraph/ng_macfilter.c
534
mtx_lock(&mfp->mtx);
sys/netgraph/ng_macfilter.c
558
mtx_unlock(&mfp->mtx);
sys/netgraph/ng_macfilter.c
574
mtx_lock(&mfp->mtx);
sys/netgraph/ng_macfilter.c
605
mtx_unlock(&mfp->mtx);
sys/netgraph/ng_macfilter.c
633
mtx_init(&mfp->mtx, "Macfilter table", NULL, MTX_DEF);
sys/netgraph/ng_macfilter.c
689
mtx_lock(&mfp->mtx);
sys/netgraph/ng_macfilter.c
777
mtx_unlock(&mfp->mtx);
sys/netgraph/ng_macfilter.c
816
mtx_lock(&mfp->mtx);
sys/netgraph/ng_macfilter.c
853
mtx_unlock(&mfp->mtx);
sys/netgraph/ng_macfilter.c
868
mtx_destroy(&mfp->mtx);
sys/netgraph/ng_ppp.c
226
struct mtx rmtx; /* recv mutex */
sys/netgraph/ng_ppp.c
227
struct mtx xmtx; /* xmit mutex */
sys/netgraph/ng_pppoe.c
2007
mtx_destroy(&privp->sesshash[i].mtx);
sys/netgraph/ng_pppoe.c
284
struct mtx mtx;
sys/netgraph/ng_pppoe.c
552
mtx_lock(&privp->sesshash[hash].mtx);
sys/netgraph/ng_pppoe.c
561
mtx_unlock(&privp->sesshash[hash].mtx);
sys/netgraph/ng_pppoe.c
577
mtx_lock(&privp->sesshash[hash].mtx);
sys/netgraph/ng_pppoe.c
579
mtx_unlock(&privp->sesshash[hash].mtx);
sys/netgraph/ng_pppoe.c
589
mtx_lock(&privp->sesshash[hash].mtx);
sys/netgraph/ng_pppoe.c
591
mtx_unlock(&privp->sesshash[hash].mtx);
sys/netgraph/ng_pppoe.c
602
mtx_lock(&privp->sesshash[hash].mtx);
sys/netgraph/ng_pppoe.c
610
mtx_unlock(&privp->sesshash[hash].mtx);
sys/netgraph/ng_pppoe.c
688
mtx_init(&privp->sesshash[i].mtx, "PPPoE hash mutex", NULL, MTX_DEF);
sys/netgraph/ng_pptpgre.c
1046
mtx_unlock(&hpriv->mtx);
sys/netgraph/ng_pptpgre.c
1146
mtx_lock(&hpriv->mtx);
sys/netgraph/ng_pptpgre.c
1149
mtx_assert(&hpriv->mtx, MA_NOTOWNED);
sys/netgraph/ng_pptpgre.c
1180
mtx_lock(&hpriv->mtx);
sys/netgraph/ng_pptpgre.c
1182
mtx_unlock(&hpriv->mtx);
sys/netgraph/ng_pptpgre.c
1211
mtx_assert(&hpriv->mtx, MA_NOTOWNED);
sys/netgraph/ng_pptpgre.c
186
struct mtx mtx; /* session mutex */
sys/netgraph/ng_pptpgre.c
334
mtx_init(&priv->uppersess.mtx, "ng_pptp", NULL, MTX_DEF);
sys/netgraph/ng_pptpgre.c
394
mtx_init(&hpriv->mtx, "ng_pptp", NULL, MTX_DEF);
sys/netgraph/ng_pptpgre.c
520
mtx_lock(&hpriv->mtx);
sys/netgraph/ng_pptpgre.c
524
mtx_assert(&hpriv->mtx, MA_NOTOWNED);
sys/netgraph/ng_pptpgre.c
550
mtx_destroy(&hpriv->mtx);
sys/netgraph/ng_pptpgre.c
573
mtx_destroy(&priv->uppersess.mtx);
sys/netgraph/ng_pptpgre.c
598
mtx_assert(&hpriv->mtx, MA_OWNED);
sys/netgraph/ng_pptpgre.c
683
mtx_unlock(&hpriv->mtx);
sys/netgraph/ng_pptpgre.c
695
mtx_unlock(&hpriv->mtx);
sys/netgraph/ng_pptpgre.c
705
mtx_assert(&hpriv->mtx, MA_OWNED);
sys/netgraph/ng_pptpgre.c
715
mtx_unlock(&hpriv->mtx);
sys/netgraph/ng_pptpgre.c
718
mtx_unlock(&hpriv->mtx);
sys/netgraph/ng_pptpgre.c
733
mtx_assert(&hpriv->mtx, MA_NOTOWNED);
sys/netgraph/ng_pptpgre.c
832
mtx_lock(&hpriv->mtx);
sys/netgraph/ng_pptpgre.c
887
mtx_unlock(&hpriv->mtx);
sys/netgraph/ng_pptpgre.c
899
mtx_unlock(&hpriv->mtx);
sys/netgraph/ng_pptpgre.c
932
mtx_unlock(&hpriv->mtx);
sys/netgraph/ng_socket.c
1012
mtx_lock(&priv->mtx);
sys/netgraph/ng_socket.c
1035
mtx_lock(&priv->mtx);
sys/netgraph/ng_socket.c
1038
mtx_unlock(&priv->mtx);
sys/netgraph/ng_socket.c
154
static struct mtx ngsocketlist_mtx;
sys/netgraph/ng_socket.c
176
struct mtx mtx; /* mtx to wait on */
sys/netgraph/ng_socket.c
320
mtx_lock(&priv->mtx);
sys/netgraph/ng_socket.c
322
msleep(priv, &priv->mtx, 0, "ngsock", 0);
sys/netgraph/ng_socket.c
323
mtx_unlock(&priv->mtx);
sys/netgraph/ng_socket.c
443
mtx_lock(&pcbp->sockdata->mtx);
sys/netgraph/ng_socket.c
455
mtx_unlock(&pcbp->sockdata->mtx);
sys/netgraph/ng_socket.c
498
mtx_init(&priv->mtx, "ng_socket", NULL, MTX_DEF);
sys/netgraph/ng_socket.c
557
mtx_lock(&priv->mtx);
sys/netgraph/ng_socket.c
588
mtx_assert(&priv->mtx, MA_OWNED);
sys/netgraph/ng_socket.c
593
mtx_destroy(&priv->mtx);
sys/netgraph/ng_socket.c
603
mtx_unlock(&priv->mtx);
sys/netgraph/ng_socket.c
606
mtx_unlock(&priv->mtx);
sys/netgraph/ng_socket.c
659
mtx_lock(&priv->mtx);
sys/netgraph/ng_socket.c
664
mtx_unlock(&priv->mtx);
sys/netgraph/ng_socket.c
832
mtx_lock(&priv->mtx);
sys/netgraph/ng_socket.c
840
mtx_unlock(&priv->mtx);
sys/netgraph/ng_socket.c
849
mtx_unlock(&priv->mtx);
sys/netinet/igmp.c
195
struct mtx igmp_mtx;
sys/netinet/in_mcast.c
106
struct mtx in_multi_list_mtx;
sys/netinet/in_mcast.c
109
struct mtx in_multi_free_mtx;
sys/netinet/in_pcb.h
445
struct mtx ipi_hash_lock;
sys/netinet/in_var.h
352
extern struct mtx in_multi_list_mtx;
sys/netinet/ip_carp.c
107
struct mtx sc_mtx;
sys/netinet/ip_carp.c
158
struct mtx cif_mtx;
sys/netinet/ip_carp.c
352
static struct mtx carp_mtx;
sys/netinet/ip_divert.c
174
static struct mtx divert_mtx;
sys/netinet/ip_encap.c
119
static struct mtx encapmtx, srcaddrmtx;
sys/netinet/ip_id.c
113
VNET_DEFINE_STATIC(struct mtx, ip_id_mtx);
sys/netinet/ip_mroute.c
181
struct mtx bw_upcalls_mtx;
sys/netinet/ip_mroute.h
266
struct mtx v_mtx; /* mutex for pkt stats */
sys/netinet/ip_mroute.h
354
struct mtx bm_mtx; /* meter lock */
sys/netinet/ip_reass.c
73
struct mtx lock;
sys/netinet/libalias/alias_db.c
66
static struct mtx list_mtx;
sys/netinet/libalias/alias_local.h
165
struct mtx mutex;
sys/netinet/sctp_pcb.h
195
struct mtx ipi_iterator_wq_mtx;
sys/netinet/sctp_pcb.h
197
struct mtx ipi_pktlog_mtx;
sys/netinet/sctp_pcb.h
198
struct mtx wq_addr_mtx;
sys/netinet/sctp_pcb.h
421
struct mtx inp_mtx;
sys/netinet/sctp_pcb.h
422
struct mtx inp_create_mtx;
sys/netinet/sctp_pcb.h
423
struct mtx inp_rdata_mtx;
sys/netinet/sctp_pcb.h
465
struct mtx tcb_mtx;
sys/netinet/sctp_structs.h
122
struct mtx core_mtx;
sys/netinet/sctp_structs.h
123
struct mtx que_mtx;
sys/netinet/sctp_structs.h
191
struct mtx ipi_iterator_wq_mtx;
sys/netinet/sctp_structs.h
192
struct mtx it_mtx;
sys/netinet/siftr.c
272
static struct mtx siftr_pkt_queue_mtx;
sys/netinet/siftr.c
273
static struct mtx siftr_pkt_mgr_mtx;
sys/netinet/tcp_fastopen.h
67
struct mtx ccb_mtx;
sys/netinet/tcp_hostcache.c
96
struct mtx hch_mtx;
sys/netinet/tcp_hpts_internal.h
108
struct mtx p_mtx; /* Mutex for hpts */
sys/netinet/tcp_log_buf.c
295
struct mtx tlb_mtx;
sys/netinet/tcp_log_buf.c
87
static struct mtx tcp_log_expireq_mtx;
sys/netinet/tcp_log_buf.c
914
memset(&tlb->tlb_mtx, 0, sizeof(struct mtx));
sys/netinet/tcp_ratelimit.c
249
static struct mtx rs_mtx;
sys/netinet/tcp_subr.c
1140
static struct mtx isn_mtx;
sys/netinet/tcp_syncache.h
100
struct mtx sch_mtx;
sys/netinet/tcp_syncache.h
135
struct mtx pause_mtx;
sys/netinet/toecore.c
70
static struct mtx toedev_lock;
sys/netinet6/frag6.c
94
struct mtx lock;
sys/netinet6/in6_mcast.c
113
struct mtx in6_multi_list_mtx;
sys/netinet6/in6_mcast.c
116
struct mtx in6_multi_free_mtx;
sys/netinet6/in6_src.c
108
static struct mtx addrsel_lock;
sys/netinet6/in6_var.h
784
extern struct mtx in6_multi_list_mtx;
sys/netinet6/ip6_mroute.c
180
static struct mtx mfc6_mtx;
sys/netinet6/ip6_mroute.c
269
static struct mtx mif6_mtx;
sys/netinet6/mld6.c
193
static struct mtx mld_mtx;
sys/netinet6/nd6.c
141
VNET_DEFINE(struct mtx, nd6_onlink_mtx);
sys/netinet6/nd6.h
265
VNET_DECLARE(struct mtx, nd6_onlink_mtx);
sys/netinet6/scope6.c
67
static struct mtx scope6_lock;
sys/netinet6/send.c
71
struct mtx send_mtx;
sys/netipsec/ipsec_offload.c
69
static struct mtx ipsec_accel_sav_tmp;
sys/netipsec/ipsec_offload.c
71
static struct mtx ipsec_accel_cnt_lock;
sys/netipsec/key.c
229
VNET_DEFINE_STATIC(struct mtx *, spdcache_lock);
sys/netipsec/key.c
331
static struct mtx regtree_lock;
sys/netipsec/key.c
343
static struct mtx acq_lock;
sys/netipsec/key.c
377
static struct mtx spacq_lock;
sys/netipsec/key.c
8540
V_spdcache_lock = malloc(sizeof(struct mtx) *
sys/netipsec/keydb.h
227
struct mtx lock;
sys/netipsec/keysock.c
67
static struct mtx keysock_mtx;
sys/netipsec/subr_ipsec.c
155
static struct mtx xforms_lock;
sys/netlink/netlink_module.c
66
struct mtx nl_global_mtx;
sys/netlink/netlink_var.h
77
struct mtx nl_lock;
sys/netpfil/ipfilter/netinet/ip_compat.h
118
#define KMUTEX_T struct mtx
sys/netpfil/ipfw/dn_aqm_pie.h
84
struct mtx lock_mtx;
sys/netpfil/ipfw/ip_dn_private.h
174
struct mtx uh_mtx;
sys/netpfil/ipfw/ip_dn_private.h
175
struct mtx bh_mtx;
sys/netpfil/ipfw/ip_dummynet.c
96
struct mtx sched_mtx;
sys/netpfil/ipfw/ip_fw_dynamic.c
260
VNET_DEFINE_STATIC(struct mtx, dyn_expire_lock);
sys/netpfil/ipfw/ip_fw_dynamic.c
261
VNET_DEFINE_STATIC(struct mtx *, dyn_bucket_lock);
sys/netpfil/ipfw/ip_fw_dynamic.c
2635
struct mtx *bucket_lock;
sys/netpfil/ipfw/ip_fw_dynamic.c
2644
bucket_lock = malloc(new * sizeof(struct mtx), M_IPFW,
sys/netpfil/ipfw/ip_fw_iface.c
88
static struct mtx vnet_mtx;
sys/netpfil/ipfw/ip_fw_sockopt.c
115
static struct mtx ctl3_lock;
sys/netpfil/ipfw/nat64/nat64lsn.c
124
static struct mtx jmtx;
sys/netpfil/ipfw/nat64/nat64lsn.h
127
struct mtx lock;
sys/netpfil/ipfw/nat64/nat64lsn.h
186
struct mtx lock;
sys/netpfil/ipfw/nat64/nat64lsn.h
210
struct mtx lock;
sys/netpfil/ipfw/nat64/nat64lsn.h
236
struct mtx periodic_lock;
sys/netpfil/pf/if_pfsync.c
241
struct mtx b_mtx;
sys/netpfil/pf/if_pfsync.c
267
struct mtx sc_mtx;
sys/netpfil/pf/if_pfsync.c
274
struct mtx sc_bulk_mtx;
sys/netpfil/pf/pf_if.c
117
static struct mtx pfi_unlnkdkifs_mtx;
sys/netpfil/pf/pf_ioctl.c
2722
mtx_init(&rule->nat.mtx, "pf_krule_nat_pool", NULL, MTX_DEF);
sys/netpfil/pf/pf_ioctl.c
2723
mtx_init(&rule->rdr.mtx, "pf_krule_rdr_pool", NULL, MTX_DEF);
sys/netpfil/pf/pf_ioctl.c
2724
mtx_init(&rule->route.mtx, "pf_krule_route_pool", NULL, MTX_DEF);
sys/netpfil/pf/pf_ioctl.c
2763
mtx_destroy(&rule->nat.mtx);
sys/netpfil/pf/pf_ioctl.c
2764
mtx_destroy(&rule->rdr.mtx);
sys/netpfil/pf/pf_ioctl.c
2765
mtx_destroy(&rule->route.mtx);
sys/netpfil/pf/pf_lb.c
581
mtx_lock(&rpool->mtx);
sys/netpfil/pf/pf_lb.c
613
mtx_unlock(&rpool->mtx);
sys/netpfil/pf/pf_lb.c
643
mtx_lock(&rpool->mtx);
sys/netpfil/pf/pf_lb.c
934
mtx_unlock(&rpool->mtx);
sys/netpfil/pf/pf_norm.c
108
VNET_DEFINE_STATIC(struct mtx, pf_frag_mtx);
sys/netpfil/pf/pflow.c
153
VNET_DEFINE(struct mtx, pflowif_list_mtx);
sys/netsmb/smb_subr.h
74
#define smb_slock mtx
sys/netsmb/smb_subr.h
75
#define smb_sl_init(mtx, desc) mtx_init(mtx, desc, NULL, MTX_DEF)
sys/netsmb/smb_subr.h
76
#define smb_sl_destroy(mtx) mtx_destroy(mtx)
sys/netsmb/smb_subr.h
77
#define smb_sl_lock(mtx) mtx_lock(mtx)
sys/netsmb/smb_subr.h
78
#define smb_sl_unlock(mtx) mtx_unlock(mtx)
sys/nfs/nfs_mountcommon.h
43
struct mtx nmcom_mtx;
sys/nfsclient/nfs.h
122
extern struct mtx nfs_iod_mtx;
sys/nfsclient/nfs.h
286
int nfs_msleep(struct thread *td, void *ident, struct mtx *mtx,
sys/nfsclient/nfsnode.h
98
struct mtx n_mtx; /* Protects all of these members */
sys/nfsserver/nfs.h
126
extern struct mtx nfsd_mtx;
sys/nlm/nlm_advlock.c
71
struct mtx nlm_svid_lock;
sys/nlm/nlm_prot_impl.c
171
static struct mtx nlm_global_lock;
sys/nlm/nlm_prot_impl.c
230
struct mtx nh_lock;
sys/opencrypto/crypto.c
105
static struct mtx crypto_drivers_mtx; /* lock on driver table */
sys/opencrypto/crypto.c
142
static struct mtx crypto_q_mtx;
sys/opencrypto/crypto.c
164
struct mtx crypto_ret_mtx;
sys/opencrypto/cryptodev.c
267
struct mtx lock; /* for op submission */
sys/opencrypto/cryptodev.c
289
struct mtx lock;
sys/opencrypto/ktls_ocf.c
70
struct mtx lock;
sys/powerpc/aim/mmu_oea.c
186
struct mtx moea_table_mutex;
sys/powerpc/aim/mmu_oea.c
187
struct mtx moea_vsid_mutex;
sys/powerpc/aim/mmu_oea.c
190
static struct mtx tlbie_mtx;
sys/powerpc/aim/mmu_oea64.c
182
struct mtx moea64_slb_mutex;
sys/powerpc/aim/mmu_oea64.c
239
struct mtx moea64_scratchpage_mtx;
sys/powerpc/aim/mmu_radix.c
424
static struct mtx qframe_mtx;
sys/powerpc/aim/mmu_radix.c
678
static struct mtx __exclusive_cache_line pv_chunks_mutex;
sys/powerpc/amigaone/cpld_a1222.c
94
struct mtx sc_mutex;
sys/powerpc/amigaone/cpld_x5000.c
81
struct mtx sc_mutex;
sys/powerpc/booke/pmap.c
172
static struct mtx zero_page_mutex;
sys/powerpc/booke/pmap.c
177
static struct mtx copy_page_mutex;
sys/powerpc/booke/pmap.c
180
static struct mtx tlbivax_mutex;
sys/powerpc/booke/pmap_32.c
102
static struct mtx zero_page_mutex;
sys/powerpc/booke/pmap_32.c
107
static struct mtx copy_page_mutex;
sys/powerpc/booke/pmap_32.c
150
static struct mtx ptbl_buf_freelist_lock;
sys/powerpc/include/pcpu.h
61
struct mtx qmap_lock; \
sys/powerpc/include/pcpu.h
70
struct mtx qmap_lock; \
sys/powerpc/include/platformvar.h
66
struct mtx platform_mtx; /* available for instance use */
sys/powerpc/include/pmap.h
162
struct mtx pm_mtx;
sys/powerpc/mambo/mambo_disk.c
45
struct mtx sc_mtx;
sys/powerpc/mpc85xx/ds1553_reg.h
91
struct mtx sc_mtx; /* hardware mutex */
sys/powerpc/mpc85xx/fsl_espi.c
120
struct mtx sc_mtx;
sys/powerpc/mpc85xx/fsl_sata.c
1091
mtx_assert(&ch->mtx, MA_OWNED);
sys/powerpc/mpc85xx/fsl_sata.c
1107
mtx_assert(&ch->mtx, MA_OWNED);
sys/powerpc/mpc85xx/fsl_sata.c
289
struct mtx_padalign mtx; /* state lock */
sys/powerpc/mpc85xx/fsl_sata.c
331
mtx_init(&ch->mtx, "FSL SATA channel lock", NULL, MTX_DEF);
sys/powerpc/mpc85xx/fsl_sata.c
337
callout_init_mtx(&ch->pm_timer, &ch->mtx, 0);
sys/powerpc/mpc85xx/fsl_sata.c
373
mtx_lock(&ch->mtx);
sys/powerpc/mpc85xx/fsl_sata.c
383
device_get_unit(dev), (struct mtx *)&ch->mtx, 2, FSL_SATA_MAX_SLOTS,
sys/powerpc/mpc85xx/fsl_sata.c
407
mtx_unlock(&ch->mtx);
sys/powerpc/mpc85xx/fsl_sata.c
415
mtx_unlock(&ch->mtx);
sys/powerpc/mpc85xx/fsl_sata.c
419
mtx_destroy(&ch->mtx);
sys/powerpc/mpc85xx/fsl_sata.c
428
mtx_lock(&ch->mtx);
sys/powerpc/mpc85xx/fsl_sata.c
434
mtx_unlock(&ch->mtx);
sys/powerpc/mpc85xx/fsl_sata.c
446
mtx_destroy(&ch->mtx);
sys/powerpc/mpc85xx/fsl_sata.c
521
mtx_lock(&ch->mtx);
sys/powerpc/mpc85xx/fsl_sata.c
524
msleep(ch, &ch->mtx, PRIBIO, "fsl_satasusp", hz/100);
sys/powerpc/mpc85xx/fsl_sata.c
526
mtx_unlock(&ch->mtx);
sys/powerpc/mpc85xx/fsl_sata.c
535
mtx_lock(&ch->mtx);
sys/powerpc/mpc85xx/fsl_sata.c
539
mtx_unlock(&ch->mtx);
sys/powerpc/mpc85xx/fsl_sata.c
591
0, busdma_lock_mutex, &ch->mtx, &ch->dma.data_tag)) {
sys/powerpc/mpc85xx/fsl_sata.c
648
callout_init_mtx(&slot->timeout, &ch->mtx, 0);
sys/powerpc/mpc85xx/fsl_sata.c
728
mtx_assert(&ch->mtx, MA_OWNED);
sys/powerpc/mpc85xx/fsl_sata.c
751
mtx_lock(&ch->mtx);
sys/powerpc/mpc85xx/fsl_sata.c
760
mtx_unlock(&ch->mtx);
sys/powerpc/mpc85xx/i2c.c
84
struct mtx mutex;
sys/powerpc/mpc85xx/mpc85xx_gpio.c
65
struct mtx sc_mtx;
sys/powerpc/mpc85xx/pci_mpc85xx.c
144
struct mtx sc_cfg_mtx;
sys/powerpc/ofw/ofw_real.c
206
static struct mtx of_bounce_mtx;
sys/powerpc/ofw/ofw_real.c
207
static struct mtx of_spin_mtx;
sys/powerpc/ofw/ofw_real.c
208
static struct mtx *of_real_mtx;
sys/powerpc/ofw/rtas.c
57
static struct mtx rtas_mtx;
sys/powerpc/powermac/ata_dbdma.h
49
struct mtx dbdma_mtx;
sys/powerpc/powermac/cpcht.c
135
struct mtx htirq_mtx;
sys/powerpc/powermac/cpcht.c
534
struct mtx sc_ht_mtx;
sys/powerpc/powermac/cudavar.h
83
struct mtx sc_mutex;
sys/powerpc/powermac/kiic.c
102
struct mtx sc_mutex;
sys/powerpc/powermac/pmuvar.h
158
struct mtx sc_mutex;
sys/powerpc/powermac/smu.c
111
struct mtx sc_mtx;
sys/powerpc/powermac/smu.c
1404
struct mtx sc_mtx;
sys/powerpc/powermac/uninorthvar.h
41
struct mtx sc_cfg_mtx;
sys/powerpc/powernv/opal_console.c
136
struct mtx mtx;
sys/powerpc/powernv/opal_console.c
143
if (!mtx_initialized(&opalcons_buffer.mtx))
sys/powerpc/powernv/opal_console.c
144
mtx_init(&opalcons_buffer.mtx, "uart_opal", NULL,
sys/powerpc/powernv/opal_console.c
150
mtx_lock_spin(&opalcons_buffer.mtx);
sys/powerpc/powernv/opal_console.c
167
mtx_assert(&opalcons_buffer.mtx, MA_OWNED);
sys/powerpc/powernv/opal_console.c
169
mtx_unlock_spin(&opalcons_buffer.mtx);
sys/powerpc/powernv/opal_console.c
67
struct mtx sc_mtx;
sys/powerpc/powernv/opal_flash.c
65
struct mtx sc_mtx;
sys/powerpc/powernv/opal_i2c.c
63
struct mtx sc_mtx;
sys/powerpc/powernv/opal_nvram.c
58
struct mtx sc_mtx;
sys/powerpc/powernv/opal_sensor.c
48
struct mtx sc_mtx;
sys/powerpc/powernv/xive.c
151
struct mtx sc_mtx;
sys/powerpc/powerpc/genassym.c
105
ASSYM(MTX_LOCK, offsetof(struct mtx, mtx_lock));
sys/powerpc/powerpc/intr_machdep.c
116
static struct mtx intr_table_lock;
sys/powerpc/powerpc/mp_machdep.c
65
static struct mtx ap_boot_mtx;
sys/powerpc/ps3/if_glcreg.h
68
struct mtx sc_mtx;
sys/powerpc/ps3/mmu_ps3.c
88
static struct mtx mps3_table_lock;
sys/powerpc/ps3/ps3bus.c
89
struct mtx iommu_mtx;
sys/powerpc/ps3/ps3cdrom.c
90
struct mtx sc_mtx;
sys/powerpc/ps3/ps3disk.c
103
struct mtx sc_mtx;
sys/powerpc/pseries/phyp_console.c
63
struct mtx sc_mtx;
sys/powerpc/pseries/phyp_llan.c
84
struct mtx io_lock;
sys/powerpc/pseries/phyp_vscsi.c
98
struct mtx io_lock;
sys/powerpc/pseries/xics.c
114
struct mtx sc_mtx;
sys/riscv/cvitek/cvitek_reset.c
105
mtx_lock(&sc->mtx);
sys/riscv/cvitek/cvitek_reset.c
112
mtx_unlock(&sc->mtx);
sys/riscv/cvitek/cvitek_reset.c
53
struct mtx mtx;
sys/riscv/cvitek/cvitek_reset.c
87
mtx_init(&sc->mtx, device_get_nameunit(sc->dev), NULL, MTX_DEF);
sys/riscv/eswin/eswin_reset.c
104
mtx_init(&sc->mtx, device_get_nameunit(sc->dev), NULL, MTX_DEF);
sys/riscv/eswin/eswin_reset.c
51
struct mtx mtx;
sys/riscv/eswin/eswin_reset.c
58
#define ERST_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/riscv/eswin/eswin_reset.c
59
#define ERST_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/riscv/eswin/eswin_reset.c
60
#define ERST_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED);
sys/riscv/eswin/eswin_reset.c
61
#define ERST_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED);
sys/riscv/include/pmap.h
77
struct mtx pm_mtx;
sys/riscv/iommu/iommu.c
901
mtx_init(&sc->mtx, device_get_nameunit(sc->dev), "riscv_iommu",
sys/riscv/iommu/iommu.h
128
#define RISCV_IOMMU_LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/riscv/iommu/iommu.h
129
#define RISCV_IOMMU_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/riscv/iommu/iommu.h
251
struct mtx mtx;
sys/riscv/iommu/iommu.h
258
struct mtx pscid_set_mutex;
sys/riscv/iommu/iommu_pmap.h
35
struct mtx pm_mtx;
sys/riscv/riscv/mp_machdep.c
98
static struct mtx ap_boot_mtx;
sys/riscv/riscv/pmap.c
305
static struct mtx pv_chunks_mutex;
sys/riscv/sifive/fe310_aon.c
102
#define FEAON_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/riscv/sifive/fe310_aon.c
103
#define FEAON_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/riscv/sifive/fe310_aon.c
104
#define FEAON_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED)
sys/riscv/sifive/fe310_aon.c
105
#define FEAON_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED)
sys/riscv/sifive/fe310_aon.c
117
struct mtx mtx;
sys/riscv/sifive/fe310_aon.c
254
mtx_init(&sc->mtx, device_get_nameunit(sc->dev), NULL, MTX_DEF);
sys/riscv/sifive/fe310_aon.c
278
mtx_destroy(&sc->mtx);
sys/riscv/sifive/sifive_gpio.c
118
mtx_init(&sc->mtx, device_get_nameunit(sc->dev), NULL, MTX_DEF);
sys/riscv/sifive/sifive_gpio.c
179
mtx_destroy(&sc->mtx);
sys/riscv/sifive/sifive_gpio.c
68
struct mtx mtx;
sys/riscv/sifive/sifive_gpio.c
77
#define SFGPIO_LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/riscv/sifive/sifive_gpio.c
78
#define SFGPIO_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/riscv/sifive/sifive_prci.c
459
mtx_init(&sc->mtx, device_get_nameunit(sc->dev), NULL, MTX_DEF);
sys/riscv/sifive/sifive_prci.c
565
mtx_destroy(&sc->mtx);
sys/riscv/sifive/sifive_prci.c
64
struct mtx mtx;
sys/riscv/sifive/sifive_prci.c
85
#define PRCI_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/riscv/sifive/sifive_prci.c
86
#define PRCI_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/riscv/sifive/sifive_prci.c
87
#define PRCI_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED);
sys/riscv/sifive/sifive_prci.c
88
#define PRCI_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED);
sys/riscv/sifive/sifive_spi.c
308
mtx_init(&sc->mtx, device_get_nameunit(sc->dev), NULL, MTX_DEF);
sys/riscv/sifive/sifive_spi.c
355
mtx_destroy(&sc->mtx);
sys/riscv/sifive/sifive_spi.c
71
struct mtx mtx;
sys/riscv/sifive/sifive_spi.c
84
#define SFSPI_LOCK(sc) mtx_lock(&(sc)->mtx)
sys/riscv/sifive/sifive_spi.c
85
#define SFSPI_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
sys/riscv/sifive/sifive_spi.c
86
#define SFSPI_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED);
sys/riscv/sifive/sifive_spi.c
87
#define SFSPI_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED);
sys/riscv/sifive/sifive_uart.c
149
sfuart_getc(struct uart_bas *bas, struct mtx *hwmtx)
sys/riscv/starfive/jh7110_gpio.c
284
mtx_destroy(&sc->mtx);
sys/riscv/starfive/jh7110_gpio.c
297
mtx_init(&sc->mtx, device_get_nameunit(sc->dev), NULL, MTX_DEF);
sys/riscv/starfive/jh7110_gpio.c
302
mtx_destroy(&sc->mtx);
sys/riscv/starfive/jh7110_gpio.c
55
struct mtx mtx;
sys/riscv/starfive/jh7110_gpio.c
74
#define JH7110_GPIO_LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/riscv/starfive/jh7110_gpio.c
75
#define JH7110_GPIO_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/riscv/starfive/jh7110_pcie.c
140
struct mtx msi_mtx;
sys/riscv/vmm/riscv.h
101
struct mtx fence_queue_mtx;
sys/riscv/vmm/vmm.c
565
msleep_spin(vcpu, &vcpu->mtx, "vmidle", hz);
sys/riscv/vmm/vmm.c
647
msleep_spin(vcpu, &vcpu->mtx, "vmsusp", hz);
sys/riscv/vmm/vmm_aplic.c
113
struct mtx mtx;
sys/riscv/vmm/vmm_aplic.c
127
mtx_lock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
133
mtx_unlock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
155
mtx_lock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
162
mtx_unlock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
195
mtx_lock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
202
mtx_unlock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
221
mtx_lock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
233
mtx_unlock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
303
mtx_lock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
308
mtx_unlock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
394
mtx_init(&aplic->mtx, "APLIC lock", NULL, MTX_SPIN);
sys/riscv/vmm/vmm_aplic.c
404
mtx_destroy(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
460
mtx_lock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
462
mtx_unlock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
472
mtx_unlock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
477
mtx_unlock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
495
mtx_lock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
497
mtx_unlock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
503
mtx_unlock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_aplic.c
542
mtx_unlock_spin(&aplic->mtx);
sys/riscv/vmm/vmm_vtimer.c
75
mtx_init(&vtimer->mtx, "vtimer callout mutex", NULL, MTX_DEF);
sys/riscv/vmm/vmm_vtimer.c
76
callout_init_mtx(&vtimer->callout, &vtimer->mtx, 0);
sys/riscv/vmm/vmm_vtimer.h
40
struct mtx mtx;
sys/rpc/clnt_dg.c
120
struct mtx cs_lock;
sys/rpc/clnt_nl.c
132
struct mtx nl_lock;
sys/rpc/krpc.h
100
struct mtx ct_lock;
sys/rpc/krpc.h
64
struct mtx rc_lock;
sys/rpc/replay.c
67
struct mtx rc_lock;
sys/rpc/rpcsec_gss/rpcsec_gss.c
122
struct mtx gd_lock;
sys/rpc/rpcsec_tls/rpctls_impl.c
101
static struct mtx rpctls_lock;
sys/security/audit/audit.c
134
struct mtx audit_mtx;
sys/security/audit/audit_bsm_db.c
77
static struct mtx evclass_mtx;
sys/security/audit/audit_pipe.c
120
struct mtx ap_mtx;
sys/security/audit/audit_private.h
376
extern struct mtx audit_mtx;
sys/security/audit/audit_private.h
407
struct mtx ene_lock;
sys/security/audit/audit_trigger.c
60
static struct mtx audit_trigger_mtx;
sys/security/mac/mac_internal.h
197
extern struct mtx mac_ifnet_mtx;
sys/security/mac/mac_net.c
84
struct mtx mac_ifnet_mtx;
sys/security/mac_bsdextended/mac_bsdextended.c
69
static struct mtx ugidfw_mtx;
sys/security/mac_ipacl/mac_ipacl.c
126
static struct mtx rule_mtx;
sys/security/mac_lomac/mac_lomac.c
1910
mtx_destroy(&PSLOT(label)->mtx);
sys/security/mac_lomac/mac_lomac.c
1921
mtx_init(&PSLOT(label)->mtx, "MAC/Lomac proc lock", NULL, MTX_DEF);
sys/security/mac_lomac/mac_lomac.c
2244
mtx_lock(&subj->mtx);
sys/security/mac_lomac/mac_lomac.c
2247
mtx_unlock(&subj->mtx);
sys/security/mac_lomac/mac_lomac.c
2250
mtx_lock(&subj->mtx);
sys/security/mac_lomac/mac_lomac.c
2266
mtx_unlock(&subj->mtx);
sys/security/mac_lomac/mac_lomac.c
2271
mtx_unlock(&subj->mtx);
sys/security/mac_lomac/mac_lomac.c
504
mtx_lock(&subj->mtx);
sys/security/mac_lomac/mac_lomac.c
512
mtx_unlock(&subj->mtx);
sys/security/mac_lomac/mac_lomac.c
538
mtx_unlock(&subj->mtx);
sys/security/mac_lomac/mac_lomac.c
89
struct mtx mtx;
sys/security/mac_portacl/mac_portacl.c
132
static struct mtx rule_mtx;
sys/security/mac_veriexec/veriexec_metadata.c
68
struct mtx ve_mutex;
sys/security/mac_veriexec_parser/mac_veriexec_parser.c
76
extern struct mtx ve_mutex;
sys/sys/_rmlock.h
60
struct mtx _rm_lock_mtx;
sys/sys/_rmlock.h
80
struct mtx mtx;
sys/sys/_unrhdr.h
34
struct mtx;
sys/sys/_unrhdr.h
46
struct mtx *mtx;
sys/sys/buf_ring.h
359
struct mtx *);
sys/sys/buf_ring.h
64
struct mtx *br_lock;
sys/sys/bus.h
880
struct mtx * bus_topo_mtx(void);
sys/sys/callout.h
87
#define callout_init_mtx(c, mtx, flags) \
sys/sys/callout.h
88
_callout_init_lock((c), &(mtx)->lock_object, (flags))
sys/sys/event.h
350
struct mtx;
sys/sys/event.h
356
struct knlist *knlist_alloc(struct mtx *lock);
sys/sys/event.h
363
void knlist_init_mtx(struct knlist *knl, struct mtx *lock);
sys/sys/eventhandler.h
51
struct mtx el_lock;
sys/sys/eventvar.h
42
struct mtx kq_lock;
sys/sys/filedesc.h
104
struct mtx pd_lock; /* protects members of this struct */
sys/sys/interrupt.h
112
struct mtx ie_lock;
sys/sys/jail.h
192
struct mtx pr_mtx;
sys/sys/jaildesc.h
57
struct mtx jd_lock;
sys/sys/kenv.h
50
extern struct mtx kenv_lock;
sys/sys/lockmgr.h
101
_lockmgr_args(struct lock *lk, u_int flags, struct mtx *ilk, const char *wmesg,
sys/sys/malloc.h
175
extern struct mtx malloc_mtx;
sys/sys/mman.h
291
struct mtx shm_mtx;
sys/sys/mount.h
241
struct mtx __aligned(CACHE_LINE_SIZE) mnt_mtx; /* mount structure interlock */
sys/sys/mount.h
267
struct mtx mnt_listmtx;
sys/sys/msgbuf.h
51
struct mtx msg_lock; /* mutex to protect the buffer */
sys/sys/msgbuf.h
67
extern struct mtx msgbuf_lock;
sys/sys/mutex.h
108
void mtx_wait_unlocked(struct mtx *m);
sys/sys/mutex.h
128
void mtx_spin_wait_unlocked(struct mtx *m);
sys/sys/mutex.h
393
struct mtx *mtx_pool_find(struct mtx_pool *pool, void *ptr);
sys/sys/mutex.h
394
struct mtx *mtx_pool_alloc(struct mtx_pool *pool);
sys/sys/mutex.h
462
#define mtx_sleep(chan, mtx, pri, wmesg, timo) \
sys/sys/mutex.h
463
_sleep((chan), &(mtx)->lock_object, (pri), (wmesg), \
sys/sys/mutex.h
483
extern struct mtx Giant;
sys/sys/mutex.h
484
extern struct mtx blocked_lock;
sys/sys/mutex.h
522
#define MTX_SYSINIT(name, mtx, desc, opts) \
sys/sys/mutex.h
524
(mtx), \
sys/sys/mutex.h
531
_mtx_destroy, __DEVOLATILE(void *, &(mtx)->mtx_lock))
sys/sys/mutex.h
95
int _mtx_trylock_flags_int(struct mtx *m, int opts LOCK_FILE_LINE_ARG_DEF);
sys/sys/netexport.h
74
struct mtx ne_mtx; /* For ne_pnfsnumfile. */
sys/sys/pipe.h
136
struct mtx pp_mtx;
sys/sys/pmc.h
857
struct mtx *pp_tdslock; /* lock on pp_tds thread list */
sys/sys/pmc.h
883
struct mtx po_mtx; /* spin lock for (o) */
sys/sys/pmckern.h
172
struct mtx pdbh_mtx;
sys/sys/proc.h
1101
extern struct mtx ppeers_lock;
sys/sys/proc.h
1102
extern struct mtx procid_lock;
sys/sys/proc.h
111
struct mtx pg_mtx; /* Mutex to protect members */
sys/sys/proc.h
1244
void cpu_switch(struct thread *, struct thread *, struct mtx *);
sys/sys/proc.h
235
struct mtx *volatile td_lock; /* replaces sched lock */
sys/sys/proc.h
402
struct mtx *thread_lock_block(struct thread *);
sys/sys/proc.h
404
void thread_lock_set(struct thread *, struct mtx *);
sys/sys/proc.h
405
void thread_lock_unblock(struct thread *, struct mtx *);
sys/sys/proc.h
411
struct mtx *__m = (td)->td_lock; \
sys/sys/proc.h
419
struct mtx *__m; \
sys/sys/proc.h
427
struct mtx *__m; \
sys/sys/proc.h
658
struct mtx p_slock; /* process spin lock */
sys/sys/proc.h
686
struct mtx p_mtx; /* (n) Lock for this struct. */
sys/sys/proc.h
687
struct mtx p_statmtx; /* Lock for the stats */
sys/sys/proc.h
688
struct mtx p_itimmtx; /* Lock for the virt/prof timers */
sys/sys/proc.h
689
struct mtx p_profmtx; /* Lock for the profiling */
sys/sys/proc.h
94
struct mtx s_mtx; /* Mutex to protect members. */
sys/sys/procdesc.h
76
struct mtx pd_lock; /* Protect data + events. */
sys/sys/racct.h
161
extern struct mtx racct_lock;
sys/sys/rman.h
116
struct mtx rm_mtx; /* mutex used to protect rm_list */
sys/sys/selinfo.h
47
struct mtx *si_mtx; /* Lock for tdlist. */
sys/sys/sema.h
39
struct mtx sema_mtx; /* General protection lock. */
sys/sys/signalvar.h
340
extern struct mtx sigio_lock;
sys/sys/signalvar.h
66
struct mtx ps_mtx;
sys/sys/smp.h
270
extern struct mtx smp_ipi_mtx;
sys/sys/sockbuf.h
114
struct mtx *sb_mtx;
sys/sys/socketvar.h
110
struct mtx so_lock;
sys/sys/socketvar.h
153
struct mtx so_snd_mtx;
sys/sys/socketvar.h
156
struct mtx so_rcv_mtx;
sys/sys/socketvar.h
317
static inline struct mtx *
sys/sys/socketvar.h
80
struct mtx mtx;
sys/sys/systm.h
133
struct mtx;
sys/sys/systm.h
492
#define msleep(chan, mtx, pri, wmesg, timo) \
sys/sys/systm.h
493
_sleep((chan), &(mtx)->lock_object, (pri), (wmesg), \
sys/sys/systm.h
495
#define msleep_sbt(chan, mtx, pri, wmesg, bt, pr, flags) \
sys/sys/systm.h
496
_sleep((chan), &(mtx)->lock_object, (pri), (wmesg), (bt), (pr), \
sys/sys/systm.h
498
int msleep_spin_sbt(const void * _Nonnull chan, struct mtx *mtx,
sys/sys/systm.h
500
#define msleep_spin(chan, mtx, wmesg, timo) \
sys/sys/systm.h
501
msleep_spin_sbt((chan), (mtx), (wmesg), tick_sbt * (timo), \
sys/sys/systm.h
558
struct unrhdr *new_unrhdr(int low, int high, struct mtx *mutex);
sys/sys/systm.h
559
void init_unrhdr(struct unrhdr *uh, int low, int high, struct mtx *mutex);
sys/sys/terminal.h
198
struct mtx tm_mtx;
sys/sys/timeet.h
85
extern struct mtx et_eventtimers_mtx;
sys/sys/timepps.h
134
struct mtx;
sys/sys/timepps.h
163
struct mtx *driver_mtx; /* Optional, valid if non-NULL. */
sys/sys/timers.h
48
struct mtx it_mtx;
sys/sys/tty.h
166
struct tty *tty_alloc_mutex(struct ttydevsw *tsw, void *softc, struct mtx *mtx);
sys/sys/tty.h
62
struct mtx *t_mtx; /* TTY lock. */
sys/sys/tty.h
63
struct mtx t_mtxobj; /* Per-TTY lock (when not borrowing). */
sys/sys/ucred.h
75
struct mtx cr_mtx;
sys/sys/umtxvar.h
168
struct mtx uc_lock;
sys/sys/unpcb.h
77
struct mtx unp_mtx; /* PCB mutex */
sys/sys/vnode.h
177
struct mtx v_interlock; /* lock for "i" things */
sys/sys/vnode.h
99
struct mtx vpi_lock; /* lock to protect below */
sys/tests/epoch/epoch_test.c
54
static struct mtx state_mtx __aligned(CACHE_LINE_SIZE*2);
sys/tests/epoch/epoch_test.c
56
static struct mtx mutexA __aligned(CACHE_LINE_SIZE*2);
sys/tests/epoch/epoch_test.c
58
static struct mtx mutexB __aligned(CACHE_LINE_SIZE*2);
sys/tests/epoch/epoch_test.c
66
struct mtx *mtxp;
sys/tests/epoch/epoch_test.c
92
struct mtx *mtxp;
sys/tests/framework/kern_testfrwk.c
69
struct mtx kfrwk_mtx;
sys/tests/ktest.c
47
struct mtx ktest_mtx;
sys/ufs/ffs/ffs_snapshot.c
131
static struct mtx snapfree_lock;
sys/ufs/ffs/ffs_softdep.c
936
static struct mtx lk;
sys/ufs/ufs/quota.h
148
struct mtx dq_lock; /* lock for concurrency */
sys/ufs/ufs/ufs_dirhash.c
117
static struct mtx ufsdirhash_mtx;
sys/ufs/ufs/ufs_quota.c
1152
struct mtx dqhlock;
sys/ufs/ufs/ufsmount.h
99
struct mtx um_lock; /* (c) Protects ufsmount & fs */
sys/vm/device_pager.c
73
static struct mtx dev_pager_mtx;
sys/vm/phys_pager.c
51
static struct mtx phys_pager_mtx;
sys/vm/swap_pager.c
157
static struct mtx sw_dev_mtx;
sys/vm/swap_pager.c
398
static struct mtx swbuf_mtx; /* to sync nsw_wcount_async */
sys/vm/uma_core.c
4914
struct mtx *lock;
sys/vm/uma_int.h
451
struct mtx uzd_lock; /* Lock for the domain */
sys/vm/uma_int.h
501
struct mtx uz_cross_lock; /* Cross domain free lock */
sys/vm/uma_int.h
539
#define KEG_LOCKPTR(k, d) (struct mtx *)&(k)->uk_domain[(d)].ud_lock
sys/vm/vm_map.c
124
static struct mtx map_sleep_mtx;
sys/vm/vm_map.h
207
struct mtx system_mtx;
sys/vm/vm_object.c
144
struct mtx vm_object_list_mtx; /* lock for object list and count */
sys/vm/vm_object.h
238
extern struct mtx vm_object_list_mtx; /* lock for object list and count */
sys/vm/vm_pageout.c
1927
static struct mtx vm_oom_ratelim_mtx;
sys/vm/vm_pagequeue.h
66
struct mtx pq_mutex;
sys/vm/vm_pager.c
173
static struct mtx pagertab_lock;
sys/vm/vm_reserv.c
158
struct mtx lock; /* reservation lock. */
sys/vm/vm_reserv.c
216
struct mtx lock;
sys/vm/vm_swapout.c
131
static struct mtx vm_daemon_mtx;
sys/x86/include/intr_machdep.h
122
extern struct mtx icu_lock;
sys/x86/iommu/amd_iommu.h
88
struct mtx event_lock;
sys/x86/iommu/intel_dmar.h
131
struct mtx fault_lock;
sys/x86/isa/atrtc.c
72
static struct mtx atrtc_lock;
sys/x86/isa/atrtc.c
79
struct mtx atrtc_time_lock;
sys/x86/isa/clock.c
88
static struct mtx clock_lock;
sys/x86/isa/isa_dma.c
72
static struct mtx isa_dma_lock;
sys/x86/x86/intr_machdep.c
87
static struct mtx intrpic_lock;
sys/x86/x86/intr_machdep.c
88
static struct mtx intrcnt_lock;
sys/x86/x86/mca.c
154
static struct mtx mca_lock;
sys/x86/x86/mca.c
159
static struct mtx mca_msg_buf_lock;
sys/x86/x86/msi.c
185
static struct mtx msi_lock;
sys/x86/x86/stack_machdep.c
67
static struct mtx intr_lock;
sys/x86/xen/xen_arch_intr.c
117
static struct mtx xen_intr_x86_lock;
sys/xen/xenbus/xenbusb.h
67
struct mtx xbs_lock;
tests/sys/kern/ssl_sendfile.c
129
ATF_REQUIRE(pthread_mutex_init(&c->mtx, NULL) == 0);
tests/sys/kern/ssl_sendfile.c
135
ATF_REQUIRE(pthread_mutex_lock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
138
ATF_REQUIRE(pthread_cond_wait(&c->cv, &c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
140
ATF_REQUIRE(pthread_mutex_unlock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
168
ATF_REQUIRE(pthread_mutex_lock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
171
ATF_REQUIRE(pthread_mutex_unlock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
174
ATF_REQUIRE(pthread_mutex_destroy(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
208
ATF_REQUIRE(pthread_mutex_lock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
212
ATF_REQUIRE(pthread_mutex_unlock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
220
ATF_REQUIRE(pthread_mutex_lock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
231
ATF_REQUIRE(pthread_cond_wait(&c->cv, &c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
233
ATF_REQUIRE(pthread_mutex_unlock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
260
ATF_REQUIRE(pthread_cond_wait(&c->cv, &c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
266
ATF_REQUIRE(pthread_mutex_lock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
268
ATF_REQUIRE(pthread_mutex_unlock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
291
ATF_REQUIRE(pthread_mutex_lock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
293
ATF_REQUIRE(pthread_mutex_unlock(&c->mtx) == 0);
tests/sys/kern/ssl_sendfile.c
441
ATF_REQUIRE(pthread_mutex_lock(&c.mtx) == 0);
tests/sys/kern/ssl_sendfile.c
443
ATF_REQUIRE(pthread_cond_wait(&c.cv, &c.mtx) == 0);
tests/sys/kern/ssl_sendfile.c
445
ATF_REQUIRE(pthread_mutex_unlock(&c.mtx) == 0);
tests/sys/kern/ssl_sendfile.c
468
ATF_REQUIRE(pthread_mutex_lock(&c.mtx) == 0);
tests/sys/kern/ssl_sendfile.c
517
ATF_REQUIRE(pthread_mutex_unlock(&c.mtx) == 0);
tests/sys/kern/ssl_sendfile.c
69
pthread_mutex_t mtx;
tools/regression/kthread/kld/kthrdlk.c
52
static struct mtx test_global_lock;
tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c
36
pthread_mutex_t *mtx = arg;
tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c
38
if (pthread_mutex_isowned_np(mtx) != 0) {
tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c
50
pthread_mutex_t mtx;
tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c
52
pthread_mutex_init(&mtx, NULL);
tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c
53
if (pthread_mutex_isowned_np(&mtx) != 0) {
tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c
58
pthread_mutex_lock(&mtx);
tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c
59
if (pthread_mutex_isowned_np(&mtx) == 0) {
tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c
64
pthread_create(&thr, NULL, thread, &mtx);
tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c
66
pthread_mutex_unlock(&mtx);
tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c
67
if (pthread_mutex_isowned_np(&mtx) != 0) {
tools/regression/pthread/unwind/cond_wait_cancel.cpp
10
static pthread_mutex_t mtx;
tools/regression/pthread/unwind/cond_wait_cancel.cpp
18
pthread_mutex_lock(&mtx);
tools/regression/pthread/unwind/cond_wait_cancel.cpp
19
pthread_cond_wait(&cv, &mtx);
tools/regression/pthread/unwind/cond_wait_cancel.cpp
20
pthread_mutex_unlock(&mtx);
tools/regression/pthread/unwind/cond_wait_cancel.cpp
30
pthread_mutex_init(&mtx, NULL);
tools/regression/pthread/unwind/cond_wait_cancel2.cpp
15
static pthread_mutex_t mtx;
tools/regression/pthread/unwind/cond_wait_cancel2.cpp
22
pthread_mutex_lock(&mtx);
tools/regression/pthread/unwind/cond_wait_cancel2.cpp
23
pthread_cond_wait(&cv, &mtx);
tools/regression/pthread/unwind/cond_wait_cancel2.cpp
24
pthread_mutex_unlock(&mtx);
tools/regression/pthread/unwind/cond_wait_cancel2.cpp
47
pthread_mutex_init(&mtx, NULL);
tools/test/callout_free/callout_free.c
42
static struct mtx callout_free_mutex;
tools/tools/vhba/vhba.h
72
struct mtx lock;
usr.bin/mkuzip/mkuz_fqueue.c
100
pthread_mutex_unlock(&fqp->mtx);
usr.bin/mkuzip/mkuz_fqueue.c
124
pthread_mutex_lock(&fqp->mtx);
usr.bin/mkuzip/mkuz_fqueue.c
126
pthread_cond_wait(&fqp->cvar, &fqp->mtx);
usr.bin/mkuzip/mkuz_fqueue.c
156
pthread_mutex_unlock(&fqp->mtx);
usr.bin/mkuzip/mkuz_fqueue.c
169
pthread_mutex_lock(&fqp->mtx);
usr.bin/mkuzip/mkuz_fqueue.c
171
pthread_cond_wait(&fqp->cvar, &fqp->mtx);
usr.bin/mkuzip/mkuz_fqueue.c
185
pthread_mutex_unlock(&fqp->mtx);
usr.bin/mkuzip/mkuz_fqueue.c
198
pthread_mutex_lock(&fqp->mtx);
usr.bin/mkuzip/mkuz_fqueue.c
200
pthread_cond_wait(&fqp->cvar, &fqp->mtx);
usr.bin/mkuzip/mkuz_fqueue.c
209
pthread_mutex_unlock(&fqp->mtx);
usr.bin/mkuzip/mkuz_fqueue.c
50
if (pthread_mutex_init(&fqp->mtx, NULL) != 0) {
usr.bin/mkuzip/mkuz_fqueue.c
67
pthread_mutex_lock(&fqp->mtx);
usr.bin/mkuzip/mkuz_fqueue.c
78
pthread_mutex_unlock(&fqp->mtx);
usr.bin/mkuzip/mkuz_fqueue.c
88
pthread_mutex_lock(&fqp->mtx);
usr.bin/mkuzip/mkuz_fqueue.h
28
pthread_mutex_t mtx;
usr.sbin/bhyve/amd64/atkbdc.c
122
pthread_mutex_t mtx;
usr.sbin/bhyve/amd64/atkbdc.c
163
assert(pthread_mutex_isowned_np(&sc->mtx));
usr.sbin/bhyve/amd64/atkbdc.c
218
assert(pthread_mutex_isowned_np(&sc->mtx));
usr.sbin/bhyve/amd64/atkbdc.c
258
assert(pthread_mutex_isowned_np(&sc->mtx));
usr.sbin/bhyve/amd64/atkbdc.c
273
assert(pthread_mutex_isowned_np(&sc->mtx));
usr.sbin/bhyve/amd64/atkbdc.c
319
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/amd64/atkbdc.c
332
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/amd64/atkbdc.c
377
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/amd64/atkbdc.c
387
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/amd64/atkbdc.c
405
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/amd64/atkbdc.c
410
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/amd64/atkbdc.c
481
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/amd64/atkbdc.c
502
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/amd64/atkbdc.c
508
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/amd64/atkbdc.c
521
pthread_mutex_init(&sc->mtx, NULL);
usr.sbin/bhyve/amd64/ps2kbd.c
265
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2kbd.c
267
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2kbd.c
275
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2kbd.c
342
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2kbd.c
356
assert(pthread_mutex_isowned_np(&sc->mtx));
usr.sbin/bhyve/amd64/ps2kbd.c
399
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2kbd.c
401
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2kbd.c
406
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2kbd.c
498
pthread_mutex_init(&sc->mtx, NULL);
usr.sbin/bhyve/amd64/ps2kbd.c
83
pthread_mutex_t mtx;
usr.sbin/bhyve/amd64/ps2mouse.c
164
assert(pthread_mutex_isowned_np(&sc->mtx));
usr.sbin/bhyve/amd64/ps2mouse.c
184
assert(pthread_mutex_isowned_np(&sc->mtx));
usr.sbin/bhyve/amd64/ps2mouse.c
232
assert(pthread_mutex_isowned_np(&sc->mtx));
usr.sbin/bhyve/amd64/ps2mouse.c
250
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2mouse.c
252
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2mouse.c
266
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2mouse.c
275
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2mouse.c
281
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2mouse.c
368
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2mouse.c
376
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2mouse.c
390
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2mouse.c
395
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2mouse.c
407
pthread_mutex_init(&sc->mtx, NULL);
usr.sbin/bhyve/amd64/ps2mouse.c
411
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2mouse.c
413
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/amd64/ps2mouse.c
99
pthread_mutex_t mtx;
usr.sbin/bhyve/hda_codec.c
149
pthread_mutex_t mtx;
usr.sbin/bhyve/hda_codec.c
869
pthread_mutex_lock(&actx->mtx);
usr.sbin/bhyve/hda_codec.c
872
pthread_cond_wait(&actx->cond, &actx->mtx);
usr.sbin/bhyve/hda_codec.c
876
pthread_mutex_unlock(&actx->mtx);
usr.sbin/bhyve/hda_codec.c
905
err = pthread_mutex_init(&actx->mtx, NULL);
usr.sbin/bhyve/hda_codec.c
933
pthread_mutex_lock(&actx->mtx);
usr.sbin/bhyve/hda_codec.c
939
pthread_mutex_unlock(&actx->mtx);
usr.sbin/bhyve/pci_ahci.c
1971
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/pci_ahci.c
199
pthread_mutex_t mtx;
usr.sbin/bhyve/pci_ahci.c
2013
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/pci_ahci.c
2037
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/pci_ahci.c
2075
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/pci_ahci.c
2253
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/pci_ahci.c
2262
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/pci_ahci.c
2349
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/pci_ahci.c
2363
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/pci_ahci.c
2487
pthread_mutex_init(&sc->mtx, NULL);
usr.sbin/bhyve/pci_ahci.c
492
assert(pthread_mutex_isowned_np(&p->pr_sc->mtx));
usr.sbin/bhyve/pci_nvme.c
1059
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/pci_nvme.c
1061
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/pci_nvme.c
1185
pthread_mutex_lock(&cq->mtx);
usr.sbin/bhyve/pci_nvme.c
1203
pthread_mutex_unlock(&cq->mtx);
usr.sbin/bhyve/pci_nvme.c
1434
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/pci_nvme.c
1443
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/pci_nvme.c
164
pthread_mutex_t mtx;
usr.sbin/bhyve/pci_nvme.c
174
pthread_mutex_t mtx;
usr.sbin/bhyve/pci_nvme.c
1744
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/pci_nvme.c
1751
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/pci_nvme.c
2034
pthread_mutex_lock(&sq->mtx);
usr.sbin/bhyve/pci_nvme.c
2132
pthread_mutex_unlock(&sq->mtx);
usr.sbin/bhyve/pci_nvme.c
2147
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/pci_nvme.c
2173
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/pci_nvme.c
2296
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/pci_nvme.c
2306
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/pci_nvme.c
2317
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/pci_nvme.c
2327
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/pci_nvme.c
2720
pthread_mutex_lock(&sq->mtx);
usr.sbin/bhyve/pci_nvme.c
2795
pthread_mutex_unlock(&sq->mtx);
usr.sbin/bhyve/pci_nvme.c
2993
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/pci_nvme.c
3074
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/pci_nvme.c
3112
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/pci_nvme.c
3114
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/pci_nvme.c
317
pthread_mutex_t mtx;
usr.sbin/bhyve/pci_nvme.c
3363
pthread_mutex_init(&sc->mtx, NULL);
usr.sbin/bhyve/pci_nvme.c
495
pthread_mutex_init(&sq[i].mtx, NULL);
usr.sbin/bhyve/pci_nvme.c
518
pthread_mutex_init(&cq[i].mtx, NULL);
usr.sbin/bhyve/pci_xhci.c
2320
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/pci_xhci.c
2332
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/pci_xhci.c
2541
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/pci_xhci.c
2557
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/pci_xhci.c
267
pthread_mutex_t mtx;
usr.sbin/bhyve/pci_xhci.c
2995
pthread_mutex_init(&sc->mtx, NULL);
usr.sbin/bhyve/rfb.c
1315
pthread_mutex_lock(&rc->mtx);
usr.sbin/bhyve/rfb.c
1317
pthread_mutex_unlock(&rc->mtx);
usr.sbin/bhyve/rfb.c
1445
pthread_mutex_init(&rc->mtx, NULL);
usr.sbin/bhyve/rfb.c
145
pthread_mutex_t mtx;
usr.sbin/bhyve/rfb.c
1455
pthread_mutex_lock(&rc->mtx);
usr.sbin/bhyve/rfb.c
1456
pthread_cond_wait(&rc->cond, &rc->mtx);
usr.sbin/bhyve/rfb.c
1457
pthread_mutex_unlock(&rc->mtx);
usr.sbin/bhyve/rtc_pl031.c
170
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/rtc_pl031.c
172
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/rtc_pl031.c
178
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/rtc_pl031.c
202
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/rtc_pl031.c
210
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/rtc_pl031.c
252
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/rtc_pl031.c
266
pthread_mutex_init(&sc->mtx, NULL);
usr.sbin/bhyve/rtc_pl031.c
64
pthread_mutex_t mtx;
usr.sbin/bhyve/uart_backend.c
309
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/uart_backend.c
313
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/uart_backend.c
322
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/uart_backend.c
520
pthread_mutex_init(&sc->mtx, NULL);
usr.sbin/bhyve/uart_backend.c
554
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/uart_backend.c
560
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/uart_backend.c
76
pthread_mutex_t mtx;
usr.sbin/bhyve/usb_emul.h
116
pthread_mutex_t mtx;
usr.sbin/bhyve/usb_emul.h
137
pthread_mutex_init(&((x)->mtx), NULL); \
usr.sbin/bhyve/usb_emul.h
147
pthread_mutex_lock(&((x)->mtx)); \
usr.sbin/bhyve/usb_emul.h
151
pthread_mutex_unlock(&((x)->mtx)); \
usr.sbin/bhyve/usb_mouse.c
250
pthread_mutex_t mtx;
usr.sbin/bhyve/usb_mouse.c
270
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/usb_mouse.c
290
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/usb_mouse.c
314
pthread_mutex_init(&sc->mtx, NULL);
usr.sbin/bhyve/usb_mouse.c
739
pthread_mutex_lock(&sc->mtx);
usr.sbin/bhyve/usb_mouse.c
744
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/usb_mouse.c
751
pthread_mutex_unlock(&sc->mtx);
usr.sbin/bhyve/usb_mouse.c
768
pthread_mutex_unlock(&sc->mtx);