Home
last modified time | relevance | path

Searched refs:nd_mapping (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.10/drivers/nvdimm/
Dnamespace_devs.c272 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; in nd_namespace_blk_size() local
273 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_namespace_blk_size()
290 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; in __nd_namespace_blk_validate() local
291 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in __nd_namespace_blk_validate()
422 struct nd_mapping *nd_mapping, struct nd_label_id *label_id, in scan_free() argument
426 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in scan_free()
485 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in shrink_dpa_allocation() local
488 rc = scan_free(nd_region, nd_mapping, label_id, n); in shrink_dpa_allocation()
497 struct nd_region *nd_region, struct nd_mapping *nd_mapping, in init_dpa_allocation() argument
501 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in init_dpa_allocation()
[all …]
Dlabel.c748 static void reap_victim(struct nd_mapping *nd_mapping, in reap_victim() argument
751 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in reap_victim()
760 struct nd_mapping *nd_mapping, struct nd_namespace_pmem *nspm, in __pmem_label_update() argument
765 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in __pmem_label_update()
833 mutex_lock(&nd_mapping->lock); in __pmem_label_update()
834 list_for_each_entry(label_ent, &nd_mapping->labels, list) { in __pmem_label_update()
840 reap_victim(nd_mapping, label_ent); in __pmem_label_update()
847 list_for_each_entry(label_ent, &nd_mapping->labels, list) in __pmem_label_update()
859 mutex_unlock(&nd_mapping->lock); in __pmem_label_update()
898 struct nd_mapping *nd_mapping, struct nd_namespace_blk *nsblk, in __blk_label_update() argument
[all …]
Dregion_devs.c71 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in nd_region_activate() local
72 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_activate()
98 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in nd_region_activate() local
99 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_activate()
130 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in nd_region_release() local
131 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_release()
201 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in nd_region_to_nstype() local
202 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_to_nstype()
224 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; in region_size() local
226 return nd_mapping->size; in region_size()
[all …]
Ddimm_devs.c217 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; in nd_blk_region_to_dimm() local
219 return nd_mapping->nvdimm; in nd_blk_region_to_dimm()
230 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping) in to_ndd() argument
232 struct nvdimm *nvdimm = nd_mapping->nvdimm; in to_ndd()
703 struct nd_mapping *nd_mapping; in alias_dpa_busy() local
715 nd_mapping = &nd_region->mapping[i]; in alias_dpa_busy()
716 if (nd_mapping->nvdimm == info->nd_mapping->nvdimm) in alias_dpa_busy()
723 ndd = to_ndd(nd_mapping); in alias_dpa_busy()
724 map_end = nd_mapping->start + nd_mapping->size - 1; in alias_dpa_busy()
725 blk_start = nd_mapping->start; in alias_dpa_busy()
[all …]
Dnd-core.h97 struct nd_mapping *nd_mapping; member
133 struct nd_mapping;
134 void nd_mapping_free_labels(struct nd_mapping *nd_mapping);
138 struct nd_mapping *nd_mapping);
141 struct nd_mapping *nd_mapping);
144 struct nd_mapping *nd_mapping, resource_size_t *overlap);
Dnd.h122 struct nd_mapping { struct
160 struct nd_mapping mapping[];
246 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping);
/Linux-v5.10/tools/testing/nvdimm/test/
Dnfit.c671 struct nd_mapping *nd_mapping = NULL; in nfit_test_search_spa() local
691 nd_mapping = &nd_region->mapping[nd_region->ndr_mappings - 1]; in nfit_test_search_spa()
692 nvdimm = nd_mapping->nvdimm; in nfit_test_search_spa()