Lines Matching refs: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()
119 xen_obj->pages); in gem_create()
135 xen_obj->pages = drm_gem_get_pages(&xen_obj->base); in gem_create()
136 if (IS_ERR(xen_obj->pages)) { in gem_create()
137 ret = PTR_ERR(xen_obj->pages); in gem_create()
138 xen_obj->pages = NULL; in gem_create()
169 if (xen_obj->pages) { in xen_drm_front_gem_free_object_unlocked()
172 xen_obj->pages); in xen_drm_front_gem_free_object_unlocked()
176 xen_obj->pages, true, false); in xen_drm_front_gem_free_object_unlocked()
188 return xen_obj->pages; in xen_drm_front_gem_get_pages()
195 if (!xen_obj->pages) in xen_drm_front_gem_get_sg_table()
199 xen_obj->pages, xen_obj->num_pages); in xen_drm_front_gem_get_sg_table()
223 ret = drm_prime_sg_to_page_array(sgt, xen_obj->pages, in xen_drm_front_gem_import_sg_table()
231 xen_obj->pages); in xen_drm_front_gem_import_sg_table()
271 ret = vm_map_pages(vma, xen_obj->pages, xen_obj->num_pages); in gem_mmap_obj()
298 if (!xen_obj->pages) in xen_drm_front_gem_prime_vmap()
302 vaddr = vmap(xen_obj->pages, xen_obj->num_pages, in xen_drm_front_gem_prime_vmap()