Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/nvdimm/
Dbtt_devs.c225 bool nd_btt_arena_is_valid(struct nd_btt *nd_btt, struct btt_sb *super) in nd_btt_arena_is_valid()
252 struct nd_namespace_common *ndns, struct btt_sb *btt_sb) in __nd_btt_probe() argument
254 if (!btt_sb || !ndns || !nd_btt) in __nd_btt_probe()
257 if (nvdimm_read_bytes(ndns, SZ_4K, btt_sb, sizeof(*btt_sb))) in __nd_btt_probe()
263 if (!nd_btt_arena_is_valid(nd_btt, btt_sb)) in __nd_btt_probe()
266 nd_btt->lbasize = le32_to_cpu(btt_sb->external_lbasize); in __nd_btt_probe()
267 nd_btt->uuid = kmemdup(btt_sb->uuid, 16, GFP_KERNEL); in __nd_btt_probe()
280 struct btt_sb *btt_sb; in nd_btt_probe() local
292 btt_sb = kzalloc(sizeof(*btt_sb), GFP_KERNEL); in nd_btt_probe()
293 rc = __nd_btt_probe(to_nd_btt(dev), ndns, btt_sb); in nd_btt_probe()
[all …]
Dbtt.h55 struct btt_sb { struct
186 bool nd_btt_arena_is_valid(struct nd_btt *nd_btt, struct btt_sb *super);
Dbtt.c58 static int btt_info_write(struct arena_info *arena, struct btt_sb *super) in btt_info_write()
63 sizeof(struct btt_sb)); in btt_info_write()
68 sizeof(struct btt_sb)); in btt_info_write()
71 static int btt_info_read(struct arena_info *arena, struct btt_sb *super) in btt_info_read()
75 sizeof(struct btt_sb)); in btt_info_read()
589 static void parse_arena_meta(struct arena_info *arena, struct btt_sb *super, in parse_arena_meta()
619 struct btt_sb *super; in discover_arenas()
735 struct btt_sb *super; in btt_arena_write_layout()
747 super = kzalloc(sizeof(struct btt_sb), GFP_NOIO); in btt_arena_write_layout()
762 super->infosize = cpu_to_le32(sizeof(struct btt_sb)); in btt_arena_write_layout()
Dclaim.c191 BUILD_BUG_ON(sizeof(struct btt_sb) != SZ_4K); in nd_sb_checksum()