Searched refs:state_mtx (Results 1 – 3 of 3) sorted by relevance
/freebsd/sys/tests/epoch/ |
H A D | epoch_test.c | 54 static struct mtx state_mtx __aligned(CACHE_LINE_SIZE*2); 55 MTX_SYSINIT(state_mtx, &state_mtx, "epoch state mutex", MTX_DEF); 115 mtx_lock(&state_mtx); in testloop() 117 msleep(&state_mtx, &state_mtx, 0, "epoch start wait", 0); in testloop() 120 mtx_unlock(&state_mtx); in testloop() 124 mtx_lock(&state_mtx); in testloop() 127 mtx_unlock(&state_mtx); in testloop() 177 mtx_lock(&state_mtx); in epochtest_execute() 179 wakeup(&state_mtx); in epochtest_execute() 180 mtx_unlock(&state_mtx); in epochtest_execute() [all …]
|
/freebsd/sys/dev/ata/ |
H A D | ata-all.c | 110 bzero(&ch->state_mtx, sizeof(struct mtx)); in ata_attach() 111 mtx_init(&ch->state_mtx, "ATA state lock", NULL, MTX_DEF); in ata_attach() 174 mtx_lock(&ch->state_mtx); in ata_attach() 184 device_get_unit(dev), &ch->state_mtx, 1, 0, devq); in ata_attach() 202 mtx_unlock(&ch->state_mtx); in ata_attach() 212 mtx_unlock(&ch->state_mtx); in ata_attach() 228 mtx_lock(&ch->state_mtx); in ata_detach() 230 mtx_unlock(&ch->state_mtx); in ata_detach() 236 mtx_lock(&ch->state_mtx); in ata_detach() 242 mtx_unlock(&ch->state_mtx); in ata_detach() [all …]
|
H A D | ata-all.h | 428 struct mtx state_mtx; /* state lock */ member
|