Lines Matching refs:cleanup_data
205 static struct cleanup_data_struct cleanup_data = { variable
206 .to_kill_grefs = STAILQ_HEAD_INITIALIZER(cleanup_data.to_kill_grefs),
207 .to_kill_gmaps = STAILQ_HEAD_INITIALIZER(cleanup_data.to_kill_gmaps),
209 MTX_SYSINIT(to_kill_grefs_mtx, &cleanup_data.to_kill_grefs_mtx,
211 MTX_SYSINIT(to_kill_gmaps_mtx, &cleanup_data.to_kill_gmaps_mtx,
216 &cleanup_data);
254 gref_list_dtor(struct cleanup_data_struct *cleanup_data) in gref_list_dtor() argument
260 mtx_lock(&cleanup_data->to_kill_grefs_mtx); in gref_list_dtor()
261 STAILQ_SWAP(&cleanup_data->to_kill_grefs, &tmp_grefs, gntdev_gref); in gref_list_dtor()
262 mtx_unlock(&cleanup_data->to_kill_grefs_mtx); in gref_list_dtor()
297 mtx_lock(&cleanup_data->to_kill_grefs_mtx); in gref_list_dtor()
298 STAILQ_CONCAT(&cleanup_data->to_kill_grefs, &tmp_grefs); in gref_list_dtor()
299 mtx_unlock(&cleanup_data->to_kill_grefs_mtx); in gref_list_dtor()
400 mtx_lock(&cleanup_data.to_kill_grefs_mtx); in gntdev_alloc_gref()
402 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_grefs, in gntdev_alloc_gref()
404 mtx_unlock(&cleanup_data.to_kill_grefs_mtx); in gntdev_alloc_gref()
447 mtx_lock(&cleanup_data.to_kill_grefs_mtx); in gntdev_dealloc_gref()
451 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_grefs, gref, in gntdev_dealloc_gref()
455 mtx_unlock(&cleanup_data.to_kill_grefs_mtx); in gntdev_dealloc_gref()
499 gmap_list_dtor(struct cleanup_data_struct *cleanup_data) in gmap_list_dtor() argument
505 mtx_lock(&cleanup_data->to_kill_gmaps_mtx); in gmap_list_dtor()
506 STAILQ_SWAP(&cleanup_data->to_kill_gmaps, &tmp_gmaps, gntdev_gmap); in gmap_list_dtor()
507 mtx_unlock(&cleanup_data->to_kill_gmaps_mtx); in gmap_list_dtor()
528 mtx_lock(&cleanup_data->to_kill_gmaps_mtx); in gmap_list_dtor()
529 STAILQ_CONCAT(&cleanup_data->to_kill_gmaps, &tmp_gmaps); in gmap_list_dtor()
530 mtx_unlock(&cleanup_data->to_kill_gmaps_mtx); in gmap_list_dtor()
700 mtx_lock(&cleanup_data.to_kill_gmaps_mtx); in gntdev_unmap_grant_ref()
702 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_gmaps, gmap, gmap_next.list); in gntdev_unmap_grant_ref()
703 mtx_unlock(&cleanup_data.to_kill_gmaps_mtx); in gntdev_unmap_grant_ref()
944 mtx_lock(&cleanup_data.to_kill_grefs_mtx); in per_user_data_dtor()
947 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_grefs, gref, in per_user_data_dtor()
950 mtx_unlock(&cleanup_data.to_kill_grefs_mtx); in per_user_data_dtor()
952 mtx_lock(&cleanup_data.to_kill_gmaps_mtx); in per_user_data_dtor()
955 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_gmaps, gmap, in per_user_data_dtor()
960 mtx_unlock(&cleanup_data.to_kill_gmaps_mtx); in per_user_data_dtor()