Home
last modified time | relevance | path

Searched refs:sc_lock (Results 1 – 25 of 57) sorted by relevance

123

/freebsd-12.1/sys/dev/iscsi/
H A Dicl.c70 struct sx sc_lock; member
101 sx_slock(&sc->sc_lock); in sysctl_kern_icl_offloads()
109 sx_sunlock(&sc->sc_lock); in sysctl_kern_icl_offloads()
173 sx_slock(&sc->sc_lock); in icl_new_conn()
181 sx_sunlock(&sc->sc_lock); in icl_new_conn()
193 sx_slock(&sc->sc_lock); in icl_limits()
201 sx_sunlock(&sc->sc_lock); in icl_limits()
240 sx_xlock(&sc->sc_lock); in icl_register()
256 sx_xunlock(&sc->sc_lock); in icl_register()
267 sx_xlock(&sc->sc_lock); in icl_unregister()
[all …]
H A Discsi.c435 sx_xlock(&sc->sc_lock); in iscsi_maintenance_thread_terminate()
1323 sx_slock(&sc->sc_lock); in iscsi_ioctl_daemon_wait()
1392 sx_slock(&sc->sc_lock); in iscsi_ioctl_daemon_handoff()
1534 sx_slock(&sc->sc_lock); in iscsi_ioctl_daemon_fail()
1566 sx_slock(&sc->sc_lock); in iscsi_ioctl_daemon_connect()
1629 sx_slock(&sc->sc_lock); in iscsi_ioctl_daemon_send()
1679 sx_slock(&sc->sc_lock); in iscsi_ioctl_daemon_receive()
1804 sx_xlock(&sc->sc_lock); in iscsi_ioctl_session_add()
1908 sx_xlock(&sc->sc_lock); in iscsi_ioctl_session_remove()
1935 sx_slock(&sc->sc_lock); in iscsi_ioctl_session_list()
[all …]
/freebsd-12.1/sys/fs/autofs/
H A Dautofs.c203 sx_xlock(&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()
456 &autofs_softc->sc_lock); in autofs_trigger_one()
486 sx_xlock(&autofs_softc->sc_lock); in autofs_trigger_one()
553 sx_xlock(&autofs_softc->sc_lock); in autofs_ioctl_request()
568 &autofs_softc->sc_lock); in autofs_ioctl_request()
597 sx_xlock(&autofs_softc->sc_lock); in autofs_ioctl_done_101()
625 sx_xlock(&autofs_softc->sc_lock); in autofs_ioctl_done()
652 sx_xlock(&autofs_softc->sc_lock); in autofs_open()
[all …]
/freebsd-12.1/sys/geom/raid3/
H A Dg_raid3_ctl.c66 sx_xlock(&sc->sc_lock); in g_raid3_find_device()
197 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_configure()
260 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_configure()
295 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_rebuild()
301 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_rebuild()
307 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_rebuild()
326 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_rebuild()
332 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_rebuild()
495 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_insert()
514 sx_xunlock(&sc->sc_lock); in g_raid3_ctl_insert()
[all …]
H A Dg_raid3.c321 sx_xunlock(&sc->sc_lock); in g_raid3_event_send()
329 sx_xlock(&sc->sc_lock); in g_raid3_event_send()
653 sx_xunlock(&sc->sc_lock); in g_raid3_destroy_device()
654 sx_destroy(&sc->sc_lock); in g_raid3_destroy_device()
2031 sx_xlock(&sc->sc_lock); in g_raid3_worker()
2218 sx_xlock(&sc->sc_lock); in g_raid3_sync_start()
2316 sx_xlock(&sc->sc_lock); in g_raid3_sync_stop()
3052 sx_xlock(&sc->sc_lock); in g_raid3_destroy_delayed()
3086 sx_xlock(&sc->sc_lock); in g_raid3_access()
3285 sx_xlock(&sc->sc_lock); in g_raid3_destroy()
[all …]
/freebsd-12.1/sys/mips/nlm/dev/net/
H A Dxlpge.h114 struct mtx sc_lock; member
134 mtx_init(&(_sc)->sc_lock, _name, MTX_NETWORK_LOCK, MTX_DEF)
135 #define XLPGE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->sc_lock)
136 #define XLPGE_LOCK(_sc) mtx_lock(&(_sc)->sc_lock)
137 #define XLPGE_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_lock)
138 #define XLPGE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->sc_lock, MA_OWNED)
/freebsd-12.1/sys/geom/mirror/
H A Dg_mirror_ctl.c62 sx_xlock(&sc->sc_lock); in g_mirror_find_device()
198 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure()
206 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure()
217 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure()
224 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure()
229 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure()
234 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure()
296 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_configure()
439 sx_xlock(&sc->sc_lock); in g_mirror_ctl_create()
555 sx_xunlock(&sc->sc_lock); in g_mirror_ctl_rebuild()
[all …]
H A Dg_mirror.c211 sx_xunlock(&sc->sc_lock); in g_mirror_event_send()
219 sx_xlock(&sc->sc_lock); in g_mirror_event_send()
529 sx_destroy(&sc->sc_lock); in g_mirror_free_device()
584 sx_xunlock(&sc->sc_lock); in g_mirror_destroy_device()
1328 sx_xlock(&sc->sc_lock); in g_mirror_sync_request()
1891 sx_xlock(&sc->sc_lock); in g_mirror_worker()
2089 sx_xlock(&sc->sc_lock); in g_mirror_sync_start()
2179 sx_xlock(&sc->sc_lock); in g_mirror_sync_stop()
2982 sx_xlock(&sc->sc_lock); in g_mirror_destroy_delayed()
3011 sx_xlock(&sc->sc_lock); in g_mirror_access()
[all …]
/freebsd-12.1/sys/dev/iicbus/
H A Dad7418.c62 struct sx sc_lock; member
87 sx_xlock(&sc->sc_lock); in ad7418_sysctl_temp()
90 sx_xunlock(&sc->sc_lock); in ad7418_sysctl_temp()
100 sx_xlock(&sc->sc_lock); in ad7418_sysctl_voltage()
103 sx_xunlock(&sc->sc_lock); in ad7418_sysctl_voltage()
118 sx_init(&sc->sc_lock, "ad7418"); in ad7418_attach()
198 sx_assert(&sc->sc_lock, SA_XLOCKED); in ad7418_update()
/freebsd-12.1/sys/dev/mse/
H A Dmsevar.h71 struct mtx sc_lock; member
80 #define MSE_LOCK(sc) mtx_lock(&(sc)->sc_lock)
81 #define MSE_UNLOCK(sc) mtx_unlock(&(sc)->sc_lock)
82 #define MSE_ASSERT_LOCKED(sc) mtx_assert(&(sc)->sc_lock, MA_OWNED)
H A Dmse.c128 mtx_init(&sc->sc_lock, "mse", NULL, MTX_DEF); in mse_common_attach()
129 callout_init_mtx(&sc->sc_callout, &sc->sc_lock, 0); in mse_common_attach()
136 mtx_destroy(&sc->sc_lock); in mse_common_attach()
144 mtx_destroy(&sc->sc_lock); in mse_common_attach()
187 mtx_destroy(&sc->sc_lock); in mse_detach()
266 error = mtx_sleep(sc, &sc->sc_lock, MSEPRI | PCATCH, "mseread", in mseread()
281 error = mtx_sleep(sc, &sc->sc_lock, MSEPRI | PCATCH, in mseread()
/freebsd-12.1/sys/kern/
H A Dsubr_sleepqueue.c262 mtx_lock_spin(&sc->sc_lock); in sleepq_lock()
278 mtx_assert(&sc->sc_lock, MA_OWNED); in sleepq_lookup()
294 mtx_unlock_spin(&sc->sc_lock); in sleepq_release()
461 mtx_unlock_spin(&sc->sc_lock); in sleepq_catch_signals()
475 mtx_lock_spin(&sc->sc_lock); in sleepq_catch_signals()
522 mtx_lock_spin(&sc->sc_lock); in sleepq_catch_signals()
548 mtx_unlock_spin(&sc->sc_lock); in sleepq_catch_signals()
575 mtx_unlock_spin(&sc->sc_lock); in sleepq_switch()
614 mtx_unlock_spin(&sc->sc_lock); in sleepq_switch()
1146 mtx_lock_spin(&sc->sc_lock); in sleepq_chains_remove_matching()
[all …]
/freebsd-12.1/sys/dev/dpaa/
H A Dfman_mdio.c57 #define MDIO_LOCK() mtx_lock(&sc->sc_lock)
58 #define MDIO_UNLOCK() mtx_unlock(&sc->sc_lock)
81 struct mtx sc_lock; member
137 mtx_init(&sc->sc_lock, device_get_nameunit(dev), "QorIQ MDIO lock", in pqmdio_fdt_attach()
150 mtx_destroy(&sc->sc_lock); in pqmdio_detach()
H A Dif_dtsec.h39 #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)
56 struct mtx sc_lock; member
/freebsd-12.1/sys/geom/raid/
H A Dg_raid.c646 sx_xunlock(&sc->sc_lock); in g_raid_event_send()
654 sx_xlock(&sc->sc_lock); in g_raid_event_send()
1507 sx_xlock(&sc->sc_lock); in g_raid_worker()
1589 sx_xlock(&sc->sc_lock); in g_raid_poll()
1612 sx_xunlock(&sc->sc_lock); in g_raid_poll()
1835 sx_xlock(&sc->sc_lock); in g_raid_access()
2292 sx_xlock(&sc->sc_lock); in g_raid_destroy_geom()
2346 sx_xlock(&sc->sc_lock); in g_raid_dumpconf()
2397 sx_xlock(&sc->sc_lock); in g_raid_dumpconf()
2433 sx_xlock(&sc->sc_lock); in g_raid_dumpconf()
[all …]
H A Dg_raid_ctl.c133 sx_xlock(&sc->sc_lock); in g_raid_ctl_label()
146 sx_xunlock(&sc->sc_lock); in g_raid_ctl_label()
183 sx_xlock(&sc->sc_lock); in g_raid_ctl_stop()
218 sx_xlock(&sc->sc_lock); in g_raid_ctl_other()
224 sx_xunlock(&sc->sc_lock); in g_raid_ctl_other()
/freebsd-12.1/sys/dev/hme/
H A Dif_hmevar.h142 struct mtx sc_lock; member
145 #define HME_LOCK(_sc) mtx_lock(&(_sc)->sc_lock)
146 #define HME_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_lock)
147 #define HME_LOCK_ASSERT(_sc, _what) mtx_assert(&(_sc)->sc_lock, (_what))
H A Dif_hme_sbus.c143 mtx_init(&sc->sc_lock, device_get_nameunit(dev), MTX_NETWORK_LOCK, in hme_sbus_attach()
288 mtx_destroy(&sc->sc_lock); in hme_sbus_attach()
316 mtx_destroy(&sc->sc_lock); in hme_sbus_detach()
/freebsd-12.1/sys/dev/esp/
H A Dncr53c9xvar.h380 struct mtx sc_lock; /* driver mutex */ member
469 mtx_init(&(_sc)->sc_lock, "ncr", "ncr53c9x lock", MTX_DEF);
470 #define NCR_LOCK_INITIALIZED(_sc) mtx_initialized(&(_sc)->sc_lock)
471 #define NCR_LOCK(_sc) mtx_lock(&(_sc)->sc_lock)
472 #define NCR_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_lock)
473 #define NCR_LOCK_ASSERT(_sc, _what) mtx_assert(&(_sc)->sc_lock, (_what))
474 #define NCR_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->sc_lock)
/freebsd-12.1/sys/dev/auxio/
H A Dauxio.c118 struct mtx sc_lock; member
173 mtx_init(&sc->sc_lock, "auxio mtx", NULL, MTX_DEF)
174 #define AUXIO_LOCK(sc) mtx_lock(&sc->sc_lock)
175 #define AUXIO_UNLOCK(sc) mtx_unlock(&sc->sc_lock)
176 #define AUXIO_LOCK_DESTROY(sc) mtx_destroy(&sc->sc_lock)
/freebsd-12.1/lib/libthr/thread/
H A Dthr_sleepq.c44 struct umutex sc_lock; member
59 _thr_umutex_init(&sc_table[i].sc_lock); in _sleepq_init()
87 THR_LOCK_ACQUIRE_SPIN(curthread, &sc->sc_lock); in _sleepq_lock()
97 THR_LOCK_RELEASE(curthread, &sc->sc_lock); in _sleepq_unlock()
/freebsd-12.1/sys/dev/xen/netback/
H A Dnetback.c504 struct mtx sc_lock; member
665 mtx_lock(&xnb->sc_lock); in xnb_disconnect()
693 mtx_unlock(&xnb->sc_lock); in xnb_disconnect()
1064 mtx_unlock(&xnb->sc_lock); in xnb_shutdown()
1077 mtx_lock(&xnb->sc_lock); in xnb_shutdown()
1339 mtx_lock(&xnb->sc_lock); in xnb_detach()
1344 mtx_unlock(&xnb->sc_lock); in xnb_detach()
1408 mtx_lock(&xnb->sc_lock); in xnb_frontend_changed()
2221 mtx_lock(&xnb->sc_lock); in xnb_ioctl()
2237 mtx_lock(&xnb->sc_lock); in xnb_ioctl()
[all …]
/freebsd-12.1/sys/dev/iir/
H A Diir.c211 /*lockarg*/&gdt->sc_lock, in iir_init()
284 mtx_lock(&gdt->sc_lock); in iir_init()
287 mtx_unlock(&gdt->sc_lock); in iir_init()
298 mtx_unlock(&gdt->sc_lock); in iir_init()
310 mtx_unlock(&gdt->sc_lock); in iir_init()
379 mtx_unlock(&gdt->sc_lock); in iir_init()
397 mtx_unlock(&gdt->sc_lock); in iir_init()
517 mtx_lock(&gdt->sc_lock); in iir_attach()
533 mtx_unlock(&gdt->sc_lock); in iir_attach()
1437 mtx_lock(&gdt->sc_lock); in iir_shutdown()
[all …]
H A Diir_ctrl.c204 mtx_lock(&gdt->sc_lock); in iir_ioctl()
209 (void) mtx_sleep(ucmd, &gdt->sc_lock, PCATCH | PRIBIO, "iirucw", in iir_ioctl()
211 mtx_unlock(&gdt->sc_lock); in iir_ioctl()
/freebsd-12.1/sys/geom/nop/
H A Dg_nop.c121 mtx_lock(&sc->sc_lock); in g_nop_start()
140 mtx_unlock(&sc->sc_lock); in g_nop_start()
157 mtx_unlock(&sc->sc_lock); in g_nop_start()
287 mtx_init(&sc->sc_lock, "gnop lock", NULL, MTX_DEF); in g_nop_create()
314 mtx_destroy(&sc->sc_lock); in g_nop_create()
329 mtx_destroy(&sc->sc_lock); in g_nop_providergone()

123