/freebsd-10.1-release/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-10.1-release/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-10.1-release/sys/fs/autofs/ |
H A D | autofs.c | 171 sx_init(&autofs_softc->sc_lock, "autofslk"); 192 sx_xlock(&autofs_softc->sc_lock); 194 sx_xunlock(&autofs_softc->sc_lock); 203 sx_xunlock(&autofs_softc->sc_lock); 269 sx_xlock(&autofs_softc->sc_lock); 279 sx_xunlock(&autofs_softc->sc_lock); 371 sx_assert(&autofs_softc->sc_lock, SA_XLOCKED); 429 &autofs_softc->sc_lock); 442 cv_wait(&autofs_softc->sc_cv, &autofs_softc->sc_lock); 458 sx_xunlock(&autofs_softc->sc_lock); [all...] |
H A D | autofs_vfsops.c | 131 sx_xlock(&autofs_softc->sc_lock); 140 sx_xunlock(&autofs_softc->sc_lock);
|
/freebsd-10.1-release/sys/geom/nop/ |
H A D | g_nop.h | 68 struct mtx sc_lock; member in struct:g_nop_softc
|
/freebsd-10.1-release/sys/dev/smbus/ |
H A D | smb.c | 54 struct mtx sc_lock; member in struct:smb_softc 121 mtx_init(&sc->sc_lock, device_get_nameunit(dev), NULL, MTX_DEF); 133 mtx_destroy(&sc->sc_lock); 143 mtx_lock(&sc->sc_lock); 145 mtx_unlock(&sc->sc_lock); 150 mtx_unlock(&sc->sc_lock); 160 mtx_lock(&sc->sc_lock); 163 mtx_unlock(&sc->sc_lock);
|
/freebsd-10.1-release/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 | 327 sx_assert(&sc->sc_lock, SX_XLOCKED); 329 sx_xunlock(&sc->sc_lock); 337 sx_xlock(&sc->sc_lock); 368 sx_assert(&sc->sc_lock, SX_XLOCKED); 397 sx_assert(&sc->sc_lock, SX_LOCKED); 583 sx_assert(&sc->sc_lock, SX_XLOCKED); 619 sx_assert(&sc->sc_lock, SX_XLOCKED); 661 sx_xunlock(&sc->sc_lock); 662 sx_destroy(&sc->sc_lock); 691 sx_assert(&sc->sc_lock, SX_LOCKE [all...] |
/freebsd-10.1-release/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); 123 sx_init(&sc->sc_lock, "ad7418"); 203 sx_assert(&sc->sc_lock, SA_XLOCKED);
|
H A D | icee.c | 51 struct sx sc_lock; /* basically a perimeter lock */ member in struct:icee_softc 60 #define ICEE_LOCK(_sc) sx_xlock(&(_sc)->sc_lock) 61 #define ICEE_UNLOCK(_sc) sx_xunlock(&(_sc)->sc_lock) 62 #define ICEE_LOCK_INIT(_sc) sx_init(&_sc->sc_lock, "icee") 63 #define ICEE_LOCK_DESTROY(_sc) sx_destroy(&_sc->sc_lock); 64 #define ICEE_ASSERT_LOCKED(_sc) sx_assert(&_sc->sc_lock, SA_XLOCKED); 65 #define ICEE_ASSERT_UNLOCKED(_sc) sx_assert(&_sc->sc_lock, SA_UNLOCKED);
|
H A D | iic.c | 59 struct sx sc_lock; member in struct:iic_softc 62 #define IIC_LOCK(sc) sx_xlock(&(sc)->sc_lock) 63 #define IIC_UNLOCK(sc) sx_xunlock(&(sc)->sc_lock) 133 sx_init(&sc->sc_lock, "iic"); 139 sx_destroy(&sc->sc_lock); 154 sx_destroy(&sc->sc_lock);
|
/freebsd-10.1-release/lib/libthr/thread/ |
H A D | thr_sleepq.c | 41 struct umutex sc_lock; member in struct:sleepqueue_chain 56 _thr_umutex_init(&sc_table[i].sc_lock); 84 THR_LOCK_ACQUIRE_SPIN(curthread, &sc->sc_lock); 94 THR_LOCK_RELEASE(curthread, &sc->sc_lock);
|
/freebsd-10.1-release/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 | 217 mtx_init(&sc->sc_lock, device_get_nameunit(dev), MTX_NETWORK_LOCK, 219 callout_init_mtx(&sc->sc_timer, &sc->sc_lock, 0); 223 mtx_destroy(&sc->sc_lock); 233 mtx_destroy(&sc->sc_lock);
|
/freebsd-10.1-release/sys/dev/etherswitch/ |
H A D | etherswitch.c | 55 struct sx sc_lock; member in struct:etherswitch_softc 58 #define SWITCH_LOCK(sc) sx_xlock(&(sc)->sc_lock) 59 #define SWITCH_UNLOCK(sc) sx_xunlock(&(sc)->sc_lock) 122 sx_init(&sc->sc_lock, "etherswitch"); 128 sx_destroy(&sc->sc_lock); 143 sx_destroy(&sc->sc_lock);
|
/freebsd-10.1-release/sys/geom/mirror/ |
H A D | g_mirror_ctl.c | 66 sx_xlock(&sc->sc_lock); 79 sx_assert(&sc->sc_lock, SX_XLOCKED); 202 sx_xunlock(&sc->sc_lock); 210 sx_xunlock(&sc->sc_lock); 221 sx_xunlock(&sc->sc_lock); 228 sx_xunlock(&sc->sc_lock); 233 sx_xunlock(&sc->sc_lock); 238 sx_xunlock(&sc->sc_lock); 300 sx_xunlock(&sc->sc_lock); 383 sx_xunlock(&sc->sc_lock); [all...] |
H A D | g_mirror.c | 205 sx_assert(&sc->sc_lock, SX_XLOCKED); 207 sx_xunlock(&sc->sc_lock); 215 sx_xlock(&sc->sc_lock); 246 sx_assert(&sc->sc_lock, SX_XLOCKED); 275 sx_assert(&sc->sc_lock, SX_LOCKED); 292 sx_assert(&sc->sc_lock, SX_XLOCKED); 490 sx_assert(&sc->sc_lock, SX_XLOCKED); 524 sx_assert(&sc->sc_lock, SX_XLOCKED); 561 sx_xunlock(&sc->sc_lock); 562 sx_destroy(&sc->sc_lock); [all...] |
/freebsd-10.1-release/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-10.1-release/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-10.1-release/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 | 641 sx_xlocked(&sc->sc_lock) ? M_WAITOK : M_NOWAIT); 657 sx_assert(&sc->sc_lock, SX_XLOCKED); 659 sx_xunlock(&sc->sc_lock); 667 sx_xlock(&sc->sc_lock); 676 sx_assert(&sc->sc_lock, SX_XLOCKED); 699 sx_assert(&sc->sc_lock, SX_XLOCKED); 722 sx_assert(&sc->sc_lock, SX_LOCKED); 744 sx_assert(&sc->sc_lock, SX_LOCKED); 769 sx_assert(&sc->sc_lock, SX_LOCKED); 931 sx_assert(&sc->sc_lock, SX_XLOCKE [all...] |
/freebsd-10.1-release/sys/kern/ |
H A D | subr_sleepqueue.c | 130 struct mtx sc_lock; /* Spin lock for this chain. */ member in struct:sleepqueue_chain 184 mtx_init(&sleepq_chains[i].sc_lock, "sleepq chain", NULL, 237 mtx_lock_spin(&sc->sc_lock); 253 mtx_assert(&sc->sc_lock, MA_OWNED); 269 mtx_unlock_spin(&sc->sc_lock); 288 mtx_assert(&sc->sc_lock, MA_OWNED); 367 mtx_assert(&sc->sc_lock, MA_OWNED); 410 mtx_assert(&sc->sc_lock, MA_OWNED); 430 mtx_unlock_spin(&sc->sc_lock); 454 mtx_lock_spin(&sc->sc_lock); [all...] |
/freebsd-10.1-release/sys/dev/iscsi/ |
H A D | iscsi.c | 421 sx_xlock(&sc->sc_lock); 423 sx_xunlock(&sc->sc_lock); 1248 sx_slock(&sc->sc_lock); 1261 error = cv_wait_sig(&sc->sc_cv, &sc->sc_lock); 1263 sx_sunlock(&sc->sc_lock); 1281 sx_sunlock(&sc->sc_lock); 1293 sx_slock(&sc->sc_lock); 1303 sx_sunlock(&sc->sc_lock); 1309 sx_sunlock(&sc->sc_lock); 1321 sx_sunlock(&sc->sc_lock); [all...] |
H A D | iscsi.h | 128 struct sx sc_lock; member in struct:iscsi_softc
|
/freebsd-10.1-release/sys/dev/xen/netback/ |
H A D | netback.c | 507 struct mtx sc_lock; member in struct:xnb_softc 1069 mtx_unlock(&xnb->sc_lock); 1077 mtx_lock(&xnb->sc_lock); 1081 mtx_unlock(&xnb->sc_lock); 1084 mtx_lock(&xnb->sc_lock); 1203 mtx_init(&xnb->sc_lock, "xnb_softc", "xen netback softc lock", MTX_DEF); 1327 mtx_lock(&xnb->sc_lock); 1329 msleep(xnb, &xnb->sc_lock, /*wakeup prio unchanged*/0, 1332 mtx_unlock(&xnb->sc_lock); 1337 mtx_destroy(&xnb->sc_lock); [all...] |