| /freebsd-11-stable/sys/dev/iscsi/ |
| HD | icl.c | 68 struct sx sc_lock; member 99 sx_slock(&sc->sc_lock); in sysctl_kern_icl_offloads() 107 sx_sunlock(&sc->sc_lock); in sysctl_kern_icl_offloads() 121 sx_assert(&sc->sc_lock, SA_LOCKED); in icl_find() 171 sx_slock(&sc->sc_lock); in icl_new_conn() 174 sx_sunlock(&sc->sc_lock); in icl_new_conn() 179 sx_sunlock(&sc->sc_lock); in icl_new_conn() 190 sx_slock(&sc->sc_lock); in icl_limits() 193 sx_sunlock(&sc->sc_lock); in icl_limits() 198 sx_sunlock(&sc->sc_lock); in icl_limits() [all …]
|
| HD | iscsi.c | 433 sx_xlock(&sc->sc_lock); in iscsi_maintenance_thread_terminate() 435 sx_xunlock(&sc->sc_lock); in iscsi_maintenance_thread_terminate() 1320 sx_slock(&sc->sc_lock); in iscsi_ioctl_daemon_wait() 1338 error = cv_wait_sig(&sc->sc_cv, &sc->sc_lock); in iscsi_ioctl_daemon_wait() 1340 sx_sunlock(&sc->sc_lock); in iscsi_ioctl_daemon_wait() 1365 sx_sunlock(&sc->sc_lock); in iscsi_ioctl_daemon_wait() 1369 sx_sunlock(&sc->sc_lock); in iscsi_ioctl_daemon_wait() 1382 sx_slock(&sc->sc_lock); in iscsi_ioctl_daemon_handoff() 1392 sx_sunlock(&sc->sc_lock); in iscsi_ioctl_daemon_handoff() 1399 sx_sunlock(&sc->sc_lock); in iscsi_ioctl_daemon_handoff() [all …]
|
| /freebsd-11-stable/sys/fs/autofs/ |
| HD | autofs.c | 182 sx_init(&autofs_softc->sc_lock, "autofslk"); in autofs_init() 203 sx_xlock(&autofs_softc->sc_lock); in autofs_uninit() 205 sx_xunlock(&autofs_softc->sc_lock); in autofs_uninit() 214 sx_xunlock(&autofs_softc->sc_lock); in autofs_uninit() 280 sx_xlock(&autofs_softc->sc_lock); in autofs_task() 291 sx_xunlock(&autofs_softc->sc_lock); in autofs_task() 397 sx_assert(&autofs_softc->sc_lock, SA_XLOCKED); in autofs_trigger_one() 456 &autofs_softc->sc_lock); in autofs_trigger_one() 464 cv_wait(&autofs_softc->sc_cv, &autofs_softc->sc_lock); in autofs_trigger_one() 482 sx_xunlock(&autofs_softc->sc_lock); in autofs_trigger_one() [all …]
|
| /freebsd-11-stable/sys/i386/isa/ |
| HD | spic.c | 109 struct mtx sc_lock; member 341 mtx_init(&sc->sc_lock, "spic", NULL, MTX_DEF); in spic_attach() 342 callout_init_mtx(&sc->sc_timeout, &sc->sc_lock, 0); in spic_attach() 366 mtx_assert(&sc->sc_lock, MA_OWNED); in spictimeout() 459 mtx_lock(&sc->sc_lock); in spicopen() 461 mtx_unlock(&sc->sc_lock); in spicopen() 470 mtx_unlock(&sc->sc_lock); in spicopen() 480 mtx_lock(&sc->sc_lock); in spicclose() 485 mtx_unlock(&sc->sc_lock); in spicclose() 501 mtx_lock(&sc->sc_lock); in spicread() [all …]
|
| /freebsd-11-stable/sys/geom/raid3/ |
| HD | g_raid3_ctl.c | 64 sx_xlock(&sc->sc_lock); in g_raid3_find_device() 78 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid3_find_disk() 195 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_configure() 258 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_configure() 293 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_rebuild() 299 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_rebuild() 305 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_rebuild() 324 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_rebuild() 330 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_rebuild() 379 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_stop() [all …]
|
| HD | g_raid3.c | 317 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid3_event_send() 319 sx_xunlock(&sc->sc_lock); in g_raid3_event_send() 327 sx_xlock(&sc->sc_lock); in g_raid3_event_send() 358 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid3_event_cancel() 387 sx_assert(&sc->sc_lock, SX_LOCKED); in g_raid3_ndisks() 573 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid3_destroy_disk() 609 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid3_destroy_device() 651 sx_xunlock(&sc->sc_lock); in g_raid3_destroy_device() 652 sx_destroy(&sc->sc_lock); in g_raid3_destroy_device() 681 sx_assert(&sc->sc_lock, SX_LOCKED); in g_raid3_write_metadata() [all …]
|
| /freebsd-11-stable/sys/mips/nlm/dev/net/ |
| HD | xlpge.h | 112 struct mtx sc_lock; member 132 mtx_init(&(_sc)->sc_lock, _name, MTX_NETWORK_LOCK, MTX_DEF) 133 #define XLPGE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->sc_lock) 134 #define XLPGE_LOCK(_sc) mtx_lock(&(_sc)->sc_lock) 135 #define XLPGE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_lock) 136 #define XLPGE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->sc_lock, MA_OWNED)
|
| /freebsd-11-stable/sys/geom/mirror/ |
| HD | g_mirror_ctl.c | 60 sx_xlock(&sc->sc_lock); in g_mirror_find_device() 73 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_mirror_find_disk() 196 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure() 204 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure() 215 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure() 222 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure() 227 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure() 232 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure() 294 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure() 437 sx_xlock(&sc->sc_lock); in g_mirror_ctl_create() [all …]
|
| HD | g_mirror.c | 208 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_mirror_event_send() 210 sx_xunlock(&sc->sc_lock); in g_mirror_event_send() 218 sx_xlock(&sc->sc_lock); in g_mirror_event_send() 249 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_mirror_event_cancel() 293 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_mirror_id2disk() 492 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_mirror_destroy_disk() 528 sx_destroy(&sc->sc_lock); in g_mirror_free_device() 550 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_mirror_destroy_device() 583 sx_xunlock(&sc->sc_lock); in g_mirror_destroy_device() 658 sx_assert(&sc->sc_lock, SX_LOCKED); in g_mirror_write_metadata() [all …]
|
| /freebsd-11-stable/sys/dev/iicbus/ |
| HD | ad7418.c | 69 struct sx sc_lock; member 94 sx_xlock(&sc->sc_lock); in ad7418_sysctl_temp() 97 sx_xunlock(&sc->sc_lock); in ad7418_sysctl_temp() 107 sx_xlock(&sc->sc_lock); in ad7418_sysctl_voltage() 110 sx_xunlock(&sc->sc_lock); in ad7418_sysctl_voltage() 125 sx_init(&sc->sc_lock, "ad7418"); in ad7418_attach() 205 sx_assert(&sc->sc_lock, SA_XLOCKED); in ad7418_update()
|
| /freebsd-11-stable/sys/kern/ |
| HD | subr_sleepqueue.c | 134 struct mtx sc_lock; /* Spin lock for this chain. */ member 214 mtx_init(&sleepq_chains[i].sc_lock, "sleepq chain", NULL, in init_sleepqueues() 256 mtx_lock_spin(&sc->sc_lock); in sleepq_lock() 272 mtx_assert(&sc->sc_lock, MA_OWNED); in sleepq_lookup() 288 mtx_unlock_spin(&sc->sc_lock); in sleepq_release() 307 mtx_assert(&sc->sc_lock, MA_OWNED); in sleepq_add() 387 mtx_assert(&sc->sc_lock, MA_OWNED); in sleepq_set_timeout_sbt() 439 mtx_assert(&sc->sc_lock, MA_OWNED); in sleepq_catch_signals() 455 mtx_unlock_spin(&sc->sc_lock); in sleepq_catch_signals() 469 mtx_lock_spin(&sc->sc_lock); in sleepq_catch_signals() [all …]
|
| /freebsd-11-stable/sys/dev/mse/ |
| HD | msevar.h | 69 struct mtx sc_lock; member 78 #define MSE_LOCK(sc) mtx_lock(&(sc)->sc_lock) 79 #define MSE_UNLOCK(sc) mtx_unlock(&(sc)->sc_lock) 80 #define MSE_ASSERT_LOCKED(sc) mtx_assert(&(sc)->sc_lock, MA_OWNED)
|
| HD | mse.c | 126 mtx_init(&sc->sc_lock, "mse", NULL, MTX_DEF); in mse_common_attach() 127 callout_init_mtx(&sc->sc_callout, &sc->sc_lock, 0); in mse_common_attach() 134 mtx_destroy(&sc->sc_lock); in mse_common_attach() 142 mtx_destroy(&sc->sc_lock); in mse_common_attach() 183 mtx_destroy(&sc->sc_lock); in mse_detach() 262 error = mtx_sleep(sc, &sc->sc_lock, MSEPRI | PCATCH, "mseread", in mseread() 277 error = mtx_sleep(sc, &sc->sc_lock, MSEPRI | PCATCH, in mseread()
|
| /freebsd-11-stable/sys/geom/raid/ |
| HD | g_raid.c | 626 sx_xlocked(&sc->sc_lock) ? M_WAITOK : M_NOWAIT); in g_raid_event_send() 642 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_event_send() 644 sx_xunlock(&sc->sc_lock); in g_raid_event_send() 652 sx_xlock(&sc->sc_lock); in g_raid_event_send() 661 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_event_cancel() 684 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_event_check() 707 sx_assert(&sc->sc_lock, SX_LOCKED); in g_raid_ndisks() 729 sx_assert(&sc->sc_lock, SX_LOCKED); in g_raid_nsubdisks() 754 sx_assert(&sc->sc_lock, SX_LOCKED); in g_raid_get_subdisk() 916 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_clean() [all …]
|
| HD | g_raid_ctl.c | 131 sx_xlock(&sc->sc_lock); in g_raid_ctl_label() 144 sx_xunlock(&sc->sc_lock); in g_raid_ctl_label() 181 sx_xlock(&sc->sc_lock); in g_raid_ctl_stop() 216 sx_xlock(&sc->sc_lock); in g_raid_ctl_other() 222 sx_xunlock(&sc->sc_lock); in g_raid_ctl_other()
|
| /freebsd-11-stable/sys/dev/hme/ |
| HD | if_hmevar.h | 140 struct mtx sc_lock; member 143 #define HME_LOCK(_sc) mtx_lock(&(_sc)->sc_lock) 144 #define HME_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_lock) 145 #define HME_LOCK_ASSERT(_sc, _what) mtx_assert(&(_sc)->sc_lock, (_what))
|
| /freebsd-11-stable/sys/dev/dpaa/ |
| HD | if_dtsec.h | 39 #define DTSEC_LOCK(sc) mtx_lock(&(sc)->sc_lock) 40 #define DTSEC_UNLOCK(sc) mtx_unlock(&(sc)->sc_lock) 41 #define DTSEC_LOCK_ASSERT(sc) mtx_assert(&(sc)->sc_lock, MA_OWNED) 55 struct mtx sc_lock; member
|
| /freebsd-11-stable/sys/dev/esp/ |
| HD | ncr53c9xvar.h | 378 struct mtx sc_lock; /* driver mutex */ member 467 mtx_init(&(_sc)->sc_lock, "ncr", "ncr53c9x lock", MTX_DEF); 468 #define NCR_LOCK_INITIALIZED(_sc) mtx_initialized(&(_sc)->sc_lock) 469 #define NCR_LOCK(_sc) mtx_lock(&(_sc)->sc_lock) 470 #define NCR_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_lock) 471 #define NCR_LOCK_ASSERT(_sc, _what) mtx_assert(&(_sc)->sc_lock, (_what)) 472 #define NCR_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->sc_lock)
|
| /freebsd-11-stable/sys/dev/auxio/ |
| HD | auxio.c | 116 struct mtx sc_lock; member 171 mtx_init(&sc->sc_lock, "auxio mtx", NULL, MTX_DEF) 172 #define AUXIO_LOCK(sc) mtx_lock(&sc->sc_lock) 173 #define AUXIO_UNLOCK(sc) mtx_unlock(&sc->sc_lock) 174 #define AUXIO_LOCK_DESTROY(sc) mtx_destroy(&sc->sc_lock)
|
| /freebsd-11-stable/sys/dev/xen/netback/ |
| HD | netback.c | 502 struct mtx sc_lock; member 1059 mtx_unlock(&xnb->sc_lock); in xnb_shutdown() 1067 mtx_lock(&xnb->sc_lock); in xnb_shutdown() 1071 mtx_unlock(&xnb->sc_lock); in xnb_shutdown() 1074 mtx_lock(&xnb->sc_lock); in xnb_shutdown() 1193 mtx_init(&xnb->sc_lock, "xnb_softc", "xen netback softc lock", MTX_DEF); in create_netdev() 1337 mtx_lock(&xnb->sc_lock); in xnb_detach() 1339 msleep(xnb, &xnb->sc_lock, /*wakeup prio unchanged*/0, in xnb_detach() 1342 mtx_unlock(&xnb->sc_lock); in xnb_detach() 1347 mtx_destroy(&xnb->sc_lock); in xnb_detach() [all …]
|
| /freebsd-11-stable/lib/libthr/thread/ |
| HD | thr_sleepq.c | 42 struct umutex sc_lock; member 57 _thr_umutex_init(&sc_table[i].sc_lock); in _sleepq_init() 85 THR_LOCK_ACQUIRE_SPIN(curthread, &sc->sc_lock); in _sleepq_lock() 95 THR_LOCK_RELEASE(curthread, &sc->sc_lock); in _sleepq_unlock()
|
| /freebsd-11-stable/sys/dev/snc/ |
| HD | dp83932var.h | 203 struct mtx sc_lock; member 208 #define SNC_LOCK(sc) mtx_lock(&(sc)->sc_lock) 209 #define SNC_UNLOCK(sc) mtx_unlock(&(sc)->sc_lock) 210 #define SNC_ASSERT_LOCKED(sc) mtx_assert(&(sc)->sc_lock, MA_OWNED)
|
| HD | if_snc.c | 218 mtx_init(&sc->sc_lock, device_get_nameunit(dev), MTX_NETWORK_LOCK, in snc_attach() 220 callout_init_mtx(&sc->sc_timer, &sc->sc_lock, 0); in snc_attach() 224 mtx_destroy(&sc->sc_lock); in snc_attach() 234 mtx_destroy(&sc->sc_lock); in snc_attach()
|
| /freebsd-11-stable/sys/dev/iir/ |
| HD | iir.c | 209 /*lockarg*/&gdt->sc_lock, in iir_init() 229 /*lockarg*/&gdt->sc_lock, in iir_init() 273 callout_init_mtx(&gccb->gc_timeout, &gdt->sc_lock, 0); in iir_init() 282 mtx_lock(&gdt->sc_lock); in iir_init() 285 mtx_unlock(&gdt->sc_lock); in iir_init() 296 mtx_unlock(&gdt->sc_lock); in iir_init() 308 mtx_unlock(&gdt->sc_lock); in iir_init() 341 mtx_unlock(&gdt->sc_lock); in iir_init() 361 mtx_unlock(&gdt->sc_lock); in iir_init() 377 mtx_unlock(&gdt->sc_lock); in iir_init() [all …]
|
| HD | iir_ctrl.c | 202 mtx_lock(&gdt->sc_lock); in iir_ioctl() 207 (void) mtx_sleep(ucmd, &gdt->sc_lock, PCATCH | PRIBIO, "iirucw", in iir_ioctl() 209 mtx_unlock(&gdt->sc_lock); in iir_ioctl()
|