Searched refs:cxlhdm (Results 1 – 7 of 7) sorted by relevance
/Linux-v6.6/drivers/cxl/ |
D | port.c | 62 struct cxl_hdm *cxlhdm; in cxl_switch_port_probe() local 69 cxlhdm = devm_cxl_setup_hdm(port, NULL); in cxl_switch_port_probe() 70 if (!IS_ERR(cxlhdm)) in cxl_switch_port_probe() 71 return devm_cxl_enumerate_decoders(cxlhdm, NULL); in cxl_switch_port_probe() 73 if (PTR_ERR(cxlhdm) != -ENODEV) { in cxl_switch_port_probe() 75 return PTR_ERR(cxlhdm); in cxl_switch_port_probe() 92 struct cxl_hdm *cxlhdm; in cxl_endpoint_port_probe() local 100 cxlhdm = devm_cxl_setup_hdm(port, &info); in cxl_endpoint_port_probe() 101 if (IS_ERR(cxlhdm)) { in cxl_endpoint_port_probe() 102 if (PTR_ERR(cxlhdm) == -ENODEV) in cxl_endpoint_port_probe() [all …]
|
D | cxlpci.h | 90 int cxl_hdm_decode_init(struct cxl_dev_state *cxlds, struct cxl_hdm *cxlhdm,
|
D | cxl.h | 745 int devm_cxl_enumerate_decoders(struct cxl_hdm *cxlhdm,
|
/Linux-v6.6/drivers/cxl/core/ |
D | hdm.c | 70 static void parse_hdm_decoder_caps(struct cxl_hdm *cxlhdm) in parse_hdm_decoder_caps() argument 74 hdm_cap = readl(cxlhdm->regs.hdm_decoder + CXL_HDM_DECODER_CAP_OFFSET); in parse_hdm_decoder_caps() 75 cxlhdm->decoder_count = cxl_hdm_decoder_count(hdm_cap); in parse_hdm_decoder_caps() 76 cxlhdm->target_count = in parse_hdm_decoder_caps() 79 cxlhdm->interleave_mask |= GENMASK(11, 8); in parse_hdm_decoder_caps() 81 cxlhdm->interleave_mask |= GENMASK(14, 12); in parse_hdm_decoder_caps() 106 struct cxl_hdm *cxlhdm; in should_emulate_decoders() local 114 cxlhdm = dev_get_drvdata(&info->port->dev); in should_emulate_decoders() 115 hdm = cxlhdm->regs.hdm_decoder; in should_emulate_decoders() 131 for (i = 0; i < cxlhdm->decoder_count; i++) { in should_emulate_decoders() [all …]
|
D | pci.c | 303 struct cxl_hdm *cxlhdm = _cxlhdm; in disable_hdm() local 304 void __iomem *hdm = cxlhdm->regs.hdm_decoder; in disable_hdm() 311 static int devm_cxl_enable_hdm(struct device *host, struct cxl_hdm *cxlhdm) in devm_cxl_enable_hdm() argument 313 void __iomem *hdm = cxlhdm->regs.hdm_decoder; in devm_cxl_enable_hdm() 320 return devm_add_action_or_reset(host, disable_hdm, cxlhdm); in devm_cxl_enable_hdm() 434 int cxl_hdm_decode_init(struct cxl_dev_state *cxlds, struct cxl_hdm *cxlhdm, in cxl_hdm_decode_init() argument 437 void __iomem *hdm = cxlhdm->regs.hdm_decoder; in cxl_hdm_decode_init() 438 struct cxl_port *port = cxlhdm->port; in cxl_hdm_decode_init() 495 rc = devm_cxl_enable_hdm(&port->dev, cxlhdm); in cxl_hdm_decode_init()
|
/Linux-v6.6/tools/testing/cxl/test/ |
D | mock.c | 139 struct cxl_hdm *cxlhdm; in __wrap_devm_cxl_setup_hdm() local 143 cxlhdm = ops->devm_cxl_setup_hdm(port, info); in __wrap_devm_cxl_setup_hdm() 145 cxlhdm = devm_cxl_setup_hdm(port, info); in __wrap_devm_cxl_setup_hdm() 148 return cxlhdm; in __wrap_devm_cxl_setup_hdm() 167 int __wrap_devm_cxl_enumerate_decoders(struct cxl_hdm *cxlhdm, in __wrap_devm_cxl_enumerate_decoders() argument 171 struct cxl_port *port = cxlhdm->port; in __wrap_devm_cxl_enumerate_decoders() 175 rc = ops->devm_cxl_enumerate_decoders(cxlhdm, info); in __wrap_devm_cxl_enumerate_decoders() 177 rc = devm_cxl_enumerate_decoders(cxlhdm, info); in __wrap_devm_cxl_enumerate_decoders() 215 struct cxl_hdm *cxlhdm, in __wrap_cxl_hdm_decode_init() argument 224 rc = cxl_hdm_decode_init(cxlds, cxlhdm, info); in __wrap_cxl_hdm_decode_init()
|
D | cxl.c | 626 struct cxl_hdm *cxlhdm = devm_kzalloc(&port->dev, sizeof(*cxlhdm), GFP_KERNEL); in mock_cxl_setup_hdm() local 628 if (!cxlhdm) in mock_cxl_setup_hdm() 631 cxlhdm->port = port; in mock_cxl_setup_hdm() 632 return cxlhdm; in mock_cxl_setup_hdm() 843 static int mock_cxl_enumerate_decoders(struct cxl_hdm *cxlhdm, in mock_cxl_enumerate_decoders() argument 846 struct cxl_port *port = cxlhdm->port; in mock_cxl_enumerate_decoders()
|