Home
last modified time | relevance | path

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

/Linux-v5.10/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 set_bit(ND_REGION_PAGEMAP, &ndr_desc.flags); in virtio_pmem_probe()
85 set_bit(ND_REGION_ASYNC, &ndr_desc.flags); in virtio_pmem_probe()
86 nd_region = nvdimm_pmem_region_create(vpmem->nvdimm_bus, &ndr_desc); in virtio_pmem_probe()
Dregion_devs.c1030 struct nd_region_desc *ndr_desc, in nd_region_create() argument
1039 for (i = 0; i < ndr_desc->num_mappings; i++) { in nd_region_create()
1040 struct nd_mapping_desc *mapping = &ndr_desc->mapping[i]; in nd_region_create()
1065 ndbr_desc = to_blk_region_desc(ndr_desc); in nd_region_create()
1067 * ndr_desc->num_mappings, in nd_region_create()
1077 ndr_desc->num_mappings), in nd_region_create()
1100 for (i = 0; i < ndr_desc->num_mappings; i++) { in nd_region_create()
1101 struct nd_mapping_desc *mapping = &ndr_desc->mapping[i]; in nd_region_create()
1113 nd_region->ndr_mappings = ndr_desc->num_mappings; in nd_region_create()
1114 nd_region->provider_data = ndr_desc->provider_data; in nd_region_create()
[all …]
/Linux-v5.10/include/linux/
Dlibnvdimm.h150 struct nd_region_desc ndr_desc; member
154 struct nd_region_desc *ndr_desc) in to_blk_region_desc() argument
156 return container_of(ndr_desc, struct nd_blk_region_desc, ndr_desc); in to_blk_region_desc()
292 struct nd_region_desc *ndr_desc);
294 struct nd_region_desc *ndr_desc);
296 struct nd_region_desc *ndr_desc);
/Linux-v5.10/arch/powerpc/platforms/pseries/
Dpapr_scm.c891 struct nd_region_desc ndr_desc; in papr_scm_nvdimm_init() local
934 memset(&ndr_desc, 0, sizeof(ndr_desc)); in papr_scm_nvdimm_init()
937 ndr_desc.numa_node = online_nid; in papr_scm_nvdimm_init()
938 ndr_desc.target_node = target_nid; in papr_scm_nvdimm_init()
939 ndr_desc.res = &p->res; in papr_scm_nvdimm_init()
940 ndr_desc.of_node = p->dn; in papr_scm_nvdimm_init()
941 ndr_desc.provider_data = p; in papr_scm_nvdimm_init()
942 ndr_desc.mapping = &mapping; in papr_scm_nvdimm_init()
943 ndr_desc.num_mappings = 1; in papr_scm_nvdimm_init()
944 ndr_desc.nd_set = &p->nd_set; in papr_scm_nvdimm_init()
[all …]
/Linux-v5.10/drivers/acpi/nfit/
Dcore.c2344 struct nd_region_desc *ndr_desc, in acpi_nfit_init_interleave_set() argument
2349 u16 nr = ndr_desc->num_mappings; in acpi_nfit_init_interleave_set()
2368 struct nd_mapping_desc *mapping = &ndr_desc->mapping[i]; in acpi_nfit_init_interleave_set()
2413 struct nd_mapping_desc *mapping = &ndr_desc->mapping[j]; in acpi_nfit_init_interleave_set()
2429 ndr_desc->nd_set = nd_set; in acpi_nfit_init_interleave_set()
2876 struct nd_region_desc *ndr_desc) in acpi_nfit_insert_resource() argument
2878 struct resource *res, *nd_res = ndr_desc->res; in acpi_nfit_insert_resource()
2911 struct nd_mapping_desc *mapping, struct nd_region_desc *ndr_desc, in acpi_nfit_init_mapping() argument
2945 ndr_desc->num_lanes = nfit_mem->bdw->windows; in acpi_nfit_init_mapping()
2946 ndr_desc->mapping = mapping; in acpi_nfit_init_mapping()
[all …]
/Linux-v5.10/Documentation/driver-api/nvdimm/
Dnvdimm.rst495 struct nd_region_desc *ndr_desc);
497 struct nd_region_desc *ndr_desc);