Lines Matching defs:pde_shift
84 #define NUM_PTE(pde_shift) (1 << (pde_shift - PAGE_SHIFT))
525 static inline u32 i915_pte_index(u64 address, unsigned int pde_shift)
527 const u32 mask = NUM_PTE(pde_shift) - 1;
537 static inline u32 i915_pte_count(u64 addr, u64 length, unsigned int pde_shift)
539 const u64 mask = ~((1ULL << pde_shift) - 1);
548 return NUM_PTE(pde_shift) - i915_pte_index(addr, pde_shift);
550 return i915_pte_index(end, pde_shift) - i915_pte_index(addr, pde_shift);