Lines Matching defs:bytes
131 bool ntfs_fix_pre_write(struct NTFS_RECORD_HEADER *rhdr, size_t bytes)
139 fn * SECTOR_SIZE > bytes) {
168 int ntfs_fix_post_read(struct NTFS_RECORD_HEADER *rhdr, size_t bytes,
176 fn = simple ? ((bytes >> SECTOR_SHIFT) + 1) :
181 fn * SECTOR_SIZE > bytes) {
850 u32 blocksize, bytes;
861 bytes = sbi->mft.recs_mirr << sbi->record_bits;
865 for (; bytes >= blocksize; bytes -= blocksize) {
999 static inline __le32 security_hash(const void *sd, size_t bytes)
1004 bytes >>= 2;
1005 while (bytes--)
1034 int ntfs_sb_read(struct super_block *sb, u64 lbo, size_t bytes, void *buffer)
1042 for (; bytes; block += 1, off = 0, op = blocksize) {
1048 if (op > bytes)
1049 op = bytes;
1055 bytes -= op;
1062 int ntfs_sb_write(struct super_block *sb, u64 lbo, size_t bytes,
1075 for (; bytes; block += 1, off = 0, op = blocksize) {
1076 if (op > bytes)
1077 op = bytes;
1122 bytes -= op;
1128 u64 vbo, const void *buf, size_t bytes, int sync)
1147 u32 op = min_t(u64, len, bytes);
1153 bytes -= op;
1154 if (!bytes)
1192 u64 vbo, void *buf, u32 bytes, struct ntfs_buffers *nb)
1232 nb->bytes = bytes;
1236 u32 len32 = len >= bytes ? bytes : len;
1266 bytes -= op;
1267 if (!bytes)
1310 struct NTFS_RECORD_HEADER *rhdr, u32 bytes,
1313 int err = ntfs_read_run_nb(sbi, run, vbo, rhdr, bytes, nb);
1317 return ntfs_fix_post_read(rhdr, nb->bytes, true);
1321 u32 bytes, struct ntfs_buffers *nb)
1334 nb->bytes = bytes;
1348 u32 len32 = min_t(u64, len, bytes);
1382 bytes -= op;
1383 if (!bytes) {
1421 u32 bytes = nb->bytes;
1430 fn * SECTOR_SIZE > bytes) {
1434 for (idx = 0; bytes && idx < nb->nbufs; idx += 1, off = 0) {
1440 if (op > bytes)
1441 op = bytes;
1487 bytes -= op;
1498 struct page **pages, u32 nr_pages, u64 vbo, u32 bytes,
1513 if (!bytes)
1518 /* Align vbo and bytes to be 512 bytes aligned. */
1519 lbo = (vbo + bytes + 511) & ~511ull;
1521 bytes = lbo - vbo;
1551 if (bytes <= add)
1553 bytes -= add;
1667 u64 vbo, u64 *lbo, u64 *bytes)
1678 *bytes = ((u64)len << cluster_bits) - off;
2071 * SECURITY Descriptor Stream data is organized into chunks of 256K bytes
2178 /* Zero "left" bytes from sbi->security.next_off. */
2192 * zero "tozero" bytes from sbi->security.next_off - tozero
2655 /* Allocate PATH_MAX bytes. */