• Home
  • Raw
  • Download

Lines Matching refs:ndns

15 	struct nd_namespace_common *ndns = *_ndns;  in __nd_detach_ndns()  local
18 if (!ndns) in __nd_detach_ndns()
21 nvdimm_bus = walk_to_nvdimm_bus(&ndns->dev); in __nd_detach_ndns()
23 dev_WARN_ONCE(dev, ndns->claim != dev, "%s: invalid claim\n", __func__); in __nd_detach_ndns()
24 ndns->claim = NULL; in __nd_detach_ndns()
26 put_device(&ndns->dev); in __nd_detach_ndns()
32 struct nd_namespace_common *ndns = *_ndns; in nd_detach_ndns() local
34 if (!ndns) in nd_detach_ndns()
36 get_device(&ndns->dev); in nd_detach_ndns()
37 nvdimm_bus_lock(&ndns->dev); in nd_detach_ndns()
39 nvdimm_bus_unlock(&ndns->dev); in nd_detach_ndns()
40 put_device(&ndns->dev); in nd_detach_ndns()
76 static bool is_idle(struct device *dev, struct nd_namespace_common *ndns) in is_idle() argument
88 if (seed == dev || ndns || dev->driver) in is_idle()
138 struct nd_namespace_common *ndns; in nd_namespace_store() local
159 ndns = *_ndns; in nd_namespace_store()
163 } else if (ndns) { in nd_namespace_store()
165 dev_name(&ndns->dev)); in nd_namespace_store()
178 ndns = to_ndns(found); in nd_namespace_store()
180 switch (ndns->claim_class) { in nd_namespace_store()
208 if (__nvdimm_namespace_capacity(ndns) < SZ_16M) { in nd_namespace_store()
215 if (!__nd_attach_ndns(dev, ndns, _ndns)) { in nd_namespace_store()
217 dev_name(&ndns->dev)); in nd_namespace_store()
222 put_device(&ndns->dev); /* from device_find_child */ in nd_namespace_store()
251 static int nsio_rw_bytes(struct nd_namespace_common *ndns, in nsio_rw_bytes() argument
255 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in nsio_rw_bytes()
264 dev_WARN_ONCE(&ndns->dev, 1, "request out of range\n"); in nsio_rw_bytes()
282 cleared = nvdimm_clear_poison(&ndns->dev, in nsio_rw_bytes()
296 ret = nvdimm_flush(to_nd_region(ndns->dev.parent), NULL); in nsio_rw_bytes()
306 struct nd_namespace_common *ndns = &nsio->common; in devm_nsio_enable() local
310 dev_name(&ndns->dev))) { in devm_nsio_enable()
315 ndns->rw_bytes = nsio_rw_bytes; in devm_nsio_enable()
318 nvdimm_badblocks_populate(to_nd_region(ndns->dev.parent), &nsio->bb, in devm_nsio_enable()