Searched refs:cxlrd (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/cxl/ |
| H A D | acpi.c | 76 static u64 cxl_apply_xor_maps(struct cxl_root_decoder *cxlrd, u64 addr) in cxl_apply_xor_maps() argument 78 int hbiw = cxlrd->cxlsd.nr_targets; in cxl_apply_xor_maps() 85 cximsd = cxlrd->platform_data; in cxl_apply_xor_maps() 92 struct cxl_root_decoder *cxlrd; member 100 struct cxl_root_decoder *cxlrd = ctx->cxlrd; in cxl_parse_cxims() local 101 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in cxl_parse_cxims() 136 cxlrd->platform_data = cximsd; in cxl_parse_cxims() 363 static void cxl_setup_extended_linear_cache(struct cxl_root_decoder *cxlrd) in cxl_setup_extended_linear_cache() argument 365 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in cxl_setup_extended_linear_cache() 374 cxlrd->cache_size = 0; in cxl_setup_extended_linear_cache() [all …]
|
| H A D | cxl.h | 352 u64 (*hpa_to_spa)(struct cxl_root_decoder *cxlrd, u64 hpa); 353 u64 (*spa_to_hpa)(struct cxl_root_decoder *cxlrd, u64 spa); 469 struct cxl_root_decoder *cxlrd; member 767 struct cxl_root_decoder *cxlrd) in cxl_root_decoder_autoremove() argument 769 return cxl_decoder_autoremove(host, &cxlrd->cxlsd.cxld); in cxl_root_decoder_autoremove()
|
| /linux/drivers/cxl/core/ |
| H A D | region.c | 490 struct cxl_root_decoder *cxlrd = cxlr->cxlrd; in set_interleave_ways() local 491 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in set_interleave_ways() 564 struct cxl_root_decoder *cxlrd = cxlr->cxlrd; in set_interleave_granularity() local 565 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in set_interleave_granularity() 654 struct cxl_root_decoder *cxlrd = cxlr->cxlrd; in alloc_hpa() local 681 res = alloc_free_mem_region(cxlrd->res, size, SZ_256M, in alloc_hpa() 686 PTR_ERR(res), &size, cxlrd->res->name, cxlrd->res); in alloc_hpa() 1430 struct cxl_root_decoder *cxlrd = cxlr->cxlrd; in cxl_port_setup_targets() local 1474 distance *= cxlrd->cxlsd.cxld.interleave_ways; in cxl_port_setup_targets() 1496 parent_iw = cxlrd->cxlsd.cxld.interleave_ways; in cxl_port_setup_targets() [all …]
|
| H A D | port.c | 308 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(dev); in qos_class_show() local 310 return sysfs_emit(buf, "%d\n", cxlrd->qos_class); in qos_class_show() 340 static bool can_create_pmem(struct cxl_root_decoder *cxlrd) in can_create_pmem() argument 344 return (cxlrd->cxlsd.cxld.flags & flags) == flags; in can_create_pmem() 347 static bool can_create_ram(struct cxl_root_decoder *cxlrd) in can_create_ram() argument 351 return (cxlrd->cxlsd.cxld.flags & flags) == flags; in can_create_ram() 357 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(dev); in cxl_root_decoder_visible() local 359 if (a == CXL_REGION_ATTR(create_pmem_region) && !can_create_pmem(cxlrd)) in cxl_root_decoder_visible() 362 if (a == CXL_REGION_ATTR(create_ram_region) && !can_create_ram(cxlrd)) in cxl_root_decoder_visible() 366 !(can_create_pmem(cxlrd) || can_create_ram(cxlrd))) in cxl_root_decoder_visible() [all …]
|
| H A D | cdat.c | 292 struct cxl_root_decoder *cxlrd; in match_cxlrd_qos_class() local 297 cxlrd = to_cxl_root_decoder(dev); in match_cxlrd_qos_class() 298 if (cxlrd->qos_class == CXL_QOS_CLASS_INVALID) in match_cxlrd_qos_class() 301 if (cxlrd->qos_class == dev_qos_class) in match_cxlrd_qos_class() 331 struct cxl_root_decoder *cxlrd; in match_cxlrd_hb() local 336 cxlrd = to_cxl_root_decoder(dev); in match_cxlrd_hb() 337 cxlsd = &cxlrd->cxlsd; in match_cxlrd_hb()
|