Lines Matching refs:ndr_desc
314 struct nd_region_desc ndr_desc; in cxl_pmem_region_probe() local
321 memset(&ndr_desc, 0, sizeof(ndr_desc)); in cxl_pmem_region_probe()
341 ndr_desc.res = res; in cxl_pmem_region_probe()
342 ndr_desc.provider_data = cxlr_pmem; in cxl_pmem_region_probe()
344 ndr_desc.numa_node = memory_add_physaddr_to_nid(res->start); in cxl_pmem_region_probe()
345 ndr_desc.target_node = phys_to_target_node(res->start); in cxl_pmem_region_probe()
346 if (ndr_desc.target_node == NUMA_NO_NODE) { in cxl_pmem_region_probe()
347 ndr_desc.target_node = ndr_desc.numa_node; in cxl_pmem_region_probe()
349 NUMA_NO_NODE, ndr_desc.target_node); in cxl_pmem_region_probe()
356 ndr_desc.memregion = cxlr->id; in cxl_pmem_region_probe()
357 set_bit(ND_REGION_CXL, &ndr_desc.flags); in cxl_pmem_region_probe()
358 set_bit(ND_REGION_PERSIST_MEMCTRL, &ndr_desc.flags); in cxl_pmem_region_probe()
388 ndr_desc.num_mappings = cxlr_pmem->nr_mappings; in cxl_pmem_region_probe()
389 ndr_desc.mapping = mappings; in cxl_pmem_region_probe()
397 ndr_desc.nd_set = nd_set; in cxl_pmem_region_probe()
400 nvdimm_pmem_region_create(cxl_nvb->nvdimm_bus, &ndr_desc); in cxl_pmem_region_probe()