Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/nvdimm/ !
Dnamespace_devs.c294 struct nd_mapping *nd_mapping, struct nd_label_id *label_id, in scan_free() argument
297 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in scan_free()
346 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in shrink_dpa_allocation() local
349 rc = scan_free(nd_region, nd_mapping, label_id, n); in shrink_dpa_allocation()
358 struct nd_region *nd_region, struct nd_mapping *nd_mapping, in init_dpa_allocation() argument
361 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in init_dpa_allocation()
366 res = nvdimm_allocate_dpa(ndd, label_id, nd_mapping->start, n); in init_dpa_allocation()
432 struct nd_mapping *nd_mapping, struct nd_label_id *label_id, in scan_allocate() argument
435 resource_size_t mapping_end = nd_mapping->start + nd_mapping->size - 1; in scan_allocate()
436 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in scan_allocate()
[all …]
Dlabel.c808 static void reap_victim(struct nd_mapping *nd_mapping, in reap_victim() argument
811 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in reap_victim()
874 struct nd_mapping *nd_mapping, struct nd_namespace_pmem *nspm, in __pmem_label_update() argument
879 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in __pmem_label_update()
937 mutex_lock(&nd_mapping->lock); in __pmem_label_update()
938 list_for_each_entry(label_ent, &nd_mapping->labels, list) { in __pmem_label_update()
943 reap_victim(nd_mapping, label_ent); in __pmem_label_update()
950 list_for_each_entry(label_ent, &nd_mapping->labels, list) in __pmem_label_update()
962 mutex_unlock(&nd_mapping->lock); in __pmem_label_update()
967 static int init_labels(struct nd_mapping *nd_mapping, int num_labels) in init_labels() 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()
178 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in nd_region_to_nstype() local
179 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_to_nstype()
199 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; in region_size() local
201 return nd_mapping->size; in region_size()
[all …]
Dnd-core.h116 struct nd_mapping;
117 void nd_mapping_free_labels(struct nd_mapping *nd_mapping);
121 struct nd_mapping *nd_mapping);
124 struct nd_mapping *nd_mapping);
127 struct nd_mapping *nd_mapping);
Ddimm_devs.c210 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping) in to_ndd() argument
212 struct nvdimm *nvdimm = nd_mapping->nvdimm; in to_ndd()
717 struct nd_mapping *nd_mapping) in nd_pmem_max_contiguous_dpa() argument
719 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_pmem_max_contiguous_dpa()
734 if (__reserve_free_pmem(&nd_region->dev, nd_mapping->nvdimm)) in nd_pmem_max_contiguous_dpa()
749 release_free_pmem(nvdimm_bus, nd_mapping); in nd_pmem_max_contiguous_dpa()
762 struct nd_mapping *nd_mapping) in nd_pmem_available_dpa() argument
764 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_pmem_available_dpa()
776 map_start = nd_mapping->start; in nd_pmem_available_dpa()
777 map_end = map_start + nd_mapping->size - 1; in nd_pmem_available_dpa()
[all …]
Dnd.h387 struct nd_mapping { struct
425 struct nd_mapping mapping[];
512 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping);
/linux-6.1.9/tools/testing/nvdimm/test/ !
Dnfit.c668 struct nd_mapping *nd_mapping = NULL; in nfit_test_search_spa() local
688 nd_mapping = &nd_region->mapping[nd_region->ndr_mappings - 1]; in nfit_test_search_spa()
689 nvdimm = nd_mapping->nvdimm; in nfit_test_search_spa()