Searched refs:cxld (Results 1 – 9 of 9) 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() 264 put_device(&cxled->cxld.dev); in __cxl_dpa_release() 325 dev_name(&cxled->cxld.dev)); in request_skip() 332 dev_name(&cxled->cxld.dev), &skip_base, &skip_len, &skipped); in request_skip() 354 port->id, cxled->cxld.id); in __cxl_dpa_reserve() [all …]
|
| H A D | region.c | 278 struct cxl_decoder *cxld; in cxl_region_decode_reset() local 281 cxld = cxl_rr->decoder; in cxl_region_decode_reset() 282 if (cxld->reset) in cxl_region_decode_reset() 283 cxld->reset(cxld); in cxl_region_decode_reset() 288 cxled->cxld.reset(&cxled->cxld); in cxl_region_decode_reset() 296 static int commit_decoder(struct cxl_decoder *cxld) in commit_decoder() argument 300 if (cxld->commit) in commit_decoder() 301 return cxld->commit(cxld); in commit_decoder() 303 if (is_switch_decoder(&cxld->dev)) in commit_decoder() 304 cxlsd = to_cxl_switch_decoder(&cxld->dev); in commit_decoder() [all …]
|
| H A D | port.c | 104 struct cxl_decoder *cxld = to_cxl_decoder(dev); in start_show() local 106 return sysfs_emit(buf, "%#llx\n", cxld->hpa_range.start); in start_show() 113 struct cxl_decoder *cxld = to_cxl_decoder(dev); in size_show() local 115 return sysfs_emit(buf, "%#llx\n", range_len(&cxld->hpa_range)); in size_show() 123 struct cxl_decoder *cxld = to_cxl_decoder(dev); \ 126 (cxld->flags & (flag)) ? "1" : "0"); \ 139 struct cxl_decoder *cxld = to_cxl_decoder(dev); in target_type_show() local 141 switch (cxld->target_type) { in target_type_show() 153 struct cxl_decoder *cxld = &cxlsd->cxld; in emit_target_list() local 157 for (i = 0; i < cxld->interleave_ways; i++) { in emit_target_list() [all …]
|
| H A D | pci.c | 227 struct cxl_decoder *cxld; in dvsec_range_allowed() local 232 cxld = to_cxl_decoder(dev); in dvsec_range_allowed() 234 if (!(cxld->flags & CXL_DECODER_F_RAM)) in dvsec_range_allowed() 237 return range_contains(&cxld->hpa_range, dev_range); in dvsec_range_allowed() 674 struct cxl_decoder *cxld; in __cxl_endpoint_decoder_reset_detected() local 682 cxld = to_cxl_decoder(dev); in __cxl_endpoint_decoder_reset_detected() 683 if ((cxld->flags & CXL_DECODER_F_ENABLE) == 0) in __cxl_endpoint_decoder_reset_detected() 688 ctrl = readl(hdm + CXL_HDM_DECODER0_CTRL_OFFSET(cxld->id)); in __cxl_endpoint_decoder_reset_detected()
|
| 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 | 781 static unsigned long cxld_registry_index(struct cxl_decoder *cxld) in cxld_registry_index() argument 783 struct cxl_port *port = to_cxl_port(cxld->dev.parent); in cxld_registry_index() 785 dev_WARN_ONCE(&port->dev, cxld->id >= 16, in cxld_registry_index() 786 "decoder id:%d out of range\n", cxld->id); in cxld_registry_index() 787 return (((unsigned long)port->uport_dev) << 4) | cxld->id; in cxld_registry_index() 798 static struct cxl_test_decoder *cxld_registry_find(struct cxl_decoder *cxld) in cxld_registry_find() argument 800 return xa_load(&decoder_registry, cxld_registry_index(cxld)); in cxld_registry_find() 803 #define dbg_cxld(port, msg, cxld) \ argument 805 struct cxl_decoder *___d = (cxld); \ 813 static int mock_decoder_commit(struct cxl_decoder *cxld); [all …]
|
| /linux/drivers/cxl/ |
| H A D | cxl.h | 306 int (*commit)(struct cxl_decoder *cxld); 307 void (*reset)(struct cxl_decoder *cxld); 331 struct cxl_decoder cxld; member 352 struct cxl_decoder cxld; member 727 void cxl_port_commit_reap(struct cxl_decoder *cxld); 743 …_root_decoder, struct cxl_root_decoder *, if (!IS_ERR_OR_NULL(_T)) put_device(&_T->cxlsd.cxld.dev)) 781 int cxl_decoder_add(struct cxl_decoder *cxld); 783 int cxl_decoder_add_locked(struct cxl_decoder *cxld); 784 int cxl_decoder_autoremove(struct device *host, struct cxl_decoder *cxld); 788 return cxl_decoder_autoremove(host, &cxlrd->cxlsd.cxld); in cxl_root_decoder_autoremove()
|
| H A D | cxlmem.h | 78 return to_cxl_port(cxled->cxld.dev.parent); in cxled_to_port() 83 return to_cxl_port(cxlrd->cxlsd.cxld.dev.parent); in cxlrd_to_port() 89 struct cxl_port *port = to_cxl_port(cxled->cxld.dev.parent); in cxled_to_memdev()
|
| H A D | pci.c | 969 cxled->cxld.flags &= ~CXL_DECODER_F_RESET_MASK; in cxl_endpoint_decoder_clear_reset_flags()
|