Lines Matching refs:segs_to_unmap
249 int segs_to_unmap = 0; in free_persistent_gnts() local
262 gnttab_set_unmap_op(&unmap[segs_to_unmap], in free_persistent_gnts()
268 pages[segs_to_unmap] = persistent_gnt->page; in free_persistent_gnts()
270 if (++segs_to_unmap == BLKIF_MAX_SEGMENTS_PER_REQUEST || in free_persistent_gnts()
273 unmap_data.count = segs_to_unmap; in free_persistent_gnts()
277 segs_to_unmap); in free_persistent_gnts()
278 segs_to_unmap = 0; in free_persistent_gnts()
295 int segs_to_unmap = 0; in xen_blkbk_unmap_purged_grants() local
309 gnttab_set_unmap_op(&unmap[segs_to_unmap], in xen_blkbk_unmap_purged_grants()
314 pages[segs_to_unmap] = persistent_gnt->page; in xen_blkbk_unmap_purged_grants()
316 if (++segs_to_unmap == BLKIF_MAX_SEGMENTS_PER_REQUEST) { in xen_blkbk_unmap_purged_grants()
317 unmap_data.count = segs_to_unmap; in xen_blkbk_unmap_purged_grants()
320 segs_to_unmap); in xen_blkbk_unmap_purged_grants()
321 segs_to_unmap = 0; in xen_blkbk_unmap_purged_grants()
325 if (segs_to_unmap > 0) { in xen_blkbk_unmap_purged_grants()
326 unmap_data.count = segs_to_unmap; in xen_blkbk_unmap_purged_grants()
328 gnttab_page_cache_put(&ring->free_pages, pages, segs_to_unmap); in xen_blkbk_unmap_purged_grants()