Lines Matching refs:ndns
220 static int nsblk_rw_bytes(struct nd_namespace_common *ndns, in nsblk_rw_bytes() argument
223 struct nd_namespace_blk *nsblk = to_nd_namespace_blk(&ndns->dev); in nsblk_rw_bytes()
230 dev_WARN_ONCE(&ndns->dev, 1, "request out of range\n"); in nsblk_rw_bytes()
308 struct nd_namespace_common *ndns; in nd_blk_probe() local
311 ndns = nvdimm_namespace_common_probe(dev); in nd_blk_probe()
312 if (IS_ERR(ndns)) in nd_blk_probe()
313 return PTR_ERR(ndns); in nd_blk_probe()
315 nsblk = to_nd_namespace_blk(&ndns->dev); in nd_blk_probe()
316 nsblk->size = nvdimm_namespace_capacity(ndns); in nd_blk_probe()
319 ndns->rw_bytes = nsblk_rw_bytes; in nd_blk_probe()
321 return nvdimm_namespace_attach_btt(ndns); in nd_blk_probe()
322 else if (nd_btt_probe(dev, ndns) == 0) { in nd_blk_probe()