Searched refs:cxlsd (Results 1 – 8 of 8) sorted by relevance
| /linux-6.15/drivers/cxl/core/ |
| H A D | port.c | 161 next = cxlsd->target[i + 1]; in emit_target_list() 180 rc = emit_target_list(cxlsd, buf); in target_list_show() 440 kfree(cxlsd); in cxl_switch_decoder_release() 1738 cxlsd->target[i] = dport; in decoder_populate_targets() 1825 cxlsd = &cxlrd->cxlsd; in cxl_root_decoder_alloc() 1834 cxld = &cxlsd->cxld; in cxl_root_decoder_alloc() 1874 cxlsd = kzalloc(struct_size(cxlsd, target, nr_targets), GFP_KERNEL); in cxl_switch_decoder_alloc() 1875 if (!cxlsd) in cxl_switch_decoder_alloc() 1880 kfree(cxlsd); in cxl_switch_decoder_alloc() 1884 cxld = &cxlsd->cxld; in cxl_switch_decoder_alloc() [all …]
|
| H A D | region.c | 301 if (dev_WARN_ONCE(&cxld->dev, !cxlsd || cxlsd->nr_targets > 1, in commit_decoder() 1140 struct cxl_switch_decoder *cxlsd; in cxl_port_attach_region() local 1149 cxlsd->nr_targets); in cxl_port_attach_region() 1320 struct cxl_switch_decoder *cxlsd; in cxl_port_setup_targets() local 1498 dev_name(&cxlsd->cxld.dev), in cxl_port_setup_targets() 1676 struct cxl_switch_decoder *cxlsd = &cxlrd->cxlsd; in cxl_region_attach_position() local 1761 struct cxl_switch_decoder *cxlsd; in match_switch_decoder_by_range() local 1768 cxlsd = to_cxl_switch_decoder(dev); in match_switch_decoder_by_range() 1769 r1 = &cxlsd->cxld.hpa_range; in match_switch_decoder_by_range() 1779 struct cxl_switch_decoder *cxlsd; in find_pos_and_ways() local [all …]
|
| H A D | hdm.c | 51 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() 721 int ways = cxlsd->cxld.interleave_ways; in cxlsd_set_targets() 819 struct cxl_switch_decoder *cxlsd = in cxl_decoder_commit() local 825 cxlsd_set_targets(cxlsd, &targets); in cxl_decoder_commit() 1184 struct cxl_switch_decoder *cxlsd; in devm_cxl_enumerate_decoders() local 1187 if (IS_ERR(cxlsd)) { in devm_cxl_enumerate_decoders() 1191 return PTR_ERR(cxlsd); in devm_cxl_enumerate_decoders() [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 (host_bridge == cxlsd->target[i]->dport_dev) in match_cxlrd_hb()
|
| /linux-6.15/tools/testing/cxl/test/ |
| H A D | cxl.c | 745 struct cxl_switch_decoder *cxlsd; in mock_init_hdm_decoder() local 820 cxlsd = to_cxl_switch_decoder(dev); in mock_init_hdm_decoder() 824 cxlsd->target[1] = dport; in mock_init_hdm_decoder() 826 cxlsd->target[0] = dport; in mock_init_hdm_decoder() 828 cxlsd->target[0] = dport; in mock_init_hdm_decoder() 829 cxld = &cxlsd->cxld; in mock_init_hdm_decoder() 874 struct cxl_switch_decoder *cxlsd; in mock_cxl_enumerate_decoders() local 876 cxlsd = cxl_switch_decoder_alloc(port, target_count); in mock_cxl_enumerate_decoders() 877 if (IS_ERR(cxlsd)) { in mock_cxl_enumerate_decoders() 880 return PTR_ERR(cxlsd); in mock_cxl_enumerate_decoders() [all …]
|
| /linux-6.15/drivers/cxl/ |
| H A D | acpi.c | 29 int hbiw = cxlrd->cxlsd.nr_targets; in cxl_xor_hpa_to_spa() 74 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in cxl_parse_cxims() 341 if (!IS_ERR_OR_NULL(_T)) put_device(&_T->cxlsd.cxld.dev)) 383 cxld = &cxlrd->cxlsd.cxld; in DEFINE_FREE() 800 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in pair_cxl_resource()
|
| H A D | cxl.h | 440 struct cxl_switch_decoder cxlsd; member 785 return cxl_decoder_autoremove(host, &cxlrd->cxlsd.cxld); in cxl_root_decoder_autoremove()
|
| H A D | cxlmem.h | 73 return to_cxl_port(cxlrd->cxlsd.cxld.dev.parent); in cxlrd_to_port()
|