Home
last modified time | relevance | path

Searched refs:cxld (Results 1 – 10 of 10) sorted by relevance

/Linux-v6.6/drivers/cxl/core/
Dhdm.c21 static int add_hdm_decoder(struct cxl_port *port, struct cxl_decoder *cxld, in add_hdm_decoder() argument
26 rc = cxl_decoder_add_locked(cxld, target_map); in add_hdm_decoder()
28 put_device(&cxld->dev); in add_hdm_decoder()
33 rc = cxl_decoder_autoremove(&port->dev, cxld); in add_hdm_decoder()
37 dev_dbg(&cxld->dev, "Added to port %s\n", dev_name(&port->dev)); in add_hdm_decoder()
66 return add_hdm_decoder(port, &cxlsd->cxld, single_port_map); in devm_cxl_add_passthrough_decoder()
244 put_device(&cxled->cxld.dev); in __cxl_dpa_release()
282 port->id, cxled->cxld.id); in __cxl_dpa_reserve()
288 port->id, cxled->cxld.id, cxled->dpa_res); in __cxl_dpa_reserve()
292 if (port->hdm_end + 1 != cxled->cxld.id) { in __cxl_dpa_reserve()
[all …]
Dregion.c177 struct cxl_decoder *cxld; in cxl_region_decode_reset() local
180 cxld = cxl_rr->decoder; in cxl_region_decode_reset()
181 if (cxld->reset) in cxl_region_decode_reset()
182 rc = cxld->reset(cxld); in cxl_region_decode_reset()
189 rc = cxled->cxld.reset(&cxled->cxld); in cxl_region_decode_reset()
201 static int commit_decoder(struct cxl_decoder *cxld) in commit_decoder() argument
205 if (cxld->commit) in commit_decoder()
206 return cxld->commit(cxld); in commit_decoder()
208 if (is_switch_decoder(&cxld->dev)) in commit_decoder()
209 cxlsd = to_cxl_switch_decoder(&cxld->dev); in commit_decoder()
[all …]
Dport.c85 struct cxl_decoder *cxld = to_cxl_decoder(dev); in start_show() local
87 return sysfs_emit(buf, "%#llx\n", cxld->hpa_range.start); in start_show()
94 struct cxl_decoder *cxld = to_cxl_decoder(dev); in size_show() local
96 return sysfs_emit(buf, "%#llx\n", range_len(&cxld->hpa_range)); in size_show()
104 struct cxl_decoder *cxld = to_cxl_decoder(dev); \
107 (cxld->flags & (flag)) ? "1" : "0"); \
120 struct cxl_decoder *cxld = to_cxl_decoder(dev); in target_type_show() local
122 switch (cxld->target_type) { in target_type_show()
134 struct cxl_decoder *cxld = &cxlsd->cxld; in emit_target_list() local
138 for (i = 0; i < cxld->interleave_ways; i++) { in emit_target_list()
[all …]
Dpci.c287 struct cxl_decoder *cxld; in dvsec_range_allowed() local
292 cxld = to_cxl_decoder(dev); in dvsec_range_allowed()
294 if (!(cxld->flags & CXL_DECODER_F_RAM)) in dvsec_range_allowed()
297 return range_contains(&cxld->hpa_range, dev_range); in dvsec_range_allowed()
Dmemdev.c280 dev_name(&cxled->cxld.region->dev)); in __cxl_dpa_to_region()
282 ctx->cxlr = cxled->cxld.region; in __cxl_dpa_to_region()
/Linux-v6.6/drivers/cxl/
Dacpi.c49 struct cxl_decoder *cxld = &cxlsd->cxld; in cxl_hb_xor() local
50 int ig = cxld->interleave_granularity; in cxl_hb_xor()
51 int iw = cxld->interleave_ways; in cxl_hb_xor()
55 if (dev_WARN_ONCE(&cxld->dev, in cxl_hb_xor()
56 cxld->interleave_ways != cxlsd->nr_targets, in cxl_hb_xor()
83 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in cxl_parse_cxims() local
94 if (hbig != cxld->interleave_granularity) in cxl_parse_cxims()
98 if (is_power_of_2(cxld->interleave_ways)) in cxl_parse_cxims()
100 nr_maps = ilog2(cxld->interleave_ways); in cxl_parse_cxims()
103 nr_maps = ilog2(cxld->interleave_ways / 3); in cxl_parse_cxims()
[all …]
Dcxl.h347 int (*commit)(struct cxl_decoder *cxld);
348 int (*reset)(struct cxl_decoder *cxld);
396 struct cxl_decoder cxld; member
418 struct cxl_decoder cxld; member
722 int cxl_decoder_add(struct cxl_decoder *cxld, int *target_map);
724 int cxl_decoder_add_locked(struct cxl_decoder *cxld, int *target_map);
725 int cxl_decoder_autoremove(struct device *host, struct cxl_decoder *cxld);
Dport.c42 if ((cxled->cxld.flags & CXL_DECODER_F_ENABLE) == 0) in discover_region()
55 cxled->cxld.hpa_range.start, cxled->cxld.hpa_range.end); in discover_region()
Dcxlmem.h65 return to_cxl_port(cxled->cxld.dev.parent); in cxled_to_port()
70 return to_cxl_port(cxlrd->cxlsd.cxld.dev.parent); in cxlrd_to_port()
76 struct cxl_port *port = to_cxl_port(cxled->cxld.dev.parent); in cxled_to_memdev()
/Linux-v6.6/tools/testing/cxl/test/
Dcxl.c663 static int mock_decoder_commit(struct cxl_decoder *cxld) in mock_decoder_commit() argument
665 struct cxl_port *port = to_cxl_port(cxld->dev.parent); in mock_decoder_commit()
666 int id = cxld->id; in mock_decoder_commit()
668 if (cxld->flags & CXL_DECODER_F_ENABLE) in mock_decoder_commit()
671 dev_dbg(&port->dev, "%s commit\n", dev_name(&cxld->dev)); in mock_decoder_commit()
675 dev_name(&cxld->dev), port->id, port->commit_end + 1); in mock_decoder_commit()
680 cxld->flags |= CXL_DECODER_F_ENABLE; in mock_decoder_commit()
685 static int mock_decoder_reset(struct cxl_decoder *cxld) in mock_decoder_reset() argument
687 struct cxl_port *port = to_cxl_port(cxld->dev.parent); in mock_decoder_reset()
688 int id = cxld->id; in mock_decoder_reset()
[all …]