Home
last modified time | relevance | path

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

/drivers/gpu/drm/vkms/
Dvkms_gem.c27 mutex_init(&obj->pages_lock); in __vkms_gem_create()
40 mutex_destroy(&gem->pages_lock); in vkms_gem_free_object()
60 mutex_lock(&obj->pages_lock); in vkms_gem_fault()
66 mutex_unlock(&obj->pages_lock); in vkms_gem_fault()
172 mutex_lock(&vkms_obj->pages_lock); in vkms_gem_vunmap()
176 mutex_unlock(&vkms_obj->pages_lock); in vkms_gem_vunmap()
189 mutex_unlock(&vkms_obj->pages_lock); in vkms_gem_vunmap()
197 mutex_lock(&vkms_obj->pages_lock); in vkms_gem_vmap()
221 mutex_unlock(&vkms_obj->pages_lock); in vkms_gem_vmap()
Dvkms_drv.h93 struct mutex pages_lock; /* Page lock used in page fault handler */ member
/drivers/gpu/drm/
Ddrm_gem_shmem_helper.c69 mutex_init(&shmem->pages_lock); in __drm_gem_shmem_create()
141 mutex_destroy(&shmem->pages_lock); in drm_gem_shmem_free_object()
183 ret = mutex_lock_interruptible(&shmem->pages_lock); in drm_gem_shmem_get_pages()
187 mutex_unlock(&shmem->pages_lock); in drm_gem_shmem_get_pages()
217 mutex_lock(&shmem->pages_lock); in drm_gem_shmem_put_pages()
219 mutex_unlock(&shmem->pages_lock); in drm_gem_shmem_put_pages()
408 mutex_lock(&shmem->pages_lock); in drm_gem_shmem_madvise()
415 mutex_unlock(&shmem->pages_lock); in drm_gem_shmem_madvise()
456 if (!mutex_trylock(&shmem->pages_lock)) in drm_gem_shmem_purge()
459 mutex_unlock(&shmem->pages_lock); in drm_gem_shmem_purge()
[all …]
/drivers/gpu/drm/vgem/
Dvgem_drv.c63 mutex_destroy(&vgem_obj->pages_lock); in vgem_gem_free_object()
88 mutex_lock(&obj->pages_lock); in vgem_gem_fault()
94 mutex_unlock(&obj->pages_lock); in vgem_gem_fault()
176 mutex_init(&obj->pages_lock); in __vgem_gem_create()
267 mutex_lock(&bo->pages_lock); in vgem_pin_pages()
274 mutex_unlock(&bo->pages_lock); in vgem_pin_pages()
280 mutex_unlock(&bo->pages_lock); in vgem_pin_pages()
287 mutex_lock(&bo->pages_lock); in vgem_unpin_pages()
292 mutex_unlock(&bo->pages_lock); in vgem_unpin_pages()
Dvgem_drv.h48 struct mutex pages_lock; member
/drivers/gpu/drm/panfrost/
Dpanfrost_gem_shrinker.c51 if (!mutex_trylock(&shmem->pages_lock)) in panfrost_gem_purge()
58 mutex_unlock(&shmem->pages_lock); in panfrost_gem_purge()
Dpanfrost_mmu.c415 mutex_lock(&bo->base.pages_lock); in panfrost_mmu_map_fault_addr()
421 mutex_unlock(&bo->base.pages_lock); in panfrost_mmu_map_fault_addr()
431 mutex_unlock(&bo->base.pages_lock); in panfrost_mmu_map_fault_addr()
441 mutex_unlock(&bo->base.pages_lock); in panfrost_mmu_map_fault_addr()
452 mutex_unlock(&bo->base.pages_lock); in panfrost_mmu_map_fault_addr()
459 mutex_unlock(&bo->base.pages_lock); in panfrost_mmu_map_fault_addr()
/drivers/gpu/drm/lima/
Dlima_gem.c36 mutex_lock(&bo->base.pages_lock); in lima_heap_alloc()
44 mutex_unlock(&bo->base.pages_lock); in lima_heap_alloc()
58 mutex_unlock(&bo->base.pages_lock); in lima_heap_alloc()
64 mutex_unlock(&bo->base.pages_lock); in lima_heap_alloc()
/drivers/misc/
Dvmw_balloon.c1016 spin_lock_irqsave(&b->b_dev_info.pages_lock, flags); in vmballoon_enqueue_page_list()
1025 spin_unlock_irqrestore(&b->b_dev_info.pages_lock, flags); in vmballoon_enqueue_page_list()
1062 spin_lock_irqsave(&b->b_dev_info.pages_lock, flags); in vmballoon_dequeue_page_list()
1073 spin_unlock_irqrestore(&b->b_dev_info.pages_lock, flags); in vmballoon_dequeue_page_list()
1846 spin_lock_irqsave(&b->b_dev_info.pages_lock, flags); in vmballoon_migratepage()
1863 spin_unlock_irqrestore(&b->b_dev_info.pages_lock, flags); in vmballoon_migratepage()
/drivers/virtio/
Dvirtio_balloon.c789 spin_lock_irqsave(&vb_dev_info->pages_lock, flags); in virtballoon_migratepage()
793 spin_unlock_irqrestore(&vb_dev_info->pages_lock, flags); in virtballoon_migratepage()
799 spin_lock_irqsave(&vb_dev_info->pages_lock, flags); in virtballoon_migratepage()
801 spin_unlock_irqrestore(&vb_dev_info->pages_lock, flags); in virtballoon_migratepage()