Home
last modified time | relevance | path

Searched refs:ctl_lock (Results 1 – 11 of 11) sorted by relevance

/freebsd/sys/cam/ctl/
H A Dctl_backend.c70 mtx_lock(&softc->ctl_lock); in ctl_backend_register()
73 mtx_unlock(&softc->ctl_lock); in ctl_backend_register()
77 mtx_unlock(&softc->ctl_lock); in ctl_backend_register()
91 mtx_lock(&softc->ctl_lock); in ctl_backend_register()
94 mtx_unlock(&softc->ctl_lock); in ctl_backend_register()
113 mtx_lock(&softc->ctl_lock); in ctl_backend_deregister()
116 mtx_unlock(&softc->ctl_lock); in ctl_backend_deregister()
126 mtx_lock(&softc->ctl_lock); in ctl_backend_find()
129 mtx_unlock(&softc->ctl_lock); in ctl_backend_find()
133 mtx_unlock(&softc->ctl_lock); in ctl_backend_find()
H A Dctl_frontend.c77 mtx_lock(&softc->ctl_lock); in ctl_frontend_register()
80 mtx_unlock(&softc->ctl_lock); in ctl_frontend_register()
84 mtx_unlock(&softc->ctl_lock); in ctl_frontend_register()
96 mtx_lock(&softc->ctl_lock); in ctl_frontend_register()
99 mtx_unlock(&softc->ctl_lock); in ctl_frontend_register()
118 mtx_lock(&softc->ctl_lock); in ctl_frontend_deregister()
121 mtx_unlock(&softc->ctl_lock); in ctl_frontend_deregister()
131 mtx_lock(&softc->ctl_lock); in ctl_frontend_find()
134 mtx_unlock(&softc->ctl_lock); in ctl_frontend_find()
138 mtx_unlock(&softc->ctl_lock); in ctl_frontend_find()
[all …]
H A Dctl.c936 mtx_lock(&softc->ctl_lock); in ctl_isc_announce_iid()
944 mtx_unlock(&softc->ctl_lock); in ctl_isc_announce_iid()
956 mtx_unlock(&softc->ctl_lock); in ctl_isc_announce_iid()
1037 mtx_lock(&softc->ctl_lock); in ctl_isc_ha_link_down()
1046 mtx_unlock(&softc->ctl_lock); in ctl_isc_ha_link_down()
1048 mtx_lock(&softc->ctl_lock); in ctl_isc_ha_link_down()
1066 mtx_unlock(&softc->ctl_lock); in ctl_isc_ha_link_down()
1082 mtx_lock(&softc->ctl_lock); in ctl_isc_ua()
1085 mtx_unlock(&softc->ctl_lock); in ctl_isc_ua()
1089 mtx_unlock(&softc->ctl_lock); in ctl_isc_ua()
[all …]
H A Dctl_tpc_local.c279 mtx_lock(&softc->ctl_lock); in tpcl_resolve()
305 mtx_unlock(&softc->ctl_lock); in tpcl_resolve()
H A Dctl_error.c540 mtx_assert(&lun->ctl_softc->ctl_lock, MA_NOTOWNED); in ctl_build_ua()
575 mtx_lock(&lun->ctl_softc->ctl_lock); in ctl_build_ua()
577 mtx_unlock(&lun->ctl_softc->ctl_lock); in ctl_build_ua()
H A Dctl_private.h389 struct mtx ctl_lock; member
H A Dctl_tpc.c196 callout_init_mtx(&softc->tpc_timeout, &softc->ctl_lock, 0); in ctl_tpc_init()
/freebsd/sys/net/route/
H A Dnhop_var.h58 struct rwlock ctl_lock; /* overall ctl lock */ member
63 #define NHOPS_WLOCK(ctl) rw_wlock(&(ctl)->ctl_lock)
64 #define NHOPS_RLOCK(ctl) rw_rlock(&(ctl)->ctl_lock)
65 #define NHOPS_WUNLOCK(ctl) rw_wunlock(&(ctl)->ctl_lock)
66 #define NHOPS_RUNLOCK(ctl) rw_runlock(&(ctl)->ctl_lock)
67 #define NHOPS_LOCK_INIT(ctl) rw_init(&(ctl)->ctl_lock, "nhop_ctl")
68 #define NHOPS_LOCK_DESTROY(ctl) rw_destroy(&(ctl)->ctl_lock)
69 #define NHOPS_WLOCK_ASSERT(ctl) rw_assert(&(ctl)->ctl_lock, RA_WLOCKED)
/freebsd/sys/netlink/
H A Dnetlink_module.c77 rm_init(&V_nl_ctl.ctl_lock, "netlink lock"); in vnet_nl_init()
96 rm_destroy(&V_nl_ctl.ctl_lock); in vnet_nl_uninit()
H A Dnetlink_domain.c68 #define NLCTL_RLOCK() rm_rlock(&V_nl_ctl.ctl_lock, &nl_tracker)
69 #define NLCTL_RUNLOCK() rm_runlock(&V_nl_ctl.ctl_lock, &nl_tracker)
70 #define NLCTL_LOCK_ASSERT() rm_assert(&V_nl_ctl.ctl_lock, RA_LOCKED)
72 #define NLCTL_WLOCK() rm_wlock(&V_nl_ctl.ctl_lock)
73 #define NLCTL_WUNLOCK() rm_wunlock(&V_nl_ctl.ctl_lock)
74 #define NLCTL_WLOCK_ASSERT() rm_assert(&V_nl_ctl.ctl_lock, RA_WLOCKED)
H A Dnetlink_var.h102 struct rmlock ctl_lock; member