Lines Matching refs:cleanup_data

206 static struct cleanup_data_struct cleanup_data = {  variable
207 .to_kill_grefs = STAILQ_HEAD_INITIALIZER(cleanup_data.to_kill_grefs),
208 .to_kill_gmaps = STAILQ_HEAD_INITIALIZER(cleanup_data.to_kill_gmaps),
210 MTX_SYSINIT(to_kill_grefs_mtx, &cleanup_data.to_kill_grefs_mtx,
212 MTX_SYSINIT(to_kill_gmaps_mtx, &cleanup_data.to_kill_gmaps_mtx,
217 &cleanup_data);
255 gref_list_dtor(struct cleanup_data_struct *cleanup_data) in gref_list_dtor() argument
261 mtx_lock(&cleanup_data->to_kill_grefs_mtx); in gref_list_dtor()
262 STAILQ_SWAP(&cleanup_data->to_kill_grefs, &tmp_grefs, gntdev_gref); in gref_list_dtor()
263 mtx_unlock(&cleanup_data->to_kill_grefs_mtx); in gref_list_dtor()
298 mtx_lock(&cleanup_data->to_kill_grefs_mtx); in gref_list_dtor()
299 STAILQ_CONCAT(&cleanup_data->to_kill_grefs, &tmp_grefs); in gref_list_dtor()
300 mtx_unlock(&cleanup_data->to_kill_grefs_mtx); in gref_list_dtor()
401 mtx_lock(&cleanup_data.to_kill_grefs_mtx); in gntdev_alloc_gref()
403 STAILQ_INSERT_TAIL(&cleanup_data.to_kill_grefs, in gntdev_alloc_gref()
405 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()