Lines Matching refs:to_copy
276 int to_copy = XEN_NUM_GREFS_PER_PAGE; in backend_map() local
278 if (to_copy > grefs_left) in backend_map()
279 to_copy = grefs_left; in backend_map()
281 for (cur_gref = 0; cur_gref < to_copy; cur_gref++) { in backend_map()
292 grefs_left -= to_copy; in backend_map()
362 int cur_gref, grefs_left, to_copy, i, num_pages_dir; in guest_fill_page_dir() local
378 to_copy = grefs_left; in guest_fill_page_dir()
381 to_copy = XEN_NUM_GREFS_PER_PAGE; in guest_fill_page_dir()
385 to_copy * sizeof(grant_ref_t)); in guest_fill_page_dir()
387 grefs_left -= to_copy; in guest_fill_page_dir()
388 cur_gref += to_copy; in guest_fill_page_dir()