Lines Matching refs:usa_ofs
41 is_valid_record(u32 size, u16 usa_ofs, u16 usa_count) in is_valid_record() argument
44 usa_ofs % 2 == 0 && in is_valid_record()
46 usa_ofs + ((u32)usa_count * 2) <= NTFS_BLOCK_SIZE - 2; in is_valid_record()
68 u16 usa_ofs, usa_count, usn; in ntfs_mst_post_read_fixup_warn() local
74 usa_ofs = le16_to_cpu(b->usa_ofs); in ntfs_mst_post_read_fixup_warn()
77 if (!is_valid_record(size, usa_ofs, usa_count)) { in ntfs_mst_post_read_fixup_warn()
84 (long)size, (int)usa_ofs, in ntfs_mst_post_read_fixup_warn()
90 usa_pos = (u16*)b + usa_ofs/sizeof(u16); in ntfs_mst_post_read_fixup_warn()
117 usa_ofs, usa_count, *data_pos, usn); in ntfs_mst_post_read_fixup_warn()
171 u16 usa_ofs, usa_count, usn; in ntfs_mst_pre_write_fixup() local
185 usa_ofs = le16_to_cpu(b->usa_ofs); in ntfs_mst_pre_write_fixup()
188 if (!is_valid_record(size, usa_ofs, usa_count)) { in ntfs_mst_pre_write_fixup()
194 usa_pos = (le16*)((u8*)b + usa_ofs); in ntfs_mst_pre_write_fixup()
234 u16 usa_ofs = le16_to_cpu(b->usa_ofs); in ntfs_mst_post_write_fixup() local
240 usa_pos = (u16*)b + usa_ofs/sizeof(u16); in ntfs_mst_post_write_fixup()