Home
last modified time | relevance | path

Searched refs:ndns (Results 1 – 14 of 14) sorted by relevance

/drivers/nvdimm/
A Dclaim.c19 if (!ndns) in __nd_detach_ndns()
25 ndns->claim = NULL; in __nd_detach_ndns()
27 put_device(&ndns->dev); in __nd_detach_ndns()
35 if (!ndns) in nd_detach_ndns()
37 get_device(&ndns->dev); in nd_detach_ndns()
38 nvdimm_bus_lock(&ndns->dev); in nd_detach_ndns()
41 put_device(&ndns->dev); in nd_detach_ndns()
142 ndns = *_ndns; in nd_namespace_store()
146 } else if (ndns) { in nd_namespace_store()
148 dev_name(&ndns->dev)); in nd_namespace_store()
[all …]
A Dbtt_devs.c21 nd_detach_ndns(&nd_btt->dev, &nd_btt->ndns); in nd_btt_release()
99 rc = sprintf(buf, "%s\n", nd_btt->ndns in namespace_show()
100 ? dev_name(&nd_btt->ndns->dev) : ""); in namespace_show()
211 if (ndns && !__nd_attach_ndns(&nd_btt->dev, ndns, &nd_btt->ndns)) { in __nd_btt_create()
213 dev_name(ndns->claim)); in __nd_btt_create()
315 if (!btt_sb || !ndns || !nd_btt) in __nd_btt_probe()
342 if (ndns->force_raw) in nd_btt_probe()
345 switch (ndns->claim_class) { in nd_btt_probe()
354 nvdimm_bus_lock(&ndns->dev); in nd_btt_probe()
356 nvdimm_bus_unlock(&ndns->dev); in nd_btt_probe()
[all …]
A Dpfn_devs.c208 struct nd_namespace_common *ndns = nd_pfn->ndns; in resource_show() local
234 struct nd_namespace_common *ndns = nd_pfn->ndns; in size_show() local
311 if (ndns && !__nd_attach_ndns(&nd_pfn->dev, ndns, &nd_pfn->ndns)) { in nd_pfn_devinit()
313 dev_name(ndns->claim)); in nd_pfn_devinit()
367 struct nd_namespace_common *ndns = nd_pfn->ndns; in nd_pfn_clear_memmap_errors() local
460 struct nd_namespace_common *ndns = nd_pfn->ndns; in nd_pfn_validate() local
463 if (!pfn_sb || !ndns) in nd_pfn_validate()
593 dev_name(&ndns->dev)); in nd_pfn_validate()
631 if (ndns->force_raw) in nd_pfn_probe()
692 struct nd_namespace_common *ndns = nd_pfn->ndns; in __nvdimm_setup_pfn() local
[all …]
A Dnamespace_devs.c105 if (ndns->force_raw) in pmem_should_map_pages()
147 if (ndns->claim && is_nd_btt(ndns->claim)) in nvdimm_namespace_disk_name()
150 if (is_namespace_pmem(&ndns->dev) || is_namespace_io(&ndns->dev)) { in nvdimm_namespace_disk_name()
1244 rc = sprintf(buf, "%s\n", ndns->claim ? dev_name(ndns->claim) : ""); in holder_show()
1447 ndns = nd_btt->ndns; in nvdimm_namespace_common_probe()
1449 ndns = nd_pfn->ndns; in nvdimm_namespace_common_probe()
1451 ndns = nd_dax->nd_pfn.ndns; in nvdimm_namespace_common_probe()
1453 if (!ndns) in nvdimm_namespace_common_probe()
1467 if (dev_WARN_ONCE(&ndns->dev, ndns->claim != dev, in nvdimm_namespace_common_probe()
1474 if (ndns->claim) { in nvdimm_namespace_common_probe()
[all …]
A Ddax_devs.c20 nd_detach_ndns(dev, &nd_pfn->ndns); in nd_dax_release()
87 int nd_dax_probe(struct device *dev, struct nd_namespace_common *ndns) in nd_dax_probe() argument
94 struct nd_region *nd_region = to_nd_region(ndns->dev.parent); in nd_dax_probe()
96 if (ndns->force_raw) in nd_dax_probe()
99 switch (ndns->claim_class) { in nd_dax_probe()
107 nvdimm_bus_lock(&ndns->dev); in nd_dax_probe()
109 dax_dev = nd_dax_devinit(nd_dax, ndns); in nd_dax_probe()
110 nvdimm_bus_unlock(&ndns->dev); in nd_dax_probe()
119 nd_detach_ndns(dax_dev, &nd_pfn->ndns); in nd_dax_probe()
A Dpmem.c504 dev_name(&ndns->dev))) { in pmem_attach_disk()
599 struct nd_namespace_common *ndns; in nd_pmem_probe() local
602 if (IS_ERR(ndns)) in nd_pmem_probe()
603 return PTR_ERR(ndns); in nd_pmem_probe()
615 ret = nd_btt_probe(dev, ndns); in nd_pmem_probe()
630 ret = nd_pfn_probe(dev, ndns); in nd_pmem_probe()
636 ret = nd_dax_probe(dev, ndns); in nd_pmem_probe()
674 struct nd_namespace_common *ndns; in pmem_revalidate_poison() local
683 ndns = nd_btt->ndns; in pmem_revalidate_poison()
699 ndns = nd_pfn->ndns; in pmem_revalidate_poison()
[all …]
A Dnd.h450 struct nd_namespace_common *ndns; member
475 struct nd_namespace_common *ndns; member
547 struct nd_namespace_common *ndns) in nd_btt_probe() argument
572 struct nd_namespace_common *ndns);
577 struct nd_namespace_common *ndns) in nd_pfn_probe() argument
604 struct nd_namespace_common *ndns) in nd_dax_devinit() argument
608 return nd_pfn_devinit(&nd_dax->nd_pfn, ndns); in nd_dax_devinit()
612 struct nd_namespace_common *ndns) in nd_dax_probe() argument
645 bool nvdimm_namespace_locked(struct nd_namespace_common *ndns);
651 unsigned int pmem_sector_size(struct nd_namespace_common *ndns);
[all …]
A Dbtt.c43 struct nd_namespace_common *ndns = nd_btt->ndns; in arena_read_bytes() local
47 return nvdimm_read_bytes(ndns, offset, buf, n, flags); in arena_read_bytes()
54 struct nd_namespace_common *ndns = nd_btt->ndns; in arena_write_bytes() local
58 return nvdimm_write_bytes(ndns, offset, buf, n, flags); in arena_write_bytes()
1499 struct nd_namespace_common *ndns = nd_btt->ndns; in btt_blk_init() local
1580 nsio = to_nd_namespace_io(&nd_btt->ndns->dev); in btt_init()
1643 struct nd_btt *nd_btt = to_nd_btt(ndns->claim); in nvdimm_namespace_attach_btt()
1659 size = nvdimm_namespace_capacity(ndns); in nvdimm_namespace_attach_btt()
1660 rc = devm_namespace_enable(&nd_btt->dev, ndns, size); in nvdimm_namespace_attach_btt()
1670 nd_btt_version(nd_btt, ndns, btt_sb); in nvdimm_namespace_attach_btt()
[all …]
A Dbus.c958 struct nd_namespace_common *ndns = NULL; in nd_pmem_forget_poison_check() local
970 ndns = nd_btt->ndns; in nd_pmem_forget_poison_check()
972 ndns = nd_pfn->ndns; in nd_pmem_forget_poison_check()
974 ndns = nd_dax->nd_pfn.ndns; in nd_pmem_forget_poison_check()
976 if (!ndns) in nd_pmem_forget_poison_check()
979 ndns = to_ndns(dev); in nd_pmem_forget_poison_check()
981 nsio = to_nd_namespace_io(&ndns->dev); in nd_pmem_forget_poison_check()
A Dbtt.h236 int nd_btt_version(struct nd_btt *nd_btt, struct nd_namespace_common *ndns,
A Dnd-core.h134 resource_size_t __nvdimm_namespace_capacity(struct nd_namespace_common *ndns);
A Dregion_devs.c901 if (nd_region->ns_seed == &nd_btt->ndns->dev) in nd_region_advance_seeds()
908 if (nd_region->ns_seed == &nd_pfn->ndns->dev) in nd_region_advance_seeds()
915 if (nd_region->ns_seed == &nd_dax->nd_pfn.ndns->dev) in nd_region_advance_seeds()
A Dlabel.c878 struct nd_namespace_common *ndns = &nspm->nsio.common; in __pmem_label_update() local
926 nsl_set_claim_class(ndd, nd_label, ndns->claim_class); in __pmem_label_update()
/drivers/dax/
A Dpmem.c19 struct nd_namespace_common *ndns; in __dax_pmem_probe() local
24 ndns = nvdimm_namespace_common_probe(dev); in __dax_pmem_probe()
25 if (IS_ERR(ndns)) in __dax_pmem_probe()
26 return ERR_CAST(ndns); in __dax_pmem_probe()
29 rc = devm_namespace_enable(dev, ndns, nd_info_block_reserve()); in __dax_pmem_probe()
35 devm_namespace_disable(dev, ndns); in __dax_pmem_probe()
40 nsio = to_nd_namespace_io(&ndns->dev); in __dax_pmem_probe()
42 dev_name(&ndns->dev))) { in __dax_pmem_probe()
47 rc = sscanf(dev_name(&ndns->dev), "namespace%d.%d", &region_id, &id); in __dax_pmem_probe()

Completed in 732 milliseconds