• Home
  • Raw
  • Download

Lines Matching refs:ndns

166 const char *nvdimm_namespace_disk_name(struct nd_namespace_common *ndns,  in nvdimm_namespace_disk_name()  argument
169 struct nd_region *nd_region = to_nd_region(ndns->dev.parent); in nvdimm_namespace_disk_name()
172 if (ndns->claim && is_nd_btt(ndns->claim)) in nvdimm_namespace_disk_name()
175 if (is_namespace_pmem(&ndns->dev) || is_namespace_io(&ndns->dev)) { in nvdimm_namespace_disk_name()
178 if (is_namespace_pmem(&ndns->dev)) { in nvdimm_namespace_disk_name()
181 nspm = to_nd_namespace_pmem(&ndns->dev); in nvdimm_namespace_disk_name()
191 } else if (is_namespace_blk(&ndns->dev)) { in nvdimm_namespace_disk_name()
194 nsblk = to_nd_namespace_blk(&ndns->dev); in nvdimm_namespace_disk_name()
960 struct nd_namespace_common *ndns = to_ndns(dev); in __size_store() local
968 if (dev->driver || ndns->claim) in __size_store()
1048 if (val == 0 && id != 0 && nd_region->ns_seed != dev && !ndns->claim) in __size_store()
1098 resource_size_t __nvdimm_namespace_capacity(struct nd_namespace_common *ndns) in __nvdimm_namespace_capacity() argument
1100 struct device *dev = &ndns->dev; in __nvdimm_namespace_capacity()
1117 resource_size_t nvdimm_namespace_capacity(struct nd_namespace_common *ndns) in nvdimm_namespace_capacity() argument
1121 nvdimm_bus_lock(&ndns->dev); in nvdimm_namespace_capacity()
1122 size = __nvdimm_namespace_capacity(ndns); in nvdimm_namespace_capacity()
1123 nvdimm_bus_unlock(&ndns->dev); in nvdimm_namespace_capacity()
1374 struct nd_namespace_common *ndns = to_ndns(dev); in holder_show() local
1378 rc = sprintf(buf, "%s\n", ndns->claim ? dev_name(ndns->claim) : ""); in holder_show()
1388 struct nd_namespace_common *ndns = to_ndns(dev); in mode_show() local
1394 claim = ndns->claim; in mode_show()
1493 struct nd_namespace_common *ndns = NULL; in nvdimm_namespace_common_probe() local
1498 ndns = nd_btt->ndns; in nvdimm_namespace_common_probe()
1500 ndns = nd_pfn->ndns; in nvdimm_namespace_common_probe()
1502 ndns = nd_dax->nd_pfn.ndns; in nvdimm_namespace_common_probe()
1504 if (!ndns) in nvdimm_namespace_common_probe()
1511 device_lock(&ndns->dev); in nvdimm_namespace_common_probe()
1512 device_unlock(&ndns->dev); in nvdimm_namespace_common_probe()
1513 if (ndns->dev.driver) { in nvdimm_namespace_common_probe()
1514 dev_dbg(&ndns->dev, "is active, can't bind %s\n", in nvdimm_namespace_common_probe()
1518 if (dev_WARN_ONCE(&ndns->dev, ndns->claim != dev, in nvdimm_namespace_common_probe()
1521 dev_name(ndns->claim))) in nvdimm_namespace_common_probe()
1524 ndns = to_ndns(dev); in nvdimm_namespace_common_probe()
1525 if (ndns->claim) { in nvdimm_namespace_common_probe()
1527 dev_name(ndns->claim)); in nvdimm_namespace_common_probe()
1533 size = nvdimm_namespace_capacity(ndns); in nvdimm_namespace_common_probe()
1535 dev_dbg(&ndns->dev, "%pa, too small must be at least %#x\n", in nvdimm_namespace_common_probe()
1540 if (is_namespace_pmem(&ndns->dev)) { in nvdimm_namespace_common_probe()
1543 nspm = to_nd_namespace_pmem(&ndns->dev); in nvdimm_namespace_common_probe()
1544 if (uuid_not_set(nspm->uuid, &ndns->dev, __func__)) in nvdimm_namespace_common_probe()
1546 } else if (is_namespace_blk(&ndns->dev)) { in nvdimm_namespace_common_probe()
1549 nsblk = to_nd_namespace_blk(&ndns->dev); in nvdimm_namespace_common_probe()
1550 if (uuid_not_set(nsblk->uuid, &ndns->dev, __func__)) in nvdimm_namespace_common_probe()
1553 dev_dbg(&ndns->dev, "%s: sector size not set\n", in nvdimm_namespace_common_probe()
1561 return ndns; in nvdimm_namespace_common_probe()