Lines Matching refs:rem
506 unsigned int rem = sg_dma_len(iter->sg); in xehpsdv_ppgtt_insert_huge() local
529 rem >= I915_GTT_PAGE_SIZE_2M && in xehpsdv_ppgtt_insert_huge()
562 rem >= I915_GTT_PAGE_SIZE_64K && in xehpsdv_ppgtt_insert_huge()
574 GEM_BUG_ON(rem < page_size); in xehpsdv_ppgtt_insert_huge()
584 rem -= page_size; in xehpsdv_ppgtt_insert_huge()
590 rem = sg_dma_len(iter->sg); in xehpsdv_ppgtt_insert_huge()
591 if (!rem) in xehpsdv_ppgtt_insert_huge()
595 iter->max = iter->dma + rem; in xehpsdv_ppgtt_insert_huge()
600 } while (rem >= page_size && index < max); in xehpsdv_ppgtt_insert_huge()
614 unsigned int rem = sg_dma_len(iter->sg); in gen8_ppgtt_insert_huge() local
632 rem >= I915_GTT_PAGE_SIZE_2M && in gen8_ppgtt_insert_huge()
649 (IS_ALIGNED(rem, I915_GTT_PAGE_SIZE_64K) || in gen8_ppgtt_insert_huge()
650 rem >= (I915_PDES - index) * I915_GTT_PAGE_SIZE)) in gen8_ppgtt_insert_huge()
662 rem -= page_size; in gen8_ppgtt_insert_huge()
668 rem = sg_dma_len(iter->sg); in gen8_ppgtt_insert_huge()
669 if (!rem) in gen8_ppgtt_insert_huge()
673 iter->max = iter->dma + rem; in gen8_ppgtt_insert_huge()
677 (IS_ALIGNED(rem, I915_GTT_PAGE_SIZE_64K) || in gen8_ppgtt_insert_huge()
678 rem >= (I915_PDES - index) * I915_GTT_PAGE_SIZE))) in gen8_ppgtt_insert_huge()
684 } while (rem >= page_size && index < I915_PDES); in gen8_ppgtt_insert_huge()