Home
last modified time | relevance | path

Searched refs:vm_lock (Results 1 - 11 of 11) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/
H A Ddrm_vma_manager.c88 rwlock_init(&mgr->vm_lock); in drm_vma_offset_manager_init()
206 write_lock(&mgr->vm_lock); in drm_vma_offset_add()
212 write_unlock(&mgr->vm_lock); in drm_vma_offset_add()
232 write_lock(&mgr->vm_lock); in drm_vma_offset_remove()
239 write_unlock(&mgr->vm_lock); in drm_vma_offset_remove()
276 write_lock(&node->vm_lock); in drm_vma_node_allow()
306 write_unlock(&node->vm_lock); in drm_vma_node_allow()
331 write_lock(&node->vm_lock); in drm_vma_node_revoke()
349 write_unlock(&node->vm_lock); in drm_vma_node_revoke()
372 read_lock(&node->vm_lock); in drm_vma_node_is_allowed()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/
H A Ddrm_vma_manager.c88 rwlock_init(&mgr->vm_lock); in drm_vma_offset_manager_init()
206 write_lock(&mgr->vm_lock); in drm_vma_offset_add()
212 write_unlock(&mgr->vm_lock); in drm_vma_offset_add()
232 write_lock(&mgr->vm_lock); in drm_vma_offset_remove()
239 write_unlock(&mgr->vm_lock); in drm_vma_offset_remove()
257 write_lock(&node->vm_lock); in vma_node_allow()
288 write_unlock(&node->vm_lock); in vma_node_allow()
363 write_lock(&node->vm_lock); in drm_vma_node_revoke()
381 write_unlock(&node->vm_lock); in drm_vma_node_revoke()
404 read_lock(&node->vm_lock); in drm_vma_node_is_allowed()
[all...]
/kernel/linux/linux-5.10/include/drm/
H A Ddrm_vma_manager.h53 rwlock_t vm_lock; member
60 rwlock_t vm_lock; member
123 read_lock(&mgr->vm_lock); in drm_vma_offset_lock_lookup()
134 read_unlock(&mgr->vm_lock); in drm_vma_offset_unlock_lookup()
151 rwlock_init(&node->vm_lock); in drm_vma_node_reset()
/kernel/linux/linux-6.6/include/drm/
H A Ddrm_vma_manager.h53 rwlock_t vm_lock; member
60 rwlock_t vm_lock; member
124 read_lock(&mgr->vm_lock); in drm_vma_offset_lock_lookup()
135 read_unlock(&mgr->vm_lock); in drm_vma_offset_unlock_lookup()
152 rwlock_init(&node->vm_lock); in drm_vma_node_reset()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/
H A Di915_gem_mman.c607 __acquires(&i915->drm.vma_offset_manager->vm_lock)
609 write_lock(&i915->drm.vma_offset_manager->vm_lock);
613 __releases(&i915->drm.vma_offset_manager->vm_lock)
615 write_unlock(&i915->drm.vma_offset_manager->vm_lock);
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/
H A Detnaviv_drv.c123 read_lock(&dev->vma_offset_manager->vm_lock); in etnaviv_mm_show()
125 read_unlock(&dev->vma_offset_manager->vm_lock); in etnaviv_mm_show()
/kernel/linux/linux-6.6/drivers/gpu/drm/etnaviv/
H A Detnaviv_drv.c132 read_lock(&dev->vma_offset_manager->vm_lock); in etnaviv_mm_show()
134 read_unlock(&dev->vma_offset_manager->vm_lock); in etnaviv_mm_show()
/kernel/linux/linux-6.6/include/linux/
H A Dmm.h691 if (unlikely(down_read_trylock(&vma->vm_lock->lock) == 0)) in vma_start_read()
697 * vma->vm_lock_seq under vma->vm_lock protection and mm->mm_lock_seq in vma_start_read()
706 up_read(&vma->vm_lock->lock); in vma_start_read()
715 up_read(&vma->vm_lock->lock); in vma_end_read()
744 down_write(&vma->vm_lock->lock); in vma_start_write()
752 up_write(&vma->vm_lock->lock); in vma_start_write()
764 if (!rwsem_is_locked(&vma->vm_lock->lock)) in vma_assert_locked()
827 * WARNING: vma_init does not initialize vma->vm_lock.
H A Dmm_types.h596 * - vm_lock->lock (in write mode)
599 * - vm_lock->lock (in read or write mode)
608 struct vma_lock *vm_lock; member
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/selftests/
H A Di915_gem_mman.c645 __acquires(&i915->drm.vma_offset_manager->vm_lock)
647 write_lock(&i915->drm.vma_offset_manager->vm_lock);
651 __releases(&i915->drm.vma_offset_manager->vm_lock)
653 write_unlock(&i915->drm.vma_offset_manager->vm_lock);
/kernel/linux/linux-6.6/kernel/
H A Dfork.c462 vma->vm_lock = kmem_cache_alloc(vma_lock_cachep, GFP_KERNEL); in vma_lock_alloc()
463 if (!vma->vm_lock) in vma_lock_alloc()
466 init_rwsem(&vma->vm_lock->lock); in vma_lock_alloc()
474 kmem_cache_free(vma_lock_cachep, vma->vm_lock); in vma_lock_free()
541 VM_BUG_ON_VMA(rwsem_is_locked(&vma->vm_lock->lock), vma); in vm_area_free_rcu_cb()

Completed in 20 milliseconds