/freebsd-11-stable/sys/dev/usb/net/ |
H A D | if_urndisreg.h | 41 struct mtx sc_mtx; member in struct:urndis_softc 54 #define URNDIS_LOCK(sc) mtx_lock(&(sc)->sc_mtx) 55 #define URNDIS_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) 56 #define URNDIS_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->sc_mtx, (what))
|
H A D | if_iphethvar.h | 69 struct mtx sc_mtx; member in struct:ipheth_softc 80 #define IPHETH_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 81 #define IPHETH_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 82 #define IPHETH_LOCK_ASSERT(_sc, t) mtx_assert(&(_sc)->sc_mtx, t)
|
H A D | if_cdcereg.h | 81 struct mtx sc_mtx; member in struct:cdce_softc 102 #define CDCE_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 103 #define CDCE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 104 #define CDCE_LOCK_ASSERT(_sc, t) mtx_assert(&(_sc)->sc_mtx, t)
|
H A D | if_cuereg.h | 123 struct mtx sc_mtx; member in struct:cue_softc 130 #define CUE_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 131 #define CUE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 132 #define CUE_LOCK_ASSERT(_sc, t) mtx_assert(&(_sc)->sc_mtx, t)
|
H A D | if_mosreg.h | 163 struct mtx sc_mtx; member in struct:mos_softc 174 #define MOS_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 175 #define MOS_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 176 #define MOS_LOCK_ASSERT(_sc, t) mtx_assert(&(_sc)->sc_mtx, t)
|
/freebsd-11-stable/sys/arm/ti/ |
H A D | ti_adcvar.h | 41 struct mtx sc_mtx; member in struct:ti_adc_softc 76 mtx_lock(&(_sc)->sc_mtx) 78 mtx_unlock(&(_sc)->sc_mtx) 80 mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->sc_dev), \ 83 mtx_destroy(&_sc->sc_mtx); 85 mtx_assert(&(_sc)->sc_mtx, MA_OWNED)
|
H A D | ti_spivar.h | 37 struct mtx sc_mtx; member in struct:ti_spi_softc 67 mtx_lock(&(_sc)->sc_mtx) 69 mtx_unlock(&(_sc)->sc_mtx)
|
/freebsd-11-stable/sys/dev/sn/ |
H A D | if_snvar.h | 35 struct mtx sc_mtx; member in struct:sn_softc 73 #define SN_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 74 #define SN_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 76 mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->dev), \ 78 #define SN_LOCK_DESTROY(_sc) mtx_destroy(&_sc->sc_mtx); 79 #define SN_ASSERT_LOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_OWNED); 80 #define SN_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_NOTOWNED);
|
/freebsd-11-stable/sys/dev/etherswitch/ip17x/ |
H A D | ip17x_var.h | 60 struct mtx sc_mtx; /* serialize access to softc */ member in struct:ip17x_softc 80 mtx_lock(&(_sc)->sc_mtx) 82 mtx_unlock(&(_sc)->sc_mtx) 84 mtx_assert(&(_sc)->sc_mtx, (_what)) 86 mtx_trylock(&(_sc)->sc_mtx)
|
/freebsd-11-stable/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_spivar.h | 47 struct mtx sc_mtx; member in struct:bcm_spi_softc 68 mtx_lock(&(_sc)->sc_mtx) 70 mtx_unlock(&(_sc)->sc_mtx)
|
H A D | bcm2835_bscvar.h | 48 struct mtx sc_mtx; member in struct:bcm_bsc_softc 75 mtx_lock(&(_sc)->sc_mtx) 77 mtx_unlock(&(_sc)->sc_mtx)
|
/freebsd-11-stable/sys/dev/mmc/ |
H A D | mmc_private.h | 60 struct mtx sc_mtx; member in struct:mmc_softc
|
/freebsd-11-stable/sys/dev/le/ |
H A D | lancevar.h | 43 struct mtx sc_mtx; member in struct:lance_softc 120 mtx_init(&(_sc)->sc_mtx, _name, MTX_NETWORK_LOCK, MTX_DEF) 121 #define LE_LOCK_INITIALIZED(_sc) mtx_initialized(&(_sc)->sc_mtx) 122 #define LE_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 123 #define LE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 124 #define LE_LOCK_ASSERT(_sc, _what) mtx_assert(&(_sc)->sc_mtx, (_what)) 125 #define LE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->sc_mtx)
|
/freebsd-11-stable/sys/net/ |
H A D | if_bridgevar.h | 273 mtx_init(&(_sc)->sc_mtx, "if_bridge", NULL, MTX_DEF); \ 277 mtx_destroy(&(_sc)->sc_mtx); \ 280 #define BRIDGE_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 281 #define BRIDGE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 282 #define BRIDGE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->sc_mtx, MA_OWNED) 283 #define BRIDGE_UNLOCK_ASSERT(_sc) mtx_assert(&(_sc)->sc_mtx, MA_NOTOWNED) 285 mtx_assert(&(_sc)->sc_mtx, MA_OWNED); \ 290 mtx_unlock(&(_sc)->sc_mtx); \ 293 mtx_lock(&(_sc)->sc_mtx); \ 297 mtx_unlock(&(_sc)->sc_mtx); \ [all...] |
/freebsd-11-stable/sys/sparc64/pci/ |
H A D | psychovar.h | 48 struct mtx *sc_mtx; member in struct:psycho_softc
|
/freebsd-11-stable/sys/dev/usb/wlan/ |
H A D | if_uralvar.h | 108 struct mtx sc_mtx; member in struct:ural_softc 133 #define RAL_LOCK(sc) mtx_lock(&(sc)->sc_mtx) 134 #define RAL_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) 135 #define RAL_LOCK_ASSERT(sc, t) mtx_assert(&(sc)->sc_mtx, t)
|
/freebsd-11-stable/sys/dev/cm/ |
H A D | smc90cx6var.h | 53 struct mtx sc_mtx; /* sc mutex */ member in struct:cm_softc 91 #define CM_LOCK(sc) mtx_lock(&(sc)->sc_mtx) 92 #define CM_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx)
|
/freebsd-11-stable/sys/dev/bm/ |
H A D | if_bmvar.h | 43 #define BM_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 44 #define BM_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 75 struct mtx sc_mtx; member in struct:bm_softc
|
/freebsd-11-stable/sys/dev/mc146818/ |
H A D | mc146818.c | 58 if (mtx_initialized(&sc->sc_mtx) == 0) { 79 mtx_lock_spin(&sc->sc_mtx); 81 mtx_unlock_spin(&sc->sc_mtx); 93 mtx_unlock_spin(&sc->sc_mtx); 120 mtx_lock_spin(&sc->sc_mtx); 123 mtx_unlock_spin(&sc->sc_mtx); 147 mtx_unlock_spin(&sc->sc_mtx); 166 mtx_lock_spin(&sc->sc_mtx); 169 mtx_unlock_spin(&sc->sc_mtx); 172 mtx_unlock_spin(&sc->sc_mtx); [all...] |
/freebsd-11-stable/sys/dev/etherswitch/arswitch/ |
H A D | arswitchvar.h | 52 struct mtx sc_mtx; /* serialize access to softc */ member in struct:arswitch_softc 127 mtx_lock(&(_sc)->sc_mtx) 129 mtx_unlock(&(_sc)->sc_mtx) 131 mtx_assert(&(_sc)->sc_mtx, (_what)) 133 mtx_trylock(&(_sc)->sc_mtx)
|
/freebsd-11-stable/sys/dev/etherswitch/mtkswitch/ |
H A D | mtkswitchvar.h | 59 struct mtx sc_mtx; member in struct:mtkswitch_softc 122 mtx_lock(&(_sc)->sc_mtx) 124 mtx_unlock(&(_sc)->sc_mtx) 126 mtx_assert(&(_sc)->sc_mtx, (_what)) 128 mtx_trylock(&(_sc)->sc_mtx)
|
/freebsd-11-stable/sys/dev/gpio/ |
H A D | gpioled.c | 52 #define GPIOLED_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 53 #define GPIOLED_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 54 #define GPIOLED_LOCK_INIT(_sc) mtx_init(&(_sc)->sc_mtx, \ 56 #define GPIOLED_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->sc_mtx) 62 struct mtx sc_mtx; member in struct:gpioled_softc
|
H A D | gpiobusvar.h | 53 #define GPIOBUS_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 54 #define GPIOBUS_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 55 #define GPIOBUS_LOCK_INIT(_sc) mtx_init(&_sc->sc_mtx, \ 57 #define GPIOBUS_LOCK_DESTROY(_sc) mtx_destroy(&_sc->sc_mtx) 58 #define GPIOBUS_ASSERT_LOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_OWNED) 59 #define GPIOBUS_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_NOTOWNED) 84 struct mtx sc_mtx; /* bus mutex */ member in struct:gpiobus_softc
|
/freebsd-11-stable/sys/dev/ep/ |
H A D | if_epvar.h | 40 struct mtx sc_mtx; member in struct:ep_softc 105 #define EP_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 106 #define EP_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 108 mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->dev), \ 110 #define EP_LOCK_DESTROY(_sc) mtx_destroy(&_sc->sc_mtx); 111 #define EP_ASSERT_LOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_OWNED); 112 #define EP_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_NOTOWNED);
|
/freebsd-11-stable/sys/dev/iwi/ |
H A D | if_iwivar.h | 129 struct mtx sc_mtx; member in struct:iwi_softc 249 mtx_init(&(sc)->sc_mtx, device_get_nameunit((sc)->sc_dev), \ 251 #define IWI_LOCK_DESTROY(sc) mtx_destroy(&(sc)->sc_mtx) 253 #define IWI_LOCK_ASSERT(sc) mtx_assert(&(sc)->sc_mtx, MA_OWNED) 255 if (!(__waslocked = mtx_owned(&(sc)->sc_mtx))) \ 256 mtx_lock(&(sc)->sc_mtx); \ 260 mtx_unlock(&(sc)->sc_mtx); \
|