Lines Matching refs:ppgtt
169 struct i915_ppgtt *ppgtt; in i915_ppgtt_create() local
171 ppgtt = __ppgtt_create(gt, lmem_pt_obj_flags); in i915_ppgtt_create()
172 if (IS_ERR(ppgtt)) in i915_ppgtt_create()
173 return ppgtt; in i915_ppgtt_create()
175 trace_i915_ppgtt_create(&ppgtt->vm); in i915_ppgtt_create()
177 return ppgtt; in i915_ppgtt_create()
302 void ppgtt_init(struct i915_ppgtt *ppgtt, struct intel_gt *gt, in ppgtt_init() argument
307 ppgtt->vm.gt = gt; in ppgtt_init()
308 ppgtt->vm.i915 = i915; in ppgtt_init()
309 ppgtt->vm.dma = i915->drm.dev; in ppgtt_init()
310 ppgtt->vm.total = BIT_ULL(INTEL_INFO(i915)->ppgtt_size); in ppgtt_init()
311 ppgtt->vm.lmem_pt_obj_flags = lmem_pt_obj_flags; in ppgtt_init()
313 dma_resv_init(&ppgtt->vm._resv); in ppgtt_init()
314 i915_address_space_init(&ppgtt->vm, VM_CLASS_PPGTT); in ppgtt_init()
316 ppgtt->vm.vma_ops.bind_vma = ppgtt_bind_vma; in ppgtt_init()
317 ppgtt->vm.vma_ops.unbind_vma = ppgtt_unbind_vma; in ppgtt_init()
318 ppgtt->vm.vma_ops.set_pages = ppgtt_set_pages; in ppgtt_init()
319 ppgtt->vm.vma_ops.clear_pages = clear_pages; in ppgtt_init()