Lines Matching full:remains

2540  * however xarray spinlocks protect against any contention that remains.
4150 size_t remains = count; in zero_iter() local
4152 while (remains > 0) { in zero_iter()
4155 num = min_t(size_t, remains, PAGE_SIZE); in zero_iter()
4157 remains -= copied; in zero_iter()
4163 return count - remains; in zero_iter()
4175 size_t remains = count; in aligned_vread_iter() local
4178 while (remains > 0) { in aligned_vread_iter()
4184 if (length > remains) in aligned_vread_iter()
4185 length = remains; in aligned_vread_iter()
4202 remains -= copied; in aligned_vread_iter()
4208 return count - remains; in aligned_vread_iter()
4224 size_t remains, n; in vmap_ram_vread_iter() local
4234 remains = count; in vmap_ram_vread_iter()
4254 if (remains == 0) in vmap_ram_vread_iter()
4260 size_t to_zero = min_t(size_t, start - addr, remains); in vmap_ram_vread_iter()
4264 remains -= zeroed; in vmap_ram_vread_iter()
4266 if (remains == 0 || zeroed != to_zero) in vmap_ram_vread_iter()
4273 if (n > remains) in vmap_ram_vread_iter()
4274 n = remains; in vmap_ram_vread_iter()
4279 remains -= copied; in vmap_ram_vread_iter()
4289 return count - remains + zero_iter(iter, remains); in vmap_ram_vread_iter()
4293 return count - remains; in vmap_ram_vread_iter()
4326 size_t n, size, flags, remains; in vread_iter() local
4335 remains = count; in vread_iter()
4342 if ((unsigned long)addr + remains <= va->va_start) in vread_iter()
4348 if (remains == 0) in vread_iter()
4375 size_t to_zero = min_t(size_t, vaddr - addr, remains); in vread_iter()
4379 remains -= zeroed; in vread_iter()
4381 if (remains == 0 || zeroed != to_zero) in vread_iter()
4386 if (n > remains) in vread_iter()
4387 n = remains; in vread_iter()
4397 remains -= copied; in vread_iter()
4412 return count - remains + zero_iter(iter, remains); in vread_iter()
4414 /* Nothing remains, or We couldn't copy/zero everything. */ in vread_iter()
4418 return count - remains; in vread_iter()