Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/nvdimm/
Dbtt_devs.c27 struct nd_btt *nd_btt = to_nd_btt(dev); in nd_btt_release() local
30 nd_detach_ndns(&nd_btt->dev, &nd_btt->ndns); in nd_btt_release()
31 ida_simple_remove(&nd_region->btt_ida, nd_btt->id); in nd_btt_release()
32 kfree(nd_btt->uuid); in nd_btt_release()
33 kfree(nd_btt); in nd_btt_release()
47 struct nd_btt *to_nd_btt(struct device *dev) in to_nd_btt()
49 struct nd_btt *nd_btt = container_of(dev, struct nd_btt, dev); in to_nd_btt() local
52 return nd_btt; in to_nd_btt()
62 struct nd_btt *nd_btt = to_nd_btt(dev); in sector_size_show() local
64 return nd_size_select_show(nd_btt->lbasize, btt_lbasize_supported, buf); in sector_size_show()
[all …]
Dbtt.c37 return &arena->nd_btt->dev; in to_dev()
40 static u64 adjust_initial_offset(struct nd_btt *nd_btt, u64 offset) in adjust_initial_offset() argument
42 return offset + nd_btt->initial_offset; in adjust_initial_offset()
48 struct nd_btt *nd_btt = arena->nd_btt; in arena_read_bytes() local
49 struct nd_namespace_common *ndns = nd_btt->ndns; in arena_read_bytes()
52 offset = adjust_initial_offset(nd_btt, offset); in arena_read_bytes()
59 struct nd_btt *nd_btt = arena->nd_btt; in arena_write_bytes() local
60 struct nd_namespace_common *ndns = nd_btt->ndns; in arena_write_bytes()
63 offset = adjust_initial_offset(nd_btt, offset); in arena_write_bytes()
268 btt->debugfs_dir = debugfs_create_dir(dev_name(&btt->nd_btt->dev), in btt_debugfs_init()
[all …]
Dbtt.h197 struct nd_btt *nd_btt; member
230 struct nd_btt *nd_btt; member
242 bool nd_btt_arena_is_valid(struct nd_btt *nd_btt, struct btt_sb *super);
243 int nd_btt_version(struct nd_btt *nd_btt, struct nd_namespace_common *ndns,
DMakefile4 obj-$(CONFIG_ND_BTT) += nd_btt.o
11 nd_btt-y := btt.o
Dclaim.c128 struct nd_btt *nd_btt = to_nd_btt(dev); in nd_detach_and_reset() local
130 nd_btt->lbasize = 0; in nd_detach_and_reset()
131 kfree(nd_btt->uuid); in nd_detach_and_reset()
132 nd_btt->uuid = NULL; in nd_detach_and_reset()
Dnd.h184 struct nd_btt { struct
251 struct nd_btt *to_nd_btt(struct device *dev);
363 int nvdimm_namespace_detach_btt(struct nd_btt *nd_btt);
Dpmem.c555 struct nd_btt *nd_btt = to_nd_btt(dev); in nd_pmem_notify() local
557 ndns = nd_btt->ndns; in nd_pmem_notify()
Dbus.c847 struct nd_btt *nd_btt = is_nd_btt(dev) ? to_nd_btt(dev) : NULL; in nd_pmem_forget_poison_check() local
860 if (nd_btt || nd_pfn || nd_dax) { in nd_pmem_forget_poison_check()
861 if (nd_btt) in nd_pmem_forget_poison_check()
862 ndns = nd_btt->ndns; in nd_pmem_forget_poison_check()
Dnamespace_devs.c98 struct nd_btt *nd_btt = to_nd_btt(dev); in is_uuid_busy() local
100 uuid2 = nd_btt->uuid; in is_uuid_busy()
1675 struct nd_btt *nd_btt = is_nd_btt(dev) ? to_nd_btt(dev) : NULL; in nvdimm_namespace_common_probe() local
1681 if (nd_btt || nd_pfn || nd_dax) { in nvdimm_namespace_common_probe()
1682 if (nd_btt) in nvdimm_namespace_common_probe()
1683 ndns = nd_btt->ndns; in nvdimm_namespace_common_probe()
Dregion_devs.c745 struct nd_btt *nd_btt = to_nd_btt(dev); in nd_region_notify_driver_action() local
751 if (nd_region->ns_seed == &nd_btt->ndns->dev) in nd_region_notify_driver_action()
/Linux-v4.19/tools/testing/nvdimm/
DKbuild28 obj-$(CONFIG_ND_BTT) += nd_btt.o
48 nd_btt-y := $(NVDIMM_SRC)/btt.o
49 nd_btt-y += config_check.o