Lines Matching refs:cleanup_data

208 static struct cleanup_data_struct cleanup_data = {  variable
209 .to_kill_grefs = STAILQ_HEAD_INITIALIZER(cleanup_data.to_kill_grefs),
210 .to_kill_gmaps = STAILQ_HEAD_INITIALIZER(cleanup_data.to_kill_gmaps),
212 MTX_SYSINIT(to_kill_grefs_mtx, &cleanup_data.to_kill_grefs_mtx,
214 MTX_SYSINIT(to_kill_gmaps_mtx, &cleanup_data.to_kill_gmaps_mtx,
219 &cleanup_data);
257 gref_list_dtor(struct cleanup_data_struct *cleanup_data) in gref_list_dtor() argument
263 mtx_lock(&cleanup_data->to_kill_grefs_mtx); in gref_list_dtor()
264 STAILQ_SWAP(&cleanup_data->to_kill_grefs, &tmp_grefs, gntdev_gref); in gref_list_dtor()
265 mtx_unlock(&cleanup_data->to_kill_grefs_mtx); in gref_list_dtor()
300 mtx_lock(&cleanup_data->to_kill_grefs_mtx); in gref_list_dtor()
301 STAILQ_CONCAT(&cleanup_data->to_kill_grefs, &tmp_grefs); in gref_list_dtor()
302 mtx_unlock(&cleanup_data->to_kill_grefs_mtx); in gref_list_dtor()
396 mtx_lock(&cleanup_data.to_kill_grefs_mtx); in gntdev_alloc_gref()
398 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_grefs, in gntdev_alloc_gref()
400 mtx_unlock(&cleanup_data.to_kill_grefs_mtx); in gntdev_alloc_gref()
448 mtx_lock(&cleanup_data.to_kill_grefs_mtx); in gntdev_dealloc_gref()
452 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_grefs, gref, in gntdev_dealloc_gref()
456 mtx_unlock(&cleanup_data.to_kill_grefs_mtx); in gntdev_dealloc_gref()
500 gmap_list_dtor(struct cleanup_data_struct *cleanup_data) in gmap_list_dtor() argument
506 mtx_lock(&cleanup_data->to_kill_gmaps_mtx); in gmap_list_dtor()
507 STAILQ_SWAP(&cleanup_data->to_kill_gmaps, &tmp_gmaps, gntdev_gmap); in gmap_list_dtor()
508 mtx_unlock(&cleanup_data->to_kill_gmaps_mtx); in gmap_list_dtor()
529 mtx_lock(&cleanup_data->to_kill_gmaps_mtx); in gmap_list_dtor()
530 STAILQ_CONCAT(&cleanup_data->to_kill_gmaps, &tmp_gmaps); in gmap_list_dtor()
531 mtx_unlock(&cleanup_data->to_kill_gmaps_mtx); in gmap_list_dtor()
712 mtx_lock(&cleanup_data.to_kill_gmaps_mtx); in gntdev_unmap_grant_ref()
714 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_gmaps, gmap, gmap_next.list); in gntdev_unmap_grant_ref()
715 mtx_unlock(&cleanup_data.to_kill_gmaps_mtx); in gntdev_unmap_grant_ref()
956 mtx_lock(&cleanup_data.to_kill_grefs_mtx); in per_user_data_dtor()
959 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_grefs, gref, in per_user_data_dtor()
962 mtx_unlock(&cleanup_data.to_kill_grefs_mtx); in per_user_data_dtor()
964 mtx_lock(&cleanup_data.to_kill_gmaps_mtx); in per_user_data_dtor()
967 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_gmaps, gmap, in per_user_data_dtor()
972 mtx_unlock(&cleanup_data.to_kill_gmaps_mtx); in per_user_data_dtor()