Lines Matching refs:b
28 int post_read_mst_fixup(NTFS_RECORD *b, const u32 size) in post_read_mst_fixup() argument
34 usa_ofs = le16_to_cpu(b->usa_ofs); in post_read_mst_fixup()
36 usa_count = le16_to_cpu(b->usa_count) - 1; in post_read_mst_fixup()
44 usa_pos = (u16*)b + usa_ofs/sizeof(u16); in post_read_mst_fixup()
56 data_pos = (u16*)b + NTFS_BLOCK_SIZE/sizeof(u16) - 1; in post_read_mst_fixup()
67 b->magic = magic_BAAD; in post_read_mst_fixup()
73 usa_count = le16_to_cpu(b->usa_count) - 1; in post_read_mst_fixup()
74 data_pos = (u16*)b + NTFS_BLOCK_SIZE/sizeof(u16) - 1; in post_read_mst_fixup()
109 int pre_write_mst_fixup(NTFS_RECORD *b, const u32 size) in pre_write_mst_fixup() argument
116 if (!b || ntfs_is_baad_record(b->magic) || in pre_write_mst_fixup()
117 ntfs_is_hole_record(b->magic)) in pre_write_mst_fixup()
120 usa_ofs = le16_to_cpu(b->usa_ofs); in pre_write_mst_fixup()
122 usa_count = le16_to_cpu(b->usa_count) - 1; in pre_write_mst_fixup()
130 usa_pos = (le16*)((u8*)b + usa_ofs); in pre_write_mst_fixup()
141 data_pos = (le16*)b + NTFS_BLOCK_SIZE/sizeof(le16) - 1; in pre_write_mst_fixup()
165 void post_write_mst_fixup(NTFS_RECORD *b) in post_write_mst_fixup() argument
169 u16 usa_ofs = le16_to_cpu(b->usa_ofs); in post_write_mst_fixup()
170 u16 usa_count = le16_to_cpu(b->usa_count) - 1; in post_write_mst_fixup()
173 usa_pos = (le16*)b + usa_ofs/sizeof(le16); in post_write_mst_fixup()
176 data_pos = (le16*)b + NTFS_BLOCK_SIZE/sizeof(le16) - 1; in post_write_mst_fixup()