Home
last modified time | relevance | path

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

/linux/drivers/nvdimm/
H A Dnamespace_devs.c297 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 in init_dpa_allocation()
437 scan_allocate(struct nd_region * nd_region,struct nd_mapping * nd_mapping,struct nd_label_id * label_id,resource_size_t n) scan_allocate() argument
579 merge_dpa(struct nd_region * nd_region,struct nd_mapping * nd_mapping,struct nd_label_id * label_id) merge_dpa() argument
626 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; __reserve_free_pmem() local
647 release_free_pmem(struct nvdimm_bus * nvdimm_bus,struct nd_mapping * nd_mapping) release_free_pmem() argument
678 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; grow_dpa_allocation() local
710 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; nd_namespace_pmem_set_resource() local
754 struct nd_mapping *nd_mapping; __size_store() local
912 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; nvdimm_namespace_locked() local
984 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; namespace_update_uuid() local
1000 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; namespace_update_uuid() local
1161 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; dpa_extents_show() local
1182 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; btt_claim_class() local
1569 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; has_uuid_at_pos() local
1616 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; select_pmem_id() local
1670 create_namespace_pmem(struct nd_region * nd_region,struct nd_mapping * nd_mapping,struct nd_namespace_label * nd_label) create_namespace_pmem() argument
1893 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; add_namespace_resource() local
1936 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; scan_labels() local
2040 struct nd_mapping *nd_mapping; create_namespaces() local
2071 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; deactivate_labels() local
2091 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; init_active_labels() local
[all...]
H A Dregion_devs.c68 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_mappin in nd_region_activate() local
177 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; nd_region_release() local
225 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; nd_region_to_nstype() local
246 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; region_size() local
334 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; set_cookie_show() local
364 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; nd_region_available_dpa() local
384 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; nd_region_allocatable_dpa() local
709 struct nd_mapping *nd_mapping; mappingN() local
876 nd_mapping_free_labels(struct nd_mapping * nd_mapping) nd_mapping_free_labels() argument
1199 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; nvdimm_has_flush() local
[all...]
H A Dlabel.c809 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 in __pmem_label_update()
968 init_labels(struct nd_mapping * nd_mapping,int num_labels) init_labels() argument
1012 del_labels(struct nd_mapping * nd_mapping,uuid_t * uuid) del_labels() argument
1063 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; nd_pmem_namespace_label_update() local
1095 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; nd_pmem_namespace_label_update() local
[all...]
H A Dnd-core.h117 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 Ddimm_devs.c212 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping) in to_ndd() argument
214 struct nvdimm *nvdimm = nd_mapping->nvdimm; in to_ndd()
726 * @nd_mapping: container of dpa-resource-root + labels
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()
770 * @nd_mapping
779 nd_pmem_available_dpa(struct nd_region * nd_region,struct nd_mapping * nd_mapping) nd_pmem_available_dpa() argument
[all...]
H A Dnd.h387 struct nd_mapping { struct
396 * get_ndd() + put_ndd(), all other nd_mapping to ndd argument
425 struct nd_mapping mapping[] __counted_by(ndr_mappings);
511 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping);
400 nddnd_mapping global() argument
/linux/tools/testing/nvdimm/test/
H A 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()