Home
last modified time | relevance | path

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

/Linux-v5.10/mm/
Dballoon_compaction.c47 spin_lock_irqsave(&b_dev_info->pages_lock, flags); in balloon_page_list_enqueue()
53 spin_unlock_irqrestore(&b_dev_info->pages_lock, flags); in balloon_page_list_enqueue()
83 spin_lock_irqsave(&b_dev_info->pages_lock, flags); in balloon_page_list_dequeue()
108 spin_unlock_irqrestore(&b_dev_info->pages_lock, flags); in balloon_page_list_dequeue()
151 spin_lock_irqsave(&b_dev_info->pages_lock, flags); in balloon_page_enqueue()
153 spin_unlock_irqrestore(&b_dev_info->pages_lock, flags); in balloon_page_enqueue()
193 spin_lock_irqsave(&b_dev_info->pages_lock, flags); in balloon_page_dequeue()
197 spin_unlock_irqrestore(&b_dev_info->pages_lock, flags); in balloon_page_dequeue()
212 spin_lock_irqsave(&b_dev_info->pages_lock, flags); in balloon_page_isolate()
215 spin_unlock_irqrestore(&b_dev_info->pages_lock, flags); in balloon_page_isolate()
[all …]
/Linux-v5.10/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
/Linux-v5.10/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
/Linux-v5.10/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()
407 mutex_lock(&shmem->pages_lock); in drm_gem_shmem_madvise()
414 mutex_unlock(&shmem->pages_lock); in drm_gem_shmem_madvise()
455 if (!mutex_trylock(&shmem->pages_lock)) in drm_gem_shmem_purge()
458 mutex_unlock(&shmem->pages_lock); in drm_gem_shmem_purge()
/Linux-v5.10/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.c475 mutex_lock(&bo->base.pages_lock); in panfrost_mmu_map_fault_addr()
481 mutex_unlock(&bo->base.pages_lock); in panfrost_mmu_map_fault_addr()
491 mutex_unlock(&bo->base.pages_lock); in panfrost_mmu_map_fault_addr()
506 mutex_unlock(&bo->base.pages_lock); in panfrost_mmu_map_fault_addr()
512 mutex_unlock(&bo->base.pages_lock); in panfrost_mmu_map_fault_addr()
/Linux-v5.10/include/linux/
Dballoon_compaction.h56 spinlock_t pages_lock; /* Protection to pages list */ member
75 spin_lock_init(&balloon->pages_lock); in balloon_devinfo_init()
/Linux-v5.10/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()
/Linux-v5.10/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()
/Linux-v5.10/include/drm/
Ddrm_gem_shmem_helper.h32 struct mutex pages_lock; member
/Linux-v5.10/drivers/virtio/
Dvirtio_balloon.c785 spin_lock_irqsave(&vb_dev_info->pages_lock, flags); in virtballoon_migratepage()
789 spin_unlock_irqrestore(&vb_dev_info->pages_lock, flags); in virtballoon_migratepage()
795 spin_lock_irqsave(&vb_dev_info->pages_lock, flags); in virtballoon_migratepage()
797 spin_unlock_irqrestore(&vb_dev_info->pages_lock, flags); in virtballoon_migratepage()
/Linux-v5.10/arch/powerpc/platforms/pseries/
Dcmm.c551 spin_lock_irqsave(&b_dev_info->pages_lock, flags); in cmm_migratepage()
555 spin_unlock_irqrestore(&b_dev_info->pages_lock, flags); in cmm_migratepage()