Searched refs:vm_lock (Results 1 – 7 of 7) sorted by relevance
88 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 …]
53 rwlock_t vm_lock; member60 rwlock_t vm_lock; member124 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()
132 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()
645 __acquires(&i915->drm.vma_offset_manager->vm_lock) in mmap_offset_lock()647 write_lock(&i915->drm.vma_offset_manager->vm_lock); in mmap_offset_lock()651 __releases(&i915->drm.vma_offset_manager->vm_lock) in mmap_offset_unlock()653 write_unlock(&i915->drm.vma_offset_manager->vm_lock); in mmap_offset_unlock()
665 if (unlikely(down_read_trylock(&vma->vm_lock->lock) == 0)) in vma_start_read()680 up_read(&vma->vm_lock->lock); in vma_start_read()689 up_read(&vma->vm_lock->lock); in vma_end_read()718 down_write(&vma->vm_lock->lock); in vma_start_write()726 up_write(&vma->vm_lock->lock); in vma_start_write()738 if (!rwsem_is_locked(&vma->vm_lock->lock)) in vma_assert_locked()
607 struct vma_lock *vm_lock; member
459 vma->vm_lock = kmem_cache_alloc(vma_lock_cachep, GFP_KERNEL); in vma_lock_alloc()460 if (!vma->vm_lock) in vma_lock_alloc()463 init_rwsem(&vma->vm_lock->lock); in vma_lock_alloc()471 kmem_cache_free(vma_lock_cachep, vma->vm_lock); in vma_lock_free()538 VM_BUG_ON_VMA(rwsem_is_locked(&vma->vm_lock->lock), vma); in vm_area_free_rcu_cb()