Searched refs:nd_mapping (Results 1 – 7 of 7) sorted by relevance
/linux/drivers/nvdimm/ |
H A D | namespace_devs.c | 297 struct nd_mapping *nd_mapping, struct nd_label_id *label_id, in scan_free() argument 300 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in scan_free() 351 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in shrink_dpa_allocation() local 354 rc = scan_free(nd_region, nd_mapping, label_id, n); in shrink_dpa_allocation() 363 struct nd_region *nd_region, struct nd_mapping *nd_mapping, in init_dpa_allocation() argument 366 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in init_dpa_allocation() 371 res = nvdimm_allocate_dpa(ndd, label_id, nd_mapping->start, n); in init_dpa_allocation() 437 struct nd_mapping *nd_mapping, struct nd_label_id *label_id, in scan_allocate() argument 440 resource_size_t mapping_end = nd_mapping->start + nd_mapping->size - 1; in scan_allocate() 441 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in scan_allocate() [all …]
|
H A D | region_devs.c | 68 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in nd_region_invalidate_memregion() local 69 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_invalidate_memregion() 96 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in nd_region_invalidate_memregion() local 97 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_invalidate_memregion() 114 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in nd_region_activate() local 115 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_activate() 145 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in nd_region_activate() local 146 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_activate() 177 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in nd_region_release() local 178 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_release() [all …]
|
H A D | label.c | 809 static void reap_victim(struct nd_mapping *nd_mapping, in reap_victim() argument 812 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in reap_victim() 875 struct nd_mapping *nd_mapping, struct nd_namespace_pmem *nspm, in __pmem_label_update() argument 880 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in __pmem_label_update() 938 mutex_lock(&nd_mapping->lock); in __pmem_label_update() 939 list_for_each_entry(label_ent, &nd_mapping->labels, list) { in __pmem_label_update() 944 reap_victim(nd_mapping, label_ent); in __pmem_label_update() 951 list_for_each_entry(label_ent, &nd_mapping->labels, list) in __pmem_label_update() 963 mutex_unlock(&nd_mapping->lock); in __pmem_label_update() 968 static int init_labels(struct nd_mapping *nd_mapping, int num_labels) in init_labels() argument [all …]
|
H A D | nd-core.h | 117 struct nd_mapping; 118 void nd_mapping_free_labels(struct nd_mapping *nd_mapping); 122 struct nd_mapping *nd_mapping); 125 struct nd_mapping *nd_mapping); 128 struct nd_mapping *nd_mapping);
|
H A D | dimm_devs.c | 212 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping) in to_ndd() argument 214 struct nvdimm *nvdimm = nd_mapping->nvdimm; in to_ndd() 732 struct nd_mapping *nd_mapping) in nd_pmem_max_contiguous_dpa() argument 734 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_pmem_max_contiguous_dpa() 749 if (__reserve_free_pmem(&nd_region->dev, nd_mapping->nvdimm)) in nd_pmem_max_contiguous_dpa() 764 release_free_pmem(nvdimm_bus, nd_mapping); in nd_pmem_max_contiguous_dpa() 779 struct nd_mapping *nd_mapping) in nd_pmem_available_dpa() argument 781 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_pmem_available_dpa() 793 map_start = nd_mapping->start; in nd_pmem_available_dpa() 794 map_end = map_start + nd_mapping->size - 1; in nd_pmem_available_dpa() [all …]
|
H A D | nd.h | 387 struct nd_mapping { struct 425 struct nd_mapping mapping[] __counted_by(ndr_mappings); 511 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping);
|
/linux/tools/testing/nvdimm/test/ |
H A D | nfit.c | 668 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()
|