Home
last modified time | relevance | path

Searched refs:cxlhdm (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/tools/testing/cxl/test/
Dmock.c137 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()
Dcxl.c473 struct cxl_hdm *cxlhdm = devm_kzalloc(&port->dev, sizeof(*cxlhdm), GFP_KERNEL); in mock_cxl_setup_hdm() local
475 if (!cxlhdm) in mock_cxl_setup_hdm()
478 cxlhdm->port = port; in mock_cxl_setup_hdm()
479 return cxlhdm; in mock_cxl_setup_hdm()
554 static int mock_cxl_enumerate_decoders(struct cxl_hdm *cxlhdm) in mock_cxl_enumerate_decoders() argument
556 struct cxl_port *port = cxlhdm->port; in mock_cxl_enumerate_decoders()
/linux-6.1.9/drivers/cxl/
Dport.c36 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()
64 rc = cxl_hdm_decode_init(cxlds, cxlhdm); in cxl_port_probe()
75 rc = devm_cxl_enumerate_decoders(cxlhdm); in cxl_port_probe()
Dcxlpci.h76 int cxl_hdm_decode_init(struct cxl_dev_state *cxlds, struct cxl_hdm *cxlhdm);
Dcxl.h595 int devm_cxl_enumerate_decoders(struct cxl_hdm *cxlhdm);
/linux-6.1.9/drivers/cxl/core/
Dhdm.c71 static void parse_hdm_decoder_caps(struct cxl_hdm *cxlhdm) in parse_hdm_decoder_caps() argument
75 hdm_cap = readl(cxlhdm->regs.hdm_decoder + CXL_HDM_DECODER_CAP_OFFSET); in parse_hdm_decoder_caps()
76 cxlhdm->decoder_count = cxl_hdm_decoder_count(hdm_cap); in parse_hdm_decoder_caps()
77 cxlhdm->target_count = in parse_hdm_decoder_caps()
80 cxlhdm->interleave_mask |= GENMASK(11, 8); in parse_hdm_decoder_caps()
82 cxlhdm->interleave_mask |= GENMASK(14, 12); in parse_hdm_decoder_caps()
107 struct cxl_hdm *cxlhdm; in devm_cxl_setup_hdm() local
109 cxlhdm = devm_kzalloc(dev, sizeof(*cxlhdm), GFP_KERNEL); in devm_cxl_setup_hdm()
110 if (!cxlhdm) in devm_cxl_setup_hdm()
113 cxlhdm->port = port; in devm_cxl_setup_hdm()
[all …]
Dpci.c246 struct cxl_hdm *cxlhdm = _cxlhdm; in disable_hdm() local
247 void __iomem *hdm = cxlhdm->regs.hdm_decoder; in disable_hdm()
254 static int devm_cxl_enable_hdm(struct device *host, struct cxl_hdm *cxlhdm) in devm_cxl_enable_hdm() argument
256 void __iomem *hdm = cxlhdm->regs.hdm_decoder; in devm_cxl_enable_hdm()
263 return devm_add_action_or_reset(host, disable_hdm, cxlhdm); in devm_cxl_enable_hdm()
267 struct cxl_hdm *cxlhdm, in __cxl_hdm_decode_init() argument
270 void __iomem *hdm = cxlhdm->regs.hdm_decoder; in __cxl_hdm_decode_init()
271 struct cxl_port *port = cxlhdm->port; in __cxl_hdm_decode_init()
329 rc = devm_cxl_enable_hdm(&port->dev, cxlhdm); in __cxl_hdm_decode_init()
347 int cxl_hdm_decode_init(struct cxl_dev_state *cxlds, struct cxl_hdm *cxlhdm) in cxl_hdm_decode_init() argument
[all …]