Searched refs:ndr_desc (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.4/drivers/nvdimm/ |
D | of_pmem.c | 61 struct nd_region_desc ndr_desc; in of_pmem_region_probe() local 68 memset(&ndr_desc, 0, sizeof(ndr_desc)); in of_pmem_region_probe() 69 ndr_desc.attr_groups = region_attr_groups; in of_pmem_region_probe() 70 ndr_desc.numa_node = dev_to_node(&pdev->dev); in of_pmem_region_probe() 71 ndr_desc.target_node = ndr_desc.numa_node; in of_pmem_region_probe() 72 ndr_desc.res = &pdev->resource[i]; in of_pmem_region_probe() 73 ndr_desc.of_node = np; in of_pmem_region_probe() 74 set_bit(ND_REGION_PAGEMAP, &ndr_desc.flags); in of_pmem_region_probe() 77 region = nvdimm_volatile_region_create(bus, &ndr_desc); in of_pmem_region_probe() 79 region = nvdimm_pmem_region_create(bus, &ndr_desc); in of_pmem_region_probe() [all …]
|
D | e820.c | 44 struct nd_region_desc ndr_desc; in e820_register_one() local 47 memset(&ndr_desc, 0, sizeof(ndr_desc)); in e820_register_one() 48 ndr_desc.res = res; in e820_register_one() 49 ndr_desc.attr_groups = e820_pmem_region_attribute_groups; in e820_register_one() 50 ndr_desc.numa_node = e820_range_to_nid(res->start); in e820_register_one() 51 ndr_desc.target_node = ndr_desc.numa_node; in e820_register_one() 52 set_bit(ND_REGION_PAGEMAP, &ndr_desc.flags); in e820_register_one() 53 if (!nvdimm_pmem_region_create(nvdimm_bus, &ndr_desc)) in e820_register_one()
|
D | virtio_pmem.c | 34 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()
|
D | region_devs.c | 934 struct nd_region_desc *ndr_desc, struct device_type *dev_type, in nd_region_create() argument 943 for (i = 0; i < ndr_desc->num_mappings; i++) { in nd_region_create() 944 struct nd_mapping_desc *mapping = &ndr_desc->mapping[i]; in nd_region_create() 969 ndbr_desc = to_blk_region_desc(ndr_desc); in nd_region_create() 971 * ndr_desc->num_mappings, in nd_region_create() 981 ndr_desc->num_mappings), in nd_region_create() 1004 for (i = 0; i < ndr_desc->num_mappings; i++) { in nd_region_create() 1005 struct nd_mapping_desc *mapping = &ndr_desc->mapping[i]; in nd_region_create() 1017 nd_region->ndr_mappings = ndr_desc->num_mappings; in nd_region_create() 1018 nd_region->provider_data = ndr_desc->provider_data; in nd_region_create() [all …]
|
/Linux-v5.4/arch/powerpc/platforms/pseries/ |
D | papr_scm.c | 329 struct nd_region_desc ndr_desc; in papr_scm_nvdimm_init() local 368 memset(&ndr_desc, 0, sizeof(ndr_desc)); in papr_scm_nvdimm_init() 369 ndr_desc.attr_groups = region_attr_groups; in papr_scm_nvdimm_init() 372 ndr_desc.numa_node = online_nid; in papr_scm_nvdimm_init() 373 ndr_desc.target_node = target_nid; in papr_scm_nvdimm_init() 374 ndr_desc.res = &p->res; in papr_scm_nvdimm_init() 375 ndr_desc.of_node = p->dn; in papr_scm_nvdimm_init() 376 ndr_desc.provider_data = p; in papr_scm_nvdimm_init() 377 ndr_desc.mapping = &mapping; in papr_scm_nvdimm_init() 378 ndr_desc.num_mappings = 1; in papr_scm_nvdimm_init() [all …]
|
/Linux-v5.4/include/linux/ |
D | libnvdimm.h | 153 struct nd_region_desc ndr_desc; member 157 struct nd_region_desc *ndr_desc) in to_blk_region_desc() argument 159 return container_of(ndr_desc, struct nd_blk_region_desc, ndr_desc); in to_blk_region_desc() 251 struct nd_region_desc *ndr_desc); 253 struct nd_region_desc *ndr_desc); 255 struct nd_region_desc *ndr_desc);
|
/Linux-v5.4/drivers/acpi/nfit/ |
D | core.c | 2287 struct nd_region_desc *ndr_desc, in acpi_nfit_init_interleave_set() argument 2292 u16 nr = ndr_desc->num_mappings; in acpi_nfit_init_interleave_set() 2311 struct nd_mapping_desc *mapping = &ndr_desc->mapping[i]; in acpi_nfit_init_interleave_set() 2356 struct nd_mapping_desc *mapping = &ndr_desc->mapping[j]; in acpi_nfit_init_interleave_set() 2372 ndr_desc->nd_set = nd_set; in acpi_nfit_init_interleave_set() 2819 struct nd_region_desc *ndr_desc) in acpi_nfit_insert_resource() argument 2821 struct resource *res, *nd_res = ndr_desc->res; in acpi_nfit_insert_resource() 2854 struct nd_mapping_desc *mapping, struct nd_region_desc *ndr_desc, in acpi_nfit_init_mapping() argument 2888 ndr_desc->num_lanes = nfit_mem->bdw->windows; in acpi_nfit_init_mapping() 2889 ndr_desc->mapping = mapping; in acpi_nfit_init_mapping() [all …]
|
/Linux-v5.4/Documentation/driver-api/nvdimm/ |
D | nvdimm.rst | 495 struct nd_region_desc *ndr_desc); 497 struct nd_region_desc *ndr_desc);
|