Home
last modified time | relevance | path

Searched refs:nd_btt (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.10/drivers/nvdimm/
Dbtt_devs.c19 struct nd_btt *nd_btt = to_nd_btt(dev); in nd_btt_release() local
22 nd_detach_ndns(&nd_btt->dev, &nd_btt->ndns); in nd_btt_release()
23 ida_simple_remove(&nd_region->btt_ida, nd_btt->id); in nd_btt_release()
24 kfree(nd_btt->uuid); in nd_btt_release()
25 kfree(nd_btt); in nd_btt_release()
28 struct nd_btt *to_nd_btt(struct device *dev) in to_nd_btt()
30 struct nd_btt *nd_btt = container_of(dev, struct nd_btt, dev); in to_nd_btt() local
33 return nd_btt; in to_nd_btt()
43 struct nd_btt *nd_btt = to_nd_btt(dev); in sector_size_show() local
45 return nd_size_select_show(nd_btt->lbasize, btt_lbasize_supported, buf); in sector_size_show()
[all …]
Dbtt.c29 return &arena->nd_btt->dev; in to_dev()
32 static u64 adjust_initial_offset(struct nd_btt *nd_btt, u64 offset) in adjust_initial_offset() argument
34 return offset + nd_btt->initial_offset; in adjust_initial_offset()
40 struct nd_btt *nd_btt = arena->nd_btt; in arena_read_bytes() local
41 struct nd_namespace_common *ndns = nd_btt->ndns; in arena_read_bytes()
44 offset = adjust_initial_offset(nd_btt, offset); in arena_read_bytes()
51 struct nd_btt *nd_btt = arena->nd_btt; in arena_write_bytes() local
52 struct nd_namespace_common *ndns = nd_btt->ndns; in arena_write_bytes()
55 offset = adjust_initial_offset(nd_btt, offset); in arena_write_bytes()
260 btt->debugfs_dir = debugfs_create_dir(dev_name(&btt->nd_btt->dev), in btt_debugfs_init()
[all …]
Dbtt.h191 struct nd_btt *nd_btt; member
224 struct nd_btt *nd_btt; member
236 bool nd_btt_arena_is_valid(struct nd_btt *nd_btt, struct btt_sb *super);
237 int nd_btt_version(struct nd_btt *nd_btt, struct nd_namespace_common *ndns,
Dclaim.c120 struct nd_btt *nd_btt = to_nd_btt(dev); in nd_detach_and_reset() local
122 nd_btt->lbasize = 0; in nd_detach_and_reset()
123 kfree(nd_btt->uuid); in nd_detach_and_reset()
124 nd_btt->uuid = NULL; in nd_detach_and_reset()
DMakefile4 obj-$(CONFIG_ND_BTT) += nd_btt.o
12 nd_btt-y := btt.o
Dnd.h182 struct nd_btt { struct
268 struct nd_btt *to_nd_btt(struct device *dev);
376 int nvdimm_namespace_detach_btt(struct nd_btt *nd_btt);
Dpmem.c605 struct nd_btt *nd_btt = to_nd_btt(dev); in nd_pmem_notify() local
607 ndns = nd_btt->ndns; in nd_pmem_notify()
Dbus.c936 struct nd_btt *nd_btt = is_nd_btt(dev) ? to_nd_btt(dev) : NULL; in nd_pmem_forget_poison_check() local
949 if (nd_btt || nd_pfn || nd_dax) { in nd_pmem_forget_poison_check()
950 if (nd_btt) in nd_pmem_forget_poison_check()
951 ndns = nd_btt->ndns; in nd_pmem_forget_poison_check()
Dnamespace_devs.c65 struct nd_btt *nd_btt = to_nd_btt(dev); in is_uuid_busy() local
67 uuid2 = nd_btt->uuid; in is_uuid_busy()
1695 struct nd_btt *nd_btt = is_nd_btt(dev) ? to_nd_btt(dev) : NULL; in nvdimm_namespace_common_probe() local
1701 if (nd_btt || nd_pfn || nd_dax) { in nvdimm_namespace_common_probe()
1702 if (nd_btt) in nvdimm_namespace_common_probe()
1703 ndns = nd_btt->ndns; in nvdimm_namespace_common_probe()
Dregion_devs.c901 struct nd_btt *nd_btt = to_nd_btt(dev); in nd_region_advance_seeds() local
905 if (nd_region->ns_seed == &nd_btt->ndns->dev) in nd_region_advance_seeds()
/Linux-v5.10/tools/testing/nvdimm/
DKbuild29 obj-$(CONFIG_ND_BTT) += nd_btt.o
52 nd_btt-y := $(NVDIMM_SRC)/btt.o
53 nd_btt-y += config_check.o