Lines Matching refs:vma_res
184 struct i915_vma_resource *vma_res, in ppgtt_bind_vma() argument
190 if (!vma_res->allocated) { in ppgtt_bind_vma()
191 vm->allocate_va_range(vm, stash, vma_res->start, in ppgtt_bind_vma()
192 vma_res->vma_size); in ppgtt_bind_vma()
193 vma_res->allocated = true; in ppgtt_bind_vma()
198 if (vma_res->bi.readonly) in ppgtt_bind_vma()
200 if (vma_res->bi.lmem) in ppgtt_bind_vma()
203 vm->insert_entries(vm, vma_res, pat_index, pte_flags); in ppgtt_bind_vma()
208 struct i915_vma_resource *vma_res) in ppgtt_unbind_vma() argument
210 if (!vma_res->allocated) in ppgtt_unbind_vma()
213 vm->clear_range(vm, vma_res->start, vma_res->vma_size); in ppgtt_unbind_vma()
214 vma_invalidate_tlb(vm, vma_res->tlb); in ppgtt_unbind_vma()