Lines Matching defs:bytes

47 	__le32 name_bytes;  // 0x1C: In bytes.
94 __le16 size; // 0x00: In bytes
207 __le32 open_attr_len; // 0x30: In bytes
208 __le32 attr_names_len; // 0x34: In bytes
209 __le32 dirty_pages_len; // 0x38: In bytes
210 __le32 transact_table_len; // 0x3C: In bytes
670 static bool check_log_rec(const struct LOG_REC_HDR *lr, u32 bytes, u32 tr,
675 if (bytes < sizeof(struct LOG_REC_HDR))
708 if (bytes < lrh_length(lr))
714 static bool check_rstbl(const struct RESTART_TABLE *rt, size_t bytes)
725 if (!rsize || rsize > bytes ||
726 rsize + sizeof(struct RESTART_TABLE) > bytes || bytes < ts ||
795 u32 bytes = esize * used + sizeof(struct RESTART_TABLE);
797 struct RESTART_TABLE *t = kzalloc(bytes, GFP_NOFS);
897 u32 bytes = bytes_per_rt(rt);
901 if (vbo >= bytes) {
906 u32 bytes2idx = vbo - bytes;
912 *tbl = rt = extend_rsttbl(rt, bytes2idx / esize + 1, bytes);
1129 u32 bytes = log->page_size - page_off;
1157 memcpy(*buffer, Add2Ptr(page_buf, page_off), bytes);
1428 * We are done if the remaining bytes
1438 * We add the remaining bytes to our starting position on this page
1498 * current_log_avail - Calculate the number of bytes available for log records.
2241 * While there are more bytes to transfer,
2268 /* If there are no more bytes to transfer, we exit the loop. */
2578 bool check_index_header(const struct INDEX_HDR *hdr, size_t bytes)
2596 if (de_off > bytes - min_de || used > bytes || total > bytes ||
2620 static inline bool check_index_buffer(const struct INDEX_BUFFER *ib, u32 bytes)
2628 fo = (SECTOR_SIZE - ((bytes >> SECTOR_SHIFT) + 1) * sizeof(short));
2633 if ((le16_to_cpu(r->fix_num) - 1) * SECTOR_SIZE != bytes)
2637 bytes - offsetof(struct INDEX_BUFFER, ihdr));
3044 u32 bytes = 0;
3152 bytes = UpdateNonresidentValue == op ? dlen : 0;
3157 if (bytes < t32)
3158 bytes = t32;
3161 if (!bytes)
3162 bytes = lco - cbo;
3164 bytes += roff;
3166 bytes = (bytes + 511) & ~511; // align
3168 buffer_le = kmalloc(bytes, GFP_NOFS);
3172 err = ntfs_read_run_nb(sbi, oa->run1, vbo, buffer_le, bytes,
3178 ntfs_fix_post_read(buffer_le, bytes, false);
3489 ntfs_fix_pre_write(buffer_le, bytes);
3506 if (!check_index_buffer(ib, bytes) ||
3521 ntfs_fix_pre_write(&ib->rhdr, bytes);
3535 if (!check_index_buffer(ib, bytes) ||
3550 ntfs_fix_pre_write(&ib->rhdr, bytes);
3562 if (!check_index_buffer(ib, bytes) ||
3573 ntfs_fix_pre_write(&ib->rhdr, bytes);
3586 if (!check_index_buffer(ib, bytes) ||
3594 ntfs_fix_pre_write(&ib->rhdr, bytes);
3607 if (!check_index_buffer(ib, bytes) ||
3616 ntfs_fix_pre_write(&ib->rhdr, bytes);
3655 if (!check_index_buffer(ib, bytes) ||
3663 ntfs_fix_pre_write(&ib->rhdr, bytes);
3687 err = ntfs_sb_write_run(sbi, oa->run1, vbo, buffer_le, bytes,