Searched refs:nd_mapping (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/nvdimm/ |
| H A D | namespace_devs.c | 295 struct nd_mapping *nd_mapping, struct nd_label_id *label_id, in scan_free() argument 298 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in scan_free() 349 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in shrink_dpa_allocation() local 352 rc = scan_free(nd_region, nd_mapping, label_id, n); in shrink_dpa_allocation() 361 struct nd_region *nd_region, struct nd_mapping *nd_mapping, in init_dpa_allocation() argument 364 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in init_dpa_allocation() 369 res = nvdimm_allocate_dpa(ndd, label_id, nd_mapping->start, n); in init_dpa_allocation() 435 struct nd_mapping *nd_mapping, struct nd_label_id *label_id, in scan_allocate() argument 438 resource_size_t mapping_end = nd_mapping->start + nd_mapping->size - 1; in scan_allocate() 439 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() 113 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in get_flush_data() local 114 struct nvdimm *nvdimm = nd_mapping->nvdimm; in get_flush_data() 158 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in nd_region_activate() local 159 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_activate() 190 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in nd_region_release() local 191 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() 718 struct nd_mapping *nd_mapping) in nd_pmem_max_contiguous_dpa() argument 720 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_pmem_max_contiguous_dpa() 735 if (__reserve_free_pmem(&nd_region->dev, nd_mapping->nvdimm)) in nd_pmem_max_contiguous_dpa() 750 release_free_pmem(nvdimm_bus, nd_mapping); in nd_pmem_max_contiguous_dpa() 765 struct nd_mapping *nd_mapping) in nd_pmem_available_dpa() argument 767 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_pmem_available_dpa() 779 map_start = nd_mapping->start; in nd_pmem_available_dpa() 780 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 689 nd_mapping = &nd_region->mapping[nd_region->ndr_mappings - 1]; in nfit_test_search_spa() 690 nvdimm = nd_mapping->nvdimm; in nfit_test_search_spa()
|