Searched refs:cxld (Results 1 – 6 of 6) sorted by relevance
| /linux/drivers/cxl/core/ |
| H A D | hdm.c | 24 static int add_hdm_decoder(struct cxl_port *port, struct cxl_decoder *cxld) in add_hdm_decoder() argument 28 rc = cxl_decoder_add_locked(cxld); in add_hdm_decoder() 30 put_device(&cxld->dev); in add_hdm_decoder() 35 rc = cxl_decoder_autoremove(&port->dev, cxld); in add_hdm_decoder() 40 dev_name(&cxld->dev), dev_name(&port->dev)); in add_hdm_decoder() 70 return add_hdm_decoder(port, &cxlsd->cxld); in devm_cxl_add_passthrough_decoder() 271 put_device(&cxled->cxld.dev); in __cxl_dpa_release() 332 dev_name(&cxled->cxld.dev)); in request_skip() 339 dev_name(&cxled->cxld.dev), &skip_base, &skip_len, &skipped); in request_skip() 361 port->id, cxled->cxld.id); in __cxl_dpa_reserve() [all …]
|
| H A D | region.c | 277 struct cxl_decoder *cxld; in cxl_region_decode_reset() local 280 cxld = cxl_rr->decoder; in cxl_region_decode_reset() 281 if (cxld->reset) in cxl_region_decode_reset() 282 cxld->reset(cxld); in cxl_region_decode_reset() 287 cxled->cxld.reset(&cxled->cxld); in cxl_region_decode_reset() 295 static int commit_decoder(struct cxl_decoder *cxld) in commit_decoder() argument 299 if (cxld->commit) in commit_decoder() 300 return cxld->commit(cxld); in commit_decoder() 302 if (is_switch_decoder(&cxld->dev)) in commit_decoder() 303 cxlsd = to_cxl_switch_decoder(&cxld->dev); in commit_decoder() [all …]
|
| H A D | port.c | 103 struct cxl_decoder *cxld = to_cxl_decoder(dev); in start_show() local 105 return sysfs_emit(buf, "%#llx\n", cxld->hpa_range.start); in start_show() 112 struct cxl_decoder *cxld = to_cxl_decoder(dev); in size_show() local 114 return sysfs_emit(buf, "%#llx\n", range_len(&cxld->hpa_range)); in size_show() 122 struct cxl_decoder *cxld = to_cxl_decoder(dev); \ 125 (cxld->flags & (flag)) ? "1" : "0"); \ 138 struct cxl_decoder *cxld = to_cxl_decoder(dev); in target_type_show() local 140 switch (cxld->target_type) { in target_type_show() 152 struct cxl_decoder *cxld = &cxlsd->cxld; in emit_target_list() local 156 for (i = 0; i < cxld->interleave_ways; i++) { in emit_target_list() [all …]
|
| H A D | cdat.c | 633 struct cxl_port *endpoint = to_cxl_port(cxled->cxld.dev.parent); in cxl_endpoint_gather_bandwidth()
|
| /linux/tools/testing/cxl/test/ |
| H A D | cxl.c | 707 static int mock_decoder_commit(struct cxl_decoder *cxld) in mock_decoder_commit() argument 709 struct cxl_port *port = to_cxl_port(cxld->dev.parent); in mock_decoder_commit() 710 int id = cxld->id; in mock_decoder_commit() 712 if (cxld->flags & CXL_DECODER_F_ENABLE) in mock_decoder_commit() 715 dev_dbg(&port->dev, "%s commit\n", dev_name(&cxld->dev)); in mock_decoder_commit() 719 dev_name(&cxld->dev), port->id, in mock_decoder_commit() 725 cxld->flags |= CXL_DECODER_F_ENABLE; in mock_decoder_commit() 730 static void mock_decoder_reset(struct cxl_decoder *cxld) in mock_decoder_reset() argument 732 struct cxl_port *port = to_cxl_port(cxld->dev.parent); in mock_decoder_reset() 733 int id = cxld->id; in mock_decoder_reset() [all …]
|
| /linux/drivers/cxl/ |
| H A D | acpi.c | 101 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in cxl_parse_cxims() local 112 if (hbig != cxld->interleave_granularity) in cxl_parse_cxims() 116 if (is_power_of_2(cxld->interleave_ways)) in cxl_parse_cxims() 118 nr_maps = ilog2(cxld->interleave_ways); in cxl_parse_cxims() 121 nr_maps = ilog2(cxld->interleave_ways / 3); in cxl_parse_cxims() 365 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in cxl_setup_extended_linear_cache() local 366 struct range *hpa = &cxld->hpa_range; in cxl_setup_extended_linear_cache() 389 dev_warn(&cxld->dev, in cxl_setup_extended_linear_cache() 399 if (!IS_ERR_OR_NULL(_T)) put_device(&_T->cxlsd.cxld.dev)) 407 struct cxl_decoder *cxld; in DEFINE_FREE() local [all …]
|