Lines Matching refs:to_copy
285 int to_copy = XEN_NUM_GREFS_PER_PAGE; in backend_map() local
287 if (to_copy > grefs_left) in backend_map()
288 to_copy = grefs_left; in backend_map()
290 for (cur_gref = 0; cur_gref < to_copy; cur_gref++) { in backend_map()
301 grefs_left -= to_copy; in backend_map()
364 int cur_gref, grefs_left, to_copy, i, num_pages_dir; in guest_fill_page_dir() local
380 to_copy = grefs_left; in guest_fill_page_dir()
383 to_copy = XEN_NUM_GREFS_PER_PAGE; in guest_fill_page_dir()
387 to_copy * sizeof(grant_ref_t)); in guest_fill_page_dir()
389 grefs_left -= to_copy; in guest_fill_page_dir()
390 cur_gref += to_copy; in guest_fill_page_dir()