Lines Matching refs:cxlr_dax
2996 struct cxl_dax_region *cxlr_dax = to_cxl_dax_region(dev); in cxl_dax_region_release() local
2998 kfree(cxlr_dax); in cxl_dax_region_release()
3031 struct cxl_dax_region *cxlr_dax; in cxl_dax_region_alloc() local
3036 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()
3050 cxlr_dax->cxlr = cxlr; in cxl_dax_region_alloc()
3060 return cxlr_dax; in cxl_dax_region_alloc()
3151 struct cxl_dax_region *cxlr_dax = _cxlr_dax; in cxlr_dax_unregister() local
3153 device_unregister(&cxlr_dax->dev); in cxlr_dax_unregister()
3158 struct cxl_dax_region *cxlr_dax; in devm_cxl_add_dax_region() local
3162 cxlr_dax = cxl_dax_region_alloc(cxlr); in devm_cxl_add_dax_region()
3163 if (IS_ERR(cxlr_dax)) in devm_cxl_add_dax_region()
3164 return PTR_ERR(cxlr_dax); in devm_cxl_add_dax_region()
3166 dev = &cxlr_dax->dev; in devm_cxl_add_dax_region()
3179 cxlr_dax); in devm_cxl_add_dax_region()