Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/gpu/drm/vkms/
Dvkms_gem.c148 static struct page **_get_pages(struct vkms_gem_object *vkms_obj) in _get_pages() argument
150 struct drm_gem_object *gem_obj = &vkms_obj->gem; in _get_pages()
152 if (!vkms_obj->pages) { in _get_pages()
158 if (cmpxchg(&vkms_obj->pages, NULL, pages)) in _get_pages()
162 return vkms_obj->pages; in _get_pages()
167 struct vkms_gem_object *vkms_obj = drm_gem_to_vkms_gem(obj); in vkms_gem_vunmap() local
169 mutex_lock(&vkms_obj->pages_lock); in vkms_gem_vunmap()
170 if (vkms_obj->vmap_count < 1) { in vkms_gem_vunmap()
171 WARN_ON(vkms_obj->vaddr); in vkms_gem_vunmap()
172 WARN_ON(vkms_obj->pages); in vkms_gem_vunmap()
[all …]
Dvkms_composer.c116 struct vkms_gem_object *vkms_obj = drm_gem_to_vkms_gem(gem_obj); in _vkms_get_crc() local
117 void *vaddr_out = kzalloc(vkms_obj->gem.size, GFP_KERNEL); in _vkms_get_crc()
125 if (WARN_ON(!vkms_obj->vaddr)) { in _vkms_get_crc()
130 memcpy(vaddr_out, vkms_obj->vaddr, vkms_obj->gem.size); in _vkms_get_crc()