/openbmc/linux/drivers/cxl/ |
H A D | cxl.h | 526 struct cxl_port *port; 585 struct cxl_port { struct 610 cxl_find_dport_by_dev(struct cxl_port *port, const struct device *dport_dev) in cxl_find_dport_by_dev() argument 635 struct cxl_port *port; 648 struct cxl_port *next; 662 struct cxl_port *port; 677 static inline bool is_cxl_root(struct cxl_port *port) in is_cxl_root() 682 int cxl_num_decoders_committed(struct cxl_port *port); 684 struct cxl_port *to_cxl_port(const struct device *dev); 689 struct pci_bus *cxl_port_to_pci_bus(struct cxl_port *port); [all …]
|
H A D | port.c | 60 static int cxl_switch_port_probe(struct cxl_port *port) in cxl_switch_port_probe() 87 static int cxl_endpoint_port_probe(struct cxl_port *port) in cxl_endpoint_port_probe() 93 struct cxl_port *root; in cxl_endpoint_port_probe() 141 struct cxl_port *port = to_cxl_port(dev); in cxl_port_probe() 153 struct cxl_port *port = to_cxl_port(dev); in CDAT_read() 172 struct cxl_port *port = to_cxl_port(dev); in cxl_port_bin_attr_is_visible()
|
H A D | Makefile | 7 obj-$(CONFIG_CXL_PORT) += cxl_port.o 13 cxl_port-y := port.o
|
H A D | cxlmem.h | 53 struct cxl_port *endpoint; 63 static inline struct cxl_port *cxled_to_port(struct cxl_endpoint_decoder *cxled) in cxled_to_port() 68 static inline struct cxl_port *cxlrd_to_port(struct cxl_root_decoder *cxlrd) in cxlrd_to_port() 76 struct cxl_port *port = to_cxl_port(cxled->cxld.dev.parent); in cxled_to_memdev() 82 static inline bool is_cxl_endpoint(struct cxl_port *port) in is_cxl_endpoint() 97 static inline struct cxl_ep *cxl_ep_load(struct cxl_port *port, in cxl_ep_load() 906 struct cxl_port *port;
|
H A D | cxlpci.h | 88 int devm_cxl_port_enumerate_dports(struct cxl_port *port); 92 void read_cdat_data(struct cxl_port *port);
|
H A D | mem.c | 51 struct cxl_port *parent_port = parent_dport->port; in devm_cxl_add_endpoint() 53 struct cxl_port *endpoint, *iter, *down; in devm_cxl_add_endpoint() 113 struct cxl_port *parent_port; in cxl_mem_probe()
|
H A D | acpi.c | 192 struct cxl_port *root_port; 201 struct cxl_port *root_port = ctx->root_port; in __cxl_parse_cfmws() 406 struct cxl_port *root_port = arg; in add_host_bridge_dport() 459 struct cxl_port *root_port = arg; in add_host_bridge_uport() 464 struct cxl_port *port; in add_host_bridge_uport() 517 struct cxl_port *root_port = data; in add_root_nvdimm_bridge() 666 struct cxl_port *root_port; in cxl_acpi_probe()
|
H A D | Kconfig | 65 consumes these resource to publish the root of a cxl_port decode
|
H A D | pci.c | 472 struct cxl_port *port; in cxl_rcrb_get_comp_regs()
|
/openbmc/linux/drivers/cxl/core/ |
H A D | port.c | 40 int cxl_num_decoders_committed(struct cxl_port *port) in cxl_num_decoders_committed() 399 struct cxl_port *port = to_cxl_port(cxld->dev.parent); in __cxl_decoder_release() 510 static void cxl_ep_remove(struct cxl_port *port, struct cxl_ep *ep) in cxl_ep_remove() 520 struct cxl_port *port = to_cxl_port(dev); in cxl_port_release() 550 struct cxl_port *to_cxl_port(const struct device *dev) in to_cxl_port() 555 return container_of(dev, struct cxl_port, dev); in to_cxl_port() 561 struct cxl_port *port = _port; in unregister_port() 562 struct cxl_port *parent; in unregister_port() 589 struct cxl_port *port = _port; in cxl_unlink_uport() 594 static int devm_cxl_link_uport(struct device *host, struct cxl_port *port) in devm_cxl_link_uport() [all …]
|
H A D | hdm.c | 21 static int add_hdm_decoder(struct cxl_port *port, struct cxl_decoder *cxld, in add_hdm_decoder() 49 int devm_cxl_add_passthrough_decoder(struct cxl_port *port) in devm_cxl_add_passthrough_decoder() 97 static int map_hdm_decoder_regs(struct cxl_port *port, void __iomem *crb, in map_hdm_decoder_regs() 166 struct cxl_hdm *devm_cxl_setup_hdm(struct cxl_port *port, in devm_cxl_setup_hdm() 243 struct cxl_port *port = cxled_to_port(cxled); in __cxl_dpa_release() 274 struct cxl_port *port = cxled_to_port(cxled); in devm_cxl_dpa_release() 286 struct cxl_port *port = cxled_to_port(cxled); in __cxl_dpa_reserve() 359 struct cxl_port *port = cxled_to_port(cxled); in devm_cxl_dpa_reserve() 398 struct cxl_port *port = cxled_to_port(cxled); in cxl_dpa_free() 481 struct cxl_port *port = cxled_to_port(cxled); in cxl_dpa_alloc() [all …]
|
H A D | region.c | 116 static struct cxl_region_ref *cxl_rr_load(struct cxl_port *port, in cxl_rr_load() 156 struct cxl_port *iter = cxled_to_port(cxled); in cxl_region_decode_reset() 213 struct cxl_port *iter; in cxl_region_decode_commit() 717 cxl_region_find_decoder(struct cxl_port *port, in cxl_region_find_decoder() 744 static bool auto_order_ok(struct cxl_port *port, struct cxl_region *cxlr_iter, in auto_order_ok() 767 alloc_region_ref(struct cxl_port *port, struct cxl_region *cxlr, in alloc_region_ref() 832 struct cxl_port *port = cxl_rr->port; in free_region_ref() 845 struct cxl_port *port = cxl_rr->port; in cxl_rr_ep_add() 866 static int cxl_rr_alloc_decoder(struct cxl_port *port, struct cxl_region *cxlr, in cxl_rr_alloc_decoder() 926 static int cxl_port_attach_region(struct cxl_port *port, in cxl_port_attach_region() [all …]
|
H A D | core.h | 29 int cxl_get_poison_by_endpoint(struct cxl_port *port); 38 static inline int cxl_get_poison_by_endpoint(struct cxl_port *port) in cxl_get_poison_by_endpoint()
|
H A D | pmem.c | 67 struct cxl_port *port = find_cxl_root(cxlmd->endpoint); in cxl_find_nvdimm_bridge() 85 static struct cxl_nvdimm_bridge *cxl_nvdimm_bridge_alloc(struct cxl_port *port) in cxl_nvdimm_bridge_alloc() 131 struct cxl_port *port) in devm_cxl_add_nvdimm_bridge()
|
H A D | pci.c | 27 struct cxl_port *port; 36 struct cxl_port *port = ctx->port; in match_add_dports() 75 int devm_cxl_port_enumerate_dports(struct cxl_port *port) in devm_cxl_port_enumerate_dports() 432 struct cxl_port *port = cxlhdm->port; in cxl_hdm_decode_init() 434 struct cxl_port *root; in cxl_hdm_decode_init() 598 void read_cdat_data(struct cxl_port *port) in read_cdat_data()
|
H A D | memdev.c | 223 struct cxl_port *port; in cxl_trigger_poison_list()
|
H A D | mbox.c | 1190 struct cxl_port *endpoint; in cxl_mem_sanitize()
|
/openbmc/linux/tools/testing/cxl/test/ |
H A D | mock.h | 22 int (*devm_cxl_port_enumerate_dports)(struct cxl_port *port); 24 struct cxl_port *port, struct cxl_endpoint_dvsec_info *info); 25 int (*devm_cxl_add_passthrough_decoder)(struct cxl_port *port);
|
H A D | mock.c | 134 struct cxl_hdm *__wrap_devm_cxl_setup_hdm(struct cxl_port *port, in __wrap_devm_cxl_setup_hdm() 152 int __wrap_devm_cxl_add_passthrough_decoder(struct cxl_port *port) in __wrap_devm_cxl_add_passthrough_decoder() 171 struct cxl_port *port = cxlhdm->port; in __wrap_devm_cxl_enumerate_decoders() 184 int __wrap_devm_cxl_port_enumerate_dports(struct cxl_port *port) in __wrap_devm_cxl_port_enumerate_dports() 247 struct cxl_dport *__wrap_devm_cxl_add_rch_dport(struct cxl_port *port, in __wrap_devm_cxl_add_rch_dport()
|
H A D | cxl.c | 623 static struct cxl_hdm *mock_cxl_setup_hdm(struct cxl_port *port, in mock_cxl_setup_hdm() 639 static int mock_cxl_add_passthrough_decoder(struct cxl_port *port) in mock_cxl_add_passthrough_decoder() 669 struct cxl_port *port = to_cxl_port(cxld->dev.parent); in mock_decoder_commit() 692 struct cxl_port *port = to_cxl_port(cxld->dev.parent); in mock_decoder_reset() 740 struct cxl_port *port, *iter; in mock_init_hdm_decoder() 847 struct cxl_port *port = cxlhdm->port; in mock_cxl_enumerate_decoders() 848 struct cxl_port *parent_port = to_cxl_port(port->dev.parent); in mock_cxl_enumerate_decoders() 917 static int mock_cxl_port_enumerate_dports(struct cxl_port *port) in mock_cxl_port_enumerate_dports() 935 struct cxl_port *parent = to_cxl_port(port->dev.parent); in mock_cxl_port_enumerate_dports()
|
/openbmc/linux/tools/testing/cxl/ |
H A D | Kbuild | 38 obj-m += cxl_port.o 40 cxl_port-y := $(CXL_SRC)/port.o 41 cxl_port-y += config_check.o 42 cxl_port-y += cxl_port_test.o
|
H A D | cxl_port_test.c | 6 cxl_test_watermark(cxl_port);
|
/openbmc/linux/Documentation/driver-api/cxl/ |
H A D | memory-devices.rst | 184 'struct cxl_port' object. A 'cxl_port' is a device that can decode CXL.mem to
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-cxl | 190 cxl_port container of this decoder, and 'Y' represents the 204 decode range of the cxl_port ancestor of the decoder's cxl_port,
|