Home
last modified time | relevance | path

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

/linux/drivers/cxl/
H A Dcxl.h597 struct cxl_root;
600 int (*qos_class)(struct cxl_root *cxl_root,
603 int (*translation_setup_root)(struct cxl_root *cxl_root, void *data);
612 struct cxl_root { struct
617 static inline struct cxl_root * argument
620 return container_of(port, struct cxl_root, port); in to_cxl_root()
736 struct cxl_root *devm_cxl_add_root(struct device *host);
739 struct cxl_root *find_cxl_root(struct cxl_port *port);
741 DEFINE_FREE(put_cxl_root, struct cxl_root *, if (_T) put_device(&_T->port.dev))
764 void cxl_setup_prm_address_translation(struct cxl_root *cxl_root);
[all …]
/linux/drivers/cxl/core/
H A Dpmem.c61 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 Dcdat.c211 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 Dport.c676 struct cxl_root *cxl_root __free(kfree) = NULL; in cxl_port_alloc()
683 cxl_root = kzalloc_obj(*cxl_root); in cxl_port_alloc()
684 if (!cxl_root) in cxl_port_alloc()
696 if (cxl_root) in cxl_port_alloc()
697 port = &no_free_ptr(cxl_root)->port; in cxl_port_alloc()
952 struct cxl_root *devm_cxl_add_root(struct device *host) in devm_cxl_add_root()
1019 struct cxl_root *find_cxl_root(struct cxl_port *port) in find_cxl_root()
H A Dregion.c3568 static int cxl_root_setup_translation(struct cxl_root *cxl_root, in cxl_root_setup_translation() argument
3571 if (!cxl_root->ops.translation_setup_root) in cxl_root_setup_translation()
3574 return cxl_root->ops.translation_setup_root(cxl_root, ctx); in cxl_root_setup_translation()
3587 struct cxl_root *cxl_root __free(put_cxl_root) = find_cxl_root(port); in get_cxl_root_decoder()
3596 rc = cxl_root_setup_translation(cxl_root, ctx); in get_cxl_root_decoder()
3605 cxlrd_dev = device_find_child(&cxl_root->port.dev, &ctx->hpa_range, in get_cxl_root_decoder()
/linux/tools/testing/cxl/test/
H A Dcxl.c1579 struct cxl_root *cxl_root __free(put_cxl_root) = in mock_cxl_endpoint_parse_cdat()
1585 if (!cxl_root) in mock_cxl_endpoint_parse_cdat()