Searched refs:cxl_root (Results 1 – 7 of 7) sorted by relevance
| /linux-6.15/drivers/cxl/ |
| H A D | cxl.h | 626 struct cxl_root { struct 631 static inline struct cxl_root * argument 634 return container_of(port, struct cxl_root, port); in to_cxl_root() 638 int (*qos_class)(struct cxl_root *cxl_root, 736 struct cxl_root *devm_cxl_add_root(struct device *host, 738 struct cxl_root *find_cxl_root(struct cxl_port *port); 739 void put_cxl_root(struct cxl_root *cxl_root); 740 DEFINE_FREE(put_cxl_root, struct cxl_root *, if (_T) put_cxl_root(_T))
|
| H A D | port.c | 133 struct cxl_root *cxl_root __free(put_cxl_root) = find_cxl_root(port); in cxl_endpoint_port_probe() 135 root = &cxl_root->port; in cxl_endpoint_port_probe()
|
| H A D | acpi.c | 284 static int cxl_acpi_qos_class(struct cxl_root *cxl_root, in cxl_acpi_qos_class() argument 288 struct device *dev = cxl_root->port.uport_dev; in cxl_acpi_qos_class() 820 struct cxl_root *cxl_root; in cxl_acpi_probe() local 840 cxl_root = devm_cxl_add_root(host, &acpi_root_ops); in cxl_acpi_probe() 841 if (IS_ERR(cxl_root)) in cxl_acpi_probe() 842 return PTR_ERR(cxl_root); in cxl_acpi_probe() 843 root_port = &cxl_root->port; in cxl_acpi_probe()
|
| /linux-6.15/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 || !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 | 679 struct cxl_root *cxl_root __free(kfree) = NULL; in cxl_port_alloc() 686 cxl_root = kzalloc(sizeof(*cxl_root), GFP_KERNEL); in cxl_port_alloc() 687 if (!cxl_root) in cxl_port_alloc() 699 if (cxl_root) in cxl_port_alloc() 956 struct cxl_root *cxl_root; in devm_cxl_add_root() local 963 cxl_root = to_cxl_root(port); in devm_cxl_add_root() 964 cxl_root->ops = ops; in devm_cxl_add_root() 965 return cxl_root; in devm_cxl_add_root() 1038 void put_cxl_root(struct cxl_root *cxl_root) in put_cxl_root() argument 1040 if (!cxl_root) in put_cxl_root() [all …]
|
| /linux-6.15/tools/testing/cxl/test/ |
| H A D | cxl.c | 999 struct cxl_root *cxl_root __free(put_cxl_root) = in mock_cxl_endpoint_parse_cdat() 1005 if (!cxl_root) in mock_cxl_endpoint_parse_cdat()
|