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()
163 struct nd_namespace_common *ndns) in __nd_btt_create() argument
188 if (ndns && !__nd_attach_ndns(&nd_btt->dev, ndns, &nd_btt->ndns)) { in __nd_btt_create()
189 dev_dbg(&ndns->dev, "%s failed, already claimed by %s\n", in __nd_btt_create()
190 __func__, dev_name(ndns->claim)); in __nd_btt_create()
227 const u8 *parent_uuid = nd_dev_to_uuid(&nd_btt->ndns->dev); 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()
260 if (nvdimm_namespace_capacity(ndns) < SZ_16M) in __nd_btt_probe()
276 int nd_btt_probe(struct nd_namespace_common *ndns, void *drvdata) in nd_btt_probe() argument
281 struct nd_region *nd_region = to_nd_region(ndns->dev.parent); in nd_btt_probe()
283 if (ndns->force_raw) in nd_btt_probe()
286 nvdimm_bus_lock(&ndns->dev); in nd_btt_probe()
287 dev = __nd_btt_create(nd_region, 0, NULL, ndns); in nd_btt_probe()
288 nvdimm_bus_unlock(&ndns->dev); in nd_btt_probe()
293 rc = __nd_btt_probe(to_nd_btt(dev), ndns, btt_sb); in nd_btt_probe()
295 dev_dbg(&ndns->dev, "%s: btt: %s\n", __func__, in nd_btt_probe()
300 __nd_detach_ndns(dev, &nd_btt->ndns); in nd_btt_probe()