Searched refs:cxlrd (Results 1 – 6 of 6) sorted by relevance
| /linux-6.15/drivers/cxl/ |
| H A D | acpi.c | 29 int hbiw = cxlrd->cxlsd.nr_targets; in cxl_xor_hpa_to_spa() 65 struct cxl_root_decoder *cxlrd; member 73 struct cxl_root_decoder *cxlrd = ctx->cxlrd; in cxl_parse_cxims() local 109 cxlrd->platform_data = cximsd; in cxl_parse_cxims() 380 if (IS_ERR(cxlrd)) in DEFINE_FREE() 381 return PTR_ERR(cxlrd); in DEFINE_FREE() 383 cxld = &cxlrd->cxlsd.cxld; in DEFINE_FREE() 403 .cxlrd = cxlrd, in DEFINE_FREE() 409 if (!cxlrd->platform_data) { in DEFINE_FREE() 416 cxlrd->qos_class = cfmws->qtg_id; in DEFINE_FREE() [all …]
|
| H A D | cxl.h | 421 typedef u64 (*cxl_hpa_to_spa_fn)(struct cxl_root_decoder *cxlrd, u64 hpa); 783 struct cxl_root_decoder *cxlrd) in cxl_root_decoder_autoremove() argument 785 return cxl_decoder_autoremove(host, &cxlrd->cxlsd.cxld); in cxl_root_decoder_autoremove()
|
| H A D | cxlmem.h | 71 static inline struct cxl_port *cxlrd_to_port(struct cxl_root_decoder *cxlrd) in cxlrd_to_port() argument 73 return to_cxl_port(cxlrd->cxlsd.cxld.dev.parent); in cxlrd_to_port()
|
| /linux-6.15/drivers/cxl/core/ |
| H A D | region.c | 653 PTR_ERR(res), &size, cxlrd->res->name, cxlrd->res); in alloc_hpa() 1955 root_port = cxlrd_to_port(cxlrd); in cxl_region_attach() 2940 if (cxlrd->hpa_to_spa) in cxl_dpa_to_hpa() 2941 hpa = cxlrd->hpa_to_spa(cxlrd, hpa); in cxl_dpa_to_hpa() 3203 struct cxl_root_decoder *cxlrd; in match_root_decoder_by_range() local 3208 cxlrd = to_cxl_root_decoder(dev); in match_root_decoder_by_range() 3209 r1 = &cxlrd->cxlsd.cxld.hpa_range; in match_root_decoder_by_range() 3266 if (start < cxlrd->res->start) in cxl_extended_linear_cache_resize() 3385 struct cxl_root_decoder *cxlrd; in cxl_add_to_region() local 3407 mutex_lock(&cxlrd->range_lock); in cxl_add_to_region() [all …]
|
| H A D | port.c | 363 !(can_create_pmem(cxlrd) || can_create_ram(cxlrd))) in cxl_root_decoder_visible() 459 kfree(cxlrd); in cxl_root_decoder_release() 1812 struct cxl_root_decoder *cxlrd; in cxl_root_decoder_alloc() local 1820 cxlrd = kzalloc(struct_size(cxlrd, cxlsd.target, nr_targets), in cxl_root_decoder_alloc() 1822 if (!cxlrd) in cxl_root_decoder_alloc() 1825 cxlsd = &cxlrd->cxlsd; in cxl_root_decoder_alloc() 1828 kfree(cxlrd); in cxl_root_decoder_alloc() 1832 mutex_init(&cxlrd->range_lock); in cxl_root_decoder_alloc() 1840 atomic_set(&cxlrd->region_id, -1); in cxl_root_decoder_alloc() 1847 atomic_set(&cxlrd->region_id, rc); in cxl_root_decoder_alloc() [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()
|