Lines Matching refs:attrs_offset
33 u16 attrs_offset; in ntfs_mft_record_check() local
64 if (le16_to_cpu(m->attrs_offset) & 7) { in ntfs_mft_record_check()
70 attrs_offset = le16_to_cpu(m->attrs_offset); in ntfs_mft_record_check()
73 if (attrs_offset > bytes_in_use || in ntfs_mft_record_check()
74 bytes_in_use - attrs_offset < sizeof_field(struct attr_record, type)) { in ntfs_mft_record_check()
79 a = (struct attr_record *)((char *)m + attrs_offset); in ntfs_mft_record_check()
859 u32 attrs_offset, bytes_in_use; in mft_reserved_is_free() local
890 attrs_offset = le16_to_cpu(m->attrs_offset); in mft_reserved_is_free()
892 if (attrs_offset > bytes_in_use || bytes_in_use > vol->mft_record_size || in mft_reserved_is_free()
893 bytes_in_use - attrs_offset < sizeof(a->type)) in mft_reserved_is_free()
896 for (a = (struct attr_record *)((u8 *)m + attrs_offset); in mft_reserved_is_free()
906 (u8 *)a == (u8 *)m + attrs_offset; in mft_reserved_is_free()
1952 m->attrs_offset = cpu_to_le16((le16_to_cpu(m->usa_ofs) + in ntfs_mft_record_layout()
1960 m->bytes_in_use = cpu_to_le32(le16_to_cpu(m->attrs_offset) + 8); in ntfs_mft_record_layout()
1965 a = (struct attr_record *)((u8 *)m + le16_to_cpu(m->attrs_offset)); in ntfs_mft_record_layout()