Searched refs:cxlhdm (Results 1 – 7 of 7) sorted by relevance
/linux-5.19.10/drivers/cxl/core/ |
D | hdm.c | 66 static void parse_hdm_decoder_caps(struct cxl_hdm *cxlhdm) in parse_hdm_decoder_caps() argument 70 hdm_cap = readl(cxlhdm->regs.hdm_decoder + CXL_HDM_DECODER_CAP_OFFSET); in parse_hdm_decoder_caps() 71 cxlhdm->decoder_count = cxl_hdm_decoder_count(hdm_cap); in parse_hdm_decoder_caps() 72 cxlhdm->target_count = in parse_hdm_decoder_caps() 75 cxlhdm->interleave_mask |= GENMASK(11, 8); in parse_hdm_decoder_caps() 77 cxlhdm->interleave_mask |= GENMASK(14, 12); in parse_hdm_decoder_caps() 102 struct cxl_hdm *cxlhdm; in devm_cxl_setup_hdm() local 104 cxlhdm = devm_kzalloc(dev, sizeof(*cxlhdm), GFP_KERNEL); in devm_cxl_setup_hdm() 105 if (!cxlhdm) in devm_cxl_setup_hdm() 108 cxlhdm->port = port; in devm_cxl_setup_hdm() [all …]
|
D | pci.c | 251 struct cxl_hdm *cxlhdm = _cxlhdm; in disable_hdm() local 252 void __iomem *hdm = cxlhdm->regs.hdm_decoder; in disable_hdm() 259 static int devm_cxl_enable_hdm(struct device *host, struct cxl_hdm *cxlhdm) in devm_cxl_enable_hdm() argument 261 void __iomem *hdm = cxlhdm->regs.hdm_decoder; in devm_cxl_enable_hdm() 268 return devm_add_action_or_reset(host, disable_hdm, cxlhdm); in devm_cxl_enable_hdm() 272 struct cxl_hdm *cxlhdm, in __cxl_hdm_decode_init() argument 275 void __iomem *hdm = cxlhdm->regs.hdm_decoder; in __cxl_hdm_decode_init() 276 struct cxl_port *port = cxlhdm->port; in __cxl_hdm_decode_init() 334 rc = devm_cxl_enable_hdm(&port->dev, cxlhdm); in __cxl_hdm_decode_init() 352 int cxl_hdm_decode_init(struct cxl_dev_state *cxlds, struct cxl_hdm *cxlhdm) in cxl_hdm_decode_init() argument [all …]
|
/linux-5.19.10/drivers/cxl/ |
D | port.c | 36 struct cxl_hdm *cxlhdm; in cxl_port_probe() local 48 cxlhdm = devm_cxl_setup_hdm(port); in cxl_port_probe() 49 if (IS_ERR(cxlhdm)) in cxl_port_probe() 50 return PTR_ERR(cxlhdm); in cxl_port_probe() 61 rc = cxl_hdm_decode_init(cxlds, cxlhdm); in cxl_port_probe() 72 rc = devm_cxl_enumerate_decoders(cxlhdm); in cxl_port_probe()
|
D | cxlpci.h | 76 int cxl_hdm_decode_init(struct cxl_dev_state *cxlds, struct cxl_hdm *cxlhdm);
|
D | cxl.h | 357 int devm_cxl_enumerate_decoders(struct cxl_hdm *cxlhdm);
|
/linux-5.19.10/tools/testing/cxl/test/ |
D | mock.c | 137 struct cxl_hdm *cxlhdm; in __wrap_devm_cxl_setup_hdm() local 141 cxlhdm = ops->devm_cxl_setup_hdm(port); in __wrap_devm_cxl_setup_hdm() 143 cxlhdm = devm_cxl_setup_hdm(port); in __wrap_devm_cxl_setup_hdm() 146 return cxlhdm; in __wrap_devm_cxl_setup_hdm() 165 int __wrap_devm_cxl_enumerate_decoders(struct cxl_hdm *cxlhdm) in __wrap_devm_cxl_enumerate_decoders() argument 168 struct cxl_port *port = cxlhdm->port; in __wrap_devm_cxl_enumerate_decoders() 172 rc = ops->devm_cxl_enumerate_decoders(cxlhdm); in __wrap_devm_cxl_enumerate_decoders() 174 rc = devm_cxl_enumerate_decoders(cxlhdm); in __wrap_devm_cxl_enumerate_decoders() 212 struct cxl_hdm *cxlhdm) in __wrap_cxl_hdm_decode_init() argument 220 rc = cxl_hdm_decode_init(cxlds, cxlhdm); in __wrap_cxl_hdm_decode_init()
|
D | cxl.c | 395 struct cxl_hdm *cxlhdm = devm_kzalloc(&port->dev, sizeof(*cxlhdm), GFP_KERNEL); in mock_cxl_setup_hdm() local 397 if (!cxlhdm) in mock_cxl_setup_hdm() 400 cxlhdm->port = port; in mock_cxl_setup_hdm() 401 return cxlhdm; in mock_cxl_setup_hdm() 432 static int mock_cxl_enumerate_decoders(struct cxl_hdm *cxlhdm) in mock_cxl_enumerate_decoders() argument 434 struct cxl_port *port = cxlhdm->port; in mock_cxl_enumerate_decoders()
|