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()
2711 struct cxl_dax_region *cxlr_dax = to_cxl_dax_region(dev); in cxl_dax_region_release() local2713 kfree(cxlr_dax); in cxl_dax_region_release()2746 struct cxl_dax_region *cxlr_dax; in cxl_dax_region_alloc() local2751 cxlr_dax = ERR_PTR(-ENXIO); in cxl_dax_region_alloc()2755 cxlr_dax = kzalloc(sizeof(*cxlr_dax), GFP_KERNEL); in cxl_dax_region_alloc()2756 if (!cxlr_dax) { in cxl_dax_region_alloc()2757 cxlr_dax = ERR_PTR(-ENOMEM); in cxl_dax_region_alloc()2761 cxlr_dax->hpa_range.start = p->res->start; in cxl_dax_region_alloc()2762 cxlr_dax->hpa_range.end = p->res->end; in cxl_dax_region_alloc()2764 dev = &cxlr_dax->dev; in cxl_dax_region_alloc()[all …]