Lines Matching refs:ndns
204 static int nsblk_rw_bytes(struct nd_namespace_common *ndns, in nsblk_rw_bytes() argument
208 struct nd_namespace_blk *nsblk = to_nd_namespace_blk(&ndns->dev); in nsblk_rw_bytes()
215 dev_WARN_ONCE(&ndns->dev, 1, "request out of range\n"); in nsblk_rw_bytes()
292 struct nd_namespace_common *ndns; in nd_blk_probe() local
295 ndns = nvdimm_namespace_common_probe(dev); in nd_blk_probe()
296 if (IS_ERR(ndns)) in nd_blk_probe()
297 return PTR_ERR(ndns); in nd_blk_probe()
299 nsblk = to_nd_namespace_blk(&ndns->dev); in nd_blk_probe()
300 nsblk->size = nvdimm_namespace_capacity(ndns); in nd_blk_probe()
303 ndns->rw_bytes = nsblk_rw_bytes; in nd_blk_probe()
305 return nvdimm_namespace_attach_btt(ndns); in nd_blk_probe()
306 else if (nd_btt_probe(dev, ndns) == 0) { in nd_blk_probe()