Symbol: mtx
lib/libc/sysvipc/lock_generic.c
40
__sysv_umtx_lock(volatile umtx_t *mtx, int timo)
lib/libc/sysvipc/lock_generic.c
46
v = *mtx;
lib/libc/sysvipc/lock_generic.c
47
if (v == 2 || atomic_cmpset_acq_int(mtx, 1, 2)) {
lib/libc/sysvipc/lock_generic.c
49
umtx_sleep(mtx, 2, timo);
lib/libc/sysvipc/lock_generic.c
50
else if ( (errval = umtx_sleep(mtx, 2, timo)) > 0) {
lib/libc/sysvipc/lock_generic.c
52
if (atomic_cmpset_acq_int(mtx, 0, 2))
lib/libc/sysvipc/lock_generic.c
60
} while (!atomic_cmpset_acq_int(mtx, 0, 2));
lib/libc/sysvipc/lock_generic.c
66
__sysv_umtx_unlock(volatile umtx_t *mtx)
lib/libc/sysvipc/lock_generic.c
71
v = *mtx;
lib/libc/sysvipc/lock_generic.c
72
if (atomic_cmpset_acq_int(mtx, v, v-1)) {
lib/libc/sysvipc/lock_generic.c
74
*mtx = 0;
lib/libc/sysvipc/lock_generic.c
75
umtx_wakeup(mtx, 1);
lib/libc/sysvipc/sysvipc_lock_generic.h
37
int __sysv_umtx_lock(volatile umtx_t *mtx, int timo);
lib/libc/sysvipc/sysvipc_lock_generic.h
38
void __sysv_umtx_unlock(volatile umtx_t *mtx);
lib/libc/sysvipc/sysvipc_lock_generic.h
41
_sysv_umtx_init(volatile umtx_t *mtx)
lib/libc/sysvipc/sysvipc_lock_generic.h
43
*mtx = 0;
lib/libc/sysvipc/sysvipc_lock_generic.h
47
_sysv_umtx_lock(volatile umtx_t *mtx)
lib/libc/sysvipc/sysvipc_lock_generic.h
49
if (atomic_cmpset_acq_int(mtx, 0, 1))
lib/libc/sysvipc/sysvipc_lock_generic.h
51
return (__sysv_umtx_lock(mtx, 0));
lib/libc/sysvipc/sysvipc_lock_generic.h
55
_sysv_umtx_unlock(volatile umtx_t *mtx)
lib/libc/sysvipc/sysvipc_lock_generic.h
57
if (atomic_cmpset_acq_int(mtx, 1, 0))
lib/libc/sysvipc/sysvipc_lock_generic.h
59
__sysv_umtx_unlock(mtx);
lib/libdmsg/dmsg.h
312
pthread_mutex_t mtx; /* mutex for state*tree/rmsgq */
lib/libdmsg/msg.c
1073
pthread_mutex_lock(&iocom->mtx);
lib/libdmsg/msg.c
1076
pthread_mutex_unlock(&iocom->mtx);
lib/libdmsg/msg.c
1188
pthread_mutex_lock(&iocom->mtx);
lib/libdmsg/msg.c
1193
pthread_mutex_unlock(&iocom->mtx);
lib/libdmsg/msg.c
1219
pthread_mutex_lock(&iocom->mtx);
lib/libdmsg/msg.c
1221
pthread_mutex_unlock(&iocom->mtx);
lib/libdmsg/msg.c
126
pthread_mutex_init(&iocom->mtx, NULL);
lib/libdmsg/msg.c
1559
pthread_mutex_lock(&iocom->mtx);
lib/libdmsg/msg.c
1582
pthread_mutex_unlock(&iocom->mtx);
lib/libdmsg/msg.c
1672
pthread_mutex_unlock(&iocom->mtx);
lib/libdmsg/msg.c
1793
pthread_mutex_unlock(&iocom->mtx);
lib/libdmsg/msg.c
1795
pthread_mutex_lock(&iocom->mtx);
lib/libdmsg/msg.c
196
pthread_mutex_lock(&iocom->mtx);
lib/libdmsg/msg.c
203
pthread_mutex_unlock(&iocom->mtx);
lib/libdmsg/msg.c
2089
pthread_mutex_lock(&iocom->mtx);
lib/libdmsg/msg.c
209
pthread_mutex_lock(&iocom->mtx);
lib/libdmsg/msg.c
212
pthread_mutex_unlock(&iocom->mtx);
lib/libdmsg/msg.c
2138
pthread_mutex_unlock(&iocom->mtx);
lib/libdmsg/msg.c
243
pthread_mutex_destroy(&iocom->mtx);
lib/libdmsg/msg.c
2473
pthread_mutex_unlock(&iocom->mtx);
lib/libdmsg/msg.c
263
pthread_mutex_lock(&iocom->mtx);
lib/libdmsg/msg.c
265
pthread_mutex_unlock(&iocom->mtx);
lib/libdmsg/msg.c
411
pthread_mutex_lock(&iocom->mtx);
lib/libdmsg/msg.c
413
pthread_mutex_unlock(&iocom->mtx);
lib/libdmsg/msg.c
552
pthread_mutex_lock(&iocom->mtx);
lib/libdmsg/msg.c
554
pthread_mutex_unlock(&iocom->mtx);
lib/libthread_xu/thread/thr_umtx.c
102
errval = _umtx_sleep_err(mtx, v|0x40000000,
lib/libthread_xu/thread/thr_umtx.c
105
if (atomic_cmpset_acq_int(mtx, 0, id))
lib/libthread_xu/thread/thr_umtx.c
123
__thr_umtx_unlock(volatile umtx_t *mtx, int v, int id)
lib/libthread_xu/thread/thr_umtx.c
126
_umtx_wakeup_err(mtx, 1);
lib/libthread_xu/thread/thr_umtx.c
137
__thr_umtx_timedlock(volatile umtx_t *mtx, int id,
lib/libthread_xu/thread/thr_umtx.c
163
ret = __thr_umtx_lock(mtx, id, timo);
lib/libthread_xu/thread/thr_umtx.c
181
_thr_umtx_wait(volatile umtx_t *mtx, int exp, const struct timespec *timeout,
lib/libthread_xu/thread/thr_umtx.c
188
if (*mtx != exp)
lib/libthread_xu/thread/thr_umtx.c
196
while ((errval = _umtx_sleep_err(mtx, exp, 10000000)) > 0) {
lib/libthread_xu/thread/thr_umtx.c
201
if (*mtx != exp) {
lib/libthread_xu/thread/thr_umtx.c
205
exp, *mtx, mtx);
lib/libthread_xu/thread/thr_umtx.c
209
if (*mtx != exp)
lib/libthread_xu/thread/thr_umtx.c
235
if ((errval = _umtx_sleep_err(mtx, exp, timo)) > 0) {
lib/libthread_xu/thread/thr_umtx.c
260
_thr_umtx_wait_intr(volatile umtx_t *mtx, int exp)
lib/libthread_xu/thread/thr_umtx.c
267
if (*mtx != exp)
lib/libthread_xu/thread/thr_umtx.c
269
errval = _umtx_sleep_err(mtx, exp, 10000000);
lib/libthread_xu/thread/thr_umtx.c
284
_thr_umtx_wake(volatile umtx_t *mtx, int count)
lib/libthread_xu/thread/thr_umtx.c
286
_umtx_wakeup_err(mtx, count);
lib/libthread_xu/thread/thr_umtx.c
57
__thr_umtx_lock(volatile umtx_t *mtx, int id, int timo)
lib/libthread_xu/thread/thr_umtx.c
64
v = *mtx;
lib/libthread_xu/thread/thr_umtx.c
71
if (atomic_fcmpset_int(mtx, &v, id))
lib/libthread_xu/thread/thr_umtx.c
76
v = *mtx;
lib/libthread_xu/thread/thr_umtx.c
85
if (atomic_fcmpset_int(mtx, &v, v|0x40000000) ||
lib/libthread_xu/thread/thr_umtx.c
88
_umtx_sleep_err(mtx, v|0x40000000, 1000);
lib/libthread_xu/thread/thr_umtx.c
95
_umtx_sleep_err(mtx, v|0x40000000, 1000);
lib/libthread_xu/thread/thr_umtx.h
103
v = atomic_swap_int(mtx, 0);
lib/libthread_xu/thread/thr_umtx.h
105
__thr_umtx_unlock(mtx, v, id);
lib/libthread_xu/thread/thr_umtx.h
110
int _thr_umtx_wait(volatile umtx_t *mtx, umtx_t exp,
lib/libthread_xu/thread/thr_umtx.h
112
int _thr_umtx_wait_intr(volatile umtx_t *mtx, umtx_t exp);
lib/libthread_xu/thread/thr_umtx.h
113
void _thr_umtx_wake(volatile umtx_t *mtx, int count);
lib/libthread_xu/thread/thr_umtx.h
37
int __thr_umtx_lock(volatile umtx_t *mtx, int id, int timo);
lib/libthread_xu/thread/thr_umtx.h
38
int __thr_umtx_timedlock(volatile umtx_t *mtx, int id,
lib/libthread_xu/thread/thr_umtx.h
40
void __thr_umtx_unlock(volatile umtx_t *mtx, int v, int id);
lib/libthread_xu/thread/thr_umtx.h
43
_thr_umtx_init(volatile umtx_t *mtx)
lib/libthread_xu/thread/thr_umtx.h
45
*mtx = 0;
lib/libthread_xu/thread/thr_umtx.h
49
_thr_umtx_trylock(volatile umtx_t *mtx, int id, int temporary)
lib/libthread_xu/thread/thr_umtx.h
53
if (atomic_cmpset_acq_int(mtx, 0, id))
lib/libthread_xu/thread/thr_umtx.h
56
if (atomic_cmpset_acq_int(mtx, 0, id))
lib/libthread_xu/thread/thr_umtx.h
59
if (atomic_cmpset_acq_int(mtx, 0, id))
lib/libthread_xu/thread/thr_umtx.h
67
_thr_umtx_lock(volatile umtx_t *mtx, int id, int temporary)
lib/libthread_xu/thread/thr_umtx.h
73
if (atomic_cmpset_acq_int(mtx, 0, id))
lib/libthread_xu/thread/thr_umtx.h
75
res = __thr_umtx_lock(mtx, id, 0);
lib/libthread_xu/thread/thr_umtx.h
82
_thr_umtx_timedlock(volatile umtx_t *mtx, int id,
lib/libthread_xu/thread/thr_umtx.h
89
if (atomic_cmpset_acq_int(mtx, 0, id)) {
lib/libthread_xu/thread/thr_umtx.h
92
res = __thr_umtx_timedlock(mtx, id, timeout);
lib/libthread_xu/thread/thr_umtx.h
99
_thr_umtx_unlock(volatile umtx_t *mtx, int id, int temporary)
sys/bus/u4b/usb_request.c
456
if ((mtx != NULL) && (mtx != &Giant)) {
sys/bus/u4b/usb_request.c
730
if ((mtx != NULL) && (mtx != &Giant))
sys/bus/u4b/uvc/uvc_buf.c
136
UVC_LOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
140
UVC_UNLOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
169
UVC_LOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
174
UVC_UNLOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
235
UVC_LOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
310
UVC_UNLOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
323
UVC_LOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
382
UVC_UNLOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
413
UVC_LOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
444
ret = cv_wait_sig(&bq->io_cv, &bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
455
UVC_UNLOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
465
UVC_LOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
487
UVC_UNLOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
498
UVC_LOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
507
UVC_UNLOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
530
UVC_LOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
534
UVC_UNLOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
553
UVC_LOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
586
UVC_UNLOCK(&bq->mtx);
sys/bus/u4b/uvc/uvc_buf.c
606
UVC_LOCK(&queue->mtx);
sys/bus/u4b/uvc/uvc_buf.c
608
UVC_UNLOCK(&queue->mtx);
sys/bus/u4b/uvc/uvc_buf.c
617
UVC_LOCK(&queue->mtx);
sys/bus/u4b/uvc/uvc_buf.c
627
UVC_UNLOCK(&queue->mtx);
sys/bus/u4b/uvc/uvc_buf.c
650
UVC_LOCK(&queue->mtx);
sys/bus/u4b/uvc/uvc_buf.c
652
UVC_UNLOCK(&queue->mtx);
sys/bus/u4b/uvc/uvc_buf.c
669
UVC_LOCK(&queue->mtx);
sys/bus/u4b/uvc/uvc_buf.c
671
UVC_UNLOCK(&queue->mtx);
sys/bus/u4b/uvc/uvc_buf.c
683
UVC_UNLOCK(&queue->mtx);
sys/bus/u4b/uvc/uvc_buf.c
692
UVC_LOCK(&queue->mtx);
sys/bus/u4b/uvc/uvc_buf.c
695
UVC_UNLOCK(&queue->mtx);
sys/bus/u4b/uvc/uvc_buf.c
702
UVC_UNLOCK(&queue->mtx);
sys/bus/u4b/uvc/uvc_buf.c
714
lockinit(&bq->mtx, "uvc buffer lock", 0, LK_CANRECURSE);
sys/bus/u4b/uvc/uvc_buf.h
66
struct lock mtx;
sys/bus/u4b/uvc/uvc_ctrls.c
1107
UVC_LOCK(&video->ctrl->mtx);
sys/bus/u4b/uvc/uvc_ctrls.c
1117
UVC_UNLOCK(&video->ctrl->mtx);
sys/bus/u4b/uvc/uvc_ctrls.c
1135
UVC_LOCK(&video->ctrl->mtx);
sys/bus/u4b/uvc/uvc_ctrls.c
1155
UVC_UNLOCK(&video->ctrl->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1154
UVC_LOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1158
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1167
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1180
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1192
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1195
UVC_N_BULKTRANSFER, sc, &video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1197
UVC_LOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1209
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1216
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1254
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1271
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1277
video->data->xfer, uvc_config, UVC_N_TRANSFER, sc, &video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1279
UVC_LOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1285
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1340
UVC_LOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1345
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1435
uvc_intr_config, UVCINTR_N_TRANSFER, sc, &video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1439
UVC_LOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1441
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1502
lockinit(&v->mtx, device_get_nameunit(sc->dev),
sys/bus/u4b/uvc/uvc_drv.c
1518
UVC_LOCK(&v->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1523
UVC_UNLOCK(&v->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1562
UVC_UNLOCK(&v->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1570
UVC_LOCK(&v->mtx);
sys/bus/u4b/uvc/uvc_drv.c
1572
UVC_UNLOCK(&v->mtx);
sys/bus/u4b/uvc/uvc_drv.c
2446
lockinit(&pc->mtx, "uvc ctrl lock", 0, 0);
sys/bus/u4b/uvc/uvc_drv.c
257
UVC_ASSERT_LOCKED(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
258
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
267
UVC_LOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
321
UVC_ASSERT_LOCKED(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
322
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
330
UVC_LOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
354
UVC_LOCK(&v->mtx);
sys/bus/u4b/uvc/uvc_drv.c
369
UVC_UNLOCK(&v->mtx);
sys/bus/u4b/uvc/uvc_drv.c
381
UVC_LOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
427
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
442
UVC_LOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
446
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
455
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
463
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
541
UVC_LOCK(&v->mtx);
sys/bus/u4b/uvc/uvc_drv.c
544
UVC_UNLOCK(&v->mtx);
sys/bus/u4b/uvc/uvc_drv.c
673
UVC_LOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.c
675
UVC_UNLOCK(&video->mtx);
sys/bus/u4b/uvc/uvc_drv.h
676
struct lock mtx;
sys/bus/u4b/uvc/uvc_drv.h
698
struct lock mtx;
sys/bus/u4b/wlan/if_urtwnvar.h
184
struct mtx nt_mtx;
sys/bus/u4b/wlan/if_urtwnvar.h
219
struct mtx sc_mtx;
sys/bus/u4b/wlan/if_urtwnvar.h
227
struct mtx cmdq_mtx;
sys/dev/disk/dm/delay/dm_target_delay.c
60
struct mtx buf_mtx;
sys/dev/disk/dm/delay/dm_target_delay.c
61
struct mtx cal_mtx;
sys/dev/disk/iscsi/initiator/iscsivar.h
148
struct mtx rsp_mtx;
sys/dev/disk/iscsi/initiator/iscsivar.h
149
struct mtx rsv_mtx;
sys/dev/disk/iscsi/initiator/iscsivar.h
150
struct mtx snd_mtx;
sys/dev/disk/iscsi/initiator/iscsivar.h
151
struct mtx hld_mtx;
sys/dev/disk/iscsi/initiator/iscsivar.h
152
struct mtx io_mtx;
sys/dev/disk/iscsi/initiator/iscsivar.h
290
#define iscsi_lock_ex(mtx) mtx_lock_ex_quick(mtx)
sys/dev/disk/iscsi/initiator/iscsivar.h
291
#define iscsi_unlock_ex(mtx) mtx_unlock(mtx)
sys/dev/disk/iscsi/initiator/iscsivar.h
292
#define issleep(id, mtx, flags, wmesg, to) \
sys/dev/disk/iscsi/initiator/iscsivar.h
293
mtxsleep(id, mtx, flags, wmesg, to)
sys/dev/disk/isp/isp_freebsd.c
3113
KKASSERT(lockowned(periph->sim->mtx));
sys/dev/disk/nata/chipsets/ata-promise.c
1121
lockmgr(&hpktp->mtx, LK_EXCLUSIVE);
sys/dev/disk/nata/chipsets/ata-promise.c
1132
lockmgr(&hpktp->mtx, LK_RELEASE);
sys/dev/disk/nata/chipsets/ata-promise.c
1141
lockmgr(&hpktp->mtx, LK_EXCLUSIVE);
sys/dev/disk/nata/chipsets/ata-promise.c
1149
lockmgr(&hpktp->mtx, LK_RELEASE);
sys/dev/disk/nata/chipsets/ata-promise.c
254
lockinit(&hpkt->mtx, "chipinit", 0, 0);
sys/dev/disk/nata/chipsets/ata-promise.c
720
lockmgr(&hpktp->mtx, LK_EXCLUSIVE);
sys/dev/disk/nata/chipsets/ata-promise.c
727
lockmgr(&hpktp->mtx, LK_RELEASE);
sys/dev/disk/nata/chipsets/ata-promise.c
90
struct lock mtx;
sys/dev/drm/drm_vm.c
150
static struct mtx vm_phys_fictitious_reg_mtx = MTX_INITIALIZER("vmphy");
sys/dev/misc/cmx/cmx.c
199
lockinit(&sc->mtx, "cmx softc lock", 0, LK_CANRECURSE);
sys/dev/misc/cmx/cmx.c
213
lockuninit(&sc->mtx);
sys/dev/misc/cmx/cmxvar.h
53
struct lock mtx; /* per-unit lock */
sys/dev/misc/cmx/cmxvar.h
98
#define CMX_LOCK(sc) lockmgr(&(sc)->mtx, LK_EXCLUSIVE);
sys/dev/misc/cmx/cmxvar.h
99
#define CMX_UNLOCK(sc) lockmgr(&(sc)->mtx, LK_RELEASE);
sys/dev/misc/cuse/cuse.c
1134
error = cv_wait_sig(&pcs->cv, &pcs->mtx);
sys/dev/misc/cuse/cuse.c
141
struct lock mtx;
sys/dev/misc/cuse/cuse.c
2016
KKASSERT(lockowned(&pcc->server->mtx));
sys/dev/misc/cuse/cuse.c
2028
KKASSERT(lockowned(&pcc->server->mtx));
sys/dev/misc/cuse/cuse.c
261
lockmgr(&pcs->mtx, LK_EXCLUSIVE);
sys/dev/misc/cuse/cuse.c
267
lockmgr(&pcs->mtx, LK_RELEASE);
sys/dev/misc/cuse/cuse.c
273
return (lockstatus((&pcs->mtx), curthread));
sys/dev/misc/cuse/cuse.c
624
cv_wait(&pccmd->cv, &pcs->mtx);
sys/dev/misc/cuse/cuse.c
626
error = cv_wait_sig(&pccmd->cv, &pcs->mtx);
sys/dev/misc/cuse/cuse.c
648
cv_wait(&pccmd->cv, &pcs->mtx);
sys/dev/misc/cuse/cuse.c
729
lockuninit(&pcs->mtx);
sys/dev/misc/cuse/cuse.c
794
lockinit(&pcs->mtx, "cuse-mtx", 0, LK_CANRECURSE);
sys/dev/misc/evdev/evdev.c
357
evdev_register_mtx(struct evdev_dev *evdev, struct lock *mtx)
sys/dev/misc/evdev/evdev.c
361
evdev->ev_state_lock = mtx;
sys/dev/misc/syscons/syscons.c
171
static struct mtx syscons_mtx = MTX_INITIALIZER("syscons");
sys/dev/misc/vkbd/vkbd.c
82
#define VKBD_LOCK_DECL struct mtx ks_lock
sys/dev/netif/ath/ath/if_athvar.h
207
struct mtx an_mtx; /* protecting the rate control state */
sys/dev/netif/ath/ath/if_athvar.h
368
struct mtx axq_lock; /* lock on q and link */
sys/dev/netif/ath/ath/if_athvar.h
614
struct mtx sc_mtx; /* master lock (recursive) */
sys/dev/netif/ath/ath/if_athvar.h
615
struct mtx sc_pcu_mtx; /* PCU access mutex */
sys/dev/netif/ath/ath/if_athvar.h
621
struct mtx sc_rx_mtx; /* RX access mutex */
sys/dev/netif/ath/ath/if_athvar.h
627
struct mtx sc_tx_mtx; /* TX handling/comp mutex */
sys/dev/netif/ath/ath/if_athvar.h
633
struct mtx sc_tx_ic_mtx; /* TX queue mutex */
sys/dev/netif/ath/ath/if_athvar.h
788
struct mtx sc_txbuflock; /* txbuf lock */
sys/dev/netif/ath/ath/if_athvar.h
802
struct mtx sc_txcomplock; /* TX EDMA completion lock */
sys/dev/netif/bwn/bwn/if_bwnvar.h
977
struct mtx sc_mtx;
sys/dev/netif/iwi/if_iwivar.h
131
struct mtx sc_mtx;
sys/dev/netif/iwn/if_iwnvar.h
242
struct mtx sc_mtx;
sys/dev/netif/msk/if_mskreg.h
2529
struct mtx msk_jlist_mtx;
sys/dev/netif/ral/rt2560var.h
111
struct mtx sc_mtx;
sys/dev/netif/ral/rt2661var.h
104
struct mtx sc_mtx;
sys/dev/netif/ral/rt2860var.h
123
struct mtx sc_mtx;
sys/dev/netif/re/re.h
1030
#define RE_LOCK(_sc) mtx_lock(&(_sc)->mtx)
sys/dev/netif/re/re.h
1031
#define RE_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
sys/dev/netif/re/re.h
1032
#define RE_LOCK_INIT(_sc,_name) mtx_init(&(_sc)->mtx,_name,MTX_NETWORK_LOCK,MTX_DEF)
sys/dev/netif/re/re.h
1033
#define RE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx)
sys/dev/netif/re/re.h
1034
#define RE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->mtx,MA_OWNED)
sys/dev/netif/re/re.h
926
struct mtx mtx;
sys/dev/netif/wi/if_wivar.h
76
struct mtx sc_mtx;
sys/dev/netif/wpi/if_wpivar.h
131
struct mtx wv_mtx;
sys/dev/netif/wpi/if_wpivar.h
177
struct mtx sc_mtx;
sys/dev/netif/wpi/if_wpivar.h
184
struct mtx tx_mtx;
sys/dev/netif/wpi/if_wpivar.h
196
struct mtx txq_mtx;
sys/dev/netif/wpi/if_wpivar.h
197
struct mtx txq_state_mtx;
sys/dev/netif/wpi/if_wpivar.h
228
struct mtx rxon_mtx;
sys/dev/netif/wpi/if_wpivar.h
237
struct mtx nt_mtx;
sys/dev/sound/pcm/sound.c
104
struct lock *mtx = m;
sys/dev/sound/pcm/sound.c
106
lockuninit(mtx);
sys/dev/sound/pcm/sound.c
107
kfree(mtx, M_DEVBUF);
sys/kern/kern_condvar.c
50
_cv_mtx_timedwait(struct cv *c, struct mtx *mtx, int timo, int wakesig)
sys/kern/kern_condvar.c
67
if (mtx)
sys/kern/kern_condvar.c
68
error = mtxsleep(c, mtx, flags | PINTERLOCKED, c->cv_desc, timo);
sys/kern/kern_mutex.c
100
mtx->mtx_owner = curthread;
sys/kern/kern_mutex.c
1012
mtx_delete_link(mtx, link);
sys/kern/kern_mutex.c
1025
if ((mtx->mtx_flags & MTXF_NOCOLLSTATS) == 0)
sys/kern/kern_mutex.c
1046
mtx_abort_link(mtx_t *mtx, mtx_link_t *link)
sys/kern/kern_mutex.c
1057
lock = mtx->mtx_lock;
sys/kern/kern_mutex.c
1063
if (atomic_cmpset_int(&mtx->mtx_lock, lock, nlock))
sys/kern/kern_mutex.c
108
if ((lock & MTX_EXCLUSIVE) && mtx->mtx_owner == curthread) {
sys/kern/kern_mutex.c
1088
if (mtx->mtx_exlink == link) {
sys/kern/kern_mutex.c
1089
mtx->mtx_exlink = NULL;
sys/kern/kern_mutex.c
1093
if (mtx->mtx_exlink == link)
sys/kern/kern_mutex.c
1094
mtx->mtx_exlink = link->next;
sys/kern/kern_mutex.c
111
if (atomic_cmpset_int(&mtx->mtx_lock, lock, nlock)) {
sys/kern/kern_mutex.c
1119
if (mtx->mtx_shlink == link) {
sys/kern/kern_mutex.c
1120
mtx->mtx_shlink = NULL;
sys/kern/kern_mutex.c
1124
if (mtx->mtx_shlink == link)
sys/kern/kern_mutex.c
1125
mtx->mtx_shlink = link->next;
sys/kern/kern_mutex.c
1156
atomic_clear_int(&mtx->mtx_lock, nlock);
sys/kern/kern_mutex.c
142
if (atomic_cmpset_int(&mtx->mtx_lock, lock, nlock) == 0) {
sys/kern/kern_mutex.c
151
if (mtx->mtx_exlink == NULL) {
sys/kern/kern_mutex.c
152
atomic_clear_int(&mtx->mtx_lock,
sys/kern/kern_mutex.c
156
atomic_clear_int(&mtx->mtx_lock,
sys/kern/kern_mutex.c
170
if (mtx->mtx_exlink) {
sys/kern/kern_mutex.c
171
link->next = mtx->mtx_exlink;
sys/kern/kern_mutex.c
178
mtx->mtx_exlink = link;
sys/kern/kern_mutex.c
181
atomic_clear_int(&mtx->mtx_lock, MTX_LINKSPIN);
sys/kern/kern_mutex.c
196
error = mtx_wait_link(mtx, link, flags, to);
sys/kern/kern_mutex.c
203
_mtx_lock_ex_link(mtx_t *mtx, mtx_link_t *link, int flags, int to)
sys/kern/kern_mutex.c
205
return(__mtx_lock_ex(mtx, link, flags, to));
sys/kern/kern_mutex.c
209
_mtx_lock_ex(mtx_t *mtx, int flags, int to)
sys/kern/kern_mutex.c
214
return(__mtx_lock_ex(mtx, &link, flags, to));
sys/kern/kern_mutex.c
218
_mtx_lock_ex_quick(mtx_t *mtx)
sys/kern/kern_mutex.c
223
return(__mtx_lock_ex(mtx, &link, 0, 0));
sys/kern/kern_mutex.c
236
__mtx_lock_sh(mtx_t *mtx, mtx_link_t *link, int flags, int to)
sys/kern/kern_mutex.c
245
lock = mtx->mtx_lock;
sys/kern/kern_mutex.c
250
if (atomic_cmpset_int(&mtx->mtx_lock, 0, nlock)) {
sys/kern/kern_mutex.c
261
if (atomic_cmpset_int(&mtx->mtx_lock, lock, nlock)) {
sys/kern/kern_mutex.c
292
if (atomic_cmpset_int(&mtx->mtx_lock, lock, nlock) == 0) {
sys/kern/kern_mutex.c
303
if (mtx->mtx_shlink) {
sys/kern/kern_mutex.c
304
atomic_clear_int(&mtx->mtx_lock,
sys/kern/kern_mutex.c
307
atomic_clear_int(&mtx->mtx_lock,
sys/kern/kern_mutex.c
322
if (mtx->mtx_shlink) {
sys/kern/kern_mutex.c
323
link->next = mtx->mtx_shlink;
sys/kern/kern_mutex.c
330
mtx->mtx_shlink = link;
sys/kern/kern_mutex.c
333
atomic_clear_int(&mtx->mtx_lock, MTX_LINKSPIN);
sys/kern/kern_mutex.c
348
error = mtx_wait_link(mtx, link, flags, to);
sys/kern/kern_mutex.c
355
_mtx_lock_sh_link(mtx_t *mtx, mtx_link_t *link, int flags, int to)
sys/kern/kern_mutex.c
357
return(__mtx_lock_sh(mtx, link, flags, to));
sys/kern/kern_mutex.c
361
_mtx_lock_sh(mtx_t *mtx, int flags, int to)
sys/kern/kern_mutex.c
366
return(__mtx_lock_sh(mtx, &link, flags, to));
sys/kern/kern_mutex.c
370
_mtx_lock_sh_quick(mtx_t *mtx)
sys/kern/kern_mutex.c
375
return(__mtx_lock_sh(mtx, &link, 0, 0));
sys/kern/kern_mutex.c
382
_mtx_spinlock(mtx_t *mtx)
sys/kern/kern_mutex.c
390
lock = mtx->mtx_lock;
sys/kern/kern_mutex.c
393
if (atomic_cmpset_int(&mtx->mtx_lock, 0, nlock)) {
sys/kern/kern_mutex.c
394
mtx->mtx_owner = curthread;
sys/kern/kern_mutex.c
398
mtx->mtx_owner == curthread) {
sys/kern/kern_mutex.c
401
if (atomic_cmpset_int(&mtx->mtx_lock, lock, nlock))
sys/kern/kern_mutex.c
422
_mtx_spinlock_try(mtx_t *mtx)
sys/kern/kern_mutex.c
430
lock = mtx->mtx_lock;
sys/kern/kern_mutex.c
433
if (atomic_cmpset_int(&mtx->mtx_lock, 0, nlock)) {
sys/kern/kern_mutex.c
434
mtx->mtx_owner = gd->gd_curthread;
sys/kern/kern_mutex.c
438
mtx->mtx_owner == gd->gd_curthread) {
sys/kern/kern_mutex.c
441
if (atomic_cmpset_int(&mtx->mtx_lock, lock, nlock))
sys/kern/kern_mutex.c
458
_mtx_spinlock_sh(mtx_t *mtx)
sys/kern/kern_mutex.c
466
lock = mtx->mtx_lock;
sys/kern/kern_mutex.c
470
if (atomic_cmpset_int(&mtx->mtx_lock, lock, nlock))
sys/kern/kern_mutex.c
487
_mtx_lock_ex_try(mtx_t *mtx)
sys/kern/kern_mutex.c
494
lock = mtx->mtx_lock;
sys/kern/kern_mutex.c
497
if (atomic_cmpset_int(&mtx->mtx_lock, 0, nlock)) {
sys/kern/kern_mutex.c
498
mtx->mtx_owner = curthread;
sys/kern/kern_mutex.c
503
mtx->mtx_owner == curthread) {
sys/kern/kern_mutex.c
506
if (atomic_cmpset_int(&mtx->mtx_lock, lock, nlock)) {
sys/kern/kern_mutex.c
520
_mtx_lock_sh_try(mtx_t *mtx)
sys/kern/kern_mutex.c
527
lock = mtx->mtx_lock;
sys/kern/kern_mutex.c
531
if (atomic_cmpset_int(&mtx->mtx_lock, lock, nlock))
sys/kern/kern_mutex.c
550
_mtx_downgrade(mtx_t *mtx)
sys/kern/kern_mutex.c
556
lock = mtx->mtx_lock;
sys/kern/kern_mutex.c
572
if (mtx_chain_link_sh(mtx, lock))
sys/kern/kern_mutex.c
577
if (atomic_cmpset_int(&mtx->mtx_lock, lock, nlock))
sys/kern/kern_mutex.c
597
_mtx_upgrade_try(mtx_t *mtx)
sys/kern/kern_mutex.c
604
lock = mtx->mtx_lock;
sys/kern/kern_mutex.c
609
if (atomic_cmpset_int(&mtx->mtx_lock, lock, nlock)) {
sys/kern/kern_mutex.c
610
mtx->mtx_owner = curthread;
sys/kern/kern_mutex.c
614
KKASSERT(mtx->mtx_owner == curthread);
sys/kern/kern_mutex.c
631
_mtx_unlock(mtx_t *mtx)
sys/kern/kern_mutex.c
638
lock = mtx->mtx_lock;
sys/kern/kern_mutex.c
647
KKASSERT(mtx->mtx_owner == td ||
sys/kern/kern_mutex.c
648
mtx->mtx_owner == NULL);
sys/kern/kern_mutex.c
649
mtx->mtx_owner = NULL;
sys/kern/kern_mutex.c
651
if (atomic_cmpset_int(&mtx->mtx_lock, lock, nlock))
sys/kern/kern_mutex.c
661
KKASSERT(mtx->mtx_owner == td ||
sys/kern/kern_mutex.c
662
mtx->mtx_owner == NULL);
sys/kern/kern_mutex.c
663
mtx->mtx_owner = NULL;
sys/kern/kern_mutex.c
664
if (mtx_chain_link_ex(mtx, lock))
sys/kern/kern_mutex.c
674
KKASSERT(mtx->mtx_owner == td ||
sys/kern/kern_mutex.c
675
mtx->mtx_owner == NULL);
sys/kern/kern_mutex.c
676
mtx->mtx_owner = NULL;
sys/kern/kern_mutex.c
677
if (mtx_chain_link_sh(mtx, lock))
sys/kern/kern_mutex.c
686
if (atomic_cmpset_int(&mtx->mtx_lock, lock, nlock))
sys/kern/kern_mutex.c
69
static int mtx_chain_link_ex(mtx_t *mtx, u_int olock);
sys/kern/kern_mutex.c
70
static int mtx_chain_link_sh(mtx_t *mtx, u_int olock);
sys/kern/kern_mutex.c
700
if (mtx_chain_link_ex(mtx, lock))
sys/kern/kern_mutex.c
708
if (mtx_chain_link_sh(mtx, lock))
sys/kern/kern_mutex.c
71
static void mtx_delete_link(mtx_t *mtx, mtx_link_t *link);
sys/kern/kern_mutex.c
726
if (atomic_cmpset_int(&mtx->mtx_lock, lock, nlock))
sys/kern/kern_mutex.c
750
mtx_chain_link_ex(mtx_t *mtx, u_int olock)
sys/kern/kern_mutex.c
759
if (atomic_cmpset_int(&mtx->mtx_lock, olock, nlock)) {
sys/kern/kern_mutex.c
760
link = mtx->mtx_exlink;
sys/kern/kern_mutex.c
763
mtx->mtx_exlink = NULL;
sys/kern/kern_mutex.c
766
mtx->mtx_exlink = link->next;
sys/kern/kern_mutex.c
772
mtx->mtx_owner = link->owner;
sys/kern/kern_mutex.c
791
atomic_clear_int(&mtx->mtx_lock, nlock);
sys/kern/kern_mutex.c
810
mtx_chain_link_sh(mtx_t *mtx, u_int olock)
sys/kern/kern_mutex.c
821
if (atomic_cmpset_int(&mtx->mtx_lock, olock, nlock)) {
sys/kern/kern_mutex.c
826
KKASSERT(mtx->mtx_shlink != NULL);
sys/kern/kern_mutex.c
836
for (link = mtx->mtx_shlink->next; link != mtx->mtx_shlink;
sys/kern/kern_mutex.c
841
atomic_add_int(&mtx->mtx_lock, addcount);
sys/kern/kern_mutex.c
846
while ((link = mtx->mtx_shlink) != NULL) {
sys/kern/kern_mutex.c
849
mtx->mtx_shlink = NULL;
sys/kern/kern_mutex.c
85
__mtx_lock_ex(mtx_t *mtx, mtx_link_t *link, int flags, int to)
sys/kern/kern_mutex.c
851
mtx->mtx_shlink = link->next;
sys/kern/kern_mutex.c
867
atomic_clear_int(&mtx->mtx_lock, MTX_LINKSPIN |
sys/kern/kern_mutex.c
884
mtx_delete_link(mtx_t *mtx, mtx_link_t *link)
sys/kern/kern_mutex.c
898
lock = mtx->mtx_lock;
sys/kern/kern_mutex.c
904
if (atomic_cmpset_int(&mtx->mtx_lock, lock, nlock))
sys/kern/kern_mutex.c
917
mtx->mtx_exlink = NULL;
sys/kern/kern_mutex.c
920
mtx->mtx_exlink = link->next;
sys/kern/kern_mutex.c
927
mtx->mtx_shlink = NULL;
sys/kern/kern_mutex.c
930
mtx->mtx_shlink = link->next;
sys/kern/kern_mutex.c
939
atomic_clear_int(&mtx->mtx_lock, nlock);
sys/kern/kern_mutex.c
94
lock = mtx->mtx_lock;
sys/kern/kern_mutex.c
948
mtx_wait_link(mtx_t *mtx, mtx_link_t *link, int flags, int to)
sys/kern/kern_mutex.c
953
indefinite_init(&info, mtx, mtx->mtx_ident, 1,
sys/kern/kern_mutex.c
968
mtx->mtx_ident, to);
sys/kern/kern_mutex.c
972
if ((mtx->mtx_flags & MTXF_NOCOLLSTATS) == 0)
sys/kern/kern_mutex.c
99
if (atomic_cmpset_int(&mtx->mtx_lock, 0, nlock)) {
sys/kern/kern_synch.c
851
mtxsleep(const volatile void *ident, struct mtx *mtx, int flags,
sys/kern/kern_synch.c
858
mtx_unlock(mtx);
sys/kern/kern_synch.c
860
mtx_lock_ex_quick(mtx);
sys/kern/sys_pipe.c
1275
mtx_lock(&pipe_gdlocks[gd->gd_cpuid].mtx);
sys/kern/sys_pipe.c
1278
mtx_unlock(&pipe_gdlocks[gd->gd_cpuid].mtx);
sys/kern/sys_pipe.c
175
mtx_init(&pipe_gdlocks[n].mtx, "pipekm");
sys/kern/sys_pipe.c
72
struct mtx mtx;
sys/libprop/prop_object_impl.h
295
#define _PROP_RWLOCK_DECL(x) struct mtx x;
sys/net/if.c
195
static struct mtx ifnet_mtx = MTX_INITIALIZER("ifnet");
sys/netgraph7/l2tp/ng_l2tp.c
1069
mtx_lock(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
1074
mtx_unlock(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
1083
mtx_unlock(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
1094
mtx_unlock(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
1221
mtx_init(&seq->mtx, "ng_l2tp");
sys/netgraph7/l2tp/ng_l2tp.c
1334
mtx_lock(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
1338
mtx_unlock(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
1342
mtx_unlock(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
1395
mtx_unlock(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
1415
mtx_unlock(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
146
struct mtx mtx; /* seq mutex */
sys/netgraph7/l2tp/ng_l2tp.c
1523
mtx_lock(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
1532
mtx_unlock(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
1593
mtx_lock(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
1616
mtx_unlock(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
682
mtx_uninit(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
937
mtx_lock(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
947
mtx_unlock(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
958
mtx_unlock(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
973
mtx_lock(&seq->mtx);
sys/netgraph7/l2tp/ng_l2tp.c
988
mtx_unlock(&seq->mtx);
sys/netgraph7/netflow/netflow.c
243
KKASSERT(mtx_owned(&hsh->mtx));
sys/netgraph7/netflow/netflow.c
338
mtx_init(&hsh->mtx, "hash mutex", NULL, MTX_DEF);
sys/netgraph7/netflow/netflow.c
374
mtx_destroy(&hsh->mtx);
sys/netgraph7/netflow/netflow.c
457
mtx_lock(&hsh->mtx);
sys/netgraph7/netflow/netflow.c
507
mtx_unlock(&hsh->mtx);
sys/netgraph7/netflow/netflow.c
556
if (mtx_trylock(&hsh->mtx) == 0)
sys/netgraph7/netflow/netflow.c
560
if (mtx_contested(&hsh->mtx))
sys/netgraph7/netflow/netflow.c
567
mtx_unlock(&hsh->mtx);
sys/netgraph7/netflow/netflow.c
573
mtx_unlock(&hsh->mtx);
sys/netgraph7/netflow/netflow.c
675
if (mtx_trylock(&hsh->mtx) == 0)
sys/netgraph7/netflow/netflow.c
684
if (mtx_contested(&hsh->mtx))
sys/netgraph7/netflow/netflow.c
702
mtx_unlock(&hsh->mtx);
sys/netgraph7/netflow/ng_netflow.h
250
struct mtx export_mtx;
sys/netgraph7/netflow/ng_netflow.h
260
struct mtx mtx;
sys/netgraph7/netgraph/ng_base.c
80
static struct mtx ng_nodelist_mtx; /* protects global node/hook lists */
sys/netgraph7/netgraph/ng_base.c
81
static struct mtx ngq_mtx; /* protects the queue item list */
sys/netgraph7/ng_car.c
71
struct mtx q_mtx; /* queue mutex */
sys/netgraph7/ng_device.c
93
struct mtx ngd_mtx;
sys/netgraph7/ng_fec.c
271
static struct mtx ng_fec_mtx;
sys/netgraph7/ppp/ng_ppp.c
226
struct mtx rmtx; /* recv mutex */
sys/netgraph7/ppp/ng_ppp.c
227
struct mtx xmtx; /* xmit mutex */
sys/netgraph7/pppoe/ng_pppoe.c
1697
mtx_uninit(&privp->sesshash[i].mtx);
sys/netgraph7/pppoe/ng_pppoe.c
245
struct mtx mtx;
sys/netgraph7/pppoe/ng_pppoe.c
514
mtx_lock(&privp->sesshash[hash].mtx);
sys/netgraph7/pppoe/ng_pppoe.c
523
mtx_unlock(&privp->sesshash[hash].mtx);
sys/netgraph7/pppoe/ng_pppoe.c
539
mtx_lock(&privp->sesshash[hash].mtx);
sys/netgraph7/pppoe/ng_pppoe.c
541
mtx_unlock(&privp->sesshash[hash].mtx);
sys/netgraph7/pppoe/ng_pppoe.c
551
mtx_lock(&privp->sesshash[hash].mtx);
sys/netgraph7/pppoe/ng_pppoe.c
553
mtx_unlock(&privp->sesshash[hash].mtx);
sys/netgraph7/pppoe/ng_pppoe.c
564
mtx_lock(&privp->sesshash[hash].mtx);
sys/netgraph7/pppoe/ng_pppoe.c
572
mtx_unlock(&privp->sesshash[hash].mtx);
sys/netgraph7/pppoe/ng_pppoe.c
627
mtx_init(&privp->sesshash[i].mtx, "ng_pppoe");
sys/netgraph7/pptpgre/ng_pptpgre.c
148
struct mtx mtx; /* session mutex */
sys/netgraph7/pptpgre/ng_pptpgre.c
290
mtx_init(&priv->uppersess.mtx, "ng_pptpgre usess");
sys/netgraph7/pptpgre/ng_pptpgre.c
346
mtx_init(&hpriv->mtx, "ng_pptpgre");
sys/netgraph7/pptpgre/ng_pptpgre.c
467
mtx_lock(&hpriv->mtx);
sys/netgraph7/pptpgre/ng_pptpgre.c
471
KKASSERT(mtx_notowned(&hpriv->mtx));
sys/netgraph7/pptpgre/ng_pptpgre.c
497
mtx_uninit(&hpriv->mtx);
sys/netgraph7/pptpgre/ng_pptpgre.c
520
mtx_uninit(&priv->uppersess.mtx);
sys/netgraph7/pptpgre/ng_pptpgre.c
545
KKASSERT(mtx_owned(&hpriv->mtx));
sys/netgraph7/pptpgre/ng_pptpgre.c
631
mtx_unlock(&hpriv->mtx);
sys/netgraph7/pptpgre/ng_pptpgre.c
643
mtx_unlock(&hpriv->mtx);
sys/netgraph7/pptpgre/ng_pptpgre.c
724
mtx_lock(&hpriv->mtx);
sys/netgraph7/pptpgre/ng_pptpgre.c
787
mtx_unlock(&hpriv->mtx);
sys/netgraph7/pptpgre/ng_pptpgre.c
800
mtx_unlock(&hpriv->mtx);
sys/netgraph7/pptpgre/ng_pptpgre.c
803
mtx_unlock(&hpriv->mtx);
sys/netgraph7/pptpgre/ng_pptpgre.c
810
KKASSERT(mtx_notowned(&hpriv->mtx));
sys/netgraph7/pptpgre/ng_pptpgre.c
816
mtx_unlock(&hpriv->mtx);
sys/netgraph7/pptpgre/ng_pptpgre.c
915
mtx_lock(&hpriv->mtx);
sys/netgraph7/pptpgre/ng_pptpgre.c
918
KKASSERT(mtx_notowned(&hpriv->mtx));
sys/netgraph7/socket/ng_socket.c
1060
mtx_lock(&priv->mtx);
sys/netgraph7/socket/ng_socket.c
522
mtx_lock(&pcbp->sockdata->mtx);
sys/netgraph7/socket/ng_socket.c
538
mtx_unlock(&pcbp->sockdata->mtx);
sys/netgraph7/socket/ng_socket.c
540
mtx_unlock(&pcbp->sockdata->mtx);
sys/netgraph7/socket/ng_socket.c
577
mtx_init(&priv->mtx, "ng_socket");
sys/netgraph7/socket/ng_socket.c
638
mtx_lock(&priv->mtx);
sys/netgraph7/socket/ng_socket.c
665
KKASSERT(mtx_owned(&priv->mtx));
sys/netgraph7/socket/ng_socket.c
670
mtx_uninit(&priv->mtx);
sys/netgraph7/socket/ng_socket.c
679
mtx_unlock(&priv->mtx);
sys/netgraph7/socket/ng_socket.c
683
mtx_unlock(&priv->mtx);
sys/netgraph7/socket/ng_socket.c
800
mtx_lock(&priv->mtx);
sys/netgraph7/socket/ng_socket.c
804
mtx_unlock(&priv->mtx);
sys/netgraph7/socket/ng_socketvar.h
63
struct mtx mtx; /* mtx to wait on */
sys/netinet6/nd6.c
144
struct mtx nd6_mtx = MTX_INITIALIZER("nd6");
sys/netinet6/nd6.h
323
extern struct mtx nd6_mtx;
sys/netproto/802_11/wlan/ieee80211.c
282
static struct mtx ic_list_mtx;
sys/sys/condvar.h
19
int _cv_mtx_timedwait(struct cv *, struct mtx *, int timo, int wakesig);
sys/sys/condvar.h
33
#define cv_mtx_wait(cv, mtx) \
sys/sys/condvar.h
34
_cv_mtx_timedwait((cv), (mtx), 0, 0)
sys/sys/condvar.h
35
#define cv_mtx_wait_sig(cv, mtx) \
sys/sys/condvar.h
36
_cv_mtx_timedwait((cv), (mtx), 0, 1)
sys/sys/condvar.h
37
#define cv_mtx_timedwait(cv, mtx, timeo) \
sys/sys/condvar.h
38
_cv_mtx_timedwait((cv), (mtx), (timeo), 0)
sys/sys/condvar.h
39
#define cv_mtx_timedwait_sig(cv, mtx, timeo) \
sys/sys/condvar.h
40
_cv_mtx_timedwait((cv), (mtx), (timeo), 1)
sys/sys/mutex.h
110
int _mtx_lock_ex_link(mtx_t *mtx, mtx_link_t *link, int flags, int to);
sys/sys/mutex.h
111
int _mtx_lock_ex(mtx_t *mtx, int flags, int to);
sys/sys/mutex.h
112
int _mtx_lock_sh_link(mtx_t *mtx, mtx_link_t *link, int flags, int to);
sys/sys/mutex.h
113
int _mtx_lock_sh(mtx_t *mtx, int flags, int to);
sys/sys/mutex.h
114
int _mtx_lock_ex_quick(mtx_t *mtx);
sys/sys/mutex.h
115
int _mtx_lock_sh_quick(mtx_t *mtx);
sys/sys/mutex.h
116
void _mtx_spinlock(mtx_t *mtx);
sys/sys/mutex.h
117
int _mtx_spinlock_try(mtx_t *mtx);
sys/sys/mutex.h
118
int _mtx_lock_ex_try(mtx_t *mtx);
sys/sys/mutex.h
119
int _mtx_lock_sh_try(mtx_t *mtx);
sys/sys/mutex.h
120
void _mtx_downgrade(mtx_t *mtx);
sys/sys/mutex.h
121
int _mtx_upgrade_try(mtx_t *mtx);
sys/sys/mutex.h
122
void _mtx_unlock(mtx_t *mtx);
sys/sys/mutex.h
123
void mtx_abort_link(mtx_t *mtx, mtx_link_t *link);
sys/sys/mutex.h
124
int mtx_wait_link(mtx_t *mtx, mtx_link_t *link, int flags, int to);
sys/sys/mutex.h
77
typedef struct mtx mtx_t;
sys/sys/mutex2.h
105
mtx_uninit(mtx_t *mtx)
sys/sys/mutex2.h
122
mtx_lock_ex_link(mtx_t *mtx, mtx_link_t *link, int flags, int to)
sys/sys/mutex2.h
124
if (atomic_cmpset_int(&mtx->mtx_lock, 0, MTX_EXCLUSIVE | 1) == 0)
sys/sys/mutex2.h
125
return(_mtx_lock_ex_link(mtx, link, flags, to));
sys/sys/mutex2.h
126
mtx->mtx_owner = curthread;
sys/sys/mutex2.h
137
mtx_lock(mtx_t *mtx)
sys/sys/mutex2.h
139
if (atomic_cmpset_int(&mtx->mtx_lock, 0, MTX_EXCLUSIVE | 1) == 0) {
sys/sys/mutex2.h
140
_mtx_lock_ex(mtx, 0, 0);
sys/sys/mutex2.h
143
mtx->mtx_owner = curthread;
sys/sys/mutex2.h
153
mtx_lock_ex(mtx_t *mtx, int flags, int to)
sys/sys/mutex2.h
155
if (atomic_cmpset_int(&mtx->mtx_lock, 0, MTX_EXCLUSIVE | 1) == 0)
sys/sys/mutex2.h
156
return(_mtx_lock_ex(mtx, flags, to));
sys/sys/mutex2.h
157
mtx->mtx_owner = curthread;
sys/sys/mutex2.h
162
mtx_lock_ex_quick(mtx_t *mtx)
sys/sys/mutex2.h
164
if (atomic_cmpset_int(&mtx->mtx_lock, 0, MTX_EXCLUSIVE | 1) == 0)
sys/sys/mutex2.h
165
return(_mtx_lock_ex_quick(mtx));
sys/sys/mutex2.h
166
mtx->mtx_owner = curthread;
sys/sys/mutex2.h
171
mtx_lock_sh_link(mtx_t *mtx, mtx_link_t *link, int flags, int to)
sys/sys/mutex2.h
173
if (atomic_cmpset_int(&mtx->mtx_lock, 0, 1) == 0)
sys/sys/mutex2.h
174
return(_mtx_lock_sh_link(mtx, link, flags, to));
sys/sys/mutex2.h
186
mtx_lock_sh(mtx_t *mtx, int flags, int to)
sys/sys/mutex2.h
188
if (atomic_cmpset_int(&mtx->mtx_lock, 0, 1) == 0)
sys/sys/mutex2.h
189
return(_mtx_lock_sh(mtx, flags, to));
sys/sys/mutex2.h
194
mtx_lock_sh_quick(mtx_t *mtx)
sys/sys/mutex2.h
196
if (atomic_cmpset_int(&mtx->mtx_lock, 0, 1) == 0)
sys/sys/mutex2.h
197
return(_mtx_lock_sh_quick(mtx));
sys/sys/mutex2.h
206
mtx_lock_sh_again(mtx_t *mtx)
sys/sys/mutex2.h
208
KKASSERT((mtx->mtx_lock & MTX_EXCLUSIVE) == 0 &&
sys/sys/mutex2.h
209
(mtx->mtx_lock & MTX_MASK) > 0);
sys/sys/mutex2.h
210
atomic_add_int(&mtx->mtx_lock, 1);
sys/sys/mutex2.h
218
mtx_spinlock(mtx_t *mtx)
sys/sys/mutex2.h
236
if (atomic_cmpset_int(&mtx->mtx_lock, 0, MTX_EXCLUSIVE | 1) == 0)
sys/sys/mutex2.h
237
_mtx_spinlock(mtx);
sys/sys/mutex2.h
238
mtx->mtx_owner = gd->gd_curthread;
sys/sys/mutex2.h
242
mtx_spinlock_try(mtx_t *mtx)
sys/sys/mutex2.h
257
if (atomic_cmpset_int(&mtx->mtx_lock, 0, MTX_EXCLUSIVE | 1) == 0)
sys/sys/mutex2.h
258
return(_mtx_spinlock_try(mtx));
sys/sys/mutex2.h
259
mtx->mtx_owner = gd->gd_curthread;
sys/sys/mutex2.h
271
mtx_lock_ex_try(mtx_t *mtx)
sys/sys/mutex2.h
273
if (atomic_cmpset_int(&mtx->mtx_lock, 0, MTX_EXCLUSIVE | 1) == 0)
sys/sys/mutex2.h
274
return (_mtx_lock_ex_try(mtx));
sys/sys/mutex2.h
275
mtx->mtx_owner = curthread;
sys/sys/mutex2.h
284
mtx_lock_sh_try(mtx_t *mtx)
sys/sys/mutex2.h
286
if (atomic_cmpset_int(&mtx->mtx_lock, 0, 1) == 0)
sys/sys/mutex2.h
287
return (_mtx_lock_sh_try(mtx));
sys/sys/mutex2.h
299
mtx_downgrade(mtx_t *mtx)
sys/sys/mutex2.h
303
KKASSERT((mtx->mtx_lock & MTX_EXCLUSIVE) &&
sys/sys/mutex2.h
304
mtx->mtx_owner == gd->gd_curthread);
sys/sys/mutex2.h
305
mtx->mtx_owner = NULL;
sys/sys/mutex2.h
306
if (atomic_cmpset_int(&mtx->mtx_lock, MTX_EXCLUSIVE | 1, 1) == 0)
sys/sys/mutex2.h
307
_mtx_downgrade(mtx);
sys/sys/mutex2.h
322
mtx_upgrade_try(mtx_t *mtx)
sys/sys/mutex2.h
324
if (atomic_cmpset_int(&mtx->mtx_lock, 1, MTX_EXCLUSIVE | 1)) {
sys/sys/mutex2.h
325
mtx->mtx_owner = curthread;
sys/sys/mutex2.h
328
return (_mtx_upgrade_try(mtx));
sys/sys/mutex2.h
343
mtx_unlock(mtx_t *mtx)
sys/sys/mutex2.h
346
u_int lock = mtx->mtx_lock;
sys/sys/mutex2.h
348
KKASSERT((mtx->mtx_lock & MTX_EXCLUSIVE) == 0 ||
sys/sys/mutex2.h
349
mtx->mtx_owner == gd->gd_curthread);
sys/sys/mutex2.h
351
mtx->mtx_owner = NULL;
sys/sys/mutex2.h
352
if (atomic_cmpset_int(&mtx->mtx_lock, lock, 0) == 0)
sys/sys/mutex2.h
353
_mtx_unlock(mtx);
sys/sys/mutex2.h
355
if (atomic_cmpset_int(&mtx->mtx_lock, lock, 0) == 0)
sys/sys/mutex2.h
356
_mtx_unlock(mtx);
sys/sys/mutex2.h
358
_mtx_unlock(mtx);
sys/sys/mutex2.h
363
mtx_unlock_ex(mtx_t *mtx)
sys/sys/mutex2.h
366
u_int lock = mtx->mtx_lock;
sys/sys/mutex2.h
368
KKASSERT((mtx->mtx_lock & MTX_EXCLUSIVE) == 0 ||
sys/sys/mutex2.h
369
mtx->mtx_owner == gd->gd_curthread);
sys/sys/mutex2.h
371
mtx->mtx_owner = NULL;
sys/sys/mutex2.h
372
if (atomic_cmpset_int(&mtx->mtx_lock, lock, 0) == 0)
sys/sys/mutex2.h
373
_mtx_unlock(mtx);
sys/sys/mutex2.h
375
_mtx_unlock(mtx);
sys/sys/mutex2.h
380
mtx_unlock_sh(mtx_t *mtx)
sys/sys/mutex2.h
382
if (atomic_cmpset_int(&mtx->mtx_lock, 1, 0) == 0)
sys/sys/mutex2.h
383
_mtx_unlock(mtx);
sys/sys/mutex2.h
390
mtx_spinunlock(mtx_t *mtx)
sys/sys/mutex2.h
394
mtx_unlock(mtx);
sys/sys/mutex2.h
406
mtx_islocked(mtx_t *mtx)
sys/sys/mutex2.h
408
return(mtx->mtx_lock != 0);
sys/sys/mutex2.h
420
mtx_islocked_ex(mtx_t *mtx)
sys/sys/mutex2.h
422
return((mtx->mtx_lock & MTX_EXCLUSIVE) != 0);
sys/sys/mutex2.h
429
mtx_notlocked(mtx_t *mtx)
sys/sys/mutex2.h
431
return(mtx->mtx_lock == 0);
sys/sys/mutex2.h
439
mtx_notlocked_ex(mtx_t *mtx)
sys/sys/mutex2.h
441
return((mtx->mtx_lock & MTX_EXCLUSIVE) != 0);
sys/sys/mutex2.h
449
mtx_owned(mtx_t *mtx)
sys/sys/mutex2.h
451
return((mtx->mtx_lock & MTX_EXCLUSIVE) && mtx->mtx_owner == curthread);
sys/sys/mutex2.h
459
mtx_notowned(mtx_t *mtx)
sys/sys/mutex2.h
461
return((mtx->mtx_lock & MTX_EXCLUSIVE) == 0 ||
sys/sys/mutex2.h
462
mtx->mtx_owner != curthread);
sys/sys/mutex2.h
474
mtx_lockrefs(mtx_t *mtx)
sys/sys/mutex2.h
476
return(mtx->mtx_lock & MTX_MASK);
sys/sys/mutex2.h
486
mtx_lock_temp_release(mtx_t *mtx)
sys/sys/mutex2.h
490
state = (mtx->mtx_lock & MTX_EXCLUSIVE);
sys/sys/mutex2.h
491
mtx_unlock(mtx);
sys/sys/mutex2.h
502
mtx_lock_temp_restore(mtx_t *mtx, mtx_state_t state)
sys/sys/mutex2.h
505
mtx_lock_ex_quick(mtx);
sys/sys/mutex2.h
507
mtx_lock_sh_quick(mtx);
sys/sys/mutex2.h
53
mtx_init(mtx_t *mtx, const char *ident)
sys/sys/mutex2.h
55
mtx->mtx_lock = 0;
sys/sys/mutex2.h
56
mtx->mtx_flags = 0;
sys/sys/mutex2.h
57
mtx->mtx_owner = NULL;
sys/sys/mutex2.h
58
mtx->mtx_exlink = NULL;
sys/sys/mutex2.h
59
mtx->mtx_shlink = NULL;
sys/sys/mutex2.h
60
mtx->mtx_ident = ident;
sys/sys/mutex2.h
64
mtx_init_flags(mtx_t *mtx, const char *ident, uint32_t flags)
sys/sys/mutex2.h
66
mtx->mtx_lock = 0;
sys/sys/mutex2.h
67
mtx->mtx_flags = flags;
sys/sys/mutex2.h
68
mtx->mtx_owner = NULL;
sys/sys/mutex2.h
69
mtx->mtx_exlink = NULL;
sys/sys/mutex2.h
70
mtx->mtx_shlink = NULL;
sys/sys/mutex2.h
71
mtx->mtx_ident = ident;
sys/sys/systm.h
139
struct mtx;
sys/sys/systm.h
416
int mtxsleep(const volatile void *, struct mtx *, int, const char *, int)
sys/vfs/autofs/autofs.h
143
struct mtx sc_lock;
sys/vfs/ext2fs/ext2_mount.h
66
struct mtx um_lock; /* Protects ext2mount & fs */
sys/vfs/ext2fs/ext2fs.h
454
#define mtx_assert(mtx, x) KKASSERT(mtx_islocked(mtx))
sys/vfs/fuse/fuse.h
113
struct mtx node_lock;
sys/vfs/fuse/fuse.h
88
struct mtx mnt_lock;
sys/vfs/fuse/fuse.h
89
struct mtx ipc_lock;
sys/vfs/fuse/fuse.h
90
struct mtx ino_lock;
sys/vfs/nfs/nfs.h
473
struct mtx ns_solock;
sys/vfs/nfs/nfs_socket.c
2095
mtx_t *mtx = &nmp->nm_txlock;
sys/vfs/nfs/nfs_socket.c
2107
while ((error = mtx_lock_ex_try(mtx)) != 0) {
sys/vfs/nfs/nfs_socket.c
2112
error = mtx_lock_ex(mtx, slpflag, slptimeo);
sys/vfs/nfs/nfs_socket.c
2123
mtx_unlock(mtx);
sys/vfs/nfs/nfs_socket.c
2146
mtx_t *mtx = &nmp->nm_rxlock;
sys/vfs/nfs/nfs_socket.c
2169
while ((error = mtx_lock_ex_try(mtx)) != 0) {
sys/vfs/nfs/nfs_socket.c
2184
error = mtx_lock_ex_link(mtx, &rep->r_link,
sys/vfs/nfs/nfs_socket.c
2187
error = mtx_lock_ex(mtx, slpflag, slptimeo);
sys/vfs/nfs/nfs_socket.c
2210
mtx_unlock(mtx);
sys/vfs/nfs/nfs_syscalls.c
918
mtx_t *mtx = &slp->ns_solock;
sys/vfs/nfs/nfs_syscalls.c
921
mtx_lock_ex(mtx, 0, 0);
sys/vfs/nfs/nfs_syscalls.c
923
} else if (mtx_lock_ex_try(mtx) == 0) {
sys/vfs/nfs/nfs_syscalls.c
936
mtx_t *mtx = &slp->ns_solock;
sys/vfs/nfs/nfs_syscalls.c
938
mtx_unlock(mtx);
sys/vfs/nfs/nfsmount.h
61
struct mtx nm_rxlock; /* receive socket lock */
sys/vfs/nfs/nfsmount.h
62
struct mtx nm_txlock; /* send socket lock */
sys/vm/device_pager.c
82
static struct mtx dev_pager_mtx = MTX_INITIALIZER("devpgr");
sys/vm/vm_swap.c
73
static struct mtx swap_mtx = MTX_INITIALIZER("swpmtx");
test/debug/umtx.c
114
userland_rel_mutex(mtx);
test/debug/umtx.c
120
userland_get_mutex(struct umtx *mtx, int timo)
test/debug/umtx.c
125
v = mtx->lock;
test/debug/umtx.c
130
if (cmp_and_exg(&mtx->lock, v, v | MTX_LOCKED) == 0) {
test/debug/umtx.c
131
cleanup_mtx_held = mtx;
test/debug/umtx.c
139
if (cmp_and_exg(&mtx->lock, v, v + 1) == 0) {
test/debug/umtx.c
140
cleanup_mtx_contested = mtx;
test/debug/umtx.c
141
return(userland_get_mutex_contested(mtx, timo));
test/debug/umtx.c
148
userland_get_mutex_contested(struct umtx *mtx, int timo)
test/debug/umtx.c
153
v = mtx->lock;
test/debug/umtx.c
160
if (cmp_and_exg(&mtx->lock, v, (v - 1) | MTX_LOCKED) == 0) {
test/debug/umtx.c
162
cleanup_mtx_held = mtx;
test/debug/umtx.c
172
umtx_sleep(&mtx->lock, v, 0);
test/debug/umtx.c
174
if (umtx_sleep(&mtx->lock, v, 1000000) < 0) {
test/debug/umtx.c
177
userland_rel_mutex_contested(mtx);
test/debug/umtx.c
187
userland_rel_mutex(struct umtx *mtx)
test/debug/umtx.c
192
v = mtx->lock;
test/debug/umtx.c
199
if (cmp_and_exg(&mtx->lock, MTX_LOCKED, 0) == 0) {
test/debug/umtx.c
211
if (cmp_and_exg(&mtx->lock, v, v & ~MTX_LOCKED) == 0) {
test/debug/umtx.c
212
umtx_wakeup(&mtx->lock, 1);
test/debug/umtx.c
222
userland_rel_mutex_contested(struct umtx *mtx)
test/debug/umtx.c
227
if (cmp_and_exg(&mtx->lock, v, v - 1) == 0)
test/debug/umtx.c
229
v = mtx->lock;
test/debug/umtx.c
28
static int userland_get_mutex(struct umtx *mtx, int timo);
test/debug/umtx.c
29
static int userland_get_mutex_contested(struct umtx *mtx, int timo);
test/debug/umtx.c
30
static void userland_rel_mutex(struct umtx *mtx);
test/debug/umtx.c
31
static void userland_rel_mutex_contested(struct umtx *mtx);
test/debug/umtx.c
52
struct umtx *mtx;
test/debug/umtx.c
98
mtx = (struct umtx *)(str + ((int)off & pgmask));
test/debug/umtx.c
99
if (userland_get_mutex(mtx, timo) < 0) {
test/sysperf/mutex1.c
25
mtx = mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANON, -1, 0);
test/sysperf/mutex1.c
26
counter = mtx + 64;
test/sysperf/mutex1.c
35
*mtx = 0;
test/sysperf/mutex1.c
9
int *mtx;
test/sysperf/mutex2.c
25
mtx = mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANON, -1, 0);
test/sysperf/mutex2.c
26
counter = mtx + 64;
test/sysperf/mutex2.c
35
*mtx = 0;
test/sysperf/mutex2.c
9
int *mtx;
test/sysperf/mutex3.c
13
int *mtx;
test/sysperf/mutex3.c
23
while (atomic_swap_int(mtx, 1) != 0) {
test/sysperf/mutex3.c
34
if (*mtx == 0)
test/sysperf/mutex3.c
35
*mtx = 1;
test/sysperf/mutex3.c
38
} else if (atomic_swap_int(mtx, 1) != 0) {
test/sysperf/mutex3.c
47
*mtx = 0;
test/sysperf/mutex3.c
64
mtx = mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANON, -1, 0);
test/sysperf/mutex3.c
65
counter = mtx + 64;
test/sysperf/mutex3.c
74
*mtx = 0;
test/sysperf/mutex4.c
18
int *mtx;
test/sysperf/mutex4.c
31
atomic_set_int(mtx, 1);
test/sysperf/mutex4.c
32
*mtx = 2;
test/sysperf/mutex4.c
33
*mtx = 3;
test/sysperf/mutex4.c
55
mtx = mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANON, -1, 0);
test/sysperf/mutex4.c
56
counter = mtx + 64;
test/sysperf/mutex4.c
67
*mtx = 0;
test/sysperf/umtx1.c
16
u_int mtx;
test/sysperf/umtx1.c
53
while (mtx == 0)
test/sysperf/umtx1.c
54
umtx_sleep(&mtx, 0, 0);
test/sysperf/umtx1.c
55
if (atomic_swap_int(&mtx, 0) == 2) {
test/sysperf/umtx1.c
56
umtx_wakeup(&mtx, 0);
test/sysperf/umtx1.c
60
umtx_wakeup(&mtx, 0);
test/sysperf/umtx1.c
73
atomic_swap_int(&mtx, 1);
test/sysperf/umtx1.c
74
umtx_wakeup(&mtx, 0);
test/sysperf/umtx1.c
76
while (mtx == 1)
test/sysperf/umtx1.c
77
umtx_sleep(&mtx, 1, 0);
test/sysperf/umtx1.c
81
atomic_swap_int(&mtx, 1);
test/sysperf/umtx1.c
82
umtx_wakeup(&mtx, 0);
test/sysperf/umtx1.c
83
while (mtx == 1)
test/sysperf/umtx1.c
84
umtx_sleep(&mtx, 1, 0);
test/sysperf/umtx1.c
89
atomic_swap_int(&mtx, 2);
test/sysperf/umtx1.c
90
umtx_wakeup(&mtx, 0);
test/sysperf/umtx1.c
91
while (mtx == 2)
test/sysperf/umtx1.c
92
umtx_sleep(&mtx, 2, 0);
usr.sbin/makefs/hammer2/hammer2_compat.h
761
hammer2_mtx_ex(hammer2_mtx_t *mtx)
usr.sbin/makefs/hammer2/hammer2_compat.h
763
mtx->mtx_lock |= MTX_EXCLUSIVE;
usr.sbin/makefs/hammer2/hammer2_compat.h
764
mtx->mtx_lock++;
usr.sbin/makefs/hammer2/hammer2_compat.h
770
hammer2_mtx_ex_try(hammer2_mtx_t *mtx)
usr.sbin/makefs/hammer2/hammer2_compat.h
772
mtx->mtx_lock |= MTX_EXCLUSIVE;
usr.sbin/makefs/hammer2/hammer2_compat.h
773
mtx->mtx_lock++;
usr.sbin/makefs/hammer2/hammer2_compat.h
779
hammer2_mtx_sh(hammer2_mtx_t *mtx)
usr.sbin/makefs/hammer2/hammer2_compat.h
781
mtx->mtx_lock |= MTX_EXCLUSIVE;
usr.sbin/makefs/hammer2/hammer2_compat.h
782
mtx->mtx_lock++;
usr.sbin/makefs/hammer2/hammer2_compat.h
788
hammer2_mtx_sh_again(hammer2_mtx_t *mtx)
usr.sbin/makefs/hammer2/hammer2_compat.h
790
mtx->mtx_lock |= MTX_EXCLUSIVE;
usr.sbin/makefs/hammer2/hammer2_compat.h
791
mtx->mtx_lock++;
usr.sbin/makefs/hammer2/hammer2_compat.h
796
hammer2_mtx_sh_try(hammer2_mtx_t *mtx)
usr.sbin/makefs/hammer2/hammer2_compat.h
798
mtx->mtx_lock |= MTX_EXCLUSIVE;
usr.sbin/makefs/hammer2/hammer2_compat.h
799
mtx->mtx_lock++;
usr.sbin/makefs/hammer2/hammer2_compat.h
805
hammer2_mtx_unlock(hammer2_mtx_t *mtx)
usr.sbin/makefs/hammer2/hammer2_compat.h
807
mtx->mtx_lock &= ~MTX_EXCLUSIVE;
usr.sbin/makefs/hammer2/hammer2_compat.h
808
mtx->mtx_lock--;
usr.sbin/makefs/hammer2/hammer2_compat.h
813
hammer2_mtx_upgrade_try(hammer2_mtx_t *mtx)
usr.sbin/makefs/hammer2/hammer2_compat.h
820
hammer2_mtx_downgrade(hammer2_mtx_t *mtx)
usr.sbin/makefs/hammer2/hammer2_compat.h
827
hammer2_mtx_owned(hammer2_mtx_t *mtx)
usr.sbin/makefs/hammer2/hammer2_compat.h
834
hammer2_mtx_init(hammer2_mtx_t *mtx, const char *ident)
usr.sbin/makefs/hammer2/hammer2_compat.h
836
mtx->mtx_lock = 0;
usr.sbin/makefs/hammer2/hammer2_compat.h
841
hammer2_mtx_temp_release(hammer2_mtx_t *mtx)
usr.sbin/makefs/hammer2/hammer2_compat.h
848
hammer2_mtx_temp_restore(hammer2_mtx_t *mtx, hammer2_mtx_state_t state)
usr.sbin/makefs/hammer2/hammer2_compat.h
854
hammer2_mtx_refs(hammer2_mtx_t *mtx)
usr.sbin/makefs/hammer2/hammer2_compat.h
856
return (mtx->mtx_lock & MTX_MASK);
usr.sbin/makefs/hammer2/hammer2_compat.h
861
hammer2_spin_init(hammer2_spin_t *mtx, const char *ident)
usr.sbin/makefs/hammer2/hammer2_compat.h
863
mtx->lock = 0;
usr.sbin/makefs/hammer2/hammer2_compat.h
868
hammer2_spin_sh(hammer2_spin_t *mtx)
usr.sbin/makefs/hammer2/hammer2_compat.h
870
mtx->lock++;
usr.sbin/makefs/hammer2/hammer2_compat.h
875
hammer2_spin_ex(hammer2_spin_t *mtx)
usr.sbin/makefs/hammer2/hammer2_compat.h
877
mtx->lock++;
usr.sbin/makefs/hammer2/hammer2_compat.h
882
hammer2_spin_unsh(hammer2_spin_t *mtx)
usr.sbin/makefs/hammer2/hammer2_compat.h
884
mtx->lock--;
usr.sbin/makefs/hammer2/hammer2_compat.h
889
hammer2_spin_unex(hammer2_spin_t *mtx)
usr.sbin/makefs/hammer2/hammer2_compat.h
891
mtx->lock--;