/freebsd-current/sys/dev/usb/input/ |
H A D | uep.c | 95 struct mtx mtx; member in struct:uep_softc 359 mtx_init(&sc->mtx, "uep lock", NULL, MTX_DEF); 362 sc->xfer, uep_config, UEP_N_TRANSFER, sc, &sc->mtx); 385 error = evdev_register_mtx(sc->evdev, &sc->mtx); 391 error = usb_fifo_attach(uaa->device, sc, &sc->mtx, &uep_fifo_methods, 424 mtx_destroy(&sc->mtx); 436 mtx_assert(&sc->mtx, MA_OWNED); 447 mtx_assert(&sc->mtx, MA_OWNED);
|
/freebsd-current/sys/compat/linuxkpi/common/src/ |
H A D | linux_80211.h | 124 struct mtx ltxq_mtx; 145 struct mtx txq_mtx; 163 struct mtx mtx; member in struct:lkpi_vif 203 struct mtx txq_mtx; 210 struct mtx rxq_mtx; 252 struct mtx scan_mtx; 341 #define LKPI_80211_LVIF_LOCK(_lvif) mtx_lock(&(_lvif)->mtx) 342 #define LKPI_80211_LVIF_UNLOCK(_lvif) mtx_unlock(&(_lvif)->mtx)
|
/freebsd-current/tools/test/stress2/misc/ |
H A D | pthread3.sh | 81 #define LOCK(x) plock(&x.mtx) 82 #define UNLOCK(x) punlock(&x.mtx) 84 #define WAIT(x) pwait(&x.wait, &x.mtx) 97 pthread_mutex_t mtx; 253 if ((rc = pthread_mutex_init(&newfiles.mtx, NULL)) != 0) 257 if ((rc = pthread_mutex_init(&renamedfiles.mtx, NULL)) != 0) 277 if ((rc = pthread_mutex_destroy(&newfiles.mtx)) != 0) 281 if ((rc = pthread_mutex_destroy(&renamedfiles.mtx)) != 0)
|
H A D | pthread6.sh | 81 #define LOCK(x) plock(&x.mtx) 82 #define UNLOCK(x) punlock(&x.mtx) 84 #define WAIT(x) pwait(&x.wait, &x.mtx) 100 pthread_mutex_t mtx; 253 if ((rc = pthread_mutex_init(&newfiles.mtx, pattr)) != 0) 257 if ((rc = pthread_mutex_init(&renamedfiles.mtx, NULL)) != 0) 278 if ((rc = pthread_mutex_destroy(&newfiles.mtx)) != 0) 282 if ((rc = pthread_mutex_destroy(&renamedfiles.mtx)) != 0)
|
/freebsd-current/sys/dev/aic7xxx/ |
H A D | aic7xxx_osm.h | 128 struct mtx mtx; member in struct:ahc_platform_data 176 mtx_init(&ahc->platform_data->mtx, "ahc_lock", NULL, MTX_DEF); 182 mtx_lock(&ahc->platform_data->mtx); 188 mtx_unlock(&ahc->platform_data->mtx);
|
H A D | aic79xx_osm.h | 130 struct mtx mtx; member in struct:ahd_platform_data 193 mtx_init(&ahd->platform_data->mtx, "ahd_lock", NULL, MTX_DEF); 199 mtx_lock(&ahd->platform_data->mtx); 205 mtx_unlock(&ahd->platform_data->mtx);
|
/freebsd-current/sys/dev/al_eth/ |
H A D | al_eth.h | 137 struct mtx br_mtx; 235 struct mtx wd_mtx; 237 struct mtx stats_mtx; 352 struct mtx serdes_config_lock; 353 struct mtx if_rx_lock;
|
/freebsd-current/sys/dev/cesa/ |
H A D | cesa.h | 233 struct mtx sc_sc_lock; 237 struct mtx sc_tdesc_lock; 243 struct mtx sc_sdesc_lock; 249 struct mtx sc_requests_lock; 256 struct mtx sc_sessions_lock;
|
/freebsd-current/sys/dev/neta/ |
H A D | if_mvnetavar.h | 120 struct mtx ring_mtx; 153 struct mtx ring_mtx; 209 KASSERT(mtx_owned(&(sc)->mtx), ("SC mutex not owned")) 252 * mtx must be held by interface functions to/from 256 struct mtx mtx; member in struct:mvneta_softc
|
/freebsd-current/sys/dev/xdma/ |
H A D | xdma.h | 162 struct mtx mtx_lock; 163 struct mtx mtx_qin_lock; 164 struct mtx mtx_qout_lock; 165 struct mtx mtx_bank_lock; 166 struct mtx mtx_proc_lock;
|
/freebsd-current/sys/dev/firewire/ |
H A D | firewirereg.h | 127 struct mtx tlabel_lock; 159 struct mtx mtx; member in struct:firewire_comm 160 struct mtx wait_lock; 166 #define FW_GMTX(fc) (&(fc)->mtx)
|
/freebsd-current/sys/arm/ti/ |
H A D | ti_prcm.c | 72 struct mtx mtx; member in struct:ti_prcm_softc 171 mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF); 244 mtx_lock(&sc->mtx); 253 mtx_unlock(&sc->mtx);
|
/freebsd-current/sys/arm/mv/ |
H A D | mv_thermal.c | 88 struct mtx mtx; member in struct:mv_thermal_softc 263 mtx_lock(&(sc)->mtx); 272 mtx_unlock(&(sc)->mtx); 306 mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
|
/freebsd-current/sys/arm64/qoriq/clk/ |
H A D | ls1028a_flexspi_clk.c | 58 struct mtx mtx; member in struct:ls1028a_flexspi_clk_softc 177 mtx_init(&sc->mtx, "FSL clock mtx", NULL, MTX_DEF); 276 mtx_lock(&sc->mtx); 286 mtx_unlock(&sc->mtx);
|
/freebsd-current/sys/netgraph/ |
H A D | ng_pptpgre.c | 180 struct mtx mtx; /* session mutex */ member in struct:ng_pptpgre_sess 328 mtx_init(&priv->uppersess.mtx, "ng_pptp", NULL, MTX_DEF); 388 mtx_init(&hpriv->mtx, "ng_pptp", NULL, MTX_DEF); 514 mtx_lock(&hpriv->mtx); 518 mtx_assert(&hpriv->mtx, MA_NOTOWNED); 544 mtx_destroy(&hpriv->mtx); 567 mtx_destroy(&priv->uppersess.mtx); 592 mtx_assert(&hpriv->mtx, MA_OWNED); 677 mtx_unlock(&hpriv->mtx); [all...] |
H A D | ng_macfilter.c | 270 struct mtx mtx; /* Mutex for MACs table */ member in struct:__anon5506 279 * Note: mtx already held 316 * Note: mtx already held 329 * Note: mtx already held 346 * Note: mtx already held 368 * Note: mtx already held. 401 * Note: mtx already held. 534 mtx_lock(&mfp->mtx); 558 mtx_unlock(&mfp->mtx); [all...] |
/freebsd-current/sys/cam/ |
H A D | cam_xpt_internal.h | 150 struct mtx device_mtx; 172 struct mtx luns_mtx; /* Protection for luns field. */ 192 struct mtx eb_mtx; /* Bus topology mutex. */
|
/freebsd-current/sys/sys/ |
H A D | mutex.h | 95 int _mtx_trylock_flags_int(struct mtx *m, int opts LOCK_FILE_LINE_ARG_DEF); 108 void mtx_wait_unlocked(struct mtx *m); 128 void mtx_spin_wait_unlocked(struct mtx *m); 164 * Top-level macros to provide lock cookie once the actual mtx is passed. 165 * They will also prevent passing a malformed object to the mtx KPI by 397 struct mtx *mtx_pool_find(struct mtx_pool *pool, void *ptr); 398 struct mtx *mtx_pool_alloc(struct mtx_pool *pool); 466 #define mtx_sleep(chan, mtx, pri, wmesg, timo) \ 467 _sleep((chan), &(mtx)->lock_object, (pri), (wmesg), \ 487 extern struct mtx Gian [all...] |
H A D | callout.h | 46 #define CALLOUT_RETURNUNLOCKED 0x0010 /* handler returns with mtx unlocked */ 87 #define callout_init_mtx(c, mtx, flags) \ 88 _callout_init_lock((c), ((mtx) != NULL) ? &(mtx)->lock_object : \
|
/freebsd-current/sys/arm/mv/clk/ |
H A D | a37x0_periph_clk_driver.c | 70 mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF); 196 mtx_lock(&sc->mtx); 205 mtx_unlock(&sc->mtx);
|
H A D | armada38x_gateclk.c | 49 struct mtx mtx; member in struct:armada38x_gateclk_softc 264 mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF);
|
/freebsd-current/sys/dev/uart/ |
H A D | uart_bus.h | 82 struct mtx sc_hwmtx_s; /* Spinlock protecting hardware. */ 83 struct mtx *sc_hwmtx; 155 struct mtx *uart_tty_getlock(struct uart_softc *);
|
/freebsd-current/sys/kern/ |
H A D | kern_synch.c | 238 msleep_spin_sbt(const void *ident, struct mtx *mtx, const char *wmesg, argument 243 WITNESS_SAVE_DECL(mtx); 246 KASSERT(mtx != NULL, ("sleeping without a mutex")); 258 mtx_assert(mtx, MA_OWNED | MA_NOTRECURSED); 259 WITNESS_SAVE(&mtx->lock_object, mtx); 260 mtx_unlock_spin(mtx); 265 sleepq_add(ident, &mtx->lock_object, wmesg, SLEEPQ_SLEEP, 0); 300 mtx_lock_spin(mtx); [all...] |
/freebsd-current/sys/dev/clk/starfive/ |
H A D | jh7110_clk_aon.c | 86 mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF); 128 mtx_lock(&sc->mtx); 137 mtx_unlock(&sc->mtx);
|
/freebsd-current/sys/arm/allwinner/ |
H A D | a33_codec.c | 146 struct mtx mtx; member in struct:sun8i_codec_softc 152 #define CODEC_LOCK(sc) mtx_lock(&(sc)->mtx) 153 #define CODEC_UNLOCK(sc) mtx_unlock(&(sc)->mtx) 187 mtx_init(&sc->mtx, device_get_nameunit(dev), NULL, MTX_DEF); 303 mtx_destroy(&sc->mtx);
|