Lines Matching refs:nd_mapping

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()
230 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping) in to_ndd() argument
232 struct nvdimm *nvdimm = nd_mapping->nvdimm; in to_ndd()
703 struct nd_mapping *nd_mapping; in alias_dpa_busy() local
715 nd_mapping = &nd_region->mapping[i]; in alias_dpa_busy()
716 if (nd_mapping->nvdimm == info->nd_mapping->nvdimm) in alias_dpa_busy()
723 ndd = to_ndd(nd_mapping); in alias_dpa_busy()
724 map_end = nd_mapping->start + nd_mapping->size - 1; in alias_dpa_busy()
725 blk_start = nd_mapping->start; in alias_dpa_busy()
733 if (info->res->start >= nd_mapping->start in alias_dpa_busy()
775 info->available -= blk_start - nd_mapping->start; in alias_dpa_busy()
791 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; in nd_blk_available_dpa() local
792 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_blk_available_dpa()
794 .nd_mapping = nd_mapping, in nd_blk_available_dpa()
795 .available = nd_mapping->size, in nd_blk_available_dpa()
833 struct nd_mapping *nd_mapping) in nd_pmem_max_contiguous_dpa() argument
835 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_pmem_max_contiguous_dpa()
850 if (__reserve_free_pmem(&nd_region->dev, nd_mapping->nvdimm)) in nd_pmem_max_contiguous_dpa()
865 release_free_pmem(nvdimm_bus, nd_mapping); in nd_pmem_max_contiguous_dpa()
885 struct nd_mapping *nd_mapping, resource_size_t *overlap) in nd_pmem_available_dpa() argument
888 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_pmem_available_dpa()
900 map_start = nd_mapping->start; in nd_pmem_available_dpa()
901 map_end = map_start + nd_mapping->size - 1; in nd_pmem_available_dpa()
929 busy += nd_mapping->size; in nd_pmem_available_dpa()