/linux-6.6.21/drivers/nvdimm/ |
D | of_pmem.c | 55 struct nd_region_desc ndr_desc; in of_pmem_region_probe() local 62 memset(&ndr_desc, 0, sizeof(ndr_desc)); in of_pmem_region_probe() 63 ndr_desc.numa_node = dev_to_node(&pdev->dev); in of_pmem_region_probe() 64 ndr_desc.target_node = ndr_desc.numa_node; in of_pmem_region_probe() 65 ndr_desc.res = &pdev->resource[i]; in of_pmem_region_probe() 66 ndr_desc.of_node = np; in of_pmem_region_probe() 67 set_bit(ND_REGION_PAGEMAP, &ndr_desc.flags); in of_pmem_region_probe() 70 region = nvdimm_volatile_region_create(bus, &ndr_desc); in of_pmem_region_probe() 72 set_bit(ND_REGION_PERSIST_MEMCTRL, &ndr_desc.flags); in of_pmem_region_probe() 73 region = nvdimm_pmem_region_create(bus, &ndr_desc); in of_pmem_region_probe() [all …]
|
D | virtio_pmem.c | 34 struct nd_region_desc ndr_desc = {}; in virtio_pmem_probe() local 80 ndr_desc.res = &res; in virtio_pmem_probe() 82 ndr_desc.numa_node = memory_add_physaddr_to_nid(res.start); in virtio_pmem_probe() 83 ndr_desc.target_node = phys_to_target_node(res.start); in virtio_pmem_probe() 84 if (ndr_desc.target_node == NUMA_NO_NODE) { in virtio_pmem_probe() 85 ndr_desc.target_node = ndr_desc.numa_node; in virtio_pmem_probe() 87 NUMA_NO_NODE, ndr_desc.target_node); in virtio_pmem_probe() 90 ndr_desc.flush = async_pmem_flush; in virtio_pmem_probe() 91 ndr_desc.provider_data = vdev; in virtio_pmem_probe() 92 set_bit(ND_REGION_PAGEMAP, &ndr_desc.flags); in virtio_pmem_probe() [all …]
|
D | e820.c | 22 struct nd_region_desc ndr_desc; in e820_register_one() local 26 memset(&ndr_desc, 0, sizeof(ndr_desc)); in e820_register_one() 27 ndr_desc.res = res; in e820_register_one() 28 ndr_desc.numa_node = numa_map_to_online_node(nid); in e820_register_one() 29 ndr_desc.target_node = nid; in e820_register_one() 30 set_bit(ND_REGION_PAGEMAP, &ndr_desc.flags); in e820_register_one() 31 if (!nvdimm_pmem_region_create(nvdimm_bus, &ndr_desc)) in e820_register_one()
|
D | region_devs.c | 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() [all …]
|
/linux-6.6.21/drivers/cxl/ |
D | pmem.c | 314 struct nd_region_desc ndr_desc; in cxl_pmem_region_probe() local 321 memset(&ndr_desc, 0, sizeof(ndr_desc)); in cxl_pmem_region_probe() 341 ndr_desc.res = res; in cxl_pmem_region_probe() 342 ndr_desc.provider_data = cxlr_pmem; in cxl_pmem_region_probe() 344 ndr_desc.numa_node = memory_add_physaddr_to_nid(res->start); in cxl_pmem_region_probe() 345 ndr_desc.target_node = phys_to_target_node(res->start); in cxl_pmem_region_probe() 346 if (ndr_desc.target_node == NUMA_NO_NODE) { in cxl_pmem_region_probe() 347 ndr_desc.target_node = ndr_desc.numa_node; in cxl_pmem_region_probe() 349 NUMA_NO_NODE, ndr_desc.target_node); in cxl_pmem_region_probe() 356 ndr_desc.memregion = cxlr->id; in cxl_pmem_region_probe() [all …]
|
/linux-6.6.21/arch/powerpc/platforms/pseries/ |
D | papr_scm.c | 1242 struct nd_region_desc ndr_desc; in papr_scm_nvdimm_init() local 1293 memset(&ndr_desc, 0, sizeof(ndr_desc)); in papr_scm_nvdimm_init() 1296 ndr_desc.numa_node = online_nid; in papr_scm_nvdimm_init() 1297 ndr_desc.target_node = target_nid; in papr_scm_nvdimm_init() 1298 ndr_desc.res = &p->res; in papr_scm_nvdimm_init() 1299 ndr_desc.of_node = p->dn; in papr_scm_nvdimm_init() 1300 ndr_desc.provider_data = p; in papr_scm_nvdimm_init() 1301 ndr_desc.mapping = &mapping; in papr_scm_nvdimm_init() 1302 ndr_desc.num_mappings = 1; in papr_scm_nvdimm_init() 1303 ndr_desc.nd_set = &p->nd_set; in papr_scm_nvdimm_init() [all …]
|
/linux-6.6.21/drivers/acpi/nfit/ |
D | core.c | 2257 struct nd_region_desc *ndr_desc, in acpi_nfit_init_interleave_set() argument 2262 u16 nr = ndr_desc->num_mappings; in acpi_nfit_init_interleave_set() 2281 struct nd_mapping_desc *mapping = &ndr_desc->mapping[i]; in acpi_nfit_init_interleave_set() 2323 struct nd_mapping_desc *mapping = &ndr_desc->mapping[j]; in acpi_nfit_init_interleave_set() 2339 ndr_desc->nd_set = nd_set; in acpi_nfit_init_interleave_set() 2520 struct nd_region_desc *ndr_desc) in acpi_nfit_insert_resource() argument 2522 struct resource *res, *nd_res = ndr_desc->res; in acpi_nfit_insert_resource() 2555 struct nd_mapping_desc *mapping, struct nd_region_desc *ndr_desc, in acpi_nfit_init_mapping() argument 2601 struct nd_region_desc *ndr_desc, _ndr_desc; in acpi_nfit_register_region() local 2620 ndr_desc = &_ndr_desc; in acpi_nfit_register_region() [all …]
|
/linux-6.6.21/tools/testing/nvdimm/test/ |
D | ndtest.c | 409 struct nd_region_desc *ndr_desc, _ndr_desc; in ndtest_create_region() local 418 ndr_desc = &_ndr_desc; in ndtest_create_region() 424 ndr_desc->mapping = mappings; in ndtest_create_region() 425 ndr_desc->res = &res; in ndtest_create_region() 426 ndr_desc->provider_data = region; in ndtest_create_region() 427 ndr_desc->attr_groups = ndtest_region_attribute_groups; in ndtest_create_region() 441 ndr_desc->nd_set = nd_set; in ndtest_create_region() 451 ndr_desc->num_mappings = region->num_mappings; in ndtest_create_region() 452 region->region = nvdimm_pmem_region_create(p->bus, ndr_desc); in ndtest_create_region() 456 ndr_desc->res); in ndtest_create_region()
|
/linux-6.6.21/include/linux/ |
D | libnvdimm.h | 287 struct nd_region_desc *ndr_desc); 289 struct nd_region_desc *ndr_desc); 291 struct nd_region_desc *ndr_desc);
|
/linux-6.6.21/Documentation/driver-api/nvdimm/ |
D | nvdimm.rst | 403 struct nd_region_desc *ndr_desc);
|