Lines Matching refs:gen8_pd_index
111 #define gen8_pd_index(i, lvl) i915_pde_index((i), gen8_pd_shift(lvl)) macro
165 return i915_pd_entry(ppgtt->pd, gen8_pd_index(idx, vm->top)); in gen8_pdp_for_page_index()
239 unsigned int pte = gen8_pd_index(start, 0); in __gen8_ppgtt_clear()
246 gen8_pd_index(start, 0), count, in __gen8_ppgtt_clear()
345 gen8_pd_index(*start, 0), count, in __gen8_ppgtt_alloc()
433 pd = i915_pd_entry(pdp, gen8_pd_index(idx, 2)); in gen8_ppgtt_insert_pte()
434 vaddr = px_vaddr(i915_pt_entry(pd, gen8_pd_index(idx, 1))); in gen8_ppgtt_insert_pte()
437 vaddr[gen8_pd_index(idx, 0)] = pte_encode | iter->dma; in gen8_ppgtt_insert_pte()
451 if (gen8_pd_index(++idx, 0) == 0) { in gen8_ppgtt_insert_pte()
452 if (gen8_pd_index(idx, 1) == 0) { in gen8_ppgtt_insert_pte()
454 if (gen8_pd_index(idx, 2) == 0) in gen8_ppgtt_insert_pte()
457 pd = pdp->entry[gen8_pd_index(idx, 2)]; in gen8_ppgtt_insert_pte()
461 vaddr = px_vaddr(i915_pt_entry(pd, gen8_pd_index(idx, 1))); in gen8_ppgtt_insert_pte()
720 i915_pd_entry(pdp, gen8_pd_index(idx, 2)); in gen8_ppgtt_insert_entry()
721 struct i915_page_table *pt = i915_pt_entry(pd, gen8_pd_index(idx, 1)); in gen8_ppgtt_insert_entry()
727 vaddr[gen8_pd_index(idx, 0)] = gen8_pte_encode(addr, level, flags); in gen8_ppgtt_insert_entry()
728 drm_clflush_virt_range(&vaddr[gen8_pd_index(idx, 0)], sizeof(*vaddr)); in gen8_ppgtt_insert_entry()
741 i915_pd_entry(pdp, gen8_pd_index(idx, 2)); in __xehpsdv_ppgtt_insert_entry_lm()
742 struct i915_page_table *pt = i915_pt_entry(pd, gen8_pd_index(idx, 1)); in __xehpsdv_ppgtt_insert_entry_lm()
750 vaddr[gen8_pd_index(idx, 1)] |= GEN12_PDE_64K; in __xehpsdv_ppgtt_insert_entry_lm()
755 vaddr[gen8_pd_index(idx, 0) / 16] = gen8_pte_encode(addr, level, flags); in __xehpsdv_ppgtt_insert_entry_lm()