Lines Matching refs:remains

3572 	size_t remains = count;  in zero_iter()  local
3574 while (remains > 0) { in zero_iter()
3577 num = min_t(size_t, remains, PAGE_SIZE); in zero_iter()
3579 remains -= copied; in zero_iter()
3585 return count - remains; in zero_iter()
3597 size_t remains = count; in aligned_vread_iter() local
3600 while (remains > 0) { in aligned_vread_iter()
3606 if (length > remains) in aligned_vread_iter()
3607 length = remains; in aligned_vread_iter()
3624 remains -= copied; in aligned_vread_iter()
3630 return count - remains; in aligned_vread_iter()
3646 size_t remains, n; in vmap_ram_vread_iter() local
3656 remains = count; in vmap_ram_vread_iter()
3676 if (remains == 0) in vmap_ram_vread_iter()
3682 size_t to_zero = min_t(size_t, start - addr, remains); in vmap_ram_vread_iter()
3686 remains -= zeroed; in vmap_ram_vread_iter()
3688 if (remains == 0 || zeroed != to_zero) in vmap_ram_vread_iter()
3695 if (n > remains) in vmap_ram_vread_iter()
3696 n = remains; in vmap_ram_vread_iter()
3701 remains -= copied; in vmap_ram_vread_iter()
3711 return count - remains + zero_iter(iter, remains); in vmap_ram_vread_iter()
3715 return count - remains; in vmap_ram_vread_iter()
3747 size_t n, size, flags, remains; in vread_iter() local
3755 remains = count; in vread_iter()
3763 if ((unsigned long)addr + remains <= va->va_start) in vread_iter()
3769 if (remains == 0) in vread_iter()
3796 size_t to_zero = min_t(size_t, vaddr - addr, remains); in vread_iter()
3800 remains -= zeroed; in vread_iter()
3802 if (remains == 0 || zeroed != to_zero) in vread_iter()
3807 if (n > remains) in vread_iter()
3808 n = remains; in vread_iter()
3818 remains -= copied; in vread_iter()
3827 return count - remains + zero_iter(iter, remains); in vread_iter()
3832 return count - remains; in vread_iter()