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 | 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() 491 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in set_interleave_ways() 565 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in set_interleave_granularity() 1256 struct cxl_switch_decoder *cxlsd; in cxl_port_attach_region() local 1258 cxlsd = to_cxl_switch_decoder(&cxld->dev); in cxl_port_attach_region() 1259 if (cxl_rr->nr_targets > cxlsd->nr_targets) { in cxl_port_attach_region() 1265 cxlsd->nr_targets); in cxl_port_attach_region() 1438 struct cxl_switch_decoder *cxlsd; in cxl_port_setup_targets() local [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() 711 static void cxlsd_set_targets(struct cxl_switch_decoder *cxlsd, u64 *tgt) in cxlsd_set_targets() argument 713 struct cxl_dport **t = &cxlsd->target[0]; in cxlsd_set_targets() 714 int ways = cxlsd->cxld.interleave_ways; in cxlsd_set_targets() 778 struct cxl_switch_decoder *cxlsd = in setup_hw_decoder() local 784 cxlsd_set_targets(cxlsd, &targets); in setup_hw_decoder() [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/tools/testing/cxl/test/ |
| H A D | cxl.c | 761 struct cxl_switch_decoder cxlsd; 815 struct cxl_switch_decoder *cxlsd = in mock_init_hdm_decoder() 818 if (!(td->cxlsd.cxld.flags & CXL_DECODER_F_ENABLE)) in mock_init_hdm_decoder() 821 dbg_cxld(port, "restore", &td->cxlsd.cxld); in mock_init_hdm_decoder() 822 cxld_copy(cxld, &td->cxlsd.cxld); in mock_init_hdm_decoder() 823 WARN_ON(cxlsd->nr_targets != td->cxlsd.nr_targets); in mock_init_hdm_decoder() 826 for (int i = 0; i < cxlsd->nr_targets; i++) { in mock_init_hdm_decoder() 827 cxlsd->target[i] = NULL; in mock_init_hdm_decoder() 828 cxld->target_map[i] = td->cxlsd in mock_init_hdm_decoder() 779 struct cxl_switch_decoder *cxlsd; mock_init_hdm_decoder() local 914 struct cxl_switch_decoder *cxlsd; mock_cxl_enumerate_decoders() local [all...] |
| /linux/drivers/cxl/ |
| H A D | acpi.c | 78 int hbiw = cxlrd->cxlsd.nr_targets; in cxl_apply_xor_maps() 101 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in cxl_parse_cxims() 365 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in cxl_setup_extended_linear_cache() 399 if (!IS_ERR_OR_NULL(_T)) put_device(&_T->cxlsd.cxld.dev)) 438 cxld = &cxlrd->cxlsd.cxld; in DEFINE_FREE() 870 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in pair_cxl_resource()
|
| H A D | cxl.h | 375 struct cxl_switch_decoder cxlsd; member 724 …_root_decoder, struct cxl_root_decoder *, if (!IS_ERR_OR_NULL(_T)) put_device(&_T->cxlsd.cxld.dev)) 769 return cxl_decoder_autoremove(host, &cxlrd->cxlsd.cxld); in cxl_root_decoder_autoremove()
|