Lines Matching defs:bytes
614 static bool index_hdr_check(const struct INDEX_HDR *hdr, u32 bytes)
620 if (!IS_ALIGNED(off, 8) || tot > bytes || end > tot ||
634 static bool index_buf_check(const struct INDEX_BUFFER *ib, u32 bytes,
641 if (bytes <= offsetof(struct INDEX_BUFFER, ihdr) ||
646 fo + fn * sizeof(short) >= bytes ||
647 fn != ((bytes >> SECTOR_SHIFT) + 1)) {
653 bytes - offsetof(struct INDEX_BUFFER, ihdr));
852 int bytes = used - (off + esize);
859 bytes < sizeof(struct NTFS_DE))
863 memmove(re, Add2Ptr(re, esize), bytes);
941 u32 bytes = 1u << indx->index_bits;
949 index = kzalloc(bytes, GFP_NOFS);
955 err = ntfs_get_bh(ni->mi.sbi, &indx->alloc_run, vbo, bytes, &r->nb);
966 fn = (bytes >> SECTOR_SHIFT) + 1; // 9
988 hdr->total = cpu_to_le32(bytes - offsetof(struct INDEX_BUFFER, ihdr));
1045 u32 bytes = 1u << indx->index_bits;
1059 ib = kmalloc(bytes, GFP_NOFS);
1067 err = ntfs_read_bh(ni->mi.sbi, run, vbo, &ib->rhdr, bytes, &in->nb);
1081 run, vbo, vbo + bytes);
1087 err = ntfs_read_bh(ni->mi.sbi, run, vbo, &ib->rhdr, bytes, &in->nb);
1096 if (!index_buf_check(ib, bytes, &vbn)) {
1110 bytes) {