Home
last modified time | relevance | path

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

/linux/drivers/nvdimm/
A 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()
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()
72 ndr_desc.res, np); in of_pmem_region_probe()
[all …]
A 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()
A 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()
A Dregion_devs.c1037 struct nd_region_desc *ndr_desc, in nd_region_create() argument
1074 * ndr_desc->num_mappings, in nd_region_create()
1084 ndr_desc->num_mappings), in nd_region_create()
1124 nd_region->flags = ndr_desc->flags; in nd_region_create()
1137 dev->of_node = ndr_desc->of_node; in nd_region_create()
1141 if (ndr_desc->flush) in nd_region_create()
1158 struct nd_region_desc *ndr_desc) in nvdimm_pmem_region_create() argument
1167 struct nd_region_desc *ndr_desc) in nvdimm_blk_region_create() argument
1169 if (ndr_desc->num_mappings > 1) in nvdimm_blk_region_create()
1171 ndr_desc->num_lanes = min(ndr_desc->num_lanes, ND_MAX_LANES); in nvdimm_blk_region_create()
[all …]
/linux/include/linux/
A Dlibnvdimm.h149 struct nd_region_desc ndr_desc; member
153 struct nd_region_desc *ndr_desc) in to_blk_region_desc() argument
155 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/arch/powerpc/platforms/pseries/
A Dpapr_scm.c973 struct nd_region_desc ndr_desc; in papr_scm_nvdimm_init() local
1024 memset(&ndr_desc, 0, sizeof(ndr_desc)); in papr_scm_nvdimm_init()
1027 ndr_desc.numa_node = online_nid; in papr_scm_nvdimm_init()
1028 ndr_desc.target_node = target_nid; in papr_scm_nvdimm_init()
1029 ndr_desc.res = &p->res; in papr_scm_nvdimm_init()
1030 ndr_desc.of_node = p->dn; in papr_scm_nvdimm_init()
1031 ndr_desc.provider_data = p; in papr_scm_nvdimm_init()
1032 ndr_desc.mapping = &mapping; in papr_scm_nvdimm_init()
1033 ndr_desc.num_mappings = 1; in papr_scm_nvdimm_init()
1034 ndr_desc.nd_set = &p->nd_set; in papr_scm_nvdimm_init()
[all …]
/linux/tools/testing/nvdimm/test/
A Dndtest.c528 struct nd_region_desc *ndr_desc; in ndtest_create_region() local
536 ndr_desc = &ndbr_desc.ndr_desc; in ndtest_create_region()
542 ndr_desc->mapping = mappings; in ndtest_create_region()
543 ndr_desc->res = &res; in ndtest_create_region()
544 ndr_desc->provider_data = region; in ndtest_create_region()
559 ndr_desc->nd_set = nd_set; in ndtest_create_region()
566 ndr_desc->mapping = &mappings[0]; in ndtest_create_region()
567 ndr_desc->num_mappings = 1; in ndtest_create_region()
568 ndr_desc->num_lanes = 1; in ndtest_create_region()
584 ndr_desc->num_mappings = region->num_mappings; in ndtest_create_region()
[all …]
/linux/drivers/acpi/nfit/
A Dcore.c2423 ndr_desc->nd_set = nd_set; in acpi_nfit_init_interleave_set()
2940 ndr_desc->mapping = mapping; in acpi_nfit_init_mapping()
2941 ndr_desc->num_mappings = 1; in acpi_nfit_init_mapping()
2949 ndr_desc); in acpi_nfit_init_mapping()
2998 ndr_desc = &ndbr_desc.ndr_desc; in acpi_nfit_register_region()
2999 ndr_desc->res = &res; in acpi_nfit_register_region()
3053 ndr_desc->mapping = mappings; in acpi_nfit_register_region()
3054 ndr_desc->num_mappings = count; in acpi_nfit_register_region()
3070 ndr_desc); in acpi_nfit_register_region()
3075 ndr_desc); in acpi_nfit_register_region()
[all …]
/linux/Documentation/driver-api/nvdimm/
A Dnvdimm.rst495 struct nd_region_desc *ndr_desc);
497 struct nd_region_desc *ndr_desc);

Completed in 42 milliseconds