Lines Matching refs:ndns
30 nd_detach_ndns(&nd_btt->dev, &nd_btt->ndns); in nd_btt_release()
119 rc = sprintf(buf, "%s\n", nd_btt->ndns in namespace_show()
120 ? dev_name(&nd_btt->ndns->dev) : ""); in namespace_show()
133 rc = nd_namespace_store(dev, &nd_btt->ndns, buf, len); in namespace_store()
183 struct nd_namespace_common *ndns) in __nd_btt_create() argument
208 if (ndns && !__nd_attach_ndns(&nd_btt->dev, ndns, &nd_btt->ndns)) { in __nd_btt_create()
209 dev_dbg(&ndns->dev, "%s failed, already claimed by %s\n", in __nd_btt_create()
210 __func__, dev_name(ndns->claim)); in __nd_btt_create()
246 const u8 *parent_uuid = nd_dev_to_uuid(&nd_btt->ndns->dev); in nd_btt_arena_is_valid()
271 struct nd_namespace_common *ndns, struct btt_sb *btt_sb) in __nd_btt_probe() argument
273 if (!btt_sb || !ndns || !nd_btt) in __nd_btt_probe()
276 if (nvdimm_read_bytes(ndns, SZ_4K, btt_sb, sizeof(*btt_sb))) in __nd_btt_probe()
279 if (nvdimm_namespace_capacity(ndns) < SZ_16M) in __nd_btt_probe()
295 int nd_btt_probe(struct device *dev, struct nd_namespace_common *ndns) in nd_btt_probe() argument
300 struct nd_region *nd_region = to_nd_region(ndns->dev.parent); in nd_btt_probe()
302 if (ndns->force_raw) in nd_btt_probe()
305 nvdimm_bus_lock(&ndns->dev); in nd_btt_probe()
306 btt_dev = __nd_btt_create(nd_region, 0, NULL, ndns); in nd_btt_probe()
307 nvdimm_bus_unlock(&ndns->dev); in nd_btt_probe()
311 rc = __nd_btt_probe(to_nd_btt(btt_dev), ndns, btt_sb); in nd_btt_probe()
317 __nd_detach_ndns(btt_dev, &nd_btt->ndns); in nd_btt_probe()