Lines Matching refs:nd_mapping
210 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping)
212 struct nvdimm *nvdimm = nd_mapping->nvdimm;
724 * @nd_mapping: container of dpa-resource-root + labels
727 struct nd_mapping *nd_mapping)
729 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping);
744 if (__reserve_free_pmem(&nd_region->dev, nd_mapping->nvdimm))
759 release_free_pmem(nvdimm_bus, nd_mapping);
765 * @nd_mapping: container of dpa-resource-root + labels
772 struct nd_mapping *nd_mapping)
774 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping);
786 map_start = nd_mapping->start;
787 map_end = map_start + nd_mapping->size - 1;
804 busy += nd_mapping->size;
808 if (busy < nd_mapping->size)
809 return ALIGN_DOWN(nd_mapping->size - busy, align);