Home
last modified time | relevance | path

Searched refs:cxlrd (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/cxl/
H A Dacpi.c76 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 Dcxl.h432 u64 (*hpa_to_spa)(struct cxl_root_decoder *cxlrd, u64 hpa);
433 u64 (*spa_to_hpa)(struct cxl_root_decoder *cxlrd, u64 spa);
554 struct cxl_root_decoder *cxlrd; member
851 struct cxl_root_decoder *cxlrd) in cxl_root_decoder_autoremove() argument
853 return cxl_decoder_autoremove(host, &cxlrd->cxlsd.cxld); in cxl_root_decoder_autoremove()
H A Dcxlmem.h85 static inline struct cxl_port *cxlrd_to_port(struct cxl_root_decoder *cxlrd) in cxlrd_to_port() argument
87 return to_cxl_port(cxlrd->cxlsd.cxld.dev.parent); in cxlrd_to_port()
/linux/drivers/cxl/core/
H A Dregion.c493 struct cxl_root_decoder *cxlrd = cxlr->cxlrd; in interleave_ways_store() local
494 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in interleave_ways_store()
556 struct cxl_root_decoder *cxlrd = cxlr->cxlrd; in interleave_granularity_store() local
557 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in interleave_granularity_store()
631 struct cxl_root_decoder *cxlrd = cxlr->cxlrd; in alloc_hpa() local
658 res = alloc_free_mem_region(cxlrd->res, size, SZ_256M, in alloc_hpa()
663 PTR_ERR(res), &size, cxlrd->res->name, cxlrd->res); in alloc_hpa()
1382 struct cxl_root_decoder *cxlrd = cxlr->cxlrd; in cxl_port_setup_targets() local
1426 distance *= cxlrd->cxlsd.cxld.interleave_ways; in cxl_port_setup_targets()
1448 parent_iw = cxlrd->cxlsd.cxld.interleave_ways; in cxl_port_setup_targets()
[all …]
H A Dport.c308 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 Dcdat.c292 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()