Home
last modified time | relevance | path

Searched refs:cxlsd (Results 1 – 7 of 7) sorted by relevance

/openbmc/linux/drivers/cxl/core/
H A Dport.c145 static ssize_t emit_target_list(struct cxl_switch_decoder *cxlsd, char *buf) in emit_target_list() argument
147 struct cxl_decoder *cxld = &cxlsd->cxld; in emit_target_list()
152 struct cxl_dport *dport = cxlsd->target[i]; in emit_target_list()
159 next = cxlsd->target[i + 1]; in emit_target_list()
173 struct cxl_switch_decoder *cxlsd = to_cxl_switch_decoder(dev); in target_list_show() local
178 rc = emit_target_list(cxlsd, buf); in target_list_show()
319 return (cxlrd->cxlsd.cxld.flags & flags) == flags; in can_create_pmem()
326 return (cxlrd->cxlsd.cxld.flags & flags) == flags; in can_create_ram()
415 struct cxl_switch_decoder *cxlsd = to_cxl_switch_decoder(dev); in cxl_switch_decoder_release() local
417 __cxl_decoder_release(&cxlsd->cxld); in cxl_switch_decoder_release()
[all …]
H A Dregion.c189 struct cxl_switch_decoder *cxlsd = NULL; in commit_decoder() local
195 cxlsd = to_cxl_switch_decoder(&cxld->dev); in commit_decoder()
197 if (dev_WARN_ONCE(&cxld->dev, !cxlsd || cxlsd->nr_targets > 1, in commit_decoder()
368 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in interleave_ways_store()
436 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in interleave_granularity_store()
989 struct cxl_switch_decoder *cxlsd; in cxl_port_attach_region() local
991 cxlsd = to_cxl_switch_decoder(&cxld->dev); in cxl_port_attach_region()
992 if (cxl_rr->nr_targets > cxlsd->nr_targets) { in cxl_port_attach_region()
998 cxlsd->nr_targets); in cxl_port_attach_region()
1169 struct cxl_switch_decoder *cxlsd; in cxl_port_setup_targets() local
[all …]
H A Dhdm.c51 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()
74 return add_hdm_decoder(port, &cxlsd->cxld, single_port_map); in devm_cxl_add_passthrough_decoder()
590 static void cxlsd_set_targets(struct cxl_switch_decoder *cxlsd, u64 *tgt) in cxlsd_set_targets() argument
592 struct cxl_dport **t = &cxlsd->target[0]; in cxlsd_set_targets()
593 int ways = cxlsd->cxld.interleave_ways; in cxlsd_set_targets()
691 struct cxl_switch_decoder *cxlsd = in cxl_decoder_commit() local
697 cxlsd_set_targets(cxlsd, &targets); in cxl_decoder_commit()
[all …]
/openbmc/linux/drivers/cxl/
H A Dacpi.c48 struct cxl_switch_decoder *cxlsd = &cxlrd->cxlsd; in cxl_hb_xor() local
49 struct cxl_decoder *cxld = &cxlsd->cxld; in cxl_hb_xor()
56 cxld->interleave_ways != cxlsd->nr_targets, in cxl_hb_xor()
69 return cxlrd->cxlsd.target[n]; in cxl_hb_xor()
83 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in cxl_parse_cxims()
255 cxld = &cxlrd->cxlsd.cxld; in __cxl_parse_cfmws()
646 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in pair_cxl_resource()
H A Dcxl.h443 struct cxl_switch_decoder cxlsd; member
H A Dcxlmem.h70 return to_cxl_port(cxlrd->cxlsd.cxld.dev.parent); in cxlrd_to_port()
/openbmc/linux/tools/testing/cxl/test/
H A Dcxl.c739 struct cxl_switch_decoder *cxlsd; in mock_init_hdm_decoder() local
814 cxlsd = to_cxl_switch_decoder(dev); in mock_init_hdm_decoder()
818 cxlsd->target[1] = dport; in mock_init_hdm_decoder()
820 cxlsd->target[0] = dport; in mock_init_hdm_decoder()
822 cxlsd->target[0] = dport; in mock_init_hdm_decoder()
823 cxld = &cxlsd->cxld; in mock_init_hdm_decoder()
868 struct cxl_switch_decoder *cxlsd; in mock_cxl_enumerate_decoders() local
870 cxlsd = cxl_switch_decoder_alloc(port, target_count); in mock_cxl_enumerate_decoders()
871 if (IS_ERR(cxlsd)) { in mock_cxl_enumerate_decoders()
874 return PTR_ERR(cxlsd); in mock_cxl_enumerate_decoders()
[all …]