Lines Matching full:pages

30 	struct page **pages;  member
49 xen_obj->pages = kvmalloc_array(xen_obj->num_pages, in gem_alloc_pages_array()
51 return !xen_obj->pages ? -ENOMEM : 0; in gem_alloc_pages_array()
56 kvfree(xen_obj->pages); in gem_free_pages_array()
57 xen_obj->pages = NULL; in gem_free_pages_array()
93 * only allocate array of pointers to pages in gem_create()
100 * allocate ballooned pages which will be used to map in gem_create()
104 xen_obj->pages); in gem_create()
106 DRM_ERROR("Cannot allocate %zu ballooned pages: %d\n", in gem_create()
116 * need to allocate backing pages now, so we can share those in gem_create()
120 xen_obj->pages = drm_gem_get_pages(&xen_obj->base); in gem_create()
121 if (IS_ERR(xen_obj->pages)) { in gem_create()
122 ret = PTR_ERR(xen_obj->pages); in gem_create()
123 xen_obj->pages = NULL; in gem_create()
154 if (xen_obj->pages) { in xen_drm_front_gem_free_object_unlocked()
157 xen_obj->pages); in xen_drm_front_gem_free_object_unlocked()
161 xen_obj->pages, true, false); in xen_drm_front_gem_free_object_unlocked()
173 return xen_obj->pages; in xen_drm_front_gem_get_pages()
180 if (!xen_obj->pages) in xen_drm_front_gem_get_sg_table()
184 xen_obj->pages, xen_obj->num_pages); in xen_drm_front_gem_get_sg_table()
208 ret = drm_prime_sg_to_page_addr_arrays(sgt, xen_obj->pages, in xen_drm_front_gem_import_sg_table()
216 xen_obj->pages); in xen_drm_front_gem_import_sg_table()
251 * doesn't touch the memory. Insert pages now, so both CPU and GPU are in gem_mmap_obj()
253 * FIXME: as we insert all the pages now then no .fault handler must in gem_mmap_obj()
256 ret = vm_map_pages(vma, xen_obj->pages, xen_obj->num_pages); in gem_mmap_obj()
258 DRM_ERROR("Failed to map pages into vma: %d\n", ret); in gem_mmap_obj()
282 if (!xen_obj->pages) in xen_drm_front_gem_prime_vmap()
286 return vmap(xen_obj->pages, xen_obj->num_pages, in xen_drm_front_gem_prime_vmap()