Searched refs:cxl_nvb (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/cxl/core/ |
| H A D | pmem.c | 28 struct cxl_nvdimm_bridge *cxl_nvb = to_cxl_nvdimm_bridge(dev); in cxl_nvdimm_bridge_release() local 30 ida_free(&cxl_nvdimm_bridge_ida, cxl_nvb->id); in cxl_nvdimm_bridge_release() 31 kfree(cxl_nvb); in cxl_nvdimm_bridge_release() 82 struct cxl_nvdimm_bridge *cxl_nvb; in cxl_nvdimm_bridge_alloc() local 86 cxl_nvb = kzalloc(sizeof(*cxl_nvb), GFP_KERNEL); in cxl_nvdimm_bridge_alloc() 87 if (!cxl_nvb) in cxl_nvdimm_bridge_alloc() 93 cxl_nvb->id = rc; in cxl_nvdimm_bridge_alloc() 95 dev = &cxl_nvb->dev; in cxl_nvdimm_bridge_alloc() 96 cxl_nvb->port = port; in cxl_nvdimm_bridge_alloc() 104 return cxl_nvb; in cxl_nvdimm_bridge_alloc() [all …]
|
| H A D | region.c | 3243 struct cxl_nvdimm_bridge *cxl_nvb; in cxl_pmem_region_alloc() local 3271 cxl_nvb = cxl_find_nvdimm_bridge(cxlmd->endpoint); in cxl_pmem_region_alloc() 3272 if (!cxl_nvb) in cxl_pmem_region_alloc() 3274 cxlr->cxl_nvb = cxl_nvb; in cxl_pmem_region_alloc() 3363 struct cxl_nvdimm_bridge *cxl_nvb = cxlr->cxl_nvb; in cxlr_pmem_unregister() local 3371 device_lock_assert(&cxl_nvb->dev); in cxlr_pmem_unregister() 3380 struct cxl_nvdimm_bridge *cxl_nvb = cxlr->cxl_nvb; in cxlr_release_nvdimm() local 3382 scoped_guard(device, &cxl_nvb->dev) { in cxlr_release_nvdimm() 3384 devm_release_action(&cxl_nvb->dev, cxlr_pmem_unregister, in cxlr_release_nvdimm() 3387 cxlr->cxl_nvb = NULL; in cxlr_release_nvdimm() [all …]
|
| /linux/drivers/cxl/ |
| H A D | pmem.c | 126 struct cxl_nvdimm_bridge *cxl_nvb = cxlmd->cxl_nvb; in cxl_nvdimm_probe() local 150 nvdimm = __nvdimm_create(cxl_nvb->nvdimm_bus, cxl_nvd, in cxl_nvdimm_probe() 312 if (cxl_nvd->cxlmd && cxl_nvd->cxlmd->cxl_nvb == data) in detach_nvdimm() 323 struct cxl_nvdimm_bridge *cxl_nvb = _cxl_nvb; in unregister_nvdimm_bus() local 324 struct nvdimm_bus *nvdimm_bus = cxl_nvb->nvdimm_bus; in unregister_nvdimm_bus() 326 bus_for_each_dev(&cxl_bus_type, NULL, cxl_nvb, detach_nvdimm); in unregister_nvdimm_bus() 328 cxl_nvb->nvdimm_bus = NULL; in unregister_nvdimm_bus() 334 struct cxl_nvdimm_bridge *cxl_nvb = to_cxl_nvdimm_bridge(dev); in cxl_nvdimm_bridge_probe() local 336 cxl_nvb->nd_desc = (struct nvdimm_bus_descriptor) { in cxl_nvdimm_bridge_probe() 342 cxl_nvb->nvdimm_bus = in cxl_nvdimm_bridge_probe() [all …]
|
| H A D | acpi.c | 771 struct cxl_nvdimm_bridge *cxl_nvb; in add_root_nvdimm_bridge() local 781 cxl_nvb = devm_cxl_add_nvdimm_bridge(host, root_port); in add_root_nvdimm_bridge() 782 if (IS_ERR(cxl_nvb)) { in add_root_nvdimm_bridge() 784 return PTR_ERR(cxl_nvb); in add_root_nvdimm_bridge() 787 dev_name(&cxl_nvb->dev)); in add_root_nvdimm_bridge()
|
| H A D | cxl.h | 547 struct cxl_nvdimm_bridge *cxl_nvb; member
|