Home
last modified time | relevance | path

Searched refs:xen_obj (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/gpu/drm/xen/
H A Dxen_drm_front_gem.c44 static int gem_alloc_pages_array(struct xen_gem_object *xen_obj, in gem_alloc_pages_array() argument
47 xen_obj->num_pages = DIV_ROUND_UP(buf_size, PAGE_SIZE); in gem_alloc_pages_array()
48 xen_obj->pages = kvmalloc_array(xen_obj->num_pages, in gem_alloc_pages_array()
50 return !xen_obj->pages ? -ENOMEM : 0; in gem_alloc_pages_array()
53 static void gem_free_pages_array(struct xen_gem_object *xen_obj) in gem_free_pages_array() argument
55 kvfree(xen_obj->pages); in gem_free_pages_array()
56 xen_obj->pages = NULL; in gem_free_pages_array()
62 struct xen_gem_object *xen_obj = to_xen_gem_obj(gem_obj); in xen_drm_front_gem_object_mmap() local
92 ret = vm_map_pages(vma, xen_obj->pages, xen_obj->num_pages); in xen_drm_front_gem_object_mmap()
116 struct xen_gem_object *xen_obj; in gem_create_obj() local
[all …]