Searched refs:cxl_root (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/cxl/ |
| H A D | cxl.h | 578 struct cxl_root; 581 int (*qos_class)(struct cxl_root *cxl_root, 584 int (*translation_setup_root)(struct cxl_root *cxl_root, void *data); 593 struct cxl_root { struct 598 static inline struct cxl_root * argument 601 return container_of(port, struct cxl_root, port); in to_cxl_root() 717 struct cxl_root *devm_cxl_add_root(struct device *host); 720 struct cxl_root *find_cxl_root(struct cxl_port *port); 722 DEFINE_FREE(put_cxl_root, struct cxl_root *, if (_T) put_device(&_T->port.dev)) 745 void cxl_setup_prm_address_translation(struct cxl_root *cxl_root); [all …]
|
| H A D | acpi.c | 311 static int cxl_acpi_qos_class(struct cxl_root *cxl_root, in cxl_acpi_qos_class() argument 315 struct device *dev = cxl_root->port.uport_dev; in cxl_acpi_qos_class() 890 struct cxl_root *cxl_root; in cxl_acpi_probe() local 910 cxl_root = devm_cxl_add_root(host); in cxl_acpi_probe() 911 if (IS_ERR(cxl_root)) in cxl_acpi_probe() 912 return PTR_ERR(cxl_root); in cxl_acpi_probe() 913 cxl_root->ops.qos_class = cxl_acpi_qos_class; in cxl_acpi_probe() 914 root_port = &cxl_root->port; in cxl_acpi_probe() 916 cxl_setup_prm_address_translation(cxl_root); in cxl_acpi_probe()
|
| /linux/drivers/cxl/core/ |
| H A D | pmem.c | 61 struct cxl_root *cxl_root __free(put_cxl_root) = find_cxl_root(port); in cxl_find_nvdimm_bridge() 64 if (!cxl_root) in cxl_find_nvdimm_bridge() 67 dev = device_find_child(&cxl_root->port.dev, in cxl_find_nvdimm_bridge()
|
| H A D | cdat.c | 211 struct cxl_root *cxl_root __free(put_cxl_root) = find_cxl_root(port); in cxl_port_perf_data_calculate() 213 if (!cxl_root) in cxl_port_perf_data_calculate() 216 if (!cxl_root->ops.qos_class) in cxl_port_perf_data_calculate() 224 rc = cxl_root->ops.qos_class(cxl_root, in cxl_port_perf_data_calculate() 353 struct cxl_root *cxl_root __free(put_cxl_root) = in cxl_qos_class_verify() 360 if (!cxl_root) in cxl_qos_class_verify() 363 root_port = &cxl_root->port; in cxl_qos_class_verify()
|
| H A D | port.c | 673 struct cxl_root *cxl_root __free(kfree) = NULL; in cxl_port_alloc() 680 cxl_root = kzalloc_obj(*cxl_root); in cxl_port_alloc() 681 if (!cxl_root) in cxl_port_alloc() 693 if (cxl_root) in cxl_port_alloc() 694 port = &no_free_ptr(cxl_root)->port; in cxl_port_alloc() 950 struct cxl_root *devm_cxl_add_root(struct device *host) in devm_cxl_add_root() 1017 struct cxl_root *find_cxl_root(struct cxl_port *port) in find_cxl_root()
|
| H A D | region.c | 3522 static int cxl_root_setup_translation(struct cxl_root *cxl_root, in cxl_root_setup_translation() argument 3525 if (!cxl_root->ops.translation_setup_root) in cxl_root_setup_translation() 3528 return cxl_root->ops.translation_setup_root(cxl_root, ctx); in cxl_root_setup_translation() 3541 struct cxl_root *cxl_root __free(put_cxl_root) = find_cxl_root(port); in get_cxl_root_decoder() 3550 rc = cxl_root_setup_translation(cxl_root, ctx); in get_cxl_root_decoder() 3559 cxlrd_dev = device_find_child(&cxl_root->port.dev, &ctx->hpa_range, in get_cxl_root_decoder()
|
| /linux/tools/testing/cxl/test/ |
| H A D | cxl.c | 1417 struct cxl_root *cxl_root __free(put_cxl_root) = 1423 if (!cxl_root) in cxl_test_init()
|