Home
last modified time | relevance | path

Searched refs:btt_sb (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/nvdimm/
Dbtt_devs.c247 bool nd_btt_arena_is_valid(struct nd_btt *nd_btt, struct btt_sb *super) in nd_btt_arena_is_valid()
276 struct btt_sb *btt_sb) in nd_btt_version() argument
283 if (nvdimm_read_bytes(ndns, 0, btt_sb, sizeof(*btt_sb), 0)) in nd_btt_version()
285 if (!nd_btt_arena_is_valid(nd_btt, btt_sb)) in nd_btt_version()
287 if ((le16_to_cpu(btt_sb->version_major) != 2) || in nd_btt_version()
288 (le16_to_cpu(btt_sb->version_minor) != 0)) in nd_btt_version()
298 if (nvdimm_read_bytes(ndns, SZ_4K, btt_sb, sizeof(*btt_sb), 0)) in nd_btt_version()
300 if (!nd_btt_arena_is_valid(nd_btt, btt_sb)) in nd_btt_version()
302 if ((le16_to_cpu(btt_sb->version_major) != 1) || in nd_btt_version()
303 (le16_to_cpu(btt_sb->version_minor) != 1)) in nd_btt_version()
[all …]
Dbtt.h95 struct btt_sb { struct
235 bool nd_btt_arena_is_valid(struct nd_btt *nd_btt, struct btt_sb *super);
237 struct btt_sb *btt_sb);
Dbtt.c59 static int btt_info_write(struct arena_info *arena, struct btt_sb *super) in btt_info_write()
74 sizeof(struct btt_sb), 0); in btt_info_write()
79 sizeof(struct btt_sb), 0); in btt_info_write()
82 static int btt_info_read(struct arena_info *arena, struct btt_sb *super) in btt_info_read()
85 sizeof(struct btt_sb), 0); in btt_info_read()
820 static void parse_arena_meta(struct arena_info *arena, struct btt_sb *super, in parse_arena_meta()
850 struct btt_sb *super; in discover_arenas()
973 struct btt_sb *super; in btt_arena_write_layout()
985 super = kzalloc(sizeof(struct btt_sb), GFP_NOIO); in btt_arena_write_layout()
1000 super->infosize = cpu_to_le32(sizeof(struct btt_sb)); in btt_arena_write_layout()
[all …]
Dclaim.c240 BUILD_BUG_ON(sizeof(struct btt_sb) != SZ_4K); in nd_sb_checksum()