Searched refs:cxlsd (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/cxl/core/ |
| H A D | port.c | 150 static ssize_t emit_target_list(struct cxl_switch_decoder *cxlsd, char *buf) in emit_target_list() argument 152 struct cxl_decoder *cxld = &cxlsd->cxld; in emit_target_list() 157 struct cxl_dport *dport = cxlsd->target[i]; in emit_target_list() 164 next = cxlsd->target[i + 1]; in emit_target_list() 178 struct cxl_switch_decoder *cxlsd = to_cxl_switch_decoder(dev); in target_list_show() local 183 rc = emit_target_list(cxlsd, buf); in target_list_show() 344 return (cxlrd->cxlsd.cxld.flags & flags) == flags; in can_create_pmem() 351 return (cxlrd->cxlsd.cxld.flags & flags) == flags; in can_create_ram() 440 struct cxl_switch_decoder *cxlsd = to_cxl_switch_decoder(dev); in cxl_switch_decoder_release() local 442 __cxl_decoder_release(&cxlsd->cxld); in cxl_switch_decoder_release() [all …]
|
| H A D | hdm.c | 54 struct cxl_switch_decoder *cxlsd; in devm_cxl_add_passthrough_decoder() local 64 cxlsd = cxl_switch_decoder_alloc(port, 1); in devm_cxl_add_passthrough_decoder() 65 if (IS_ERR(cxlsd)) in devm_cxl_add_passthrough_decoder() 66 return PTR_ERR(cxlsd); in devm_cxl_add_passthrough_decoder() 70 return add_hdm_decoder(port, &cxlsd->cxld); in devm_cxl_add_passthrough_decoder() 718 static void cxlsd_set_targets(struct cxl_switch_decoder *cxlsd, u64 *tgt) in cxlsd_set_targets() argument 720 struct cxl_dport **t = &cxlsd->target[0]; in cxlsd_set_targets() 721 int ways = cxlsd->cxld.interleave_ways; in cxlsd_set_targets() 785 struct cxl_switch_decoder *cxlsd = in setup_hw_decoder() local 791 cxlsd_set_targets(cxlsd, &targets); in setup_hw_decoder() [all …]
|
| H A D | region.c | 297 struct cxl_switch_decoder *cxlsd = NULL; in commit_decoder() local 303 cxlsd = to_cxl_switch_decoder(&cxld->dev); in commit_decoder() 305 if (dev_WARN_ONCE(&cxld->dev, !cxlsd || cxlsd->nr_targets > 1, in commit_decoder() 493 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in interleave_ways_store() 556 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in interleave_granularity_store() 1202 struct cxl_switch_decoder *cxlsd; in cxl_port_attach_region() local 1204 cxlsd = to_cxl_switch_decoder(&cxld->dev); in cxl_port_attach_region() 1205 if (cxl_rr->nr_targets > cxlsd->nr_targets) { in cxl_port_attach_region() 1211 cxlsd->nr_targets); in cxl_port_attach_region() 1384 struct cxl_switch_decoder *cxlsd; in cxl_port_setup_targets() local [all …]
|
| H A D | cdat.c | 330 struct cxl_switch_decoder *cxlsd; in match_cxlrd_hb() local 337 cxlsd = &cxlrd->cxlsd; in match_cxlrd_hb() 340 for (int i = 0; i < cxlsd->nr_targets; i++) { in match_cxlrd_hb() 341 if (cxlsd->target[i] && host_bridge == cxlsd->target[i]->dport_dev) in match_cxlrd_hb()
|
| /linux/drivers/cxl/ |
| H A D | acpi.c | 80 return cxl_do_xormap_calc(cximsd, addr, cxlrd->cxlsd.nr_targets); in cxl_apply_xor_maps() 94 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in cxl_parse_cxims() 362 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in cxl_acpi_set_cache_size() 406 dev_warn(cxlrd->cxlsd.cxld.dev.parent, in cxl_setup_extended_linear_cache() 415 if (!IS_ERR_OR_NULL(_T)) put_device(&_T->cxlsd.cxld.dev)) 454 cxld = &cxlrd->cxlsd.cxld; in DEFINE_FREE() 886 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in pair_cxl_resource()
|
| H A D | cxl.h | 455 struct cxl_switch_decoder cxlsd; member 787 …_root_decoder, struct cxl_root_decoder *, if (!IS_ERR_OR_NULL(_T)) put_device(&_T->cxlsd.cxld.dev)) 832 return cxl_decoder_autoremove(host, &cxlrd->cxlsd.cxld); in cxl_root_decoder_autoremove()
|
| /linux/tools/testing/cxl/test/ |
| H A D | cxl.c | 779 struct cxl_switch_decoder *cxlsd; in mock_init_hdm_decoder() local 857 cxlsd = to_cxl_switch_decoder(dev); in mock_init_hdm_decoder() 861 cxlsd->target[1] = dport; in mock_init_hdm_decoder() 864 cxlsd->target[0] = dport; in mock_init_hdm_decoder() 868 cxlsd->target[0] = dport; in mock_init_hdm_decoder() 871 cxld = &cxlsd->cxld; in mock_init_hdm_decoder() 914 struct cxl_switch_decoder *cxlsd; in mock_cxl_enumerate_decoders() local 916 cxlsd = cxl_switch_decoder_alloc(port, target_count); in mock_cxl_enumerate_decoders() 917 if (IS_ERR(cxlsd)) { in mock_cxl_enumerate_decoders() 920 return PTR_ERR(cxlsd); in mock_cxl_enumerate_decoders() [all …]
|