Lines Matching refs:ndr_desc

954 		struct nd_region_desc *ndr_desc,  in nd_region_create()  argument
962 for (i = 0; i < ndr_desc->num_mappings; i++) { in nd_region_create()
963 struct nd_mapping_desc *mapping = &ndr_desc->mapping[i]; in nd_region_create()
979 kzalloc(struct_size(nd_region, mapping, ndr_desc->num_mappings), in nd_region_create()
985 if (test_bit(ND_REGION_CXL, &ndr_desc->flags)) { in nd_region_create()
986 nd_region->id = ndr_desc->memregion; in nd_region_create()
1005 for (i = 0; i < ndr_desc->num_mappings; i++) { in nd_region_create()
1006 struct nd_mapping_desc *mapping = &ndr_desc->mapping[i]; in nd_region_create()
1018 nd_region->ndr_mappings = ndr_desc->num_mappings; in nd_region_create()
1019 nd_region->provider_data = ndr_desc->provider_data; in nd_region_create()
1020 nd_region->nd_set = ndr_desc->nd_set; in nd_region_create()
1021 nd_region->num_lanes = ndr_desc->num_lanes; in nd_region_create()
1022 nd_region->flags = ndr_desc->flags; in nd_region_create()
1024 nd_region->numa_node = ndr_desc->numa_node; in nd_region_create()
1025 nd_region->target_node = ndr_desc->target_node; in nd_region_create()
1034 dev->groups = ndr_desc->attr_groups; in nd_region_create()
1035 dev->of_node = ndr_desc->of_node; in nd_region_create()
1036 nd_region->ndr_size = resource_size(ndr_desc->res); in nd_region_create()
1037 nd_region->ndr_start = ndr_desc->res->start; in nd_region_create()
1039 if (ndr_desc->flush) in nd_region_create()
1040 nd_region->flush = ndr_desc->flush; in nd_region_create()
1051 if (!test_bit(ND_REGION_CXL, &ndr_desc->flags)) in nd_region_create()
1059 struct nd_region_desc *ndr_desc) in nvdimm_pmem_region_create() argument
1061 ndr_desc->num_lanes = ND_MAX_LANES; in nvdimm_pmem_region_create()
1062 return nd_region_create(nvdimm_bus, ndr_desc, &nd_pmem_device_type, in nvdimm_pmem_region_create()
1068 struct nd_region_desc *ndr_desc) in nvdimm_volatile_region_create() argument
1070 ndr_desc->num_lanes = ND_MAX_LANES; in nvdimm_volatile_region_create()
1071 return nd_region_create(nvdimm_bus, ndr_desc, &nd_volatile_device_type, in nvdimm_volatile_region_create()