Lines Matching refs:ndr_desc
34 struct nd_region_desc ndr_desc = {}; in virtio_pmem_probe() local
80 ndr_desc.res = &res; in virtio_pmem_probe()
82 ndr_desc.numa_node = memory_add_physaddr_to_nid(res.start); in virtio_pmem_probe()
83 ndr_desc.target_node = phys_to_target_node(res.start); in virtio_pmem_probe()
84 if (ndr_desc.target_node == NUMA_NO_NODE) { in virtio_pmem_probe()
85 ndr_desc.target_node = ndr_desc.numa_node; in virtio_pmem_probe()
87 NUMA_NO_NODE, ndr_desc.target_node); in virtio_pmem_probe()
90 ndr_desc.flush = async_pmem_flush; in virtio_pmem_probe()
91 ndr_desc.provider_data = vdev; in virtio_pmem_probe()
92 set_bit(ND_REGION_PAGEMAP, &ndr_desc.flags); in virtio_pmem_probe()
93 set_bit(ND_REGION_ASYNC, &ndr_desc.flags); in virtio_pmem_probe()
100 nd_region = nvdimm_pmem_region_create(vpmem->nvdimm_bus, &ndr_desc); in virtio_pmem_probe()