Home
last modified time | relevance | path

Searched refs:cxl_nvb (Results 1 – 6 of 6) sorted by relevance

/Linux-v6.6/drivers/cxl/core/
Dpmem.c28 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()
87 struct cxl_nvdimm_bridge *cxl_nvb; in cxl_nvdimm_bridge_alloc() local
91 cxl_nvb = kzalloc(sizeof(*cxl_nvb), GFP_KERNEL); in cxl_nvdimm_bridge_alloc()
92 if (!cxl_nvb) in cxl_nvdimm_bridge_alloc()
98 cxl_nvb->id = rc; in cxl_nvdimm_bridge_alloc()
100 dev = &cxl_nvb->dev; in cxl_nvdimm_bridge_alloc()
101 cxl_nvb->port = port; in cxl_nvdimm_bridge_alloc()
109 return cxl_nvb; in cxl_nvdimm_bridge_alloc()
[all …]
Dregion.c2448 struct cxl_nvdimm_bridge *cxl_nvb; in cxl_pmem_region_alloc() local
2481 cxl_nvb = cxl_find_nvdimm_bridge(cxlmd); in cxl_pmem_region_alloc()
2482 if (!cxl_nvb) { in cxl_pmem_region_alloc()
2486 cxlr->cxl_nvb = cxl_nvb; in cxl_pmem_region_alloc()
2583 struct cxl_nvdimm_bridge *cxl_nvb = cxlr->cxl_nvb; in cxlr_pmem_unregister() local
2591 device_lock_assert(&cxl_nvb->dev); in cxlr_pmem_unregister()
2600 struct cxl_nvdimm_bridge *cxl_nvb = cxlr->cxl_nvb; in cxlr_release_nvdimm() local
2602 device_lock(&cxl_nvb->dev); in cxlr_release_nvdimm()
2604 devm_release_action(&cxl_nvb->dev, cxlr_pmem_unregister, in cxlr_release_nvdimm()
2606 device_unlock(&cxl_nvb->dev); in cxlr_release_nvdimm()
[all …]
/Linux-v6.6/drivers/cxl/
Dpmem.c67 struct cxl_nvdimm_bridge *cxl_nvb = cxlmd->cxl_nvb; in cxl_nvdimm_probe() local
83 nvdimm = __nvdimm_create(cxl_nvb->nvdimm_bus, cxl_nvd, in cxl_nvdimm_probe()
243 if (cxl_nvd->cxlmd && cxl_nvd->cxlmd->cxl_nvb == data) in detach_nvdimm()
254 struct cxl_nvdimm_bridge *cxl_nvb = _cxl_nvb; in unregister_nvdimm_bus() local
255 struct nvdimm_bus *nvdimm_bus = cxl_nvb->nvdimm_bus; in unregister_nvdimm_bus()
257 bus_for_each_dev(&cxl_bus_type, NULL, cxl_nvb, detach_nvdimm); in unregister_nvdimm_bus()
259 cxl_nvb->nvdimm_bus = NULL; in unregister_nvdimm_bus()
265 struct cxl_nvdimm_bridge *cxl_nvb = to_cxl_nvdimm_bridge(dev); in cxl_nvdimm_bridge_probe() local
267 cxl_nvb->nd_desc = (struct nvdimm_bus_descriptor) { in cxl_nvdimm_bridge_probe()
273 cxl_nvb->nvdimm_bus = in cxl_nvdimm_bridge_probe()
[all …]
Dacpi.c508 struct cxl_nvdimm_bridge *cxl_nvb; in add_root_nvdimm_bridge() local
518 cxl_nvb = devm_cxl_add_nvdimm_bridge(host, root_port); in add_root_nvdimm_bridge()
519 if (IS_ERR(cxl_nvb)) { in add_root_nvdimm_bridge()
521 return PTR_ERR(cxl_nvb); in add_root_nvdimm_bridge()
524 dev_name(&cxl_nvb->dev)); in add_root_nvdimm_bridge()
Dcxl.h517 struct cxl_nvdimm_bridge *cxl_nvb; member
Dcxlmem.h51 struct cxl_nvdimm_bridge *cxl_nvb; member