Searched refs:nd_gen_sb (Results 1 – 5 of 5) sorted by relevance
234 u64 nd_sb_checksum(struct nd_gen_sb *nd_gen_sb) in nd_sb_checksum() argument241 BUILD_BUG_ON(sizeof(struct nd_gen_sb) != SZ_4K); in nd_sb_checksum()243 sum_save = nd_gen_sb->checksum; in nd_sb_checksum()244 nd_gen_sb->checksum = 0; in nd_sb_checksum()245 sum = nd_fletcher64(nd_gen_sb, sizeof(*nd_gen_sb), 1); in nd_sb_checksum()246 nd_gen_sb->checksum = sum_save; in nd_sb_checksum()
270 struct nd_gen_sb { struct275 u64 nd_sb_checksum(struct nd_gen_sb *sb); argument
259 if (checksum != nd_sb_checksum((struct nd_gen_sb *) super)) in nd_btt_arena_is_valid()
471 if (checksum != nd_sb_checksum((struct nd_gen_sb *) pfn_sb)) in nd_pfn_validate()821 checksum = nd_sb_checksum((struct nd_gen_sb *) pfn_sb); in nd_pfn_init()
1012 sum = nd_sb_checksum((struct nd_gen_sb *) super); in btt_arena_write_layout()