Lines Matching defs:cleanup_data

205 static struct cleanup_data_struct cleanup_data = {
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)
260 mtx_lock(&cleanup_data->to_kill_grefs_mtx);
261 STAILQ_SWAP(&cleanup_data->to_kill_grefs, &tmp_grefs, gntdev_gref);
262 mtx_unlock(&cleanup_data->to_kill_grefs_mtx);
297 mtx_lock(&cleanup_data->to_kill_grefs_mtx);
298 STAILQ_CONCAT(&cleanup_data->to_kill_grefs, &tmp_grefs);
299 mtx_unlock(&cleanup_data->to_kill_grefs_mtx);
400 mtx_lock(&cleanup_data.to_kill_grefs_mtx);
402 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_grefs,
404 mtx_unlock(&cleanup_data.to_kill_grefs_mtx);
447 mtx_lock(&cleanup_data.to_kill_grefs_mtx);
451 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_grefs, gref,
455 mtx_unlock(&cleanup_data.to_kill_grefs_mtx);
499 gmap_list_dtor(struct cleanup_data_struct *cleanup_data)
505 mtx_lock(&cleanup_data->to_kill_gmaps_mtx);
506 STAILQ_SWAP(&cleanup_data->to_kill_gmaps, &tmp_gmaps, gntdev_gmap);
507 mtx_unlock(&cleanup_data->to_kill_gmaps_mtx);
528 mtx_lock(&cleanup_data->to_kill_gmaps_mtx);
529 STAILQ_CONCAT(&cleanup_data->to_kill_gmaps, &tmp_gmaps);
530 mtx_unlock(&cleanup_data->to_kill_gmaps_mtx);
700 mtx_lock(&cleanup_data.to_kill_gmaps_mtx);
702 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_gmaps, gmap, gmap_next.list);
703 mtx_unlock(&cleanup_data.to_kill_gmaps_mtx);
944 mtx_lock(&cleanup_data.to_kill_grefs_mtx);
947 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_grefs, gref,
950 mtx_unlock(&cleanup_data.to_kill_grefs_mtx);
952 mtx_lock(&cleanup_data.to_kill_gmaps_mtx);
955 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_gmaps, gmap,
960 mtx_unlock(&cleanup_data.to_kill_gmaps_mtx);