Searched refs:vm_lock (Results 1 – 4 of 4) sorted by relevance
178 struct mtx_padalign vm_lock; member181 pthread_mutex_t vm_lock;259 #define VMEM_CONDVAR_WAIT(vm) cv_wait(&vm->vm_cv, &vm->vm_lock)262 #define VMEM_LOCK(vm) mtx_lock(&vm->vm_lock)263 #define VMEM_UNLOCK(vm) mtx_unlock(&vm->vm_lock)264 #define VMEM_LOCK_INIT(vm, name) mtx_init(&vm->vm_lock, (name), NULL, MTX_DEF)265 #define VMEM_LOCK_DESTROY(vm) mtx_destroy(&vm->vm_lock)266 #define VMEM_ASSERT_LOCKED(vm) mtx_assert(&vm->vm_lock, MA_OWNED);273 #define VMEM_CONDVAR_WAIT(vm) pthread_cond_wait(&vm->vm_cv, &vm->vm_lock)276 #define VMEM_LOCK(vm) pthread_mutex_lock(&vm->vm_lock)[all …]
328 rw_wlock(&bdev->vm_lock); in ttm_bo_mmap_single()332 rw_wunlock(&bdev->vm_lock); in ttm_bo_mmap_single()407 read_lock(&bdev->vm_lock);411 read_unlock(&bdev->vm_lock);
761 rw_wlock(&bdev->vm_lock); in ttm_bo_release()768 rw_wunlock(&bdev->vm_lock); in ttm_bo_release()1571 rw_wlock(&bdev->vm_lock); in ttm_bo_device_release()1573 rw_wunlock(&bdev->vm_lock); in ttm_bo_device_release()1586 rw_init(&bdev->vm_lock, "ttmvml"); in ttm_bo_device_init()1690 rw_wlock(&bdev->vm_lock); in ttm_bo_setup_vm()1703 rw_wunlock(&bdev->vm_lock); in ttm_bo_setup_vm()1708 rw_wunlock(&bdev->vm_lock); in ttm_bo_setup_vm()1713 rw_wunlock(&bdev->vm_lock); in ttm_bo_setup_vm()
538 struct rwlock vm_lock; member