Home
last modified time | relevance | path

Searched refs:pde_shift (Results 1 – 1 of 1) sorted by relevance

/drivers/gpu/drm/i915/gt/
Dintel_gtt.h81 #define NUM_PTE(pde_shift) (1 << (pde_shift - PAGE_SHIFT)) argument
428 static inline u32 i915_pte_index(u64 address, unsigned int pde_shift) in i915_pte_index() argument
430 const u32 mask = NUM_PTE(pde_shift) - 1; in i915_pte_index()
440 static inline u32 i915_pte_count(u64 addr, u64 length, unsigned int pde_shift) in i915_pte_count() argument
442 const u64 mask = ~((1ULL << pde_shift) - 1); in i915_pte_count()
451 return NUM_PTE(pde_shift) - i915_pte_index(addr, pde_shift); in i915_pte_count()
453 return i915_pte_index(end, pde_shift) - i915_pte_index(addr, pde_shift); in i915_pte_count()