Lines Matching refs:ndr_desc
435 struct nd_region_desc ndr_desc; in cxl_pmem_region_probe() local
456 memset(&ndr_desc, 0, sizeof(ndr_desc)); in cxl_pmem_region_probe()
478 ndr_desc.res = res; in cxl_pmem_region_probe()
479 ndr_desc.provider_data = cxlr_pmem; in cxl_pmem_region_probe()
481 ndr_desc.numa_node = memory_add_physaddr_to_nid(res->start); in cxl_pmem_region_probe()
482 ndr_desc.target_node = phys_to_target_node(res->start); in cxl_pmem_region_probe()
483 if (ndr_desc.target_node == NUMA_NO_NODE) { in cxl_pmem_region_probe()
484 ndr_desc.target_node = ndr_desc.numa_node; in cxl_pmem_region_probe()
486 NUMA_NO_NODE, ndr_desc.target_node); in cxl_pmem_region_probe()
495 ndr_desc.memregion = cxlr->id; in cxl_pmem_region_probe()
496 set_bit(ND_REGION_CXL, &ndr_desc.flags); in cxl_pmem_region_probe()
497 set_bit(ND_REGION_PERSIST_MEMCTRL, &ndr_desc.flags); in cxl_pmem_region_probe()
553 ndr_desc.num_mappings = cxlr_pmem->nr_mappings; in cxl_pmem_region_probe()
554 ndr_desc.mapping = mappings; in cxl_pmem_region_probe()
562 ndr_desc.nd_set = nd_set; in cxl_pmem_region_probe()
565 nvdimm_pmem_region_create(cxl_nvb->nvdimm_bus, &ndr_desc); in cxl_pmem_region_probe()