Lines Matching refs:gen8_pd_index
141 #define gen8_pd_index(i, lvl) i915_pde_index((i), gen8_pd_shift(lvl)) macro
195 return i915_pd_entry(ppgtt->pd, gen8_pd_index(idx, vm->top)); in gen8_pdp_for_page_index()
272 unsigned int pte = gen8_pd_index(start, 0); in __gen8_ppgtt_clear()
279 gen8_pd_index(start, 0), count, in __gen8_ppgtt_clear()
378 gen8_pd_index(*start, 0), count, in __gen8_ppgtt_alloc()
466 pd = i915_pd_entry(pdp, gen8_pd_index(idx, 2)); in gen8_ppgtt_insert_pte()
467 vaddr = px_vaddr(i915_pt_entry(pd, gen8_pd_index(idx, 1))); in gen8_ppgtt_insert_pte()
470 vaddr[gen8_pd_index(idx, 0)] = pte_encode | iter->dma; in gen8_ppgtt_insert_pte()
484 if (gen8_pd_index(++idx, 0) == 0) { in gen8_ppgtt_insert_pte()
485 if (gen8_pd_index(idx, 1) == 0) { in gen8_ppgtt_insert_pte()
487 if (gen8_pd_index(idx, 2) == 0) in gen8_ppgtt_insert_pte()
490 pd = pdp->entry[gen8_pd_index(idx, 2)]; in gen8_ppgtt_insert_pte()
494 vaddr = px_vaddr(i915_pt_entry(pd, gen8_pd_index(idx, 1))); in gen8_ppgtt_insert_pte()
773 i915_pd_entry(pdp, gen8_pd_index(idx, 2)); in gen8_ppgtt_insert_entry()
774 struct i915_page_table *pt = i915_pt_entry(pd, gen8_pd_index(idx, 1)); in gen8_ppgtt_insert_entry()
780 vaddr[gen8_pd_index(idx, 0)] = vm->pte_encode(addr, pat_index, flags); in gen8_ppgtt_insert_entry()
781 drm_clflush_virt_range(&vaddr[gen8_pd_index(idx, 0)], sizeof(*vaddr)); in gen8_ppgtt_insert_entry()
794 i915_pd_entry(pdp, gen8_pd_index(idx, 2)); in xehp_ppgtt_insert_entry_lm()
795 struct i915_page_table *pt = i915_pt_entry(pd, gen8_pd_index(idx, 1)); in xehp_ppgtt_insert_entry_lm()
805 vaddr[gen8_pd_index(idx, 1)] |= GEN12_PDE_64K; in xehp_ppgtt_insert_entry_lm()
810 vaddr[gen8_pd_index(idx, 0) / 16] = vm->pte_encode(addr, pat_index, flags); in xehp_ppgtt_insert_entry_lm()