Home
last modified time | relevance | path

Searched refs:ndr_desc (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/drivers/nvdimm/
Dof_pmem.c49 struct nd_region_desc ndr_desc; in of_pmem_region_probe() local
56 memset(&ndr_desc, 0, sizeof(ndr_desc)); in of_pmem_region_probe()
57 ndr_desc.numa_node = dev_to_node(&pdev->dev); in of_pmem_region_probe()
58 ndr_desc.target_node = ndr_desc.numa_node; in of_pmem_region_probe()
59 ndr_desc.res = &pdev->resource[i]; in of_pmem_region_probe()
60 ndr_desc.of_node = np; in of_pmem_region_probe()
61 set_bit(ND_REGION_PAGEMAP, &ndr_desc.flags); in of_pmem_region_probe()
64 region = nvdimm_volatile_region_create(bus, &ndr_desc); in of_pmem_region_probe()
66 set_bit(ND_REGION_PERSIST_MEMCTRL, &ndr_desc.flags); in of_pmem_region_probe()
67 region = nvdimm_pmem_region_create(bus, &ndr_desc); in of_pmem_region_probe()
[all …]
De820.c22 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()
Dvirtio_pmem.c34 struct nd_region_desc ndr_desc = {}; in virtio_pmem_probe() local
81 ndr_desc.res = &res; in virtio_pmem_probe()
82 ndr_desc.numa_node = nid; in virtio_pmem_probe()
83 ndr_desc.flush = async_pmem_flush; in virtio_pmem_probe()
84 ndr_desc.provider_data = vdev; in virtio_pmem_probe()
85 set_bit(ND_REGION_PAGEMAP, &ndr_desc.flags); in virtio_pmem_probe()
86 set_bit(ND_REGION_ASYNC, &ndr_desc.flags); in virtio_pmem_probe()
93 nd_region = nvdimm_pmem_region_create(vpmem->nvdimm_bus, &ndr_desc); in virtio_pmem_probe()
Dregion_devs.c954 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()
[all …]
/linux-6.1.9/drivers/cxl/
Dpmem.c435 struct nd_region_desc ndr_desc; in cxl_pmem_region_probe() local
456 memset(&ndr_desc, 0, sizeof(ndr_desc)); in cxl_pmem_region_probe()
478 ndr_desc.res = res; in cxl_pmem_region_probe()
479 ndr_desc.provider_data = cxlr_pmem; in cxl_pmem_region_probe()
481 ndr_desc.numa_node = memory_add_physaddr_to_nid(res->start); in cxl_pmem_region_probe()
482 ndr_desc.target_node = phys_to_target_node(res->start); in cxl_pmem_region_probe()
483 if (ndr_desc.target_node == NUMA_NO_NODE) { in cxl_pmem_region_probe()
484 ndr_desc.target_node = ndr_desc.numa_node; in cxl_pmem_region_probe()
486 NUMA_NO_NODE, ndr_desc.target_node); in cxl_pmem_region_probe()
495 ndr_desc.memregion = cxlr->id; in cxl_pmem_region_probe()
[all …]
/linux-6.1.9/arch/powerpc/platforms/pseries/
Dpapr_scm.c1242 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.1.9/drivers/acpi/nfit/
Dcore.c2257 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.1.9/tools/testing/nvdimm/test/
Dndtest.c409 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.1.9/include/linux/
Dlibnvdimm.h277 struct nd_region_desc *ndr_desc);
279 struct nd_region_desc *ndr_desc);
281 struct nd_region_desc *ndr_desc);
/linux-6.1.9/Documentation/driver-api/nvdimm/
Dnvdimm.rst403 struct nd_region_desc *ndr_desc);