Lines Matching refs:ndr_desc
1001 struct nd_region_desc *ndr_desc, in nd_region_create() argument
1009 for (i = 0; i < ndr_desc->num_mappings; i++) { in nd_region_create()
1010 struct nd_mapping_desc *mapping = &ndr_desc->mapping[i]; in nd_region_create()
1026 kzalloc(struct_size(nd_region, mapping, ndr_desc->num_mappings), in nd_region_create()
1032 if (test_bit(ND_REGION_CXL, &ndr_desc->flags)) { in nd_region_create()
1033 nd_region->id = ndr_desc->memregion; in nd_region_create()
1052 for (i = 0; i < ndr_desc->num_mappings; i++) { in nd_region_create()
1053 struct nd_mapping_desc *mapping = &ndr_desc->mapping[i]; in nd_region_create()
1065 nd_region->ndr_mappings = ndr_desc->num_mappings; in nd_region_create()
1066 nd_region->provider_data = ndr_desc->provider_data; in nd_region_create()
1067 nd_region->nd_set = ndr_desc->nd_set; in nd_region_create()
1068 nd_region->num_lanes = ndr_desc->num_lanes; in nd_region_create()
1069 nd_region->flags = ndr_desc->flags; in nd_region_create()
1071 nd_region->numa_node = ndr_desc->numa_node; in nd_region_create()
1072 nd_region->target_node = ndr_desc->target_node; in nd_region_create()
1081 dev->groups = ndr_desc->attr_groups; in nd_region_create()
1082 dev->of_node = ndr_desc->of_node; in nd_region_create()
1083 nd_region->ndr_size = resource_size(ndr_desc->res); in nd_region_create()
1084 nd_region->ndr_start = ndr_desc->res->start; in nd_region_create()
1086 if (ndr_desc->flush) in nd_region_create()
1087 nd_region->flush = ndr_desc->flush; in nd_region_create()
1098 if (!test_bit(ND_REGION_CXL, &ndr_desc->flags)) in nd_region_create()
1106 struct nd_region_desc *ndr_desc) in nvdimm_pmem_region_create() argument
1108 ndr_desc->num_lanes = ND_MAX_LANES; in nvdimm_pmem_region_create()
1109 return nd_region_create(nvdimm_bus, ndr_desc, &nd_pmem_device_type, in nvdimm_pmem_region_create()
1115 struct nd_region_desc *ndr_desc) in nvdimm_volatile_region_create() argument
1117 ndr_desc->num_lanes = ND_MAX_LANES; in nvdimm_volatile_region_create()
1118 return nd_region_create(nvdimm_bus, ndr_desc, &nd_volatile_device_type, in nvdimm_volatile_region_create()