Lines Matching refs:cxld

49 	struct cxl_decoder *cxld = &cxlsd->cxld;  in cxl_hb_xor()  local
50 int ig = cxld->interleave_granularity; in cxl_hb_xor()
51 int iw = cxld->interleave_ways; in cxl_hb_xor()
55 if (dev_WARN_ONCE(&cxld->dev, in cxl_hb_xor()
56 cxld->interleave_ways != cxlsd->nr_targets, in cxl_hb_xor()
83 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in cxl_parse_cxims() local
94 if (hbig != cxld->interleave_granularity) in cxl_parse_cxims()
98 if (is_power_of_2(cxld->interleave_ways)) in cxl_parse_cxims()
100 nr_maps = ilog2(cxld->interleave_ways); in cxl_parse_cxims()
103 nr_maps = ilog2(cxld->interleave_ways / 3); in cxl_parse_cxims()
209 struct cxl_decoder *cxld; in cxl_parse_cfmws() local
259 cxld = &cxlrd->cxlsd.cxld; in cxl_parse_cfmws()
260 cxld->flags = cfmws_to_decoder_flags(cfmws->restrictions); in cxl_parse_cfmws()
261 cxld->target_type = CXL_DECODER_HOSTONLYMEM; in cxl_parse_cfmws()
262 cxld->hpa_range = (struct range) { in cxl_parse_cfmws()
266 cxld->interleave_ways = ways; in cxl_parse_cfmws()
273 cxld->interleave_granularity = ig; in cxl_parse_cfmws()
292 rc = cxl_decoder_add(cxld, target_map); in cxl_parse_cfmws()
295 put_device(&cxld->dev); in cxl_parse_cfmws()
297 rc = cxl_decoder_autoremove(dev, cxld); in cxl_parse_cfmws()
303 dev_name(&cxld->dev), in cxl_parse_cfmws()
304 phys_to_target_node(cxld->hpa_range.start), in cxl_parse_cfmws()
305 cxld->hpa_range.start, cxld->hpa_range.end); in cxl_parse_cfmws()
506 struct cxl_decoder *cxld; in add_root_nvdimm_bridge() local
514 cxld = to_cxl_decoder(match); in add_root_nvdimm_bridge()
515 if (!(cxld->flags & CXL_DECODER_F_PMEM)) in add_root_nvdimm_bridge()
636 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in pair_cxl_resource() local
638 .start = cxld->hpa_range.start, in pair_cxl_resource()
639 .end = cxld->hpa_range.end, in pair_cxl_resource()