/freebsd/sys/dev/iscsi/ |
H A D | icl.c | 67 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() 192 sx_slock(&sc->sc_lock); in icl_limits() 195 sx_sunlock(&sc->sc_lock); in icl_limits() 200 sx_sunlock(&sc->sc_lock); in icl_limits() [all …]
|
H A D | iscsi.c | 472 sx_xlock(&sc->sc_lock); in iscsi_maintenance_thread_terminate() 474 sx_xunlock(&sc->sc_lock); in iscsi_maintenance_thread_terminate() 1445 sx_slock(&sc->sc_lock); in iscsi_ioctl_daemon_wait() 1461 sx_sunlock(&sc->sc_lock); in iscsi_ioctl_daemon_wait() 1468 error = cv_wait_sig(&sc->sc_cv, &sc->sc_lock); in iscsi_ioctl_daemon_wait() 1470 sx_sunlock(&sc->sc_lock); in iscsi_ioctl_daemon_wait() 1499 sx_sunlock(&sc->sc_lock); in iscsi_ioctl_daemon_wait() 1513 sx_sunlock(&sc->sc_lock); in iscsi_ioctl_daemon_wait() 1526 sx_slock(&sc->sc_lock); in iscsi_ioctl_daemon_limits() 1536 sx_sunlock(&sc->sc_lock); in iscsi_ioctl_daemon_limits() [all …]
|
H A D | iscsi.h | 129 struct sx sc_lock; member
|
/freebsd/sys/fs/autofs/ |
H A D | autofs.c | 179 sx_init(&autofs_softc->sc_lock, "autofslk"); in autofs_init() 200 sx_xlock(&autofs_softc->sc_lock); in autofs_uninit() 202 sx_xunlock(&autofs_softc->sc_lock); in autofs_uninit() 211 sx_xunlock(&autofs_softc->sc_lock); in autofs_uninit() 277 sx_xlock(&autofs_softc->sc_lock); in autofs_task() 288 sx_xunlock(&autofs_softc->sc_lock); in autofs_task() 394 sx_assert(&autofs_softc->sc_lock, SA_XLOCKED); in autofs_trigger_one() 453 &autofs_softc->sc_lock); in autofs_trigger_one() 461 cv_wait(&autofs_softc->sc_cv, &autofs_softc->sc_lock); in autofs_trigger_one() 480 sx_xunlock(&autofs_softc->sc_lock); in autofs_trigger_one() [all …]
|
H A D | autofs_vfsops.c | 139 sx_xlock(&autofs_softc->sc_lock); in autofs_unmount() 148 sx_xunlock(&autofs_softc->sc_lock); in autofs_unmount()
|
/freebsd/sys/geom/raid3/ |
H A D | g_raid3_ctl.c | 62 sx_xlock(&sc->sc_lock); in g_raid3_find_device() 76 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid3_find_disk() 193 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_configure() 256 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_configure() 291 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_rebuild() 297 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_rebuild() 303 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_rebuild() 322 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_rebuild() 328 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_rebuild() 377 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_stop() [all …]
|
H A D | g_raid3.c | 321 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid3_event_dispatch() 323 sx_xunlock(&sc->sc_lock); in g_raid3_event_dispatch() 331 sx_xlock(&sc->sc_lock); in g_raid3_event_dispatch() 371 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid3_event_cancel() 400 sx_assert(&sc->sc_lock, SX_LOCKED); in g_raid3_ndisks() 586 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid3_destroy_disk() 625 sx_xunlock(&sc->sc_lock); in g_raid3_free_device() 626 sx_destroy(&sc->sc_lock); in g_raid3_free_device() 650 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid3_destroy_device() 715 sx_assert(&sc->sc_lock, SX_LOCKE in g_raid3_write_metadata() [all...] |
/freebsd/sys/dev/powermac_nvram/ |
H A D | powermac_nvram.c | 179 sx_init(&sc->sc_lock, "powermac_nvram"); in powermac_nvram_attach() 197 sx_destroy(&sc->sc_lock); in powermac_nvram_detach() 209 sx_xlock(&sc->sc_lock); in powermac_nvram_open() 215 sx_xunlock(&sc->sc_lock); in powermac_nvram_open() 227 sx_xlock(&sc->sc_lock); in powermac_nvram_close() 232 sx_xunlock(&sc->sc_lock); in powermac_nvram_close() 253 sx_xunlock(&sc->sc_lock); in powermac_nvram_close() 258 sx_xunlock(&sc->sc_lock); in powermac_nvram_close() 270 sx_xlock(&sc->sc_lock); in powermac_nvram_read() 284 sx_xunlock(&sc->sc_lock); in powermac_nvram_read() [all …]
|
H A D | powermac_nvramvar.h | 50 struct sx sc_lock; member
|
/freebsd/sys/kern/ |
H A D | subr_sleepqueue.c | 139 struct mtx sc_lock; /* Spin lock for this chain. */ member 223 mtx_init(&sleepq_chains[i].sc_lock, "sleepq chain", NULL, in init_sleepqueues() 265 mtx_lock_spin(&sc->sc_lock); in sleepq_lock() 281 mtx_assert(&sc->sc_lock, MA_OWNED); in sleepq_lookup() 297 mtx_unlock_spin(&sc->sc_lock); in sleepq_release() 316 mtx_assert(&sc->sc_lock, MA_OWNED); in sleepq_add() 403 mtx_assert(&sc->sc_lock, MA_OWNED); in sleepq_set_timeout_sbt() 441 mtx_assert(&sc->sc_lock, MA_OWNED); in sleepq_check_ast_sc_locked() 458 mtx_unlock_spin(&sc->sc_lock); in sleepq_check_ast_sc_locked() 473 mtx_lock_spin(&sc->sc_lock); in sleepq_check_ast_sc_locked() [all …]
|
/freebsd/sys/geom/mirror/ |
H A D | g_mirror_ctl.c | 64 sx_xlock(&sc->sc_lock); in g_mirror_find_device() 66 sx_xunlock(&sc->sc_lock); in g_mirror_find_device() 96 sx_xunlock(&sc->sc_lock); in g_mirror_find_launched_device() 117 error = sx_sleep(&sc, &sc->sc_lock, PRIBIO | PCATCH | PDROP, in g_mirror_find_launched_device() 130 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_mirror_find_disk() 253 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure() 261 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure() 272 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure() 279 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure() 284 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure() [all …]
|
H A D | g_mirror.c | 216 sx_xunlock(&sc->sc_lock); in g_mirror_event_dispatch() 224 sx_xlock(&sc->sc_lock); in g_mirror_event_dispatch() 264 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_mirror_event_cancel() 308 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_mirror_id2disk() 515 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_mirror_destroy_disk() 551 sx_destroy(&sc->sc_lock); in g_mirror_free_device() 573 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_mirror_destroy_device() 606 sx_xunlock(&sc->sc_lock); in g_mirror_destroy_device() 681 sx_assert(&sc->sc_lock, SX_LOCKED); in g_mirror_write_metadata() 734 sx_assert(&disk->d_softc->sc_lock, SX_LOCKED); in g_mirror_clear_metadata() [all …]
|
/freebsd/sys/dev/iicbus/adc/ |
H A D | ad7418.c | 61 struct sx sc_lock; member 86 sx_xlock(&sc->sc_lock); in ad7418_sysctl_temp() 89 sx_xunlock(&sc->sc_lock); in ad7418_sysctl_temp() 99 sx_xlock(&sc->sc_lock); in ad7418_sysctl_voltage() 102 sx_xunlock(&sc->sc_lock); in ad7418_sysctl_voltage() 117 sx_init(&sc->sc_lock, "ad7418"); in ad7418_attach() 197 sx_assert(&sc->sc_lock, SA_XLOCKED); in ad7418_update()
|
/freebsd/sys/dev/dpaa/ |
H A D | fman_mdio.c | 54 #define MDIO_LOCK() mtx_lock(&sc->sc_lock) 55 #define MDIO_UNLOCK() mtx_unlock(&sc->sc_lock) 78 struct mtx sc_lock; member 136 mtx_init(&sc->sc_lock, device_get_nameunit(dev), "QorIQ MDIO lock", in pqmdio_fdt_attach() 149 mtx_destroy(&sc->sc_lock); in pqmdio_detach()
|
H A D | if_dtsec.h | 37 #define DTSEC_LOCK(sc) mtx_lock(&(sc)->sc_lock) 38 #define DTSEC_UNLOCK(sc) mtx_unlock(&(sc)->sc_lock) 39 #define DTSEC_LOCK_ASSERT(sc) mtx_assert(&(sc)->sc_lock, MA_OWNED) 54 struct mtx sc_lock; member
|
/freebsd/sys/geom/raid/ |
H A D | g_raid.c | 630 sx_xlocked(&sc->sc_lock) ? M_WAITOK : M_NOWAIT); in g_raid_event_send() 646 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_event_send() 648 sx_xunlock(&sc->sc_lock); in g_raid_event_send() 656 sx_xlock(&sc->sc_lock); in g_raid_event_send() 665 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_event_cancel() 688 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_event_check() 711 sx_assert(&sc->sc_lock, SX_LOCKED); in g_raid_ndisks() 733 sx_assert(&sc->sc_lock, SX_LOCKED); in g_raid_nsubdisks() 758 sx_assert(&sc->sc_lock, SX_LOCKED); in g_raid_get_subdisk() 920 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_clean() [all …]
|
H A D | g_raid_ctl.c | 129 sx_xlock(&sc->sc_lock); in g_raid_ctl_label() 142 sx_xunlock(&sc->sc_lock); in g_raid_ctl_label() 179 sx_xlock(&sc->sc_lock); in g_raid_ctl_stop() 214 sx_xlock(&sc->sc_lock); in g_raid_ctl_other() 220 sx_xunlock(&sc->sc_lock); in g_raid_ctl_other()
|
/freebsd/lib/libthr/thread/ |
H A D | thr_sleepq.c | 41 struct umutex sc_lock; member 56 _thr_umutex_init(&sc_table[i].sc_lock); in _sleepq_init() 84 THR_LOCK_ACQUIRE_SPIN(curthread, &sc->sc_lock); in _sleepq_lock() 94 THR_LOCK_RELEASE(curthread, &sc->sc_lock); in _sleepq_unlock()
|
/freebsd/sys/dev/xen/netback/ |
H A D | netback.c | 496 struct mtx sc_lock; member 657 mtx_lock(&xnb->sc_lock); in xnb_disconnect() 685 mtx_unlock(&xnb->sc_lock); in xnb_disconnect() 1056 mtx_unlock(&xnb->sc_lock); in xnb_shutdown() 1069 mtx_lock(&xnb->sc_lock); in xnb_shutdown() 1187 mtx_init(&xnb->sc_lock, "xnb_softc", "xen netback softc lock", MTX_DEF); in create_netdev() 1331 mtx_lock(&xnb->sc_lock); in xnb_detach() 1333 msleep(xnb, &xnb->sc_lock, /*wakeup prio unchanged*/0, in xnb_detach() 1336 mtx_unlock(&xnb->sc_lock); in xnb_detach() 1341 mtx_destroy(&xnb->sc_lock); in xnb_detach() [all …]
|
/freebsd/sys/geom/nop/ |
H A D | g_nop.c | 185 mtx_lock(&sc->sc_lock); in g_nop_pass_timeout() 187 mtx_unlock(&sc->sc_lock); in g_nop_pass_timeout() 209 mtx_lock(&sc->sc_lock); in g_nop_start() 249 mtx_unlock(&sc->sc_lock); in g_nop_start() 267 mtx_unlock(&sc->sc_lock); in g_nop_start() 303 mtx_lock(&sc->sc_lock); in g_nop_start() 306 mtx_unlock(&sc->sc_lock); in g_nop_start() 448 mtx_init(&sc->sc_lock, "gnop lock", NULL, MTX_DEF); in g_nop_create() 477 mtx_destroy(&sc->sc_lock); in g_nop_create() 495 mtx_destroy(&sc->sc_lock); in g_nop_providergone()
|
H A D | g_nop.h | 76 struct mtx sc_lock; member
|
/freebsd/sys/dev/wg/ |
H A D | if_wg.c | 247 struct sx sc_lock; member 385 sx_assert(&sc->sc_lock, SX_XLOCKED); in wg_peer_alloc() 457 sx_assert(&sc->sc_lock, SX_XLOCKED); in wg_peer_destroy() 655 sx_assert(&sc->sc_lock, SX_XLOCKED); in wg_socket_init() 736 sx_assert(&sc->sc_lock, SX_XLOCKED); in wg_socket_set_cookie() 748 sx_assert(&sc->sc_lock, SX_XLOCKED); in wg_socket_set_fibnum() 768 sx_assert(&sc->sc_lock, SX_XLOCKED); in wg_socket_set() 2383 sx_assert(&sc->sc_lock, SX_XLOCKED); in wg_peer_add() 2520 sx_xlock(&sc->sc_lock); in wgc_set() 2595 sx_xunlock(&sc->sc_lock); in wgc_set() [all …]
|
/freebsd/sys/dev/amdtemp/ |
H A D | amdtemp.c | 93 struct mtx sc_lock; member 504 mtx_init(&sc->sc_lock, "amdtemp", NULL, MTX_DEF); in amdtemp_attach() 640 mtx_destroy(&sc->sc_lock); in amdtemp_detach() 681 mtx_lock(&sc->sc_lock); in amdtemp_gettemp0f() 714 mtx_unlock(&sc->sc_lock); in amdtemp_gettemp0f()
|
/freebsd/sys/netpfil/pf/ |
H A D | pflow.c | 158 #define PFLOW_LOCK(_sc) mtx_lock(&(_sc)->sc_lock) 159 #define PFLOW_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_lock) 160 #define PFLOW_ASSERT(_sc) mtx_assert(&(_sc)->sc_lock, MA_OWNED) 259 mtx_init(&pflowif->sc_lock, "pflowlk", NULL, MTX_DEF); in pflow_create() 407 callout_init_mtx(&pflowif->sc_tmo, &pflowif->sc_lock, 0); in pflow_create() 408 callout_init_mtx(&pflowif->sc_tmo6, &pflowif->sc_lock, 0); in pflow_create() 409 callout_init_mtx(&pflowif->sc_tmo_nat4, &pflowif->sc_lock, 0); in pflow_create() 410 callout_init_mtx(&pflowif->sc_tmo_tmpl, &pflowif->sc_lock, 0); in pflow_create() 492 mtx_destroy(&sc->sc_lock); in pflow_destroy()
|
/freebsd/sys/geom/stripe/ |
H A D | g_stripe.h | 66 struct mtx sc_lock; 64 struct mtx sc_lock; global() member
|