Searched refs:mtx (Results 201 - 225 of 1378) sorted by relevance

1234567891011>>

/freebsd-current/sys/rpc/
H A Dkrpc.h61 struct mtx rc_lock;
97 struct mtx ct_lock;
/freebsd-current/sys/sys/
H A Dmsgbuf.h51 struct mtx msg_lock; /* mutex to protect the buffer */
67 extern struct mtx msgbuf_lock;
/freebsd-current/sys/riscv/sifive/
H A Dsifive_spi.c71 struct mtx mtx; member in struct:sfspi_softc
84 #define SFSPI_LOCK(sc) mtx_lock(&(sc)->mtx)
85 #define SFSPI_UNLOCK(sc) mtx_unlock(&(sc)->mtx)
86 #define SFSPI_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED);
87 #define SFSPI_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED);
308 mtx_init(&sc->mtx, device_get_nameunit(sc->dev), NULL, MTX_DEF);
355 mtx_destroy(&sc->mtx);
/freebsd-current/sys/dev/clk/allwinner/
H A Daw_ccung.h80 struct mtx mtx; member in struct:aw_ccung_softc
H A Daw_ccung.c128 mtx_lock(&sc->mtx);
137 mtx_unlock(&sc->mtx);
153 mtx_lock(&sc->mtx);
157 mtx_unlock(&sc->mtx);
168 mtx_lock(&sc->mtx);
177 mtx_unlock(&sc->mtx);
276 mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
/freebsd-current/sys/arm64/rockchip/
H A Drk_pcie_phy.c83 struct mtx mtx; member in struct:rk_pcie_phy_softc
89 #define PHY_LOCK(_sc) mtx_lock(&(_sc)->mtx)
90 #define PHY_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
91 #define PHY_LOCK_INIT(_sc) mtx_init(&(_sc)->mtx, \
93 #define PHY_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx);
94 #define PHY_ASSERT_LOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED);
95 #define PHY_ASSERT_UNLOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_NOTOWNED);
/freebsd-current/sys/dev/clk/starfive/
H A Djh7110_clk.h25 struct mtx mtx; member in struct:jh7110_clkgen_softc
/freebsd-current/sys/dev/iicbus/sensor/
H A Dtmp461.c92 struct mtx mtx; member in struct:tmp461_softc
139 mtx_init(&sc->mtx, "tmp461 temperature", "temperature", MTX_DEF);
197 mtx_destroy(&sc->mtx);
235 mtx_lock(&sc->mtx);
290 mtx_unlock(&sc->mtx);
/freebsd-current/sys/arm/broadcom/bcm2835/
H A Dbcm2835_wdog.c80 struct mtx mtx; member in struct:bcmwd_softc
144 mtx_init(&sc->mtx, "BCM2835 Watchdog", "bcmwd", MTX_DEF);
167 mtx_lock(&sc->mtx);
183 mtx_unlock(&sc->mtx);
205 mtx_unlock(&sc->mtx);
/freebsd-current/sys/arm/allwinner/
H A Daw_wdog.c101 struct mtx mtx; member in struct:aw_wdog_softc
200 mtx_init(&sc->mtx, "AW Watchdog", "aw_wdog", MTX_DEF);
216 mtx_lock(&sc->mtx);
244 mtx_unlock(&sc->mtx);
252 mtx_unlock(&sc->mtx);
/freebsd-current/sys/compat/linuxkpi/common/src/
H A Dlinux_tasklet.c52 struct mtx mtx; member in struct:tasklet_worker
57 #define TASKLET_WORKER_LOCK(tw) mtx_lock(&(tw)->mtx)
58 #define TASKLET_WORKER_UNLOCK(tw) mtx_unlock(&(tw)->mtx)
115 mtx_init(&tw->mtx, "linux_tasklet", NULL, MTX_DEF);
140 mtx_destroy(&tw->mtx);
H A Dlinux_work.c229 mtx_lock(&dwork->timer.mtx);
259 mtx_unlock(&dwork->timer.mtx);
445 mtx_lock(&dwork->timer.mtx);
447 mtx_unlock(&dwork->timer.mtx);
474 mtx_lock(&dwork->timer.mtx);
482 mtx_unlock(&dwork->timer.mtx);
491 mtx_unlock(&dwork->timer.mtx);
496 mtx_unlock(&dwork->timer.mtx);
522 mtx_lock(&dwork->timer.mtx);
527 mtx_unlock(&dwork->timer.mtx);
[all...]
/freebsd-current/sys/dev/syscon/
H A Dsyscon_generic.c71 #define SYSCON_LOCK(_sc) mtx_lock_spin(&(_sc)->mtx)
72 #define SYSCON_UNLOCK(_sc) mtx_unlock_spin(&(_sc)->mtx)
73 #define SYSCON_LOCK_INIT(_sc) mtx_init(&(_sc)->mtx, \
75 #define SYSCON_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx);
76 #define SYSCON_ASSERT_LOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED);
77 #define SYSCON_ASSERT_UNLOCKED(_sc) mtx_assert(&(_sc)->mtx, MA_NOTOWNED);
/freebsd-current/sys/dev/sound/pci/
H A Dcsamidi.c73 struct mtx mtx; member in struct:csa_midi_softc
175 mtx_lock(&scp->mtx);
177 mtx_unlock(&scp->mtx);
223 mtx_init(&scp->mtx, device_get_nameunit(dev), "csamidi softc",
255 mtx_destroy(&scp->mtx);
/freebsd-current/sys/dev/hyperv/input/
H A Dhv_hid.c60 struct mtx mtx; member in struct:__anon35
310 mtx_lock(&sc->mtx);
313 mtx_unlock(&sc->mtx);
317 mtx_lock(&sc->mtx);
322 mtx_unlock(&sc->mtx);
411 mtx_init(&sc->mtx, "hvhid lock", NULL, MTX_DEF);
431 mtx_lock(&sc->mtx);
433 ret = mtx_sleep(sc, &sc->mtx, 0, "hvhid", hz * 3);
434 mtx_unlock(&sc->mtx);
[all...]
/freebsd-current/usr.sbin/bhyve/amd64/
H A Datkbdc.c122 pthread_mutex_t mtx; member in struct:atkbdc_softc
163 assert(pthread_mutex_isowned_np(&sc->mtx));
218 assert(pthread_mutex_isowned_np(&sc->mtx));
258 assert(pthread_mutex_isowned_np(&sc->mtx));
273 assert(pthread_mutex_isowned_np(&sc->mtx));
319 pthread_mutex_lock(&sc->mtx);
332 pthread_mutex_unlock(&sc->mtx);
377 pthread_mutex_unlock(&sc->mtx);
387 pthread_mutex_unlock(&sc->mtx);
405 pthread_mutex_lock(&sc->mtx);
[all...]
/freebsd-current/sys/fs/nfsserver/
H A Dnfs_nfsdcache.c161 extern struct mtx nfsrc_udpmtx;
293 static __inline struct mtx *
299 return (&NFSD_VNET(nfsrchash_table)[nfsrc_hash(rp->rc_xid)].mtx);
317 mtx_init(&NFSD_VNET(nfsrchash_table)[i].mtx, "nfsrtc", NULL,
319 mtx_init(&NFSD_VNET(nfsrcahash_table)[i].mtx, "nfsrtca", NULL,
382 struct mtx *mutex;
469 struct mtx *mutex;
569 struct mtx *mutex;
594 mtx_lock(&hbp->mtx);
599 mtx_unlock(&hbp->mtx);
[all...]
/freebsd-current/sys/dev/hid/
H A Dhidbus.c65 struct mtx *mtx; /* child intr mtx */ member in struct:hidbus_ivars
66 hid_intr_t *intr_handler; /* executed under mtx*/
68 unsigned int refcnt; /* protected by mtx */
76 struct mtx mtx; member in struct:hidbus_softc
203 tlc->mtx = &sc->mtx;
354 mtx_init(&sc->mtx, "hidbu
[all...]
/freebsd-current/tools/test/stress2/misc/
H A Dpthread2.sh90 #define LOCK(x) plock(&x.mtx)
91 #define UNLOCK(x) punlock(&x.mtx)
93 #define WAIT(x) pwait(&x.wait, &x.mtx)
106 pthread_mutex_t mtx;
260 if ((rc = pthread_mutex_init(&newfiles.mtx, NULL)) != 0)
264 if ((rc = pthread_mutex_init(&renamedfiles.mtx, NULL)) != 0)
284 if ((rc = pthread_mutex_destroy(&newfiles.mtx)) != 0)
288 if ((rc = pthread_mutex_destroy(&renamedfiles.mtx)) != 0)
H A Dpthread4.sh88 #define LOCK(x) plock(&x.mtx)
89 #define UNLOCK(x) punlock(&x.mtx)
91 #define WAIT(x) pwait(&x.wait, &x.mtx)
104 pthread_mutex_t mtx;
260 if ((rc = pthread_mutex_init(&newfiles.mtx, pattr)) != 0)
264 if ((rc = pthread_mutex_init(&renamedfiles.mtx, NULL)) != 0)
284 if ((rc = pthread_mutex_destroy(&newfiles.mtx)) != 0)
288 if ((rc = pthread_mutex_destroy(&renamedfiles.mtx)) != 0)
H A Dpthread7.sh75 #define LOCK(x) plock(&x.mtx)
76 #define UNLOCK(x) punlock(&x.mtx)
78 #define WAIT(x) pwait(&x.wait, &x.mtx)
91 pthread_mutex_t mtx;
249 if ((rc = pthread_mutex_init(&newfiles.mtx, pattr)) != 0)
253 if ((rc = pthread_mutex_init(&renamedfiles.mtx, NULL)) != 0)
273 if ((rc = pthread_mutex_destroy(&newfiles.mtx)) != 0)
277 if ((rc = pthread_mutex_destroy(&renamedfiles.mtx)) != 0)
/freebsd-current/sys/netgraph/
H A Dng_socket.c159 static struct mtx ngsocketlist_mtx;
183 struct mtx mtx; /* mtx to wait on */ member in struct:ngsock
350 mtx_lock(&priv->mtx);
352 msleep(priv, &priv->mtx, 0, "ngsock", 0);
353 mtx_unlock(&priv->mtx);
524 mtx_lock(&pcbp->sockdata->mtx);
536 mtx_unlock(&pcbp->sockdata->mtx);
576 mtx_init(&priv->mtx, "ng_socke
[all...]
/freebsd-current/contrib/jemalloc/src/
H A Dbase.c146 malloc_mutex_assert_owner(tsdn, &base->mtx);
285 malloc_mutex_lock(tsdn, &base->mtx);
290 malloc_mutex_unlock(tsdn, &base->mtx);
309 malloc_mutex_assert_owner(tsdn, &base->mtx);
316 malloc_mutex_unlock(tsdn, &base->mtx);
320 malloc_mutex_lock(tsdn, &base->mtx);
366 if (malloc_mutex_init(&base->mtx, "base", WITNESS_RANK_BASE,
428 malloc_mutex_lock(tsdn, &base->mtx);
451 malloc_mutex_unlock(tsdn, &base->mtx);
485 malloc_mutex_lock(tsdn, &base->mtx);
[all...]
/freebsd-current/sys/dev/iicbus/gpio/
H A Dtca64xx.c96 struct mtx mtx; member in struct:tca64xx_softc
263 mtx_init(&sc->mtx, "tca64xx gpio", "gpio", MTX_DEF);
298 mtx_destroy(&sc->mtx);
388 mtx_lock(&sc->mtx);
419 mtx_unlock(&sc->mtx);
483 mtx_lock(&sc->mtx);
487 mtx_unlock(&sc->mtx);
499 mtx_unlock(&sc->mtx);
504 mtx_unlock(&sc->mtx);
[all...]
/freebsd-current/sys/dev/clk/rockchip/
H A Drk_cru.c125 mtx_lock(&sc->mtx);
130 mtx_unlock(&sc->mtx);
150 mtx_lock(&sc->mtx);
152 mtx_unlock(&sc->mtx);
167 mtx_lock(&sc->mtx);
176 mtx_unlock(&sc->mtx);
221 mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);

Completed in 346 milliseconds

1234567891011>>