Searched refs:nd_mapping (Results 1 – 7 of 7) sorted by relevance
/openbmc/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() 347 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in shrink_dpa_allocation() local 350 rc = scan_free(nd_region, nd_mapping, label_id, n); in shrink_dpa_allocation() 359 struct nd_region *nd_region, struct nd_mapping *nd_mapping, in init_dpa_allocation() argument 362 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in init_dpa_allocation() 367 res = nvdimm_allocate_dpa(ndd, label_id, nd_mapping->start, n); in init_dpa_allocation() 433 struct nd_mapping *nd_mapping, struct nd_label_id *label_id, in scan_allocate() argument 436 resource_size_t mapping_end = nd_mapping->start + nd_mapping->size - 1; in scan_allocate() 437 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 | 808 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 …]
|
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 | 210 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping) in to_ndd() argument 212 struct nvdimm *nvdimm = nd_mapping->nvdimm; in to_ndd() 727 struct nd_mapping *nd_mapping) in nd_pmem_max_contiguous_dpa() argument 729 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_pmem_max_contiguous_dpa() 744 if (__reserve_free_pmem(&nd_region->dev, nd_mapping->nvdimm)) in nd_pmem_max_contiguous_dpa() 759 release_free_pmem(nvdimm_bus, nd_mapping); in nd_pmem_max_contiguous_dpa() 772 struct nd_mapping *nd_mapping) in nd_pmem_available_dpa() argument 774 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_pmem_available_dpa() 786 map_start = nd_mapping->start; in nd_pmem_available_dpa() 787 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[]; 512 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping);
|
/openbmc/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()
|