Lines Matching refs:bytes
356 int bytes) in ntfs_fault_in_pages_readable() argument
362 end = (const char __user*)PAGE_ALIGN((unsigned long)uaddr + bytes); in ntfs_fault_in_pages_readable()
374 size_t iov_ofs, int bytes) in ntfs_fault_in_pages_readable_iovec() argument
382 if (len > bytes) in ntfs_fault_in_pages_readable_iovec()
383 len = bytes; in ntfs_fault_in_pages_readable_iovec()
385 bytes -= len; in ntfs_fault_in_pages_readable_iovec()
388 } while (bytes); in ntfs_fault_in_pages_readable_iovec()
482 unsigned nr_pages, s64 pos, size_t bytes) in ntfs_prepare_pages_for_non_resident_write() argument
519 (long long)pos, bytes); in ntfs_prepare_pages_for_non_resident_write()
544 end = pos + bytes; in ntfs_prepare_pages_for_non_resident_write()
1279 size_t bytes) in ntfs_copy_from_user() argument
1289 if (len > bytes) in ntfs_copy_from_user()
1290 len = bytes; in ntfs_copy_from_user()
1303 bytes -= len; in ntfs_copy_from_user()
1304 if (!bytes) in ntfs_copy_from_user()
1315 bytes -= len; in ntfs_copy_from_user()
1316 if (!bytes) in ntfs_copy_from_user()
1319 if (len > bytes) in ntfs_copy_from_user()
1320 len = bytes; in ntfs_copy_from_user()
1327 const struct iovec *iov, size_t iov_ofs, size_t bytes) in __ntfs_copy_from_user_iovec_inatomic() argument
1337 if (len > bytes) in __ntfs_copy_from_user_iovec_inatomic()
1338 len = bytes; in __ntfs_copy_from_user_iovec_inatomic()
1341 bytes -= len; in __ntfs_copy_from_user_iovec_inatomic()
1347 if (!bytes) in __ntfs_copy_from_user_iovec_inatomic()
1356 size_t *iov_ofsp, size_t bytes) in ntfs_set_next_iovec() argument
1361 while (bytes) { in ntfs_set_next_iovec()
1365 if (len > bytes) in ntfs_set_next_iovec()
1366 len = bytes; in ntfs_set_next_iovec()
1367 bytes -= len; in ntfs_set_next_iovec()
1395 size_t *iov_ofs, size_t bytes) in ntfs_copy_from_user_iovec() argument
1403 if (len > bytes) in ntfs_copy_from_user_iovec()
1404 len = bytes; in ntfs_copy_from_user_iovec()
1420 bytes -= len; in ntfs_copy_from_user_iovec()
1421 if (!bytes) in ntfs_copy_from_user_iovec()
1435 bytes -= len; in ntfs_copy_from_user_iovec()
1436 if (!bytes) in ntfs_copy_from_user_iovec()
1439 if (len > bytes) in ntfs_copy_from_user_iovec()
1440 len = bytes; in ntfs_copy_from_user_iovec()
1472 s64 pos, size_t bytes) in ntfs_commit_pages_after_non_resident_write() argument
1488 end = pos + bytes; in ntfs_commit_pages_after_non_resident_write()
1626 const unsigned nr_pages, s64 pos, size_t bytes) in ntfs_commit_pages_after_write() argument
1650 (long long)pos, bytes); in ntfs_commit_pages_after_write()
1653 nr_pages, pos, bytes); in ntfs_commit_pages_after_write()
1691 end = pos + bytes; in ntfs_commit_pages_after_write()
1697 memcpy(kattr + pos, kaddr + pos, bytes); in ntfs_commit_pages_after_write()
1797 size_t bytes, iov_ofs = 0; /* Offset in the current iovec. */ in ntfs_file_buffered_write() local
1953 bytes = PAGE_CACHE_SIZE - ofs; in ntfs_file_buffered_write()
1987 bytes = vol->cluster_size - (pos & in ntfs_file_buffered_write()
1993 if (bytes > count) in ntfs_file_buffered_write()
1994 bytes = count; in ntfs_file_buffered_write()
2004 ntfs_fault_in_pages_readable(buf, bytes); in ntfs_file_buffered_write()
2006 ntfs_fault_in_pages_readable_iovec(iov, iov_ofs, bytes); in ntfs_file_buffered_write()
2020 pages, do_pages, pos, bytes); in ntfs_file_buffered_write()
2036 if (pos + bytes > i_size) { in ntfs_file_buffered_write()
2037 ntfs_write_failed(mapping, pos + bytes); in ntfs_file_buffered_write()
2045 ofs, buf, bytes); in ntfs_file_buffered_write()
2050 bytes); in ntfs_file_buffered_write()
2053 bytes); in ntfs_file_buffered_write()
2058 if (unlikely(copied != bytes)) in ntfs_file_buffered_write()