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()
2996 struct cxl_dax_region *cxlr_dax = to_cxl_dax_region(dev); in cxl_dax_region_release() local2998 kfree(cxlr_dax); in cxl_dax_region_release()3031 struct cxl_dax_region *cxlr_dax; in cxl_dax_region_alloc() local3036 cxlr_dax = ERR_PTR(-ENXIO); in cxl_dax_region_alloc()3040 cxlr_dax = kzalloc(sizeof(*cxlr_dax), GFP_KERNEL); in cxl_dax_region_alloc()3041 if (!cxlr_dax) { in cxl_dax_region_alloc()3042 cxlr_dax = ERR_PTR(-ENOMEM); in cxl_dax_region_alloc()3046 cxlr_dax->hpa_range.start = p->res->start; in cxl_dax_region_alloc()3047 cxlr_dax->hpa_range.end = p->res->end; in cxl_dax_region_alloc()3049 dev = &cxlr_dax->dev; in cxl_dax_region_alloc()[all …]