Lines Matching refs:cxl_nvd
59 struct cxl_nvdimm_bridge *cxl_find_nvdimm_bridge(struct cxl_nvdimm *cxl_nvd) in cxl_find_nvdimm_bridge() argument
63 dev = bus_find_device(&cxl_bus_type, NULL, cxl_nvd, match_nvdimm_bridge); in cxl_find_nvdimm_bridge()
174 struct cxl_nvdimm *cxl_nvd = to_cxl_nvdimm(dev); in cxl_nvdimm_release() local
176 kfree(cxl_nvd); in cxl_nvdimm_release()
207 struct cxl_nvdimm *cxl_nvd; in cxl_nvdimm_alloc() local
210 cxl_nvd = kzalloc(sizeof(*cxl_nvd), GFP_KERNEL); in cxl_nvdimm_alloc()
211 if (!cxl_nvd) in cxl_nvdimm_alloc()
214 dev = &cxl_nvd->dev; in cxl_nvdimm_alloc()
215 cxl_nvd->cxlmd = cxlmd; in cxl_nvdimm_alloc()
222 return cxl_nvd; in cxl_nvdimm_alloc()
239 struct cxl_nvdimm *cxl_nvd; in devm_cxl_add_nvdimm() local
243 cxl_nvd = cxl_nvdimm_alloc(cxlmd); in devm_cxl_add_nvdimm()
244 if (IS_ERR(cxl_nvd)) in devm_cxl_add_nvdimm()
245 return PTR_ERR(cxl_nvd); in devm_cxl_add_nvdimm()
247 dev = &cxl_nvd->dev; in devm_cxl_add_nvdimm()