| /openbsd/src/sys/dev/fdt/ |
| 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/src/sys/dev/ |
| D | video.c | 61 struct mutex sc_mtx; member 117 mtx_init(&sc->sc_mtx, IPL_MPFLOOR); in videoattach() 118 klist_init_mutex(&sc->sc_rklist, &sc->sc_mtx); in videoattach() 219 mtx_enter(&sc->sc_mtx); in videoread() 223 error = msleep_nsec(sc, &sc->sc_mtx, PWAIT | PCATCH, in videoread() 228 mtx_leave(&sc->sc_mtx); in videoread() 234 mtx_leave(&sc->sc_mtx); in videoread() 377 mtx_enter(&sc->sc_mtx); in videoioctl() 379 mtx_leave(&sc->sc_mtx); in videoioctl() 473 mtx_enter(&sc->sc_mtx); in filt_videomodify() [all …]
|
| /openbsd/src/sys/net/ |
| 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() 376 mtx_enter(&sc->sc_mtx); in bridge_rtagenode() 386 mtx_leave(&sc->sc_mtx); in bridge_rtagenode() [all …]
|
| D | if_pflow.c | 167 mtx_init(&pflowif->sc_mtx, IPL_MPFLOOR); in pflow_clone_create() 487 mtx_enter(&sc->sc_mtx); in pflow_set() 507 mtx_leave(&sc->sc_mtx); in pflow_set() 550 mtx_enter(&sc->sc_mtx); in pflowioctl() 554 mtx_leave(&sc->sc_mtx); in pflowioctl() 570 mtx_enter(&sc->sc_mtx); in pflowioctl() 572 mtx_leave(&sc->sc_mtx); in pflowioctl() 585 mtx_enter(&sc->sc_mtx); in pflowioctl() 587 mtx_leave(&sc->sc_mtx); in pflowioctl() 606 mtx_enter(&sc->sc_mtx); in pflowioctl() [all …]
|
| D | if_tun.c | 82 struct mutex sc_mtx; member 238 mtx_init(&sc->sc_mtx, IPL_NET); in tun_create() 239 klist_init_mutex(&sc->sc_rklist, &sc->sc_mtx); in tun_create() 240 klist_init_mutex(&sc->sc_wklist, &sc->sc_mtx); in tun_create() 1147 MUTEX_ASSERT_LOCKED(&sc->sc_mtx); in filt_tunread() 1168 MUTEX_ASSERT_LOCKED(&sc->sc_mtx); in filt_tunwrite() 1181 mtx_enter(&sc->sc_mtx); in filt_tunmodify() 1183 mtx_leave(&sc->sc_mtx); in filt_tunmodify() 1194 mtx_enter(&sc->sc_mtx); in filt_tunprocess() 1196 mtx_leave(&sc->sc_mtx); in filt_tunprocess()
|
| D | if_pppx.c | 963 struct mutex sc_mtx; member 1060 mtx_init(&sc->sc_mtx, IPL_SOFTNET); in pppacopen() 1061 klist_init_mutex(&sc->sc_rklist, &sc->sc_mtx); in pppacopen() 1062 klist_init_mutex(&sc->sc_wklist, &sc->sc_mtx); in pppacopen() 1279 MUTEX_ASSERT_LOCKED(&sc->sc_mtx); in filt_pppac_read() 1307 mtx_enter(&sc->sc_mtx); in filt_pppac_modify() 1309 mtx_leave(&sc->sc_mtx); in filt_pppac_modify() 1320 mtx_enter(&sc->sc_mtx); in filt_pppac_process() 1322 mtx_leave(&sc->sc_mtx); in filt_pppac_process()
|
| D | if_pflow.h | 182 struct mutex sc_mtx; member
|
| D | if_bridge.h | 482 struct mutex sc_mtx; /* mutex */ member
|
| D | if_bridge.c | 188 mtx_init(&sc->sc_mtx, IPL_MPFLOOR); in bridge_clone_create()
|
| /openbsd/src/sys/dev/usb/ |
| D | uhidpp.c | 227 struct mutex sc_mtx; member 374 mtx_init(&sc->sc_mtx, IPL_USB); in uhidpp_attach() 388 mtx_enter(&sc->sc_mtx); in uhidpp_attach() 398 mtx_leave(&sc->sc_mtx); in uhidpp_attach() 405 mtx_leave(&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() [all …]
|
| /openbsd/src/sys/arch/arm64/arm64/ |
| 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/src/sys/arch/arm64/dev/ |
| 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/src/sys/arch/amd64/amd64/ |
| 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/src/sys/dev/ic/ |
| 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/src/sys/arch/octeon/dev/ |
| 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()
|