Lines Matching refs:length
318 uint64_t length);
321 uint64_t length,
395 #define gen6_for_each_pde(pt, pd, start, length, temp, iter) \ argument
397 length > 0 && iter < I915_PDES ? \
401 temp = min_t(unsigned, temp, length), \
402 start += temp, length -= temp)
420 static inline uint32_t i915_pte_count(uint64_t addr, size_t length, in i915_pte_count() argument
426 WARN_ON(length == 0); in i915_pte_count()
427 WARN_ON(offset_in_page(addr|length)); in i915_pte_count()
429 end = addr + length; in i915_pte_count()
447 static inline size_t gen6_pte_count(uint32_t addr, uint32_t length) in gen6_pte_count() argument
449 return i915_pte_count(addr, length, GEN6_PDE_SHIFT); in gen6_pte_count()
461 #define gen8_for_each_pde(pt, pd, start, length, temp, iter) \ argument
463 length > 0 && iter < I915_PDES ? \
467 temp = min(temp, length), \
468 start += temp, length -= temp)
470 #define gen8_for_each_pdpe(pd, pdp, start, length, temp, iter) \ argument
472 length > 0 && (iter < I915_PDPES_PER_PDP(dev)) ? \
476 temp = min(temp, length), \
477 start += temp, length -= temp)
479 #define gen8_for_each_pml4e(pdp, pml4, start, length, temp, iter) \ argument
481 length > 0 && iter < GEN8_PML4ES_PER_PML4 ? \
485 temp = min(temp, length), \
486 start += temp, length -= temp)
508 static inline size_t gen8_pte_count(uint64_t address, uint64_t length) in gen8_pte_count() argument
510 return i915_pte_count(address, length, GEN8_PDE_SHIFT); in gen8_pte_count()