Lines Matching refs:num_pages
160 return DIV_ROUND_UP(buf->num_pages, XEN_NUM_GREFS_PER_PAGE); in get_num_pages_dir()
187 buf->num_grefs = get_num_pages_dir(buf) + buf->num_pages; in guest_calc_num_grefs()
208 unmap_ops = kcalloc(buf->num_pages, sizeof(*unmap_ops), in backend_unmap()
213 for (i = 0; i < buf->num_pages; i++) { in backend_unmap()
222 buf->num_pages); in backend_unmap()
224 for (i = 0; i < buf->num_pages; i++) { in backend_unmap()
253 map_ops = kcalloc(buf->num_pages, sizeof(*map_ops), GFP_KERNEL); in backend_map()
257 buf->backend_map_handles = kcalloc(buf->num_pages, in backend_map()
271 grefs_left = buf->num_pages; in backend_map()
295 ret = gnttab_map_refs(map_ops, NULL, buf->pages, buf->num_pages); in backend_map()
298 for (cur_page = 0; cur_page < buf->num_pages; cur_page++) { in backend_map()
372 grefs_left = buf->num_pages; in guest_fill_page_dir()
408 for (i = 0; i < buf->num_pages; i++) { in guest_grant_refs_for_buffer()
525 buf->num_pages = cfg->num_pages; in xen_front_pgdir_shbuf_alloc()