Home
last modified time | relevance | path

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

/kernel/linux/linux-5.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.c1033 struct nd_region_desc *ndr_desc, in nd_region_create() argument
1042 for (i = 0; i < ndr_desc->num_mappings; i++) { in nd_region_create()
1043 struct nd_mapping_desc *mapping = &ndr_desc->mapping[i]; in nd_region_create()
1068 ndbr_desc = to_blk_region_desc(ndr_desc); in nd_region_create()
1070 * ndr_desc->num_mappings, in nd_region_create()
1080 ndr_desc->num_mappings), in nd_region_create()
1103 for (i = 0; i < ndr_desc->num_mappings; i++) { in nd_region_create()
1104 struct nd_mapping_desc *mapping = &ndr_desc->mapping[i]; in nd_region_create()
1116 nd_region->ndr_mappings = ndr_desc->num_mappings; in nd_region_create()
1117 nd_region->provider_data = ndr_desc->provider_data; in nd_region_create()
[all …]
/kernel/linux/linux-5.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);
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
Dpapr_scm.c907 struct nd_region_desc ndr_desc; in papr_scm_nvdimm_init() local
949 memset(&ndr_desc, 0, sizeof(ndr_desc)); in papr_scm_nvdimm_init()
952 ndr_desc.numa_node = online_nid; in papr_scm_nvdimm_init()
953 ndr_desc.target_node = target_nid; in papr_scm_nvdimm_init()
954 ndr_desc.res = &p->res; in papr_scm_nvdimm_init()
955 ndr_desc.of_node = p->dn; in papr_scm_nvdimm_init()
956 ndr_desc.provider_data = p; in papr_scm_nvdimm_init()
957 ndr_desc.mapping = &mapping; in papr_scm_nvdimm_init()
958 ndr_desc.num_mappings = 1; in papr_scm_nvdimm_init()
959 ndr_desc.nd_set = &p->nd_set; in papr_scm_nvdimm_init()
[all …]
/kernel/linux/linux-5.10/drivers/acpi/nfit/
Dcore.c2349 struct nd_region_desc *ndr_desc, in acpi_nfit_init_interleave_set() argument
2354 u16 nr = ndr_desc->num_mappings; in acpi_nfit_init_interleave_set()
2373 struct nd_mapping_desc *mapping = &ndr_desc->mapping[i]; in acpi_nfit_init_interleave_set()
2418 struct nd_mapping_desc *mapping = &ndr_desc->mapping[j]; in acpi_nfit_init_interleave_set()
2434 ndr_desc->nd_set = nd_set; in acpi_nfit_init_interleave_set()
2881 struct nd_region_desc *ndr_desc) in acpi_nfit_insert_resource() argument
2883 struct resource *res, *nd_res = ndr_desc->res; in acpi_nfit_insert_resource()
2916 struct nd_mapping_desc *mapping, struct nd_region_desc *ndr_desc, in acpi_nfit_init_mapping() argument
2950 ndr_desc->num_lanes = nfit_mem->bdw->windows; in acpi_nfit_init_mapping()
2951 ndr_desc->mapping = mapping; in acpi_nfit_init_mapping()
[all …]
/kernel/linux/linux-5.10/Documentation/driver-api/nvdimm/
Dnvdimm.rst495 struct nd_region_desc *ndr_desc);
497 struct nd_region_desc *ndr_desc);