Lines Matching refs:bdev
43 static struct ttm_buffer_object *ttm_bo_vm_lookup_rb(struct ttm_bo_device *bdev, in ttm_bo_vm_lookup_rb() argument
47 struct rb_node *cur = bdev->addr_space_rb.rb_node; in ttm_bo_vm_lookup_rb()
78 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_vm_fault() local
89 &bdev->man[bo->mem.mem_type]; in ttm_bo_vm_fault()
104 if (bdev->driver->fault_reserve_notify) { in ttm_bo_vm_fault()
105 ret = bdev->driver->fault_reserve_notify(bo); in ttm_bo_vm_fault()
125 spin_lock(&bdev->fence_lock); in ttm_bo_vm_fault()
128 spin_unlock(&bdev->fence_lock); in ttm_bo_vm_fault()
135 spin_unlock(&bdev->fence_lock); in ttm_bo_vm_fault()
181 if (ttm->bdev->driver->ttm_tt_populate(ttm)) { in ttm_bo_vm_fault()
253 struct ttm_bo_device *bdev) in ttm_bo_mmap() argument
259 read_lock(&bdev->vm_lock); in ttm_bo_mmap()
260 bo = ttm_bo_vm_lookup_rb(bdev, vma->vm_pgoff, in ttm_bo_mmap()
264 read_unlock(&bdev->vm_lock); in ttm_bo_mmap()
271 driver = bo->bdev->driver; in ttm_bo_mmap()
309 ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp, in ttm_bo_io() argument
327 read_lock(&bdev->vm_lock); in ttm_bo_io()
328 bo = ttm_bo_vm_lookup_rb(bdev, dev_offset, 1); in ttm_bo_io()
331 read_unlock(&bdev->vm_lock); in ttm_bo_io()
336 driver = bo->bdev->driver; in ttm_bo_io()