Searched refs:mtx (Results 51 - 75 of 1318) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/dev/smbus/
H A Dsmbus.h37 struct mtx lock;
/freebsd-11-stable/sys/dev/mmc/
H A Dmmc_private.h60 struct mtx sc_mtx;
/freebsd-11-stable/sys/nfs/
H A Dnfs_fha.h65 struct mtx *mtx; member in struct:fha_hash_entry
78 struct mtx mtx; member in struct:fha_hash_slot
H A Dnfs_fha.c57 mtx_init(&softc->fha_hash[i].mtx, "fhalock", NULL, MTX_DEF);
111 mtx_destroy(&softc->fha_hash[i].mtx);
204 mtx_assert(e->mtx, MA_OWNED);
218 mtx_assert(e->mtx, MA_OWNED);
233 new_fhe->mtx = &fhs->mtx;
234 mtx_lock(&fhs->mtx);
250 mtx_assert(fhe->mtx, MA_OWNED);
260 mtx_assert(fhe->mtx, MA_OWNED);
274 mtx_assert(fhe->mtx, MA_OWNE
445 struct mtx *mtx; local
[all...]
/freebsd-11-stable/sys/dev/bhnd/cores/pci/
H A Dbhnd_pcivar.h96 struct mtx mtx; /**< state mutex used to protect member in struct:bhnd_pci_softc
106 mtx_init(&(sc)->mtx, device_get_nameunit((sc)->dev), \
108 #define BHND_PCI_LOCK(sc) mtx_lock(&(sc)->mtx)
109 #define BHND_PCI_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
110 #define BHND_PCI_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->mtx, what)
111 #define BHND_PCI_LOCK_DESTROY(sc) mtx_destroy(&(sc)->mtx)
/freebsd-11-stable/sys/arm/allwinner/
H A Daw_reset.c62 struct mtx mtx; member in struct:aw_reset_softc
81 mtx_lock(&sc->mtx);
88 mtx_unlock(&sc->mtx);
101 mtx_lock(&sc->mtx);
103 mtx_unlock(&sc->mtx);
135 mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
/freebsd-11-stable/sys/dev/sound/usb/
H A Duaudio_pcm.c138 struct mtx *mtx = mixer_get_lock(m); local
141 if (mtx_owned(mtx)) {
145 mtx_lock(mtx);
149 mtx_unlock(mtx);
157 struct mtx *mtx = mixer_get_lock(m); local
161 if (mtx_owned(mtx)) {
165 mtx_lock(mtx);
169 mtx_unlock(mtx);
[all...]
/freebsd-11-stable/sys/dev/cmx/
H A Dcmxvar.h52 struct mtx mtx; /* per-unit lock */ member in struct:cmx_softc
97 #define CMX_LOCK(sc) mtx_lock(&(sc)->mtx)
98 #define CMX_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
99 #define CMX_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->mtx, (what))
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dxarray.h49 #define XA_ASSERT_LOCKED(xa) mtx_assert(&(xa)->mtx, MA_OWNED)
50 #define xa_lock(xa) mtx_lock(&(xa)->mtx)
51 #define xa_unlock(xa) mtx_unlock(&(xa)->mtx)
55 struct mtx mtx; /* internal mutex */ member in struct:xarray
/freebsd-11-stable/usr.bin/mkuzip/
H A Dmkuz_fqueue.c52 if (pthread_mutex_init(&fqp->mtx, NULL) != 0) {
69 pthread_mutex_lock(&fqp->mtx);
80 pthread_mutex_unlock(&fqp->mtx);
90 pthread_mutex_lock(&fqp->mtx);
102 pthread_mutex_unlock(&fqp->mtx);
126 pthread_mutex_lock(&fqp->mtx);
128 pthread_cond_wait(&fqp->cvar, &fqp->mtx);
158 pthread_mutex_unlock(&fqp->mtx);
171 pthread_mutex_lock(&fqp->mtx);
173 pthread_cond_wait(&fqp->cvar, &fqp->mtx);
[all...]
H A Dmkuz_fqueue.h30 pthread_mutex_t mtx; member in struct:mkuz_fifo_queue
/freebsd-11-stable/sys/dev/bhnd/nvram/
H A Dbhnd_spromvar.h81 struct mtx mtx; /**< SPROM shadow mutex */ member in struct:bhnd_sprom_softc
/freebsd-11-stable/sys/sparc64/pci/
H A Dfirevar.h44 struct mtx sc_msi_mtx;
45 struct mtx sc_pcib_mtx;
H A Dschizovar.h51 struct mtx sc_sync_mtx;
54 struct mtx *sc_mtx;
H A Dpsychovar.h48 struct mtx *sc_mtx;
/freebsd-11-stable/sys/dev/dwc/
H A Dif_dwcvar.h69 struct mtx mtx; member in struct:dwc_softc
/freebsd-11-stable/sys/i386/bios/
H A Dapm.h35 struct mtx mtx; member in struct:apm_softc
/freebsd-11-stable/sys/libkern/
H A Darc4random.c34 struct mtx mtx; member in struct:arc4_s
75 mtx_lock(&arc4->mtx);
94 mtx_unlock(&arc4->mtx);
111 mtx_init(&arc4->mtx, "arc4_mtx", NULL, MTX_DEF);
130 mtx_destroy(&arc4->mtx);
178 mtx_lock(&arc4->mtx);
183 mtx_unlock(&arc4->mtx);
/freebsd-11-stable/sys/sys/
H A Dselinfo.h48 struct mtx *si_mtx; /* Lock for tdlist. */
/freebsd-11-stable/usr.sbin/bhyve/
H A Dps2mouse.c97 pthread_mutex_t mtx; member in struct:ps2mouse_softc
162 assert(pthread_mutex_isowned_np(&sc->mtx));
182 assert(pthread_mutex_isowned_np(&sc->mtx));
230 assert(pthread_mutex_isowned_np(&sc->mtx));
248 pthread_mutex_lock(&sc->mtx);
250 pthread_mutex_unlock(&sc->mtx);
264 pthread_mutex_lock(&sc->mtx);
273 pthread_mutex_unlock(&sc->mtx);
279 pthread_mutex_lock(&sc->mtx);
366 pthread_mutex_unlock(&sc->mtx);
[all...]
H A Dusb_emul.h113 pthread_mutex_t mtx; member in struct:usb_data_xfer
134 pthread_mutex_init(&((x)->mtx), NULL); \
144 pthread_mutex_lock(&((x)->mtx)); \
148 pthread_mutex_unlock(&((x)->mtx)); \
/freebsd-11-stable/sys/fs/devfs/
H A Ddevfs_int.h88 extern struct mtx devmtx;
89 extern struct mtx devfs_de_interlock;
91 extern struct mtx cdevpriv_mtx;
/freebsd-11-stable/sys/dev/ae/
H A Dif_aevar.h112 struct mtx mtx; member in struct:ae_softc
156 #define AE_LOCK(_sc) mtx_lock(&(_sc)->mtx)
157 #define AE_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
158 #define AE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED)
/freebsd-11-stable/sys/dev/ixl/
H A Dixl_iw.c76 mtx_lock(&ixl_iw.mtx);
85 mtx_unlock(&ixl_iw.mtx);
89 mtx_unlock(&ixl_iw.mtx);
118 mtx_destroy(&ixl_iw.mtx);
129 mtx_init(&ixl_iw.mtx, "ixl_iw_pfs", NULL, MTX_DEF);
148 mtx_lock(&ixl_iw.mtx);
183 mtx_unlock(&ixl_iw.mtx);
195 mtx_lock(&ixl_iw.mtx);
214 mtx_unlock(&ixl_iw.mtx);
230 mtx_lock(&ixl_iw.mtx);
[all...]
/freebsd-11-stable/sys/dev/nvme/
H A Dnvme_test.c75 struct mtx *mtx; local
77 mtx = mtx_pool_find(mtxpool_sleep, bio);
78 mtx_lock(mtx);
80 mtx_unlock(mtx);
88 struct mtx *mtx; local
121 mtx = mtx_pool_find(mtxpool_sleep, bio);
122 mtx_lock(mtx);
124 msleep(bio, mtx, PRIBI
[all...]

Completed in 343 milliseconds

1234567891011>>