Lines Matching refs:vm

27 static void mock_insert_page(struct i915_address_space *vm,
35 static void mock_insert_entries(struct i915_address_space *vm,
41 static void mock_bind_ppgtt(struct i915_address_space *vm,
51 static void mock_unbind_ppgtt(struct i915_address_space *vm,
56 static void mock_cleanup(struct i915_address_space *vm)
60 static void mock_clear_range(struct i915_address_space *vm,
73 ppgtt->vm.gt = to_gt(i915);
74 ppgtt->vm.i915 = i915;
75 ppgtt->vm.total = round_down(U64_MAX, PAGE_SIZE);
76 ppgtt->vm.dma = i915->drm.dev;
78 i915_address_space_init(&ppgtt->vm, VM_CLASS_PPGTT);
80 ppgtt->vm.alloc_pt_dma = alloc_pt_dma;
81 ppgtt->vm.alloc_scratch_dma = alloc_pt_dma;
83 ppgtt->vm.clear_range = mock_clear_range;
84 ppgtt->vm.insert_page = mock_insert_page;
85 ppgtt->vm.insert_entries = mock_insert_entries;
86 ppgtt->vm.cleanup = mock_cleanup;
88 ppgtt->vm.vma_ops.bind_vma = mock_bind_ppgtt;
89 ppgtt->vm.vma_ops.unbind_vma = mock_unbind_ppgtt;
94 static void mock_bind_ggtt(struct i915_address_space *vm,
102 static void mock_unbind_ggtt(struct i915_address_space *vm,
111 ggtt->vm.gt = gt;
112 ggtt->vm.i915 = gt->i915;
113 ggtt->vm.is_ggtt = true;
117 ggtt->vm.total = 4096 * PAGE_SIZE;
119 ggtt->vm.alloc_pt_dma = alloc_pt_dma;
120 ggtt->vm.alloc_scratch_dma = alloc_pt_dma;
122 ggtt->vm.clear_range = mock_clear_range;
123 ggtt->vm.insert_page = mock_insert_page;
124 ggtt->vm.insert_entries = mock_insert_entries;
125 ggtt->vm.cleanup = mock_cleanup;
127 ggtt->vm.vma_ops.bind_vma = mock_bind_ggtt;
128 ggtt->vm.vma_ops.unbind_vma = mock_unbind_ggtt;
130 i915_address_space_init(&ggtt->vm, VM_CLASS_GGTT);
135 i915_address_space_fini(&ggtt->vm);