Lines Matching refs:remain
218 u64 remain; in i915_gem_shmem_pread() local
236 remain = args->size; in i915_gem_shmem_pread()
239 for (idx = args->offset >> PAGE_SHIFT; remain; idx++) { in i915_gem_shmem_pread()
241 unsigned int length = min_t(u64, remain, PAGE_SIZE - offset); in i915_gem_shmem_pread()
248 remain -= length; in i915_gem_shmem_pread()
374 u64 remain, offset; in i915_gem_gtt_pread() local
386 remain = args->size; in i915_gem_gtt_pread()
389 while (remain > 0) { in i915_gem_gtt_pread()
399 page_length = remain < page_length ? remain : page_length; in i915_gem_gtt_pread()
414 remain -= page_length; in i915_gem_gtt_pread()
530 u64 remain, offset; in i915_gem_gtt_pwrite_fast() local
560 remain = args->size; in i915_gem_gtt_pwrite_fast()
561 while (remain) { in i915_gem_gtt_pwrite_fast()
571 page_length = remain < page_length ? remain : page_length; in i915_gem_gtt_pwrite_fast()
594 remain -= page_length; in i915_gem_gtt_pwrite_fast()
643 u64 remain; in i915_gem_shmem_pwrite() local
670 remain = args->size; in i915_gem_shmem_pwrite()
672 for (idx = args->offset >> PAGE_SHIFT; remain; idx++) { in i915_gem_shmem_pwrite()
674 unsigned int length = min_t(u64, remain, PAGE_SIZE - offset); in i915_gem_shmem_pwrite()
682 remain -= length; in i915_gem_shmem_pwrite()