Searched refs:cxlr_dax (Results 1 – 2 of 2) sorted by relevance
11 struct cxl_dax_region *cxlr_dax = to_cxl_dax_region(dev); in cxl_dax_region_probe() local12 int nid = phys_to_target_node(cxlr_dax->hpa_range.start); in cxl_dax_region_probe()13 struct cxl_region *cxlr = cxlr_dax->cxlr; in cxl_dax_region_probe()18 nid = memory_add_physaddr_to_nid(cxlr_dax->hpa_range.start); in cxl_dax_region_probe()20 dax_region = alloc_dax_region(dev, cxlr->id, &cxlr_dax->hpa_range, nid, in cxl_dax_region_probe()28 .size = range_len(&cxlr_dax->hpa_range), in cxl_dax_region_probe()
3513 struct cxl_dax_region *cxlr_dax = to_cxl_dax_region(dev); in cxl_dax_region_release() local3515 kfree(cxlr_dax); in cxl_dax_region_release()3548 struct cxl_dax_region *cxlr_dax; in cxl_dax_region_alloc() local3555 cxlr_dax = kzalloc_obj(*cxlr_dax); in cxl_dax_region_alloc()3556 if (!cxlr_dax) in cxl_dax_region_alloc()3559 cxlr_dax->hpa_range.start = p->res->start; in cxl_dax_region_alloc()3560 cxlr_dax->hpa_range.end = p->res->end; in cxl_dax_region_alloc()3562 dev = &cxlr_dax->dev; in cxl_dax_region_alloc()3563 cxlr_dax->cxlr = cxlr; in cxl_dax_region_alloc()3571 return cxlr_dax; in cxl_dax_region_alloc()[all …]