/openbsd/sys/dev/fdt/ |
H A D | mvmdio.c | 61 struct mutex sc_mtx; member 108 mtx_init(&sc->sc_mtx, IPL_NET); in mvmdio_attach() 126 mtx_enter(&sc->sc_mtx); in mvmdio_smi_readreg() 135 mtx_leave(&sc->sc_mtx); in mvmdio_smi_readreg() 150 mtx_leave(&sc->sc_mtx); in mvmdio_smi_readreg() 164 mtx_enter(&sc->sc_mtx); in mvmdio_smi_writereg() 173 mtx_leave(&sc->sc_mtx); in mvmdio_smi_writereg() 187 mtx_leave(&sc->sc_mtx); in mvmdio_smi_writereg()
|
/openbsd/sys/net/ |
H A D | bridgectl.c | 105 mtx_enter(&sc->sc_mtx); in bridgectl_ioctl() 107 mtx_leave(&sc->sc_mtx); in bridgectl_ioctl() 179 mtx_enter(&sc->sc_mtx); in bridge_rtupdate() 268 mtx_leave(&sc->sc_mtx); in bridge_rtupdate() 282 mtx_enter(&sc->sc_mtx); in bridge_rtlookup() 303 mtx_leave(&sc->sc_mtx); in bridge_rtlookup() 329 mtx_enter(&sc->sc_mtx); in bridge_rtage() 350 mtx_leave(&sc->sc_mtx); in bridge_rtage() 401 mtx_enter(&sc->sc_mtx); in bridge_rtflush() 416 mtx_leave(&sc->sc_mtx); in bridge_rtflush() [all …]
|
H A D | if_pflow.c | 487 mtx_enter(&sc->sc_mtx); in pflow_set() 507 mtx_leave(&sc->sc_mtx); in pflow_set() 570 mtx_enter(&sc->sc_mtx); in pflowioctl() 1069 mtx_enter(&sc->sc_mtx); in pflow_timeout() 1080 mtx_leave(&sc->sc_mtx); in pflow_timeout() 1088 mtx_enter(&sc->sc_mtx); in pflow_timeout6() 1090 mtx_leave(&sc->sc_mtx); in pflow_timeout6() 1098 mtx_enter(&sc->sc_mtx); in pflow_timeout_tmpl() 1100 mtx_leave(&sc->sc_mtx); in pflow_timeout_tmpl() 1106 mtx_enter(&sc->sc_mtx); in pflow_flush() [all …]
|
H A D | if_tun.c | 82 struct mutex sc_mtx; member 231 mtx_init(&sc->sc_mtx, IPL_NET); in tun_create() 232 klist_init_mutex(&sc->sc_rklist, &sc->sc_mtx); in tun_create() 233 klist_init_mutex(&sc->sc_wklist, &sc->sc_mtx); in tun_create() 1020 MUTEX_ASSERT_LOCKED(&sc->sc_mtx); in filt_tunread() 1041 MUTEX_ASSERT_LOCKED(&sc->sc_mtx); in filt_tunwrite() 1054 mtx_enter(&sc->sc_mtx); in filt_tunmodify() 1056 mtx_leave(&sc->sc_mtx); in filt_tunmodify() 1067 mtx_enter(&sc->sc_mtx); in filt_tunprocess() 1069 mtx_leave(&sc->sc_mtx); in filt_tunprocess()
|
H A D | if_pppx.c | 967 struct mutex sc_mtx; member 1064 mtx_init(&sc->sc_mtx, IPL_SOFTNET); in pppacopen() 1065 klist_init_mutex(&sc->sc_rklist, &sc->sc_mtx); in pppacopen() 1066 klist_init_mutex(&sc->sc_wklist, &sc->sc_mtx); in pppacopen() 1285 MUTEX_ASSERT_LOCKED(&sc->sc_mtx); in filt_pppac_read() 1313 mtx_enter(&sc->sc_mtx); in filt_pppac_modify() 1315 mtx_leave(&sc->sc_mtx); in filt_pppac_modify() 1326 mtx_enter(&sc->sc_mtx); in filt_pppac_process() 1328 mtx_leave(&sc->sc_mtx); in filt_pppac_process()
|
H A D | if_pflow.h | 182 struct mutex sc_mtx; member
|
H A D | if_bridge.h | 482 struct mutex sc_mtx; /* mutex */ member
|
H A D | if_bridge.c | 188 mtx_init(&sc->sc_mtx, IPL_MPFLOOR); in bridge_clone_create()
|
/openbsd/sys/dev/usb/ |
H A D | uhidpp.c | 227 struct mutex sc_mtx; member 388 mtx_enter(&sc->sc_mtx); in uhidpp_attach() 444 mtx_leave(&sc->sc_mtx); in uhidpp_attach() 500 mtx_enter(&sc->sc_mtx); in uhidpp_intr() 517 mtx_leave(&sc->sc_mtx); in uhidpp_intr() 528 mtx_enter(&sc->sc_mtx); in uhidpp_refresh() 535 mtx_leave(&sc->sc_mtx); in uhidpp_refresh() 543 mtx_enter(&sc->sc_mtx); in uhidpp_task() 570 mtx_leave(&sc->sc_mtx); in uhidpp_task() 669 mtx_leave(&sc->sc_mtx); in uhidpp_device_connect() [all …]
|
/openbsd/sys/arch/arm64/arm64/ |
H A D | cryptox.c | 60 struct mutex sc_mtx; member 135 mtx_init(&cryptox_sc->sc_mtx, IPL_VM); in cryptox_setup() 247 mtx_enter(&cryptox_sc->sc_mtx); in cryptox_newsession() 250 mtx_leave(&cryptox_sc->sc_mtx); in cryptox_newsession() 262 mtx_enter(&cryptox_sc->sc_mtx); in cryptox_freesession() 269 mtx_leave(&cryptox_sc->sc_mtx); in cryptox_freesession()
|
/openbsd/sys/arch/arm64/dev/ |
H A D | aplspi.c | 74 struct mutex sc_mtx; member 165 mtx_init(&sc->sc_mtx, IPL_TTY); in aplspi_attach() 273 mtx_enter(&sc->sc_mtx); in aplspi_acquire_bus() 282 mtx_leave(&sc->sc_mtx); in aplspi_release_bus()
|
/openbsd/sys/arch/amd64/amd64/ |
H A D | aesni.c | 68 struct mutex sc_mtx; member 169 mtx_init(&aesni_sc->sc_mtx, IPL_VM); in aesni_setup() 330 mtx_enter(&aesni_sc->sc_mtx); in aesni_newsession() 333 mtx_leave(&aesni_sc->sc_mtx); in aesni_newsession() 345 mtx_enter(&aesni_sc->sc_mtx); in aesni_freesession() 352 mtx_leave(&aesni_sc->sc_mtx); in aesni_freesession()
|
/openbsd/sys/dev/ic/ |
H A D | athvar.h | 342 mtx_init(&(_sc)->sc_mtx, device_get_nameunit((_sc)->sc_dev), \ 344 #define ATH_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->sc_mtx) 345 #define ATH_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 346 #define ATH_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 347 #define ATH_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->sc_mtx, MA_OWNED)
|
/openbsd/sys/arch/octeon/dev/ |
H A D | octcrypto.c | 91 struct mutex sc_mtx; member 245 mtx_init(&sc->sc_mtx, IPL_VM); in octcrypto_attach() 292 mtx_enter(&sc->sc_mtx); in octcrypto_get() 295 mtx_leave(&sc->sc_mtx); in octcrypto_get() 518 mtx_enter(&sc->sc_mtx); in octcrypto_newsession() 529 mtx_leave(&sc->sc_mtx); in octcrypto_newsession() 542 mtx_enter(&sc->sc_mtx); in octcrypto_freesession() 547 mtx_leave(&sc->sc_mtx); in octcrypto_freesession()
|