btt_sb 59 drivers/nvdimm/btt.c static int btt_info_write(struct arena_info *arena, struct btt_sb *super) btt_sb 74 drivers/nvdimm/btt.c sizeof(struct btt_sb), 0); btt_sb 79 drivers/nvdimm/btt.c sizeof(struct btt_sb), 0); btt_sb 82 drivers/nvdimm/btt.c static int btt_info_read(struct arena_info *arena, struct btt_sb *super) btt_sb 85 drivers/nvdimm/btt.c sizeof(struct btt_sb), 0); btt_sb 820 drivers/nvdimm/btt.c static void parse_arena_meta(struct arena_info *arena, struct btt_sb *super, btt_sb 850 drivers/nvdimm/btt.c struct btt_sb *super; btt_sb 973 drivers/nvdimm/btt.c struct btt_sb *super; btt_sb 985 drivers/nvdimm/btt.c super = kzalloc(sizeof(struct btt_sb), GFP_NOIO); btt_sb 1000 drivers/nvdimm/btt.c super->infosize = cpu_to_le32(sizeof(struct btt_sb)); btt_sb 1675 drivers/nvdimm/btt.c struct btt_sb *btt_sb; btt_sb 1684 drivers/nvdimm/btt.c btt_sb = devm_kzalloc(&nd_btt->dev, sizeof(*btt_sb), GFP_KERNEL); btt_sb 1685 drivers/nvdimm/btt.c if (!btt_sb) btt_sb 1694 drivers/nvdimm/btt.c nd_btt_version(nd_btt, ndns, btt_sb); btt_sb 236 drivers/nvdimm/btt.h bool nd_btt_arena_is_valid(struct nd_btt *nd_btt, struct btt_sb *super); btt_sb 238 drivers/nvdimm/btt.h struct btt_sb *btt_sb); btt_sb 245 drivers/nvdimm/btt_devs.c bool nd_btt_arena_is_valid(struct nd_btt *nd_btt, struct btt_sb *super) btt_sb 272 drivers/nvdimm/btt_devs.c struct btt_sb *btt_sb) btt_sb 279 drivers/nvdimm/btt_devs.c if (nvdimm_read_bytes(ndns, 0, btt_sb, sizeof(*btt_sb), 0)) btt_sb 281 drivers/nvdimm/btt_devs.c if (!nd_btt_arena_is_valid(nd_btt, btt_sb)) btt_sb 283 drivers/nvdimm/btt_devs.c if ((le16_to_cpu(btt_sb->version_major) != 2) || btt_sb 284 drivers/nvdimm/btt_devs.c (le16_to_cpu(btt_sb->version_minor) != 0)) btt_sb 294 drivers/nvdimm/btt_devs.c if (nvdimm_read_bytes(ndns, SZ_4K, btt_sb, sizeof(*btt_sb), 0)) btt_sb 296 drivers/nvdimm/btt_devs.c if (!nd_btt_arena_is_valid(nd_btt, btt_sb)) btt_sb 298 drivers/nvdimm/btt_devs.c if ((le16_to_cpu(btt_sb->version_major) != 1) || btt_sb 299 drivers/nvdimm/btt_devs.c (le16_to_cpu(btt_sb->version_minor) != 1)) btt_sb 307 drivers/nvdimm/btt_devs.c struct nd_namespace_common *ndns, struct btt_sb *btt_sb) btt_sb 311 drivers/nvdimm/btt_devs.c if (!btt_sb || !ndns || !nd_btt) btt_sb 317 drivers/nvdimm/btt_devs.c rc = nd_btt_version(nd_btt, ndns, btt_sb); btt_sb 321 drivers/nvdimm/btt_devs.c nd_btt->lbasize = le32_to_cpu(btt_sb->external_lbasize); btt_sb 322 drivers/nvdimm/btt_devs.c nd_btt->uuid = kmemdup(btt_sb->uuid, 16, GFP_KERNEL); btt_sb 335 drivers/nvdimm/btt_devs.c struct btt_sb *btt_sb; btt_sb 355 drivers/nvdimm/btt_devs.c btt_sb = devm_kzalloc(dev, sizeof(*btt_sb), GFP_KERNEL); btt_sb 356 drivers/nvdimm/btt_devs.c rc = __nd_btt_probe(to_nd_btt(btt_dev), ndns, btt_sb); btt_sb 239 drivers/nvdimm/claim.c BUILD_BUG_ON(sizeof(struct btt_sb) != SZ_4K);