Searched refs:sc_lock (Results 1 - 25 of 40) sorted by relevance

12

/freebsd-9.3-release/sys/dev/hme/
H A Dif_hmevar.h140 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))
H A Dif_hme_pci.c156 mtx_init(&sc->sc_lock, device_get_nameunit(dev), MTX_NETWORK_LOCK,
370 mtx_destroy(&sc->sc_lock);
388 mtx_destroy(&sc->sc_lock);
H A Dif_hme_sbus.c141 mtx_init(&sc->sc_lock, device_get_nameunit(dev), MTX_NETWORK_LOCK,
286 mtx_destroy(&sc->sc_lock);
314 mtx_destroy(&sc->sc_lock);
/freebsd-9.3-release/sys/dev/smbus/
H A Dsmb.c54 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-9.3-release/sys/geom/raid3/
H A Dg_raid3_ctl.c64 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 Dg_raid3.c327 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-9.3-release/sys/dev/iicbus/
H A Dad7418.c69 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 Dicee.c51 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 Diic.c59 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-9.3-release/lib/libthr/thread/
H A Dthr_sleepq.c41 struct umutex sc_lock; member in struct:sleepqueue_chain
55 _thr_umutex_init(&sc_table[i].sc_lock);
83 THR_LOCK_ACQUIRE_SPIN(curthread, &sc->sc_lock);
93 THR_LOCK_RELEASE(curthread, &sc->sc_lock);
/freebsd-9.3-release/sys/dev/snc/
H A Ddp83932var.h203 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 Dif_snc.c217 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);
H A Dif_snc_pccard.c115 mtx_destroy(&sc->sc_lock);
/freebsd-9.3-release/sys/dev/esp/
H A Dncr53c9xvar.h378 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-9.3-release/sys/dev/auxio/
H A Dauxio.c116 struct mtx sc_lock; member in struct:auxio_softc
169 mtx_init(&sc->sc_lock, "auxio mtx", NULL, MTX_DEF)
170 #define AUXIO_LOCK(sc) mtx_lock(&sc->sc_lock)
171 #define AUXIO_UNLOCK(sc) mtx_unlock(&sc->sc_lock)
172 #define AUXIO_LOCK_DESTROY(sc) mtx_destroy(&sc->sc_lock)
/freebsd-9.3-release/sys/geom/mirror/
H A Dg_mirror_ctl.c64 sx_xlock(&sc->sc_lock);
77 sx_assert(&sc->sc_lock, SX_XLOCKED);
200 sx_xunlock(&sc->sc_lock);
208 sx_xunlock(&sc->sc_lock);
219 sx_xunlock(&sc->sc_lock);
226 sx_xunlock(&sc->sc_lock);
231 sx_xunlock(&sc->sc_lock);
236 sx_xunlock(&sc->sc_lock);
298 sx_xunlock(&sc->sc_lock);
381 sx_xunlock(&sc->sc_lock);
[all...]
H A Dg_mirror.c203 sx_assert(&sc->sc_lock, SX_XLOCKED);
205 sx_xunlock(&sc->sc_lock);
213 sx_xlock(&sc->sc_lock);
244 sx_assert(&sc->sc_lock, SX_XLOCKED);
273 sx_assert(&sc->sc_lock, SX_LOCKED);
290 sx_assert(&sc->sc_lock, SX_XLOCKED);
487 sx_assert(&sc->sc_lock, SX_XLOCKED);
521 sx_assert(&sc->sc_lock, SX_XLOCKED);
557 sx_xunlock(&sc->sc_lock);
558 sx_destroy(&sc->sc_lock);
[all...]
/freebsd-9.3-release/sys/geom/raid/
H A Dg_raid_ctl.c131 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 Dg_raid.c641 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);
930 sx_assert(&sc->sc_lock, SX_XLOCKE
[all...]
/freebsd-9.3-release/sys/kern/
H A Dsubr_sleepqueue.c132 struct mtx sc_lock; /* Spin lock for this chain. */ member in struct:sleepqueue_chain
186 mtx_init(&sleepq_chains[i].sc_lock, "sleepq chain", NULL,
239 mtx_lock_spin(&sc->sc_lock);
255 mtx_assert(&sc->sc_lock, MA_OWNED);
271 mtx_unlock_spin(&sc->sc_lock);
290 mtx_assert(&sc->sc_lock, MA_OWNED);
367 mtx_assert(&sc->sc_lock, MA_OWNED);
409 mtx_assert(&sc->sc_lock, MA_OWNED);
431 mtx_unlock_spin(&sc->sc_lock);
455 mtx_lock_spin(&sc->sc_lock);
[all...]
/freebsd-9.3-release/sys/dev/xen/netback/
H A Dnetback.c503 struct mtx sc_lock; member in struct:xnb_softc
1068 mtx_unlock(&xnb->sc_lock);
1076 mtx_lock(&xnb->sc_lock);
1080 mtx_unlock(&xnb->sc_lock);
1083 mtx_lock(&xnb->sc_lock);
1202 mtx_init(&xnb->sc_lock, "xnb_softc", "xen netback softc lock", MTX_DEF);
1326 mtx_lock(&xnb->sc_lock);
1328 msleep(xnb, &xnb->sc_lock, /*wakeup prio unchanged*/0,
1331 mtx_unlock(&xnb->sc_lock);
1336 mtx_destroy(&xnb->sc_lock);
[all...]
/freebsd-9.3-release/sys/dev/cxgbe/
H A Dadapter.h646 struct mtx sc_lock; member in struct:adapter
650 struct mtx sfl_lock; /* same cache-line as sc_lock? but that's ok */
666 #define ADAPTER_LOCK(sc) mtx_lock(&(sc)->sc_lock)
667 #define ADAPTER_UNLOCK(sc) mtx_unlock(&(sc)->sc_lock)
668 #define ADAPTER_LOCK_ASSERT_OWNED(sc) mtx_assert(&(sc)->sc_lock, MA_OWNED)
669 #define ADAPTER_LOCK_ASSERT_NOTOWNED(sc) mtx_assert(&(sc)->sc_lock, MA_NOTOWNED)
674 (mtx_owned(&(sc)->sc_lock) || sc->last_op_thr == curthread), \
/freebsd-9.3-release/sys/mips/rmi/dev/nlge/
H A Dif_nlge.h1155 struct mtx sc_lock; member in struct:nlge_softc
1177 mtx_init(&(_sc)->sc_lock, _name, MTX_NETWORK_LOCK, MTX_DEF)
1178 #define NLGE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->sc_lock)
1179 #define NLGE_LOCK(_sc) mtx_lock(&(_sc)->sc_lock)
1180 #define NLGE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_lock)
1181 #define NLGE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->sc_lock, MA_OWNED)
/freebsd-9.3-release/sys/dev/sound/pci/
H A Dmaestro3.c159 struct mtx *sc_lock; member in struct:sc_info
162 #define M3_LOCK(_sc) snd_mtxlock((_sc)->sc_lock)
163 #define M3_UNLOCK(_sc) snd_mtxunlock((_sc)->sc_lock)
164 #define M3_LOCK_ASSERT(_sc) snd_mtxassert((_sc)->sc_lock)
1329 sc->sc_lock = snd_mtxcreate(device_get_nameunit(dev),
1472 if (sc->sc_lock)
1473 snd_mtxfree(sc->sc_lock);
1501 snd_mtxfree(sc->sc_lock);
/freebsd-9.3-release/sys/dev/sound/sbus/
H A Dcs4231.c140 struct mtx *sc_lock; member in struct:cs4231_softc
194 #define CS4231_LOCK(sc) snd_mtxlock(sc->sc_lock)
195 #define CS4231_UNLOCK(sc) snd_mtxunlock(sc->sc_lock)
196 #define CS4231_LOCK_ASSERT(sc) snd_mtxassert(sc->sc_lock)
377 sc->sc_lock = snd_mtxcreate(device_get_nameunit(sc->sc_dev),
714 snd_mtxfree(sc->sc_lock);

Completed in 244 milliseconds

12