Searched refs:pages_lock (Results 1 – 12 of 12) sorted by relevance
/Linux-v5.4/mm/ |
D | balloon_compaction.c | 47 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.4/drivers/gpu/drm/vkms/ |
D | vkms_gem.c | 25 mutex_init(&obj->pages_lock); in __vkms_gem_create() 38 mutex_destroy(&gem->pages_lock); in vkms_gem_free_object() 58 mutex_lock(&obj->pages_lock); in vkms_gem_fault() 64 mutex_unlock(&obj->pages_lock); in vkms_gem_fault() 169 mutex_lock(&vkms_obj->pages_lock); in vkms_gem_vunmap() 173 mutex_unlock(&vkms_obj->pages_lock); in vkms_gem_vunmap() 186 mutex_unlock(&vkms_obj->pages_lock); in vkms_gem_vunmap() 194 mutex_lock(&vkms_obj->pages_lock); in vkms_gem_vmap() 218 mutex_unlock(&vkms_obj->pages_lock); in vkms_gem_vmap()
|
D | vkms_drv.h | 89 struct mutex pages_lock; /* Page lock used in page fault handler */ member
|
/Linux-v5.4/drivers/gpu/drm/vgem/ |
D | vgem_drv.c | 62 mutex_destroy(&vgem_obj->pages_lock); in vgem_gem_free_object() 87 mutex_lock(&obj->pages_lock); in vgem_gem_fault() 93 mutex_unlock(&obj->pages_lock); in vgem_gem_fault() 175 mutex_init(&obj->pages_lock); in __vgem_gem_create() 289 mutex_lock(&bo->pages_lock); in vgem_pin_pages() 296 mutex_unlock(&bo->pages_lock); in vgem_pin_pages() 302 mutex_unlock(&bo->pages_lock); in vgem_pin_pages() 309 mutex_lock(&bo->pages_lock); in vgem_unpin_pages() 314 mutex_unlock(&bo->pages_lock); in vgem_unpin_pages()
|
D | vgem_drv.h | 48 struct mutex pages_lock; member
|
/Linux-v5.4/drivers/gpu/drm/ |
D | drm_gem_shmem_helper.c | 76 mutex_init(&shmem->pages_lock); in drm_gem_shmem_create() 132 mutex_destroy(&shmem->pages_lock); in drm_gem_shmem_free_object() 172 ret = mutex_lock_interruptible(&shmem->pages_lock); in drm_gem_shmem_get_pages() 176 mutex_unlock(&shmem->pages_lock); in drm_gem_shmem_get_pages() 206 mutex_lock(&shmem->pages_lock); in drm_gem_shmem_put_pages() 208 mutex_unlock(&shmem->pages_lock); in drm_gem_shmem_put_pages() 373 mutex_lock(&shmem->pages_lock); in drm_gem_shmem_madvise() 380 mutex_unlock(&shmem->pages_lock); in drm_gem_shmem_madvise() 422 if (!mutex_trylock(&shmem->pages_lock)) in drm_gem_shmem_purge() 425 mutex_unlock(&shmem->pages_lock); in drm_gem_shmem_purge()
|
/Linux-v5.4/drivers/gpu/drm/panfrost/ |
D | panfrost_gem_shrinker.c | 43 if (!mutex_trylock(&shmem->pages_lock)) in panfrost_gem_purge() 49 mutex_unlock(&shmem->pages_lock); in panfrost_gem_purge()
|
D | panfrost_mmu.c | 462 mutex_lock(&bo->base.pages_lock); in panfrost_mmu_map_fault_addr() 468 mutex_unlock(&bo->base.pages_lock); in panfrost_mmu_map_fault_addr() 478 mutex_unlock(&bo->base.pages_lock); in panfrost_mmu_map_fault_addr() 493 mutex_unlock(&bo->base.pages_lock); in panfrost_mmu_map_fault_addr() 499 mutex_unlock(&bo->base.pages_lock); in panfrost_mmu_map_fault_addr()
|
/Linux-v5.4/include/linux/ |
D | balloon_compaction.h | 56 spinlock_t pages_lock; /* Protection to pages list */ member 75 spin_lock_init(&balloon->pages_lock); in balloon_devinfo_init()
|
/Linux-v5.4/drivers/misc/ |
D | vmw_balloon.c | 1015 spin_lock_irqsave(&b->b_dev_info.pages_lock, flags); in vmballoon_enqueue_page_list() 1024 spin_unlock_irqrestore(&b->b_dev_info.pages_lock, flags); in vmballoon_enqueue_page_list() 1061 spin_lock_irqsave(&b->b_dev_info.pages_lock, flags); in vmballoon_dequeue_page_list() 1072 spin_unlock_irqrestore(&b->b_dev_info.pages_lock, flags); in vmballoon_dequeue_page_list() 1845 spin_lock_irqsave(&b->b_dev_info.pages_lock, flags); in vmballoon_migratepage() 1862 spin_unlock_irqrestore(&b->b_dev_info.pages_lock, flags); in vmballoon_migratepage()
|
/Linux-v5.4/include/drm/ |
D | drm_gem_shmem_helper.h | 32 struct mutex pages_lock; member
|
/Linux-v5.4/drivers/virtio/ |
D | virtio_balloon.c | 725 spin_lock_irqsave(&vb_dev_info->pages_lock, flags); in virtballoon_migratepage() 729 spin_unlock_irqrestore(&vb_dev_info->pages_lock, flags); in virtballoon_migratepage() 735 spin_lock_irqsave(&vb_dev_info->pages_lock, flags); in virtballoon_migratepage() 737 spin_unlock_irqrestore(&vb_dev_info->pages_lock, flags); in virtballoon_migratepage()
|