Searched refs:nd_mapping (Results 1 – 6 of 6) sorted by relevance
/drivers/nvdimm/ |
D | namespace_devs.c | 283 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; in nd_namespace_blk_size() local 284 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_namespace_blk_size() 301 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; in __nd_namespace_blk_validate() local 302 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in __nd_namespace_blk_validate() 433 struct nd_mapping *nd_mapping, struct nd_label_id *label_id, in scan_free() argument 437 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in scan_free() 496 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in shrink_dpa_allocation() local 499 rc = scan_free(nd_region, nd_mapping, label_id, n); in shrink_dpa_allocation() 508 struct nd_region *nd_region, struct nd_mapping *nd_mapping, in init_dpa_allocation() argument 512 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in init_dpa_allocation() [all …]
|
D | label.c | 494 struct nd_mapping *nd_mapping, struct nd_namespace_pmem *nspm, in __pmem_label_update() argument 498 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in __pmem_label_update() 550 mutex_lock(&nd_mapping->lock); in __pmem_label_update() 551 list_for_each_entry(label_ent, &nd_mapping->labels, list) { in __pmem_label_update() 558 list_move_tail(&victim->list, &nd_mapping->labels); in __pmem_label_update() 572 list_for_each_entry(label_ent, &nd_mapping->labels, list) in __pmem_label_update() 584 mutex_unlock(&nd_mapping->lock); in __pmem_label_update() 623 struct nd_mapping *nd_mapping, struct nd_namespace_blk *nsblk, in __blk_label_update() argument 627 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in __blk_label_update() 757 mutex_lock(&nd_mapping->lock); in __blk_label_update() [all …]
|
D | region_devs.c | 80 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in nd_region_activate() local 81 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_activate() 102 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in nd_region_activate() local 103 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_activate() 134 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in nd_region_release() local 135 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_release() 222 struct nd_mapping *nd_mapping = &nd_region->mapping[i]; in nd_region_to_nstype() local 223 struct nvdimm *nvdimm = nd_mapping->nvdimm; in nd_region_to_nstype() 249 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; in size_show() local 251 size = nd_mapping->size; in size_show() [all …]
|
D | dimm_devs.c | 217 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; in nd_blk_region_to_dimm() local 219 return nd_mapping->nvdimm; in nd_blk_region_to_dimm() 223 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping) in to_ndd() argument 225 struct nvdimm *nvdimm = nd_mapping->nvdimm; in to_ndd() 393 struct nd_mapping *nd_mapping; in alias_dpa_busy() local 404 nd_mapping = &nd_region->mapping[i]; in alias_dpa_busy() 405 if (nd_mapping->nvdimm == info->nd_mapping->nvdimm) in alias_dpa_busy() 412 ndd = to_ndd(nd_mapping); in alias_dpa_busy() 413 map_end = nd_mapping->start + nd_mapping->size - 1; in alias_dpa_busy() 414 blk_start = nd_mapping->start; in alias_dpa_busy() [all …]
|
D | nd-core.h | 59 struct nd_mapping *nd_mapping; member 92 struct nd_mapping; 93 void nd_mapping_free_labels(struct nd_mapping *nd_mapping); 95 struct nd_mapping *nd_mapping, resource_size_t *overlap);
|
D | nd.h | 126 struct nd_mapping { struct 159 struct nd_mapping mapping[0]; argument 233 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping);
|