Home
last modified time | relevance | path

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

/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()
73 static void parse_hdm_decoder_caps(struct cxl_hdm *cxlhdm) in parse_hdm_decoder_caps() argument
77 hdm_cap = readl(cxlhdm->regs.hdm_decoder + CXL_HDM_DECODER_CAP_OFFSET); in parse_hdm_decoder_caps()
78 cxlhdm->decoder_count = cxl_hdm_decoder_count(hdm_cap); in parse_hdm_decoder_caps()
79 cxlhdm->target_count = in parse_hdm_decoder_caps()
82 cxlhdm->interleave_mask |= GENMASK(11, 8); in parse_hdm_decoder_caps()
84 cxlhdm->interleave_mask |= GENMASK(14, 12); in parse_hdm_decoder_caps()
85 cxlhdm->iw_cap_mask = BIT(1) | BIT(2) | BIT(4) | BIT(8); in parse_hdm_decoder_caps()
[all …]
H A Dcore.h212 int cxl_hdm_decode_init(struct cxl_dev_state *cxlds, struct cxl_hdm *cxlhdm,
H A Dregion.c1385 struct cxl_hdm *cxlhdm = dev_get_drvdata(&port->dev); in check_interleave_cap() local
1391 if (!test_bit(iw, &cxlhdm->iw_cap_mask)) in check_interleave_cap()
1420 if (interleave_mask & ~cxlhdm->interleave_mask) in check_interleave_cap()
/linux/tools/testing/cxl/test/
H A Dcxl.c699 struct cxl_hdm *cxlhdm = devm_kzalloc(&port->dev, sizeof(*cxlhdm), GFP_KERNEL); in map_targets()
702 if (!cxlhdm) in map_targets()
705 cxlhdm->port = port; in map_targets()
706 cxlhdm->interleave_mask = ~0U;
707 cxlhdm->iw_cap_mask = ~0UL; in mock_decoder_commit()
708 dev_set_drvdata(dev, cxlhdm); in mock_decoder_commit()
709 return cxlhdm; in mock_decoder_commit()
1222 static int mock_cxl_enumerate_decoders(struct cxl_hdm *cxlhdm, in cxl_single_topo_init()
1225 struct cxl_port *port = cxlhdm in cxl_single_topo_init()
673 struct cxl_hdm *cxlhdm = devm_kzalloc(&port->dev, sizeof(*cxlhdm), GFP_KERNEL); mock_cxl_setup_hdm() local
892 mock_cxl_enumerate_decoders(struct cxl_hdm * cxlhdm,struct cxl_endpoint_dvsec_info * info) mock_cxl_enumerate_decoders() argument
967 struct cxl_hdm *cxlhdm; __mock_cxl_decoders_setup() local
[all...]