Lines Matching refs:rm_mtx
140 rm->rm_mtx = malloc(sizeof *rm->rm_mtx, M_RMAN, M_NOWAIT | M_ZERO); in rman_init()
141 if (rm->rm_mtx == NULL) in rman_init()
143 mtx_init(rm->rm_mtx, "rman", NULL, MTX_DEF); in rman_init()
168 mtx_lock(rm->rm_mtx); in rman_manage_region()
225 mtx_unlock(rm->rm_mtx); in rman_manage_region()
244 mtx_lock(rm->rm_mtx); in rman_fini()
247 mtx_unlock(rm->rm_mtx); in rman_fini()
261 mtx_unlock(rm->rm_mtx); in rman_fini()
265 mtx_destroy(rm->rm_mtx); in rman_fini()
266 free(rm->rm_mtx, M_RMAN); in rman_fini()
276 mtx_lock(rm->rm_mtx); in rman_first_free_region()
281 mtx_unlock(rm->rm_mtx); in rman_first_free_region()
285 mtx_unlock(rm->rm_mtx); in rman_first_free_region()
294 mtx_lock(rm->rm_mtx); in rman_last_free_region()
299 mtx_unlock(rm->rm_mtx); in rman_last_free_region()
303 mtx_unlock(rm->rm_mtx); in rman_last_free_region()
332 mtx_lock(rm->rm_mtx); in rman_adjust_resource()
354 mtx_unlock(rm->rm_mtx); in rman_adjust_resource()
359 mtx_unlock(rm->rm_mtx); in rman_adjust_resource()
389 mtx_unlock(rm->rm_mtx); in rman_adjust_resource()
401 mtx_lock(rm->rm_mtx); in rman_adjust_resource()
409 mtx_unlock(rm->rm_mtx); in rman_adjust_resource()
416 mtx_lock(rm->rm_mtx); in rman_adjust_resource()
424 mtx_unlock(rm->rm_mtx); in rman_adjust_resource()
450 mtx_lock(rm->rm_mtx); in rman_reserve_resource()
637 mtx_unlock(rm->rm_mtx); in rman_reserve_resource()
649 mtx_lock(rm->rm_mtx); in rman_activate_resource()
651 mtx_unlock(rm->rm_mtx); in rman_activate_resource()
661 mtx_lock(rm->rm_mtx); in rman_deactivate_resource()
663 mtx_unlock(rm->rm_mtx); in rman_deactivate_resource()
770 mtx_lock(rm->rm_mtx); in rman_release_resource()
772 mtx_unlock(rm->rm_mtx); in rman_release_resource()
1000 mtx_lock(rm->rm_mtx); in sysctl_rman()
1012 mtx_unlock(rm->rm_mtx); in sysctl_rman()
1037 mtx_unlock(rm->rm_mtx); in sysctl_rman()