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()
403 mtx_lock(&cleanup_data.to_kill_grefs_mtx); in gntdev_alloc_gref()
405 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_grefs, in gntdev_alloc_gref()
407 mtx_unlock(&cleanup_data.to_kill_grefs_mtx); in gntdev_alloc_gref()
455 mtx_lock(&cleanup_data.to_kill_grefs_mtx); in gntdev_dealloc_gref()
459 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_grefs, gref, in gntdev_dealloc_gref()
463 mtx_unlock(&cleanup_data.to_kill_grefs_mtx); in gntdev_dealloc_gref()
507 gmap_list_dtor(struct cleanup_data_struct *cleanup_data) in gmap_list_dtor() argument
513 mtx_lock(&cleanup_data->to_kill_gmaps_mtx); in gmap_list_dtor()
514 STAILQ_SWAP(&cleanup_data->to_kill_gmaps, &tmp_gmaps, gntdev_gmap); in gmap_list_dtor()
515 mtx_unlock(&cleanup_data->to_kill_gmaps_mtx); in gmap_list_dtor()
536 mtx_lock(&cleanup_data->to_kill_gmaps_mtx); in gmap_list_dtor()
537 STAILQ_CONCAT(&cleanup_data->to_kill_gmaps, &tmp_gmaps); in gmap_list_dtor()
538 mtx_unlock(&cleanup_data->to_kill_gmaps_mtx); in gmap_list_dtor()
719 mtx_lock(&cleanup_data.to_kill_gmaps_mtx); in gntdev_unmap_grant_ref()
721 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_gmaps, gmap, gmap_next.list); in gntdev_unmap_grant_ref()
722 mtx_unlock(&cleanup_data.to_kill_gmaps_mtx); in gntdev_unmap_grant_ref()
968 mtx_lock(&cleanup_data.to_kill_grefs_mtx); in per_user_data_dtor()
971 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_grefs, gref, in per_user_data_dtor()
974 mtx_unlock(&cleanup_data.to_kill_grefs_mtx); in per_user_data_dtor()
976 mtx_lock(&cleanup_data.to_kill_gmaps_mtx); in per_user_data_dtor()
979 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_gmaps, gmap, in per_user_data_dtor()
984 mtx_unlock(&cleanup_data.to_kill_gmaps_mtx); in per_user_data_dtor()