Home
last modified time | relevance | path

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

/linux/drivers/cxl/
H A Dport.c62 struct cxl_hdm *cxlhdm; in cxl_switch_port_probe() local
74 cxlhdm = devm_cxl_setup_hdm(port, NULL); in cxl_switch_port_probe()
75 if (!IS_ERR(cxlhdm)) in cxl_switch_port_probe()
76 return devm_cxl_enumerate_decoders(cxlhdm, NULL); in cxl_switch_port_probe()
78 if (PTR_ERR(cxlhdm) != -ENODEV) { in cxl_switch_port_probe()
80 return PTR_ERR(cxlhdm); in cxl_switch_port_probe()
97 struct cxl_hdm *cxlhdm; in cxl_endpoint_port_probe() local
105 cxlhdm = devm_cxl_setup_hdm(port, &info); in cxl_endpoint_port_probe()
106 if (IS_ERR(cxlhdm)) { in cxl_endpoint_port_probe()
107 if (PTR_ERR(cxlhdm) == -ENODEV) in cxl_endpoint_port_probe()
[all …]
/linux/drivers/cxl/core/
H A Dhdm.c55 struct cxl_hdm *cxlhdm = dev_get_drvdata(&port->dev); in devm_cxl_add_passthrough_decoder() local
61 cxlhdm->interleave_mask = ~0U; in devm_cxl_add_passthrough_decoder()
62 cxlhdm->iw_cap_mask = ~0UL; in devm_cxl_add_passthrough_decoder()
78 static void parse_hdm_decoder_caps(struct cxl_hdm *cxlhdm) in parse_hdm_decoder_caps() argument
82 hdm_cap = readl(cxlhdm->regs.hdm_decoder + CXL_HDM_DECODER_CAP_OFFSET); in parse_hdm_decoder_caps()
83 cxlhdm->decoder_count = cxl_hdm_decoder_count(hdm_cap); in parse_hdm_decoder_caps()
84 cxlhdm->target_count = in parse_hdm_decoder_caps()
87 cxlhdm->interleave_mask |= GENMASK(11, 8); in parse_hdm_decoder_caps()
89 cxlhdm->interleave_mask |= GENMASK(14, 12); in parse_hdm_decoder_caps()
90 cxlhdm->iw_cap_mask = BIT(1) | BIT(2) | BIT(4) | BIT(8); in parse_hdm_decoder_caps()
[all …]
H A Dpci.c274 struct cxl_hdm *cxlhdm = _cxlhdm; in disable_hdm() local
275 void __iomem *hdm = cxlhdm->regs.hdm_decoder; in disable_hdm()
282 static int devm_cxl_enable_hdm(struct device *host, struct cxl_hdm *cxlhdm) in devm_cxl_enable_hdm() argument
284 void __iomem *hdm = cxlhdm->regs.hdm_decoder; in devm_cxl_enable_hdm()
291 return devm_add_action_or_reset(host, disable_hdm, cxlhdm); in devm_cxl_enable_hdm()
399 int cxl_hdm_decode_init(struct cxl_dev_state *cxlds, struct cxl_hdm *cxlhdm, in cxl_hdm_decode_init() argument
402 void __iomem *hdm = cxlhdm->regs.hdm_decoder; in cxl_hdm_decode_init()
403 struct cxl_port *port = cxlhdm->port; in cxl_hdm_decode_init()
430 rc = devm_cxl_enable_hdm(&port->dev, cxlhdm); in cxl_hdm_decode_init()
1010 struct cxl_hdm *cxlhdm; in __cxl_endpoint_decoder_reset_detected() local
[all …]
H A Dregion.c1244 struct cxl_hdm *cxlhdm = dev_get_drvdata(&port->dev); in check_interleave_cap() local
1250 if (!test_bit(iw, &cxlhdm->iw_cap_mask)) in check_interleave_cap()
1279 if (interleave_mask & ~cxlhdm->interleave_mask) in check_interleave_cap()
/linux/tools/testing/cxl/test/
H A Dmock.c139 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()
H A Dcxl.c632 struct cxl_hdm *cxlhdm = devm_kzalloc(&port->dev, sizeof(*cxlhdm), GFP_KERNEL); in mock_cxl_setup_hdm() local
635 if (!cxlhdm) in mock_cxl_setup_hdm()
638 cxlhdm->port = port; in mock_cxl_setup_hdm()
639 cxlhdm->interleave_mask = ~0U; in mock_cxl_setup_hdm()
640 cxlhdm->iw_cap_mask = ~0UL; in mock_cxl_setup_hdm()
641 dev_set_drvdata(dev, cxlhdm); in mock_cxl_setup_hdm()
642 return cxlhdm; in mock_cxl_setup_hdm()
850 static int mock_cxl_enumerate_decoders(struct cxl_hdm *cxlhdm, in mock_cxl_enumerate_decoders() argument
853 struct cxl_port *port = cxlhdm->port; in mock_cxl_enumerate_decoders()