Searched refs:vm_lock (Results 1 – 4 of 4) sorted by relevance
331 rw_wlock(&bdev->vm_lock); in ttm_bo_mmap_single()335 rw_wunlock(&bdev->vm_lock); in ttm_bo_mmap_single()424 read_lock(&bdev->vm_lock);428 read_unlock(&bdev->vm_lock);
763 rw_wlock(&bdev->vm_lock); in ttm_bo_release()770 rw_wunlock(&bdev->vm_lock); in ttm_bo_release()1574 rw_wlock(&bdev->vm_lock); in ttm_bo_device_release()1576 rw_wunlock(&bdev->vm_lock); in ttm_bo_device_release()1589 rw_init(&bdev->vm_lock, "ttmvml"); in ttm_bo_device_init()1693 rw_wlock(&bdev->vm_lock); in ttm_bo_setup_vm()1706 rw_wunlock(&bdev->vm_lock); in ttm_bo_setup_vm()1711 rw_wunlock(&bdev->vm_lock); in ttm_bo_setup_vm()1716 rw_wunlock(&bdev->vm_lock); in ttm_bo_setup_vm()
539 struct rwlock vm_lock; member
139 struct mtx_padalign vm_lock; member203 #define VMEM_CONDVAR_WAIT(vm) cv_wait(&vm->vm_cv, &vm->vm_lock)207 #define VMEM_LOCK(vm) mtx_lock(&vm->vm_lock)208 #define VMEM_TRYLOCK(vm) mtx_trylock(&vm->vm_lock)209 #define VMEM_UNLOCK(vm) mtx_unlock(&vm->vm_lock)210 #define VMEM_LOCK_INIT(vm, name) mtx_init(&vm->vm_lock, (name), NULL, MTX_DEF)211 #define VMEM_LOCK_DESTROY(vm) mtx_destroy(&vm->vm_lock)212 #define VMEM_ASSERT_LOCKED(vm) mtx_assert(&vm->vm_lock, MA_OWNED);