Lines Matching refs:b
42 int post_read_mst_fixup(NTFS_RECORD *b, const u32 size) in post_read_mst_fixup() argument
48 usa_ofs = le16_to_cpu(b->usa_ofs); in post_read_mst_fixup()
50 usa_count = le16_to_cpu(b->usa_count) - 1; in post_read_mst_fixup()
58 usa_pos = (u16*)b + usa_ofs/sizeof(u16); in post_read_mst_fixup()
70 data_pos = (u16*)b + NTFS_BLOCK_SIZE/sizeof(u16) - 1; in post_read_mst_fixup()
81 b->magic = magic_BAAD; in post_read_mst_fixup()
87 usa_count = le16_to_cpu(b->usa_count) - 1; in post_read_mst_fixup()
88 data_pos = (u16*)b + NTFS_BLOCK_SIZE/sizeof(u16) - 1; in post_read_mst_fixup()
123 int pre_write_mst_fixup(NTFS_RECORD *b, const u32 size) in pre_write_mst_fixup() argument
130 if (!b || ntfs_is_baad_record(b->magic) || in pre_write_mst_fixup()
131 ntfs_is_hole_record(b->magic)) in pre_write_mst_fixup()
134 usa_ofs = le16_to_cpu(b->usa_ofs); in pre_write_mst_fixup()
136 usa_count = le16_to_cpu(b->usa_count) - 1; in pre_write_mst_fixup()
144 usa_pos = (le16*)((u8*)b + usa_ofs); in pre_write_mst_fixup()
155 data_pos = (le16*)b + NTFS_BLOCK_SIZE/sizeof(le16) - 1; in pre_write_mst_fixup()
179 void post_write_mst_fixup(NTFS_RECORD *b) in post_write_mst_fixup() argument
183 u16 usa_ofs = le16_to_cpu(b->usa_ofs); in post_write_mst_fixup()
184 u16 usa_count = le16_to_cpu(b->usa_count) - 1; in post_write_mst_fixup()
187 usa_pos = (le16*)b + usa_ofs/sizeof(le16); in post_write_mst_fixup()
190 data_pos = (le16*)b + NTFS_BLOCK_SIZE/sizeof(le16) - 1; in post_write_mst_fixup()