Lines Matching refs:nd_mapping
227 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; in nd_blk_region_to_dimm() local
229 return nd_mapping->nvdimm; in nd_blk_region_to_dimm()
240 struct nvdimm_drvdata *to_ndd(struct nd_mapping *nd_mapping) in to_ndd() argument
242 struct nvdimm *nvdimm = nd_mapping->nvdimm; in to_ndd()
563 struct nd_mapping *nd_mapping; in alias_dpa_busy() local
574 nd_mapping = &nd_region->mapping[i]; in alias_dpa_busy()
575 if (nd_mapping->nvdimm == info->nd_mapping->nvdimm) in alias_dpa_busy()
582 ndd = to_ndd(nd_mapping); in alias_dpa_busy()
583 map_end = nd_mapping->start + nd_mapping->size - 1; in alias_dpa_busy()
584 blk_start = nd_mapping->start; in alias_dpa_busy()
592 if (info->res->start >= nd_mapping->start in alias_dpa_busy()
626 info->available -= blk_start - nd_mapping->start; in alias_dpa_busy()
642 struct nd_mapping *nd_mapping = &nd_region->mapping[0]; in nd_blk_available_dpa() local
643 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_blk_available_dpa()
645 .nd_mapping = nd_mapping, in nd_blk_available_dpa()
646 .available = nd_mapping->size, in nd_blk_available_dpa()
673 struct nd_mapping *nd_mapping) in nd_pmem_max_contiguous_dpa() argument
675 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_pmem_max_contiguous_dpa()
685 if (__reserve_free_pmem(&nd_region->dev, nd_mapping->nvdimm)) in nd_pmem_max_contiguous_dpa()
693 release_free_pmem(nvdimm_bus, nd_mapping); in nd_pmem_max_contiguous_dpa()
713 struct nd_mapping *nd_mapping, resource_size_t *overlap) in nd_pmem_available_dpa() argument
716 struct nvdimm_drvdata *ndd = to_ndd(nd_mapping); in nd_pmem_available_dpa()
723 map_start = nd_mapping->start; in nd_pmem_available_dpa()
724 map_end = map_start + nd_mapping->size - 1; in nd_pmem_available_dpa()
748 busy += nd_mapping->size; in nd_pmem_available_dpa()