Lines Matching refs:nd_mapping
212 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping)
214 struct nvdimm *nvdimm = nd_mapping->nvdimm;
726 * @nd_mapping: container of dpa-resource-root + labels
732 struct nd_mapping *nd_mapping)
734 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping);
749 if (__reserve_free_pmem(&nd_region->dev, nd_mapping->nvdimm))
764 release_free_pmem(nvdimm_bus, nd_mapping);
770 * @nd_mapping: container of dpa-resource-root + labels
779 struct nd_mapping *nd_mapping)
781 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping);
793 map_start = nd_mapping->start;
794 map_end = map_start + nd_mapping->size - 1;
811 busy += nd_mapping->size;
815 if (busy < nd_mapping->size)
816 return ALIGN_DOWN(nd_mapping->size - busy, align);