Home
last modified time | relevance | path

Searched refs:sc_mtx (Results 1 – 15 of 15) sorted by relevance

/openbsd/src/sys/dev/fdt/
Dmvmdio.c61 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/
Dvideo.c61 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/
Dbridgectl.c105 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 …]
Dif_pflow.c167 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 …]
Dif_tun.c82 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()
Dif_pppx.c963 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()
Dif_pflow.h182 struct mutex sc_mtx; member
Dif_bridge.h482 struct mutex sc_mtx; /* mutex */ member
Dif_bridge.c188 mtx_init(&sc->sc_mtx, IPL_MPFLOOR); in bridge_clone_create()
/openbsd/src/sys/dev/usb/
Duhidpp.c227 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/
Dcryptox.c60 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/
Daplspi.c74 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/
Daesni.c68 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/
Dathvar.h342 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/
Doctcrypto.c91 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()