Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/nvdimm/
Dnamespace_devs.c297 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; in nd_namespace_blk_size() local
298 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_namespace_blk_size()
315 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; in __nd_namespace_blk_validate() local
316 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in __nd_namespace_blk_validate()
447 struct nd_mapping *nd_mapping, struct nd_label_id *label_id, in scan_free() argument
451 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in scan_free()
510 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in shrink_dpa_allocation() local
513 rc = scan_free(nd_region, nd_mapping, label_id, n); in shrink_dpa_allocation()
522 struct nd_region *nd_region, struct nd_mapping *nd_mapping, in init_dpa_allocation() argument
526 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 …]
Ddimm_devs.c227 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; in nd_blk_region_to_dimm() local
229 return nd_mapping->nvdimm; in nd_blk_region_to_dimm()
240 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping) in to_ndd() argument
242 struct nvdimm *nvdimm = nd_mapping->nvdimm; in to_ndd()
563 struct nd_mapping *nd_mapping; in alias_dpa_busy() local
574 nd_mapping = &nd_region->mapping[i]; in alias_dpa_busy()
575 if (nd_mapping->nvdimm == info->nd_mapping->nvdimm) in alias_dpa_busy()
582 ndd = to_ndd(nd_mapping); in alias_dpa_busy()
583 map_end = nd_mapping->start + nd_mapping->size - 1; in alias_dpa_busy()
584 blk_start = nd_mapping->start; in alias_dpa_busy()
[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()
231 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in nd_region_to_nstype() local
232 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_to_nstype()
258 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; in size_show() local
260 size = nd_mapping->size; in size_show()
[all …]
Dnd-core.h96 struct nd_mapping *nd_mapping; member
137 struct nd_mapping;
138 void nd_mapping_free_labels(struct nd_mapping *nd_mapping);
142 struct nd_mapping *nd_mapping);
145 struct nd_mapping *nd_mapping);
148 struct nd_mapping *nd_mapping, resource_size_t *overlap);
Dnd.h122 struct nd_mapping { struct
159 struct nd_mapping mapping[0];
237 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping);
/Linux-v5.4/tools/testing/nvdimm/test/
Dnfit.c666 struct nd_mapping *nd_mapping = NULL; in nfit_test_search_spa() local
686 nd_mapping = &nd_region->mapping[nd_region->ndr_mappings - 1]; in nfit_test_search_spa()
687 nvdimm = nd_mapping->nvdimm; in nfit_test_search_spa()