/freebsd-11-stable/sys/dev/iscsi/ |
H A D | icl.c | 68 struct sx sc_lock; member in struct:icl_softc 99 sx_slock(&sc->sc_lock); 107 sx_sunlock(&sc->sc_lock); 121 sx_assert(&sc->sc_lock, SA_LOCKED); 171 sx_slock(&sc->sc_lock); 174 sx_sunlock(&sc->sc_lock); 179 sx_sunlock(&sc->sc_lock); 190 sx_slock(&sc->sc_lock); 193 sx_sunlock(&sc->sc_lock); 198 sx_sunlock(&sc->sc_lock); [all...] |
H A D | iscsi.c | 433 sx_xlock(&sc->sc_lock); 435 sx_xunlock(&sc->sc_lock); 1320 sx_slock(&sc->sc_lock); 1338 error = cv_wait_sig(&sc->sc_cv, &sc->sc_lock); 1340 sx_sunlock(&sc->sc_lock); 1365 sx_sunlock(&sc->sc_lock); 1369 sx_sunlock(&sc->sc_lock); 1382 sx_slock(&sc->sc_lock); 1392 sx_sunlock(&sc->sc_lock); 1399 sx_sunlock(&sc->sc_lock); [all...] |
H A D | iscsi.h | 129 struct sx sc_lock; member in struct:iscsi_softc
|
/freebsd-11-stable/sys/mips/nlm/dev/net/ |
H A D | xlpge.h | 112 struct mtx sc_lock; member in struct:nlm_xlpge_softc 132 mtx_init(&(_sc)->sc_lock, _name, MTX_NETWORK_LOCK, MTX_DEF) 133 #define XLPGE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->sc_lock) 134 #define XLPGE_LOCK(_sc) mtx_lock(&(_sc)->sc_lock) 135 #define XLPGE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_lock) 136 #define XLPGE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->sc_lock, MA_OWNED)
|
/freebsd-11-stable/sys/dev/mse/ |
H A D | msevar.h | 69 struct mtx sc_lock; member in struct:mse_softc 78 #define MSE_LOCK(sc) mtx_lock(&(sc)->sc_lock) 79 #define MSE_UNLOCK(sc) mtx_unlock(&(sc)->sc_lock) 80 #define MSE_ASSERT_LOCKED(sc) mtx_assert(&(sc)->sc_lock, MA_OWNED)
|
H A D | mse.c | 126 mtx_init(&sc->sc_lock, "mse", NULL, MTX_DEF); 127 callout_init_mtx(&sc->sc_callout, &sc->sc_lock, 0); 134 mtx_destroy(&sc->sc_lock); 142 mtx_destroy(&sc->sc_lock); 183 mtx_destroy(&sc->sc_lock); 262 error = mtx_sleep(sc, &sc->sc_lock, MSEPRI | PCATCH, "mseread", 277 error = mtx_sleep(sc, &sc->sc_lock, MSEPRI | PCATCH,
|
/freebsd-11-stable/sys/dev/dpaa/ |
H A D | if_dtsec.h | 39 #define DTSEC_LOCK(sc) mtx_lock(&(sc)->sc_lock) 40 #define DTSEC_UNLOCK(sc) mtx_unlock(&(sc)->sc_lock) 41 #define DTSEC_LOCK_ASSERT(sc) mtx_assert(&(sc)->sc_lock, MA_OWNED) 55 struct mtx sc_lock; member in struct:dtsec_softc
|
/freebsd-11-stable/sys/dev/hme/ |
H A D | if_hmevar.h | 140 struct mtx sc_lock; member in struct:hme_softc 143 #define HME_LOCK(_sc) mtx_lock(&(_sc)->sc_lock) 144 #define HME_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_lock) 145 #define HME_LOCK_ASSERT(_sc, _what) mtx_assert(&(_sc)->sc_lock, (_what))
|
/freebsd-11-stable/sys/fs/autofs/ |
H A D | autofs.c | 182 sx_init(&autofs_softc->sc_lock, "autofslk"); 203 sx_xlock(&autofs_softc->sc_lock); 205 sx_xunlock(&autofs_softc->sc_lock); 214 sx_xunlock(&autofs_softc->sc_lock); 280 sx_xlock(&autofs_softc->sc_lock); 291 sx_xunlock(&autofs_softc->sc_lock); 397 sx_assert(&autofs_softc->sc_lock, SA_XLOCKED); 456 &autofs_softc->sc_lock); 464 cv_wait(&autofs_softc->sc_cv, &autofs_softc->sc_lock); 480 * Unlock the sc_lock, s [all...] |
H A D | autofs_vfsops.c | 142 sx_xlock(&autofs_softc->sc_lock); 151 sx_xunlock(&autofs_softc->sc_lock);
|
/freebsd-11-stable/sys/i386/isa/ |
H A D | spic.c | 109 struct mtx sc_lock; member in struct:spic_softc 341 mtx_init(&sc->sc_lock, "spic", NULL, MTX_DEF); 342 callout_init_mtx(&sc->sc_timeout, &sc->sc_lock, 0); 366 mtx_assert(&sc->sc_lock, MA_OWNED); 459 mtx_lock(&sc->sc_lock); 461 mtx_unlock(&sc->sc_lock); 470 mtx_unlock(&sc->sc_lock); 480 mtx_lock(&sc->sc_lock); 485 mtx_unlock(&sc->sc_lock); 501 mtx_lock(&sc->sc_lock); [all...] |
/freebsd-11-stable/sys/geom/raid3/ |
H A D | g_raid3_ctl.c | 64 sx_xlock(&sc->sc_lock); 78 sx_assert(&sc->sc_lock, SX_XLOCKED); 195 sx_xunlock(&sc->sc_lock); 258 sx_xunlock(&sc->sc_lock); 293 sx_xunlock(&sc->sc_lock); 299 sx_xunlock(&sc->sc_lock); 305 sx_xunlock(&sc->sc_lock); 324 sx_xunlock(&sc->sc_lock); 330 sx_xunlock(&sc->sc_lock); 379 sx_xunlock(&sc->sc_lock); [all...] |
H A D | g_raid3.c | 317 sx_assert(&sc->sc_lock, SX_XLOCKED); 319 sx_xunlock(&sc->sc_lock); 327 sx_xlock(&sc->sc_lock); 358 sx_assert(&sc->sc_lock, SX_XLOCKED); 387 sx_assert(&sc->sc_lock, SX_LOCKED); 573 sx_assert(&sc->sc_lock, SX_XLOCKED); 609 sx_assert(&sc->sc_lock, SX_XLOCKED); 651 sx_xunlock(&sc->sc_lock); 652 sx_destroy(&sc->sc_lock); 681 sx_assert(&sc->sc_lock, SX_LOCKE [all...] |
/freebsd-11-stable/sys/dev/iicbus/ |
H A D | ad7418.c | 69 struct sx sc_lock; member in struct:ad7418_softc 94 sx_xlock(&sc->sc_lock); 97 sx_xunlock(&sc->sc_lock); 107 sx_xlock(&sc->sc_lock); 110 sx_xunlock(&sc->sc_lock); 125 sx_init(&sc->sc_lock, "ad7418"); 205 sx_assert(&sc->sc_lock, SA_XLOCKED);
|
/freebsd-11-stable/sys/geom/mirror/ |
H A D | g_mirror_ctl.c | 60 sx_xlock(&sc->sc_lock); 73 sx_assert(&sc->sc_lock, SX_XLOCKED); 196 sx_xunlock(&sc->sc_lock); 204 sx_xunlock(&sc->sc_lock); 215 sx_xunlock(&sc->sc_lock); 222 sx_xunlock(&sc->sc_lock); 227 sx_xunlock(&sc->sc_lock); 232 sx_xunlock(&sc->sc_lock); 294 sx_xunlock(&sc->sc_lock); 437 sx_xlock(&sc->sc_lock); [all...] |
/freebsd-11-stable/lib/libthr/thread/ |
H A D | thr_sleepq.c | 42 struct umutex sc_lock; member in struct:sleepqueue_chain 57 _thr_umutex_init(&sc_table[i].sc_lock); 85 THR_LOCK_ACQUIRE_SPIN(curthread, &sc->sc_lock); 95 THR_LOCK_RELEASE(curthread, &sc->sc_lock);
|
/freebsd-11-stable/sys/dev/snc/ |
H A D | dp83932var.h | 203 struct mtx sc_lock; member in struct:snc_softc 208 #define SNC_LOCK(sc) mtx_lock(&(sc)->sc_lock) 209 #define SNC_UNLOCK(sc) mtx_unlock(&(sc)->sc_lock) 210 #define SNC_ASSERT_LOCKED(sc) mtx_assert(&(sc)->sc_lock, MA_OWNED)
|
H A D | if_snc.c | 218 mtx_init(&sc->sc_lock, device_get_nameunit(dev), MTX_NETWORK_LOCK, 220 callout_init_mtx(&sc->sc_timer, &sc->sc_lock, 0); 224 mtx_destroy(&sc->sc_lock); 234 mtx_destroy(&sc->sc_lock);
|
/freebsd-11-stable/sys/geom/nop/ |
H A D | g_nop.h | 82 struct mtx sc_lock; member in struct:g_nop_softc
|
/freebsd-11-stable/sys/kern/ |
H A D | subr_sleepqueue.c | 134 struct mtx sc_lock; /* Spin lock for this chain. */ member in struct:sleepqueue_chain 214 mtx_init(&sleepq_chains[i].sc_lock, "sleepq chain", NULL, 256 mtx_lock_spin(&sc->sc_lock); 272 mtx_assert(&sc->sc_lock, MA_OWNED); 288 mtx_unlock_spin(&sc->sc_lock); 307 mtx_assert(&sc->sc_lock, MA_OWNED); 387 mtx_assert(&sc->sc_lock, MA_OWNED); 439 mtx_assert(&sc->sc_lock, MA_OWNED); 455 mtx_unlock_spin(&sc->sc_lock); 469 mtx_lock_spin(&sc->sc_lock); [all...] |
/freebsd-11-stable/sys/dev/esp/ |
H A D | ncr53c9xvar.h | 378 struct mtx sc_lock; /* driver mutex */ member in struct:ncr53c9x_softc 467 mtx_init(&(_sc)->sc_lock, "ncr", "ncr53c9x lock", MTX_DEF); 468 #define NCR_LOCK_INITIALIZED(_sc) mtx_initialized(&(_sc)->sc_lock) 469 #define NCR_LOCK(_sc) mtx_lock(&(_sc)->sc_lock) 470 #define NCR_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_lock) 471 #define NCR_LOCK_ASSERT(_sc, _what) mtx_assert(&(_sc)->sc_lock, (_what)) 472 #define NCR_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->sc_lock)
|
/freebsd-11-stable/sys/dev/auxio/ |
H A D | auxio.c | 116 struct mtx sc_lock; member in struct:auxio_softc 171 mtx_init(&sc->sc_lock, "auxio mtx", NULL, MTX_DEF) 172 #define AUXIO_LOCK(sc) mtx_lock(&sc->sc_lock) 173 #define AUXIO_UNLOCK(sc) mtx_unlock(&sc->sc_lock) 174 #define AUXIO_LOCK_DESTROY(sc) mtx_destroy(&sc->sc_lock)
|
/freebsd-11-stable/sys/geom/raid/ |
H A D | g_raid_ctl.c | 131 sx_xlock(&sc->sc_lock); 144 sx_xunlock(&sc->sc_lock); 181 sx_xlock(&sc->sc_lock); 216 sx_xlock(&sc->sc_lock); 222 sx_xunlock(&sc->sc_lock);
|
H A D | g_raid.c | 626 sx_xlocked(&sc->sc_lock) ? M_WAITOK : M_NOWAIT); 642 sx_assert(&sc->sc_lock, SX_XLOCKED); 644 sx_xunlock(&sc->sc_lock); 652 sx_xlock(&sc->sc_lock); 661 sx_assert(&sc->sc_lock, SX_XLOCKED); 684 sx_assert(&sc->sc_lock, SX_XLOCKED); 707 sx_assert(&sc->sc_lock, SX_LOCKED); 729 sx_assert(&sc->sc_lock, SX_LOCKED); 754 sx_assert(&sc->sc_lock, SX_LOCKED); 916 sx_assert(&sc->sc_lock, SX_XLOCKE [all...] |
/freebsd-11-stable/sys/dev/xen/netback/ |
H A D | netback.c | 502 struct mtx sc_lock; member in struct:xnb_softc 1059 mtx_unlock(&xnb->sc_lock); 1067 mtx_lock(&xnb->sc_lock); 1071 mtx_unlock(&xnb->sc_lock); 1074 mtx_lock(&xnb->sc_lock); 1193 mtx_init(&xnb->sc_lock, "xnb_softc", "xen netback softc lock", MTX_DEF); 1337 mtx_lock(&xnb->sc_lock); 1339 msleep(xnb, &xnb->sc_lock, /*wakeup prio unchanged*/0, 1342 mtx_unlock(&xnb->sc_lock); 1347 mtx_destroy(&xnb->sc_lock); [all...] |